JAI CRM
Home Documentation API Warranty endpoints

Warranty endpoints

29 endpoints: Comments, Warranty, Export.csv, Kanban and more.

Every endpoint in Warranty: 29 operations across 17 resources. Each one takes the same API key and returns the same error shapes as the rest of the API; see Authentication and Errors and limits.

Every path below is relative to https://app.jaicrm.ai. A key only reaches what it was granted when it was created, an endpoint you cannot use answers 403 rather than hiding.

Warranty

GET/api/warranty

List warranties, filtered, sorted and paged

curl -X GET https://app.jaicrm.ai/api/warranty 
  -H 'Authorization: Bearer YOUR_API_KEY'

GET/api/warranty/{id}

Read one warranty in full

ParameterTypeRequiredNotes
idstringRequiredThe record’s id.
curl -X GET https://app.jaicrm.ai/api/warranty/RECORD_ID 
  -H 'Authorization: Bearer YOUR_API_KEY'

POST/api/warranty

Create a warranty

Body

FieldTypeRequiredNotes
statusstringOptionalone of active, claimed, void
itemIdstring (uuid)RequiredNone
serialIdstring (uuid)OptionalNone
serialstringOptionalat most 120 characters
quantityintegerOptional1 or more
customerIdstring (uuid)OptionalNone
sourceDocumentIdstring (uuid)OptionalNone
invoiceNumberstringOptionalat most 60 characters
invoiceDateone of severalOptionalNone
startsOnone of severalRequiredNone
endsOnone of severalOptionalNone
termValueintegerRequired1 or more
termUnitstringRequiredone of day, week, month, year
notesstringOptionalNone
customobjectOptionalNone
curl -X POST https://app.jaicrm.ai/api/warranty 
  -H 'Authorization: Bearer YOUR_API_KEY' 
  -H 'Content-Type: application/json' 
  -d '{
    "status": "active",
    "itemId": "…",
    "serialId": "…",
    "serial": "…"
  }'

PATCH/api/warranty/{id}

Change a warranty

ParameterTypeRequiredNotes
idstringRequiredThe record’s id.

Body

FieldTypeRequiredNotes
statusstringOptionalone of active, claimed, void
itemIdstring (uuid)OptionalNone
serialIdstring (uuid)OptionalNone
serialstringOptionalat most 120 characters
quantityintegerOptional1 or more
customerIdstring (uuid)OptionalNone
sourceDocumentIdstring (uuid)OptionalNone
invoiceNumberstringOptionalat most 60 characters
invoiceDateone of severalOptionalNone
startsOnone of severalOptionalNone
endsOnone of severalOptionalNone
termValueintegerOptional1 or more
termUnitstringOptionalone of day, week, month, year
notesstringOptionalNone
customobjectOptionalNone
curl -X PATCH https://app.jaicrm.ai/api/warranty/RECORD_ID 
  -H 'Authorization: Bearer YOUR_API_KEY' 
  -H 'Content-Type: application/json' 
  -d '{
    "status": "active",
    "itemId": "…",
    "serialId": "…",
    "serial": "…"
  }'

DELETE/api/warranty/{id}

Delete a warranty

ParameterTypeRequiredNotes
idstringRequiredThe record’s id.
curl -X DELETE https://app.jaicrm.ai/api/warranty/RECORD_ID 
  -H 'Authorization: Bearer YOUR_API_KEY'

Comments

GET/api/warranty/{id}/comments

List the comments for a warranty

ParameterTypeRequiredNotes
idstringRequiredThe record’s id.
curl -X GET https://app.jaicrm.ai/api/warranty/RECORD_ID/comments 
  -H 'Authorization: Bearer YOUR_API_KEY'

POST/api/warranty/{id}/comments

Add to the comments of a warranty

ParameterTypeRequiredNotes
idstringRequiredThe record’s id.
curl -X POST https://app.jaicrm.ai/api/warranty/RECORD_ID/comments 
  -H 'Authorization: Bearer YOUR_API_KEY'

DELETE/api/warranty/{id}/comments/{commentId}

Remove from the comments of a warranty

ParameterTypeRequiredNotes
idstringRequiredThe record’s id.
commentIdstringRequiredThe record’s id.
curl -X DELETE https://app.jaicrm.ai/api/warranty/RECORD_ID/comments/RECORD_ID 
  -H 'Authorization: Bearer YOUR_API_KEY'

Bulk

POST/api/warranty/bulk

Change several warranties at once

curl -X POST https://app.jaicrm.ai/api/warranty/bulk 
  -H 'Authorization: Bearer YOUR_API_KEY'

POST/api/warranty/bulk/assign

Assign several warranties to somebody at once

curl -X POST https://app.jaicrm.ai/api/warranty/bulk/assign 
  -H 'Authorization: Bearer YOUR_API_KEY'

POST/api/warranty/bulk/delete

Delete several warranties at once

curl -X POST https://app.jaicrm.ai/api/warranty/bulk/delete 
  -H 'Authorization: Bearer YOUR_API_KEY'

Notes

POST/api/warranty/{id}/notes

Add a note to a warranty

ParameterTypeRequiredNotes
idstringRequiredThe record’s id.
curl -X POST https://app.jaicrm.ai/api/warranty/RECORD_ID/notes 
  -H 'Authorization: Bearer YOUR_API_KEY'

