JAI CRM
Home Documentation API Channel partners endpoints

Channel partners endpoints

29 endpoints: Figures, Attribution, Comments, Partners and more.

Every endpoint in Channel partners: 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.

Partners

GET/api/partners

List channel partners, filtered, sorted and paged

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

GET/api/partners/{id}

Read one channel partner in full

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

POST/api/partners

Create a channel partner

Body

FieldTypeRequiredNotes
namestringRequiredNone
firmstringOptionalNone
kindstringOptionalNone
phonestringOptionalNone
emailone of severalOptionalNone
citystringOptionalNone
addressstringOptionalNone
gstinstringOptionalNone
panstringOptionalNone
ownerIdstring (uuid)OptionalNone
vendorIdstring (uuid)OptionalNone
attributionMonthsintegerOptional1 or more
notesstringOptionalNone
tagsarrayOptionalNone
isActivebooleanOptionalNone
customobjectOptionalNone
curl -X POST https://app.jaicrm.ai/api/partners 
  -H 'Authorization: Bearer YOUR_API_KEY' 
  -H 'Content-Type: application/json' 
  -d '{
    "name": "…",
    "firm": "…",
    "kind": "…",
    "phone": "…"
  }'

PATCH/api/partners/{id}

Change a channel partner

ParameterTypeRequiredNotes
idstringRequiredThe record’s id.

Body

FieldTypeRequiredNotes
namestringOptionalNone
firmstringOptionalNone
kindstringOptionalNone
phonestringOptionalNone
emailone of severalOptionalNone
citystringOptionalNone
addressstringOptionalNone
gstinstringOptionalNone
panstringOptionalNone
ownerIdstring (uuid)OptionalNone
vendorIdstring (uuid)OptionalNone
attributionMonthsintegerOptional1 or more
notesstringOptionalNone
tagsarrayOptionalNone
isActivebooleanOptionalNone
customobjectOptionalNone
curl -X PATCH https://app.jaicrm.ai/api/partners/RECORD_ID 
  -H 'Authorization: Bearer YOUR_API_KEY' 
  -H 'Content-Type: application/json' 
  -d '{
    "name": "…",
    "firm": "…",
    "kind": "…",
    "phone": "…"
  }'

DELETE/api/partners/{id}

Delete a channel partner

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

Comments

GET/api/partners/{id}/comments

List the comments for a channel partner

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

POST/api/partners/{id}/comments

Add to the comments of a channel partner

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

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

Remove from the comments of a channel partner

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

Bulk

POST/api/partners/bulk

Change several channel partners at once

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

POST/api/partners/bulk/assign

Assign several channel partners to somebody at once

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

POST/api/partners/bulk/delete

Delete several channel partners at once

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

Notes

POST/api/partners/{id}/notes

Add a note to a channel partner

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

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

Change or remove a note on a channel partner

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

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

Change or remove a note on a channel partner

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

Assignees

POST/api/partners/{id}/assignees

Put somebody on a channel partner

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

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

Take somebody off a channel partner

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

Related

GET/api/partners/{id}/related

List the related for a channel partner

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

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

List the related for a channel partner

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

Figures

GET/api/partners/{id}/figures

List the figures for a channel partner

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

Attribution

POST/api/partners/attribution

Add to the attribution of a channel partner

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

Export.csv

GET/api/partners/export.csv

Download channel partners as a CSV file

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

Kanban

GET/api/partners/kanban

Read channel partners arranged as a board

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

Pivot

GET/api/partners/pivot

Summarise channel partners as a pivot table

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

Import

POST/api/partners/import

Import channel partners from a CSV file

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

Similar

GET/api/partners/{id}/similar

Find channel partners that look like duplicates of this one

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

Dependencies

GET/api/partners/{id}/dependencies

List what would break if a channel partner were deleted

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

Timeline

GET/api/partners/{id}/timeline

Read everything that has happened to a channel partner

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

Email check

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

List the email check for a channel partner

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

Email

POST/api/partners/{id}/email

Send an email about a channel partner

ParameterTypeRequiredNotes
idstringRequiredThe record’s id.
curl -X POST https://app.jaicrm.ai/api/partners/RECORD_ID/email 
  -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.