JAI CRM
Home Documentation API Collections endpoints

Collections endpoints

8 endpoints: Gateways, Attempts, Pay, Options and more.

Every endpoint in Collections: 8 operations across 5 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.

Gateways

GET/api/collect/gateways

List gateways

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

POST/api/collect/gateways/{gateway}/test

Create a test

ParameterTypeRequiredNotes
gatewaystringRequiredThe record’s id.
curl -X POST https://app.jaicrm.ai/api/collect/gateways/RECORD_ID/test 
  -H 'Authorization: Bearer YOUR_API_KEY'

PUT/api/collect/gateways/{gateway}

Change a gateway

ParameterTypeRequiredNotes
gatewaystringRequiredThe record’s id.
curl -X PUT https://app.jaicrm.ai/api/collect/gateways/RECORD_ID 
  -H 'Authorization: Bearer YOUR_API_KEY'

DELETE/api/collect/gateways/{gateway}

Delete a gateway

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

Attempts

GET/api/collect/attempts

List attempts

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

Pay

POST/api/collect/pay/{token}

Act on a pay

ParameterTypeRequiredNotes
tokenstringRequiredThe record’s id.
curl -X POST https://app.jaicrm.ai/api/collect/pay/RECORD_ID 
  -H 'Authorization: Bearer YOUR_API_KEY'

Options

GET/api/collect/options/{token}

Read one option

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

Webhook

POST/api/collect/webhook/{tenantId}/{gateway}

Act on a webhook

ParameterTypeRequiredNotes
tenantIdstringRequiredThe record’s id.
gatewaystringRequiredThe record’s id.
curl -X POST https://app.jaicrm.ai/api/collect/webhook/RECORD_ID/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.