PATCH/api/warranty/{id}/notes/{noteId}

Change or remove a note on a warranty

ParameterTypeRequiredNotes
idstringRequiredThe record’s id.
noteIdstringRequiredThe record’s id.
curl -X PATCH https://app.jaicrm.ai/api/warranty/RECORD_ID/notes/RECORD_ID 
  -H 'Authorization: Bearer YOUR_API_KEY'

DELETE/api/warranty/{id}/notes/{noteId}

Change or remove a note on a warranty

ParameterTypeRequiredNotes
idstringRequiredThe record’s id.
noteIdstringRequiredThe record’s id.
curl -X DELETE https://app.jaicrm.ai/api/warranty/RECORD_ID/notes/RECORD_ID 
  -H 'Authorization: Bearer YOUR_API_KEY'

Assignees

POST/api/warranty/{id}/assignees

Put somebody on a warranty

ParameterTypeRequiredNotes
idstringRequiredThe record’s id.
curl -X POST https://app.jaicrm.ai/api/warranty/RECORD_ID/assignees 
  -H 'Authorization: Bearer YOUR_API_KEY'

DELETE/api/warranty/{id}/assignees/{userId}

Take somebody off a warranty

ParameterTypeRequiredNotes
idstringRequiredThe record’s id.
userIdstringRequiredThe record’s id.
curl -X DELETE https://app.jaicrm.ai/api/warranty/RECORD_ID/assignees/RECORD_ID 
  -H 'Authorization: Bearer YOUR_API_KEY'

Related

GET/api/warranty/{id}/related

List the related for a warranty

ParameterTypeRequiredNotes
idstringRequiredThe record’s id.
curl -X GET https://app.jaicrm.ai/api/warranty/RECORD_ID/related 
  -H 'Authorization: Bearer YOUR_API_KEY'

GET/api/warranty/{id}/related/{module}

List the related for a warranty

ParameterTypeRequiredNotes
idstringRequiredThe record’s id.
modulestringRequiredThe record’s id.
curl -X GET https://app.jaicrm.ai/api/warranty/RECORD_ID/related/RECORD_ID 
  -H 'Authorization: Bearer YOUR_API_KEY'

Export.csv

GET/api/warranty/export.csv

Download warranties as a CSV file

curl -X GET https://app.jaicrm.ai/api/warranty/export.csv 
  -H 'Authorization: Bearer YOUR_API_KEY'

Kanban

GET/api/warranty/kanban

Read warranties arranged as a board

curl -X GET https://app.jaicrm.ai/api/warranty/kanban 
  -H 'Authorization: Bearer YOUR_API_KEY'

Pivot

GET/api/warranty/pivot

Summarise warranties as a pivot table

curl -X GET https://app.jaicrm.ai/api/warranty/pivot 
  -H 'Authorization: Bearer YOUR_API_KEY'

Import

POST/api/warranty/import

Import warranties from a CSV file

curl -X POST https://app.jaicrm.ai/api/warranty/import 
  -H 'Authorization: Bearer YOUR_API_KEY'

Similar

GET/api/warranty/{id}/similar

Find warranties that look like duplicates of this one

ParameterTypeRequiredNotes
idstringRequiredThe record’s id.
curl -X GET https://app.jaicrm.ai/api/warranty/RECORD_ID/similar 
  -H 'Authorization: Bearer YOUR_API_KEY'

Dependencies

GET/api/warranty/{id}/dependencies

List what would break if a warranty were deleted

ParameterTypeRequiredNotes
idstringRequiredThe record’s id.
curl -X GET https://app.jaicrm.ai/api/warranty/RECORD_ID/dependencies 
  -H 'Authorization: Bearer YOUR_API_KEY'

Timeline

GET/api/warranty/{id}/timeline

Read everything that has happened to a warranty

ParameterTypeRequiredNotes
idstringRequiredThe record’s id.
curl -X GET https://app.jaicrm.ai/api/warranty/RECORD_ID/timeline 
  -H 'Authorization: Bearer YOUR_API_KEY'

Email check

GET/api/warranty/{id}/email-check

List the email check for a warranty

ParameterTypeRequiredNotes
idstringRequiredThe record’s id.
curl -X GET https://app.jaicrm.ai/api/warranty/RECORD_ID/email-check 
  -H 'Authorization: Bearer YOUR_API_KEY'

Email

POST/api/warranty/{id}/email

Send an email about a warranty

ParameterTypeRequiredNotes
idstringRequiredThe record’s id.
curl -X POST https://app.jaicrm.ai/api/warranty/RECORD_ID/email 
  -H 'Authorization: Bearer YOUR_API_KEY'

Expiring

GET/api/warranty/expiring

List the expiring for a warranty

curl -X GET https://app.jaicrm.ai/api/warranty/expiring 
  -H 'Authorization: Bearer YOUR_API_KEY'

For customer

GET/api/warranty/for-customer/{id}

List the for customer for a warranty

ParameterTypeRequiredNotes
idstringRequiredThe record’s id.
curl -X GET https://app.jaicrm.ai/api/warranty/for-customer/RECORD_ID 
  -H 'Authorization: Bearer YOUR_API_KEY'

Something missing or wrong here? Tell us. A question that needed asking usually means a page that needed writing.