Bookings

Get a booking

Returns one booking: when it is, which service, who is assigned to it, the client's details with the CRM contact they were matched to, and their answers to the service's own form fields. A booking from another company returns 404.

GET
/bookings/{bookingId}

Returns one booking: when it is, which service, who is assigned to it, the client's details with the CRM contact they were matched to, and their answers to the service's own form fields. A booking from another company returns 404.

Authorization

x-api-key
x-api-key<token>

Company API key, created under Settings > API Keys.

In: header

Path Parameters

bookingId*string

The booking to return.

Header Parameters

x-company-id?string

Optional with an API key or OAuth token: leave it out and the company the key or token belongs to is used. If sent, it must be that same company, otherwise the request is refused with 403 API_KEY_WRONG_COMPANY or OAUTH_WRONG_COMPANY.

Match^[0-9a-fA-F]{24}$

Response Body

application/json

curl -X GET "https://example.com/bookings/string"
{  "assignedUser": {    "email": "string",    "firstName": "string",    "id": "string",    "lastName": "string"  },  "attribution": {    "firstTouch": {      "capturedAt": "string",      "fbclid": "string",      "gclid": "string",      "landingPage": "string",      "msclkid": "string",      "referrer": "string",      "ttclid": "string",      "utmCampaign": "string",      "utmContent": "string",      "utmMedium": "string",      "utmSource": "string",      "utmTerm": "string"    },    "lastTouch": {      "capturedAt": "string",      "fbclid": "string",      "gclid": "string",      "landingPage": "string",      "msclkid": "string",      "referrer": "string",      "ttclid": "string",      "utmCampaign": "string",      "utmContent": "string",      "utmMedium": "string",      "utmSource": "string",      "utmTerm": "string"    }  },  "cancellationReason": "string",  "client": {    "address": "string",    "contactId": "string",    "email": "string",    "name": "string",    "notes": "string",    "phone": "string"  },  "duration": 0,  "endDateTime": "string",  "formData": [    {      "label": "string",      "value": "string"    }  ],  "id": "string",  "service": {    "id": "string",    "name": "string"  },  "startDateTime": "string",  "status": "string",  "timeZone": "string"}