Referrals
Referrals Documentation
Referral [LIST]
Referral [LIST]
Request
Endpoint
GET /api/v2/contacts/c42be52a-aee0-4275-9f74-b0329bc2a9d6/referrals
Content-Type: application/vnd.api+jsonBody
Response
Headers
Content-Type: application/vnd.api+json; charset=utf-8
200 OKBody
{
"data": [
{
"id": "13d98975-ca83-4b2b-9abd-f3523d8d6746",
"type": "contact_referrals",
"attributes": {
"created_at": "2021-11-23T14:38:16Z",
"updated_at": "2021-11-23T14:38:16Z",
"updated_in_db_at": "2021-11-23T14:38:16Z"
},
"relationships": {
"referred_by": {
"data": {
"id": "c42be52a-aee0-4275-9f74-b0329bc2a9d6",
"type": "contacts"
}
},
"referred_to": {
"data": {
"id": "1d581db1-c0f0-452d-9b76-093950c518db",
"type": "contacts"
}
}
}
}
],
"meta": {
"pagination": {
"page": 1,
"per_page": 25,
"total_count": 1,
"total_pages": 1
},
"sort": null,
"filter": {
}
}
}Fields
data
Type
[Referral]
Description An array of Referrals
Referral [POST]
Referral [POST]
Request
Endpoint
Body
Parameters
Attributes
created_at
Type
date
Description The timestamp of when this resource was created
Required No
updated_at
Type
date
Description The timestamp of when this resource was last updated
Required No
updated_in_db_at
Type
date
Description This is to be used as a reference for the last time the resource was updated in the remote database - specifically for when data is updated while the client is offline.
Required No
Relationships
referred_by.data
Type
Contact
Description contact referring another contact
Required No
referred_to.data
Type
Contact
Description contact being referred
Required No
Response
Headers
Body
Fields
Attributes
created_at
Type
date
Description The timestamp of when this resource was created
updated_at
Type
date
Description The timestamp of when this resource was last updated
updated_in_db_at
Type
date
Description This is to be used as a reference for the last time the resource was updated in the remote database - specifically for when data is updated while the client is offline.
Relationships
referred_by.data
Type
Contact
Description contact referring another contact
referred_to.data
Type
Contact
Description contact being referred
Referral [GET]
Referral [GET]
Request
Endpoint
Body
Response
Headers
Body
Fields
Attributes
created_at
Type
date
Description The timestamp of when this resource was created
updated_at
Type
date
Description The timestamp of when this resource was last updated
updated_in_db_at
Type
date
Description This is to be used as a reference for the last time the resource was updated in the remote database - specifically for when data is updated while the client is offline.
Relationships
referred_by.data
Type
Contact
Description contact referring another contact
referred_to.data
Type
Contact
Description contact being referred
Referral [PUT]
Referral [PUT]
Request
Endpoint
Body
Parameters
Attributes
created_at
Type
date
Description The timestamp of when this resource was created
Required No
overwrite
Type
boolean
Description
Only used for updating a record where you want to ignore the server's ' 'updated_in_db_at value and force overwrite the values for the record. ' 'Must be true to work.
Required No
updated_at
Type
date
Description The timestamp of when this resource was last updated
Required No
updated_in_db_at
Type
date
Description This is to be used as a reference for the last time the resource was updated in the remote database - specifically for when data is updated while the client is offline.
Required No
Relationships
referred_by.data
Type
Contact
Description contact referring another contact
Required No
referred_to.data
Type
Contact
Description contact being referred
Required No
Response
Headers
Body
Fields
Attributes
created_at
Type
date
Description The timestamp of when this resource was created
updated_at
Type
date
Description The timestamp of when this resource was last updated
updated_in_db_at
Type
date
Description This is to be used as a reference for the last time the resource was updated in the remote database - specifically for when data is updated while the client is offline.
Relationships
referred_by.data
Type
Contact
Description contact referring another contact
referred_to.data
Type
Contact
Description contact being referred
Referral [DELETE]
Referral [DELETE]
Request
Endpoint
Body
Response
Headers
Body
Last updated