GET /contacts/categories lists the contact categories with their IDs.GET /fields?item_type=contacts.<category_id> lists the fields of one category, and GET /fields?item_type=contacts the fields every contact has (see Custom fields and item types).limit or read every page.| Parameter | Meaning |
|---|---|
page, limit | Pagination. |
updated_since | Only contacts changed at or after this UTC time, YYYY-MM-DD HH:mm:ss. |
global_search | Free-text search. |
filters | Filters on first_name, last_name, email, phone_number, street, city, zip, country, driver_license or field_<id> (see Filtering and incremental sync). |
success.GET /contacts/categories/{category_id}/contacts/{id} returns one contact under contact.POST /contacts/categories/{category_id}/contactsPUT /contacts/categories/{category_id}/contacts/{id}field_<id>, plus:contact_entity: person or company.field_<id> instead.external_contact_type and external_contact_id: the name of your system and the contact's ID in it, for example hubspot and 1234567.contact; store its id in your CRM.external_contact_type and external_contact_id to POST /car-rental/reservations/customer: HQ updates the contact that has that pair, or creates it the first time.customer_id to POST /car-rental/reservations/confirm.GET /car-rental/reservations on customers.external_contact_id:POST /contacts/{id}/merge with contact_ids, a comma-separated list such as 12,15, merges those contacts into the contact id and deletes them, so point their CRM records to the kept contact.external_contact_type and external_contact_id; if your CRM ID was on a merged contact, set it on the kept contact with PUT /contacts/categories/{category_id}/contacts/{id}.external_contact_id, so keep the mapping between HQ and CRM IDs in your system.POST /car-rental/reservations/customer without contact_id, contact_uuid or the external pair creates a new contact on every call, even when one with the same email exists.POST /car-rental/reservations/customer updates an existing contact, the fields you leave out are cleared.ignore_empty_fields keeps the fields shared by all contacts, but the fields of the customer category are still cleared.