Referrals

Referrals Documentation

Referral [LIST]

Referral [LIST]

Request

Endpoint

GET /api/v2/contacts/7d344416-3e95-4472-aefd-2449aec24f33/referrals
Content-Type: application/vnd.api+json

Body

Response

Headers

Content-Type: application/vnd.api+json; charset=utf-8
200 OK

Body

{
  "data": [
    {
      "id": "faad45f6-0984-4ea2-973d-dd1037c8ce37",
      "type": "contact_referrals",
      "attributes": {
        "created_at": "2022-01-12T17:18:48Z",
        "updated_at": "2022-01-12T17:18:48Z",
        "updated_in_db_at": "2022-01-12T17:18:48Z"
      },
      "relationships": {
        "referred_by": {
          "data": {
            "id": "7d344416-3e95-4472-aefd-2449aec24f33",
            "type": "contacts"
          }
        },
        "referred_to": {
          "data": {
            "id": "cb86e8f3-af85-45d3-8f1c-a204facfde49",
            "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