Contacts
Explanation of how to manage your contacts through the Carts Guru API.
Get Contact
GET
https://api.carts.guru/contacts
This endpoint allows you to get the information for single contact.
Query Parameters
siteId
string
Your site ID (provided at integration).
accountId
string
The contact's ID in your website.
Headers
x-auth-key
string
Personal token to access Carts Guru API (provided at integration).
Update Contact's Opt-in Status
POST
https://api.carts.guru/contacts/:id
This endpoint allows you to change the contacts Opt-in status.
Path Parameters
id
string
The contact's _id from the Carts Guru document (see get method).
Query Parameters
siteId
string
Your site ID (provided at integration).
Headers
x-auth-key
string
Personal token to access Carts Guru API (provided at integration).
Request Body
allowCall
boolean
True: customer will receive calls. False: customer will not receive calls.
allowSms
boolean
True: customer will receive sms. False: customer will not receive sms.
allowEmail
boolean
True: customer will receive email. False: customer will not receive email.
Anonymize Contact
PUT
https://api.carts.guru/contacts/:id
Allows you to delete all the identifying properties of your contacts on Carts Guru database
Path Parameters
id
string
The contacts _id from the Carts Guru document (see get method).
Query Parameters
cg_action
string
Describes the action you want the Carts Guru API to perform on your contact ('anonymize' is the only one allowed).
siteId
string
Your site ID (provided at integration)
Headers
x-auth-key
string
Personal token to access Carts Guru API (provided at integration).
Import CSV File
PUT
https://api.carts.guru/contacts.csv
Allows you to import a CSV File which contains a list of all the emails/phone-numbers of your current contacts in the Carts Guru database. These contacts Opt-in status will be updated to Opt-out for the type specified in the file. The CSV file format: 'mutipart/form-data' File key name: 'file'
Query Parameters
siteId
string
Your site ID (provided at integration).
Headers
x-auth-key
string
Personal token to access Carts Guru API (provided at integration).
Last updated