Customers

A Customer represents a guest at a Trybe site.

A Customer is created when a guest creates an account on a Trybe shopfront, places a booking, or is created manually in the Trybe app.

Schema

Attributes

  • The ID of the customer.

  • first_name
    Nullable

    The first name of the customer.

  • last_name
    Nullable

    The last name of the customer.

  • full_name
    Nullable

    The customer's full name

  • phone
    Nullable

    The customer's phone number in E.164 format, or null if not provided.

  • Whether the user has a password

  • dob
    Nullable

    The customer's date of birth in YYYY-MM-DD format, or null if not provided.

  • The ID of the brand this customer belongs to

  • The ID of the site this customer belongs to

  • stripe_id
    Nullable

    The Stripe Customer ID for this customer

  • The Stripe Customer ID for this customer if they also exist in Trybe's legacy Stripe integration

  • email
    Nullable

    The email address of the customer.

    The case of the email address is not preserved, so you'll always see this in lowercase.

  • An array of labels associated with this customer

  • The preferred locale of the customer.

    This must be one of the platform's supported locales, which can be retrieved using the listMetaSupportedLocales endpoint.

  • locked_at
    Nullable

    The datetime which the customer was locked, or null if it has not been locked.

  • The datetime which the customer was created

  • The datetime which the customer was last updated

  • deleted_at
    Nullable

    The datetime which the customer was anonymised, or null if it has not been.

  • The datetime which the customer was last active

  • The datetime which the customer verified their email address

  • A summary of the last check-in event associated with this customer, or null if they have never checked-in.

  • avatar_id
    Nullable

    The media ID of the customer's avatar, or null if one hasn't been provided.

  • avatar
    Nullable

    The media object of the customer's avatar, or null if one hasn't been provided.

  • external_ref
    Nullable

    An external reference for this customer.

""
actionCustomerSearch

Search for customers

Use this endpoint to search for customers.

Query parameters

  • site_id
    Required

    Filter results by the site they belong to

  • query
    Optional

    A general search query to match against customer fields.

  • source
    Optional

    Choose which sources to include in the search.

  • first_name
    Optional

    Filter by first name.

  • last_name
    Optional

    Filter by last name.

  • email
    Optional

    Filter by email address.

Responses

  • 200

    Customer search results

  • 422

    The search query was invalid

GET/shop/customers/search
200
example response
{
  "data": [
    {
      "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
      "first_name": "Jane",
      "last_name": "Smith",
      "email": "jane.smith@example.com",
      "sources": [
        "trybe",
        "trybe",
        "trybe"
      ],
      "labels": [
        {
          "id": "e44ad38e-903c-3c5a-071c-cb1274fab130",
          "name": "VIP",
          "color": "#FF5733"
        }
      ]
    },
    {
      "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
      "first_name": "Jane",
      "last_name": "Smith",
      "email": "jane.smith@example.com",
      "sources": [
        "trybe"
      ],
      "labels": [
        {
          "id": "de43ff72-f1bf-5cd9-fa31-aaddcae29774",
          "name": "VIP",
          "color": "#FF5733"
        },
        {
          "id": "0d776aaa-eb61-c60f-1b6c-5106d181550c",
          "name": "VIP",
          "color": "#FF5733"
        },
        {
          "id": "dc6dd35b-4eee-5951-e5ac-76c213867e4a",
          "name": "VIP",
          "color": "#FF5733"
        }
      ]
    }
  ],
  "meta": {
    "sources": []
  }
}
422
example response
{
  "errors": {
    "culpa00c": [
      "qui",
      "veniam"
    ],
    "nulla_b": [
      "laborum",
      "mollit"
    ]
  },
  "message": "The request didn't pass validation"
}
getCustomerStats

Get stats for a single customer across the whole organisation

Use this endpoint to retrieve high-level stats for a single customer.

Path parameters

  • customerId
    Required

    The ID of the customer being accessed.

Responses

  • 200

    Customer stats were found

  • 404

    The customer could not be found

GET/shop/customers/{customerId}/stats
200
example response
{
  "data": {
    "totals": {
      "total_order_value": 38500,
      "average_order_value": 19250,
      "num_orders": 2
    },
    "recent_orders": [
      {
        "id": "698c4d383701880136000042",
        "order_ref": "est Ut ullamco sint mollit",
        "status": "cancelled",
        "num_items": 2,
        "customer": {
          "id": "462d4f2e-cde6-a785-5a89-91c01e7dccc7",
          "email": "jane@example.com",
          "first_name": "Jane",
          "last_name": "Jones"
        },
        "sales_channel": {
          "name": "Website"
        },
        "totals": {
          "order_discount": 0,
          "total": 15000
        },
        "submitted_at": "1915-01-27T22:23:13.0Z",
        "site": {
          "id": "63a8a63a-2fd6-6d5e-f23e-216f69548ace",
          "name": "Palm Tree Spa"
        }
      }
    ]
  },
  "meta": {
    "currency": "gbp"
  }
}
404
example response
{
  "message": "The requested resource could not be found"
}
listCustomers

List Customers

This endpoint lists the Customers which are associated to the provided site.

Query parameters

  • Filters customers with a similar name, email or phone number to the given value

  • Filter customers with the given email address

  • Filter customers that belong to the given organisation ID

  • Filter customers that belong to the given brand ID

  • Filter customers that belong to the given site ID

  • Filter customers that have a membership with the given membership number

  • Filter customers with a similar name to the given value

  • Filter customers with the given phone number

  • Filter customers that have at least one membership of the given state. Set to "none" to filter customers that do not have any memberships, "any" to filter customers that have any memberships, and "needs_dd_mandate" for memberships awaiting a Direct Debit mandate or payment method.

  • Filters customers which have at least one membership that was created on or after the given date

  • Filters customers which have at least one membership that was created on or before the given date

  • Filters customers which have at least one membership of the given membership type ID

  • Filters customers which have at least one membership of the given membership rate ID

  • Filters customers who are opted into the given marketing preference ID. Alternatively, pass "any" to filter customers opted into any marketing preference, or "none" to filter customers not opted into any preferences.

  • Filters customers which have the given CustomerLabel ids.

  • Filters to just the customers with the given IDs.

  • page
    Optional

    The page to retrieve results from

  • per_page
    Optional

    The number of results to return per page

Responses

  • 200

    The Customers were successfully retrieved

GET/customers/customers
200
example response
{
  "data": [
    {
      "id": "bab5f36b-31b4-f3d7-c1c6-b34379a3d2f2",
      "first_name": "Jane",
      "last_name": "Doe",
      "full_name": "Jane Doe",
      "phone": "+447900000000",
      "has_password": true,
      "dob": "1966-05-10",
      "brand_id": "58386135-08c4-307b-70f5-0b59155262ca",
      "site_id": "51f033e3-0204-90cf-5e52-221c7352e696",
      "stripe_id": "cus_1234567890",
      "express_stripe_id": "cus_1234567890",
      "email": "janedoe@example.com",
      "labels": [
        {
          "id": "1af8160a-40bb-b518-8ccf-47648afca826",
          "value": "VIP",
          "colour": "ff6634"
        },
        {
          "id": "b300505f-f0e0-e3cc-e4f0-8339b3354343",
          "value": "VIP",
          "colour": "ff6634"
        },
        {
          "id": "3571590d-df87-e3a8-a361-9b9ff604ff6f",
          "value": "VIP",
          "colour": "ff6634"
        },
        {
          "id": "2bd7ac6e-6700-931c-23ee-edcace9c4fac",
          "value": "VIP",
          "colour": "ff6634"
        },
        {
          "id": "4b8d30c3-e031-4fe3-447b-739c67555772",
          "value": "VIP",
          "colour": "ff6634"
        }
      ],
      "preferred_locale": "en",
      "locked_at": "1908-12-02T15:16:46.0Z",
      "created_at": "1922-12-28T03:49:28.0Z",
      "updated_at": "1916-12-12T01:53:49.0Z",
      "deleted_at": "1928-05-29T06:28:22.0Z",
      "last_active_at": "1891-11-28T21:25:34.0Z",
      "email_verified_at": "1938-04-30T01:20:30.0Z",
      "last_check_in": {
        "checked_in_at": "1897-11-14T11:05:34.0Z",
        "method": "Scanned"
      },
      "avatar_id": "000000-000000-000000-000000",
      "avatar": {
        "id": "6c5dfe03-9409-4d04-75aa-d6a03bfcb953",
        "file_name": "super-cool-photo.jpg",
        "mime_type": "image/jpeg",
        "original_url": "https://example.com/media/super-cool-photo.jpg",
        "size": 84256,
        "url": "https://example.com/media/super-cool-photo-thumbnail@2x.jpg"
      },
      "external_ref": "enim nostrud fugiat"
    },
    {
      "id": "be922a38-b36c-fb6c-f554-f2302f7dcab9",
      "first_name": "Jane",
      "last_name": "Doe",
      "full_name": "Jane Doe",
      "phone": "+447900000000",
      "has_password": true,
      "dob": "1959-01-19",
      "brand_id": "ef96de19-af8e-6bf5-6bdd-fe63532c2c3c",
      "site_id": "56150847-6163-e6f6-a6a1-6fe6223bfa96",
      "stripe_id": "cus_1234567890",
      "express_stripe_id": "cus_1234567890",
      "email": "janedoe@example.com",
      "labels": [
        {
          "id": "33c7fc1f-7411-ae8e-0adc-e39557ff9b7b",
          "value": "VIP",
          "colour": "ff6634"
        },
        {
          "id": "726a7fc9-d8be-de2b-1923-8d3fcc8fbce7",
          "value": "VIP",
          "colour": "ff6634"
        },
        {
          "id": "d617ca98-3c55-2eab-c161-a73369ea8110",
          "value": "VIP",
          "colour": "ff6634"
        }
      ],
      "preferred_locale": "en",
      "locked_at": "1892-07-26T08:26:05.0Z",
      "created_at": "1949-03-25T17:05:54.0Z",
      "updated_at": "1898-04-29T01:04:10.0Z",
      "deleted_at": "1898-12-22T19:02:57.0Z",
      "last_active_at": "1951-12-10T18:38:19.0Z",
      "email_verified_at": "1961-05-03T23:57:25.0Z",
      "last_check_in": {
        "checked_in_at": "1914-08-08T11:54:54.0Z",
        "method": "Scanned"
      },
      "avatar_id": "000000-000000-000000-000000",
      "avatar": {
        "id": "2c9dff15-acdc-4431-01f6-2feb096c103c",
        "file_name": "super-cool-photo.jpg",
        "mime_type": "image/jpeg",
        "original_url": "https://example.com/media/super-cool-photo.jpg",
        "size": 84256,
        "url": "https://example.com/media/super-cool-photo-thumbnail@2x.jpg"
      },
      "external_ref": "ipsum magna proident"
    }
  ],
  "meta": {
    "from": 1,
    "to": 2,
    "total": 2,
    "current_page": 1,
    "last_page": 2,
    "per_page": 15,
    "path": "http://example.com/api"
  },
  "links": {
    "first": "http://example.com?page=1",
    "next": "https://example.com?page=3",
    "prev": "https://example.com?page=1",
    "last": "https://example.com?page=4"
  }
}
createCustomer

Create a Customer

Use this endpoint to create a new Customer.

When creating a new Customer, you must specify at least one of the following fields along with any other fields marked as required:

  • email
  • first_name
  • last_name

Request body

  • site_id
    Required

    The ID of the site this customer belongs to

  • first_name
    Nullable

    The first name of the customer.

  • last_name
    Nullable

    The last name of the customer.

  • phone
    Nullable

    The customer's phone number in E.164 format, or null if not provided.

  • dob
    Nullable

    The customer's date of birth in YYYY-MM-DD format, or null if not provided.

  • email
    Nullable

    The email address of the customer.

    The case of the email address is not preserved, so you'll always see this in lowercase.

  • The customer's password. This must be at least 8 characters long

  • An array of marketing preference IDs to opt the customer in to

  • external_ref
    Nullable

    An external reference for this customer.

  • The guestline reference for this customer.

  • The preferred locale of the customer.

    This must be one of the platform's supported locales, which can be retrieved using the listMetaSupportedLocales endpoint.

Responses

  • 201

    The Customer was successfully retrieved

POST/customers/customers
201
example response
{
  "data": {
    "id": "5b469bf6-b4a8-b32a-9257-a744822572d7",
    "first_name": "Jane",
    "last_name": "Doe",
    "full_name": "Jane Doe",
    "phone": "+447900000000",
    "has_password": true,
    "dob": "1905-05-23",
    "brand_id": "92848e71-e407-213d-080d-34c738921f15",
    "site_id": "e05b1a19-e30d-b653-d587-c344e15e36c2",
    "stripe_id": "cus_1234567890",
    "express_stripe_id": "cus_1234567890",
    "email": "janedoe@example.com",
    "labels": [
      {
        "id": "e40e7f21-4d0e-c1c7-f907-0647921f4246",
        "value": "VIP",
        "colour": "ff6634"
      },
      {
        "id": "e8681378-504f-639a-6b55-3948cf935166",
        "value": "VIP",
        "colour": "ff6634"
      }
    ],
    "preferred_locale": "en",
    "locked_at": "1968-03-29T06:17:43.0Z",
    "created_at": "1920-01-24T18:51:19.0Z",
    "updated_at": "1923-05-18T01:06:43.0Z",
    "deleted_at": "1909-06-01T01:31:42.0Z",
    "last_active_at": "1944-03-22T05:52:30.0Z",
    "email_verified_at": "1920-10-25T17:04:50.0Z",
    "last_check_in": {
      "checked_in_at": "1922-04-30T02:37:32.0Z",
      "method": "Scanned"
    },
    "avatar_id": "000000-000000-000000-000000",
    "avatar": {
      "id": "c06f9b88-d186-d131-ea01-cae4f3e1b50a",
      "file_name": "super-cool-photo.jpg",
      "mime_type": "image/jpeg",
      "original_url": "https://example.com/media/super-cool-photo.jpg",
      "size": 84256,
      "url": "https://example.com/media/super-cool-photo-thumbnail@2x.jpg"
    },
    "external_ref": "eu ad aute magna"
  }
}
getCustomer

Show a Customer

Use this endpoint to retrieve a Customer by their ID.

Path parameters

Responses

  • 200

    The Customer was successfully retrieved

  • 404

    The resource couldn't be found

GET/customers/customers/{customerId}
200
example response
{
  "data": {
    "id": "a30f65d7-2d62-86c5-8488-b1492a807af9",
    "first_name": "Jane",
    "last_name": "Doe",
    "full_name": "Jane Doe",
    "phone": "+447900000000",
    "has_password": true,
    "dob": "1891-05-02",
    "brand_id": "13bd09d6-9832-1d68-ea73-55413aa417e3",
    "site_id": "66646c01-7f67-61bf-ad9a-daec6426b5e5",
    "stripe_id": "cus_1234567890",
    "express_stripe_id": "cus_1234567890",
    "email": "janedoe@example.com",
    "labels": [
      {
        "id": "c58766a8-d2a5-7498-25b2-01054f33780b",
        "value": "VIP",
        "colour": "ff6634"
      },
      {
        "id": "09e7efd1-6947-b010-4950-1913e3b57f3c",
        "value": "VIP",
        "colour": "ff6634"
      }
    ],
    "preferred_locale": "en",
    "locked_at": "1901-10-04T07:37:11.0Z",
    "created_at": "1901-11-10T13:17:16.0Z",
    "updated_at": "1940-06-04T18:03:51.0Z",
    "deleted_at": "1969-06-22T07:05:16.0Z",
    "last_active_at": "1911-07-26T18:12:50.0Z",
    "email_verified_at": "1896-06-23T22:33:32.0Z",
    "last_check_in": {
      "checked_in_at": "1910-11-30T04:25:35.0Z",
      "method": "Scanned"
    },
    "avatar_id": "000000-000000-000000-000000",
    "avatar": {
      "id": "d3a9cbbb-7dd7-7edb-9021-3fd268f4c4c7",
      "file_name": "super-cool-photo.jpg",
      "mime_type": "image/jpeg",
      "original_url": "https://example.com/media/super-cool-photo.jpg",
      "size": 84256,
      "url": "https://example.com/media/super-cool-photo-thumbnail@2x.jpg"
    },
    "external_ref": "in dolor laborum"
  }
}
404
example response
{
  "message": "The requested resource could not be found"
}
updateCustomer

Update a Customer

Use this endpoint to update an existing Customer.

Path parameters

Request body

  • first_name
    Nullable

    The first name of the customer.

  • last_name
    Nullable

    The last name of the customer.

  • phone
    Nullable

    The customer's phone number in E.164 format, or null if not provided.

  • dob
    Nullable

    The customer's date of birth in YYYY-MM-DD format, or null if not provided.

  • The customer's password. This must be at least 8 characters long

  • external_ref
    Nullable

    An external reference for this customer.

  • The preferred locale of the customer.

    This must be one of the platform's supported locales, which can be retrieved using the listMetaSupportedLocales endpoint.

Responses

  • 201

    The Customer was successfully retrieved

  • 404

    The resource couldn't be found

PUT/customers/customers/{customerId}
201
example response
{
  "data": {
    "id": "8ffb6e0d-ac2d-9b69-cdea-dcae5847d141",
    "first_name": "Jane",
    "last_name": "Doe",
    "full_name": "Jane Doe",
    "phone": "+447900000000",
    "has_password": true,
    "dob": "1894-06-07",
    "brand_id": "8f85cf4a-3be3-b0b5-dbfc-2658f18e00bc",
    "site_id": "89f71071-c027-9da4-e37a-f8d373fbe3e8",
    "stripe_id": "cus_1234567890",
    "express_stripe_id": "cus_1234567890",
    "email": "janedoe@example.com",
    "labels": [
      {
        "id": "b0354ae0-7e64-ab20-4eb0-0c9e9766e712",
        "value": "VIP",
        "colour": "ff6634"
      }
    ],
    "preferred_locale": "en",
    "locked_at": "1962-04-11T14:13:37.0Z",
    "created_at": "1955-09-04T01:45:53.0Z",
    "updated_at": "1931-04-12T01:47:01.0Z",
    "deleted_at": "1913-10-11T01:18:23.0Z",
    "last_active_at": "1963-01-07T04:48:54.0Z",
    "email_verified_at": "1966-10-05T18:55:12.0Z",
    "last_check_in": {
      "checked_in_at": "1944-04-22T08:38:32.0Z",
      "method": "Scanned"
    },
    "avatar_id": "000000-000000-000000-000000",
    "avatar": {
      "id": "f946b4b7-6dd1-ec94-4355-4c254b39241d",
      "file_name": "super-cool-photo.jpg",
      "mime_type": "image/jpeg",
      "original_url": "https://example.com/media/super-cool-photo.jpg",
      "size": 84256,
      "url": "https://example.com/media/super-cool-photo-thumbnail@2x.jpg"
    },
    "external_ref": "tempor ut"
  }
}
404
example response
{
  "message": "The requested resource could not be found"
}
listAssociatedBarcodes

List Associated Barcodes for a Customer

This endpoint retrieves all barcodes associated with a customer.

Path parameters

Responses

  • 200

    The barcodes associated with the customer were successfully retrieved

GET/shop/customers/{customerId}/barcodes
200
example response
{
  "data": []
}
deleteAssociatedBarcode

Delete an associated barcode for a customer

This endpoint deletes an associated barcode for a customer.

Path parameters

Responses

  • 204

    The associated barcode was successfully deleted

  • 404

    The customer or associated barcode could not be found

DELETE/shop/customers/{customerId}/barcodes/{barcodeId}
204
example response
Empty response
404
example response
{
  "message": "The requested resource could not be found"
}
updateAssociatedBarcode

Update an associated barcode for a customer

This endpoint updates the details of an associated barcode for a customer.

Path parameters

Request body

  • The ID of the payment method to associate with the associated barcode.

  • order_id
    Nullable

    The ID of the order to associate with the associated barcode.

  • expires_at
    Nullable

    The expiry date to set for the associated barcode.

Responses

  • 200

    The associated barcode was successfully updated

  • 404

    The customer or associated barcode could not be found

  • 422

    The request to update the associated barcode was invalid

PUT/shop/customers/{customerId}/barcodes/{barcodeId}
200
example response
{
  "data": {
    "id": "4b54502f-eb46-0ba9-5092-190cb3976429",
    "customer_id": "196418bb-8e0f-84dd-de34-ba4c67fe0d01",
    "customer": {
      "id": "6ea9d9ec-ba13-1d07-d873-0c6ce39354b1",
      "first_name": "Jane",
      "last_name": "Doe",
      "full_name": "Jane Doe",
      "phone": "+447900000000",
      "has_password": true,
      "dob": "1891-02-04",
      "brand_id": "8a0c5155-57f9-451d-c267-4e47ea07b5ee",
      "site_id": "df2f0e46-7da8-fbc2-73e9-ae0a95dadaa8",
      "stripe_id": "cus_1234567890",
      "express_stripe_id": "cus_1234567890",
      "email": "janedoe@example.com",
      "labels": [
        {
          "id": "b20310c6-ecde-98f2-4568-4d296d84bc8c",
          "value": "VIP",
          "colour": "ff6634"
        }
      ],
      "preferred_locale": "en",
      "locked_at": "1940-08-23T02:03:29.0Z",
      "created_at": "1926-08-11T13:16:18.0Z",
      "updated_at": "1911-11-15T02:24:53.0Z",
      "deleted_at": "1911-01-16T13:59:27.0Z",
      "last_active_at": "1938-04-02T20:14:30.0Z",
      "email_verified_at": "1901-08-17T04:42:40.0Z",
      "last_check_in": {
        "checked_in_at": "1959-03-02T03:09:02.0Z",
        "method": "Scanned"
      },
      "avatar_id": "000000-000000-000000-000000",
      "avatar": {
        "id": "33154a31-9206-be66-f16e-21d7260c92be",
        "file_name": "super-cool-photo.jpg",
        "mime_type": "image/jpeg",
        "original_url": "https://example.com/media/super-cool-photo.jpg",
        "size": 84256,
        "url": "https://example.com/media/super-cool-photo-thumbnail@2x.jpg"
      },
      "external_ref": "dolor"
    },
    "barcode": "tempor esse et do voluptate",
    "expires_at": "1944-11-20T16:40:40.0Z",
    "brand_id": "da6766e7-1306-748f-a763-89c1bd1e746f",
    "site_id": "57e030c3-42b9-ceb2-69e8-2929a375037f",
    "organisation_id": "83495352-600f-41f9-8e9f-43d856f539c6",
    "source": "kiosk",
    "order": {
      "id": "698c4d39370188013600006d",
      "applied_promo_code": {
        "id": "698c4d39370188013600006e",
        "applied_at": "2023-11-15T12:01:01.0Z",
        "applied_by": {
          "id": "13a1d3d8-68ee-0872-3b7a-968038ba5d54",
          "email": "quis",
          "first_name": "Dan",
          "last_name": "Johnson",
          "full_name": "Dan Johnson",
          "avatar": {
            "id": "7f1d3466-a4f5-9311-c68e-d559ed31979e",
            "file_name": "super-cool-photo.jpg",
            "mime_type": "image/jpeg",
            "original_url": "https://example.com/media/super-cool-photo.jpg",
            "size": 84256,
            "url": "https://example.com/media/super-cool-photo-thumbnail@2x.jpg"
          }
        },
        "code": "FIVEOFF",
        "discount_total": 2000,
        "is_discount_applied": true,
        "percentage": 10
      },
      "applied_promo_code_discount_total": 77167501,
      "applied_promo_code_id": "698c4d39370188013600006f",
      "booking_items": [
        {
          "id": "698c4d393701880136000070",
          "added_by_customer": true,
          "base_price": 70320251,
          "booking_reserved_until": "1958-06-12T11:49:25.0Z",
          "booking_summary": {
            "id": "698c4d393701880136000071",
            "area_ids": [],
            "areas": [
              {
                "id": "698c4d393701880136000072",
                "name": "Hot Tub 1"
              },
              {
                "id": "698c4d393701880136000073",
                "name": "Hot Tub 1"
              },
              {
                "id": "698c4d393701880136000074",
                "name": "Hot Tub 1"
              }
            ],
            "duration": 56774652,
            "end_time": "1921-08-23T01:50:33.0Z",
            "offering": {
              "id": "698c4d393701880136000075",
              "name": "30 Minute Massage",
              "type": "appointment",
              "product_code": "occaecat id eu irure aliqua"
            },
            "start_time": "1954-08-31T14:02:33.0Z",
            "status": "confirmed",
            "created_at": "2025-02-04T12:01:01.0Z",
            "updated_at": "2025-02-04T12:01:01.0Z"
          },
          "date": "1900-03-06",
          "discount_amount": -63950463,
          "discounts": [
            {
              "id": "698c4d393701880136000076",
              "amount_type": "percentage",
              "applicable_for": "app_and_booking_engine",
              "applied_at": "1892-09-28T16:39:46.0Z",
              "applied_by": {
                "id": "8ef8e995-4b5b-17f3-2ed6-2fb2456ee70f",
                "email": "occaecat",
                "first_name": "Dan",
                "last_name": "Johnson",
                "full_name": "Dan Johnson",
                "avatar": {
                  "id": "1ab27379-7e11-1d31-081d-ff5cf5020617",
                  "file_name": "super-cool-photo.jpg",
                  "mime_type": "image/jpeg",
                  "original_url": "https://example.com/media/super-cool-photo.jpg",
                  "size": 84256,
                  "url": "https://example.com/media/super-cool-photo-thumbnail@2x.jpg"
                }
              },
              "calculated_amount": 150,
              "coupon": {
                "id": "698c4d393701880136000077",
                "code": "FIVEOFF",
                "name": "April special",
                "description": "Get 10% off all treatments booked in April.",
                "customer_credit_id": "cd44e37a-45b5-3326-3431-71adc0fda91d"
              },
              "coupon_code_id": "698c4d393701880136000078",
              "currency": "gbp",
              "discount_amount": 15,
              "discount_type_code": "SUMMER23",
              "reason_code": "general",
              "site_id": "bfd5972a-2b70-cdd0-9ed1-79a626e9524f"
            },
            {
              "id": "698c4d393701880136000079",
              "amount_type": "monetary",
              "applicable_for": "app_and_booking_engine",
              "applied_at": "1949-09-03T11:54:36.0Z",
              "applied_by": {
                "id": "e53b895f-ff5f-34eb-ee49-37e209f39ae1",
                "email": "anim veniam",
                "first_name": "Dan",
                "last_name": "Johnson",
                "full_name": "Dan Johnson",
                "avatar": {
                  "id": "10a86f55-9d98-7b3f-02ec-e544495e76ca",
                  "file_name": "super-cool-photo.jpg",
                  "mime_type": "image/jpeg",
                  "original_url": "https://example.com/media/super-cool-photo.jpg",
                  "size": 84256,
                  "url": "https://example.com/media/super-cool-photo-thumbnail@2x.jpg"
                }
              },
              "calculated_amount": 150,
              "coupon": {
                "id": "698c4d39370188013600007a",
                "code": "FIVEOFF",
                "name": "April special",
                "description": "Get 10% off all treatments booked in April.",
                "customer_credit_id": "eccdc545-bcbe-43e9-4d5f-e3195a25f0f9"
              },
              "coupon_code_id": "698c4d39370188013600007b",
              "currency": "gbp",
              "discount_amount": 15,
              "discount_type_code": "SUMMER23",
              "reason_code": "general",
              "site_id": "6745df86-d68e-db43-b5df-44fc5ac8f6f8"
            }
          ],
          "exclusive_tax_amount": 56337707,
          "guest": {
            "id": "698c4d39370188013600007c",
            "checked_in_at": "1933-10-13T18:31:57.0Z",
            "checked_out_at": "1910-06-07T14:30:49.0Z",
            "customer_id": "954bbee2-1b40-a906-f8fb-6e9ae8ccf8bd",
            "email": "bvQ@fNJdkAlcXInExBFZKluTrOJk.xp",
            "first_name": "Jane",
            "intake_form_submission_id": "698c4d39370188013600007d",
            "intake_form_complete": false,
            "is_lead_booker": false,
            "last_name": "Doe",
            "name": "Jane Doe"
          },
          "guests": [
            {
              "id": "698c4d39370188013600007e",
              "checked_in_at": "1928-08-09T06:34:45.0Z",
              "checked_out_at": "1923-06-23T17:11:53.0Z",
              "customer_id": "86a7594d-9622-4ca2-0d5d-e3c510b73e44",
              "email": "F8c@UYC.zd",
              "first_name": "Jane",
              "intake_form_submission_id": "698c4d39370188013600007f",
              "intake_form_complete": true,
              "is_lead_booker": false,
              "last_name": "Doe",
              "name": "Jane Doe"
            },
            {
              "id": "698c4d393701880136000080",
              "checked_in_at": "1912-08-10T22:06:02.0Z",
              "checked_out_at": "1937-12-07T13:20:51.0Z",
              "customer_id": "47dde518-057a-9886-bc04-8f5c1483aea0",
              "email": "18l1@WnzO.tdi",
              "first_name": "Jane",
              "intake_form_submission_id": "698c4d393701880136000081",
              "intake_form_complete": true,
              "is_lead_booker": false,
              "last_name": "Doe",
              "name": "Jane Doe"
            },
            {
              "id": "698c4d393701880136000082",
              "checked_in_at": "1908-04-18T16:09:05.0Z",
              "checked_out_at": "1913-10-25T04:47:16.0Z",
              "customer_id": "bb653e58-1238-eaba-9aff-705df7111396",
              "email": "JfQ76THfN@LinDVkEKLMoQ.xsoh",
              "first_name": "Jane",
              "intake_form_submission_id": "698c4d393701880136000083",
              "intake_form_complete": true,
              "is_lead_booker": true,
              "last_name": "Doe",
              "name": "Jane Doe"
            },
            {
              "id": "698c4d393701880136000084",
              "checked_in_at": "1956-01-13T18:42:15.0Z",
              "checked_out_at": "1954-05-19T21:47:21.0Z",
              "customer_id": "4e5e2718-fa7e-43a0-cf84-3fb9b2da8223",
              "first_name": "Jane",
              "intake_form_complete": true,
              "is_lead_booker": true,
              "last_name": "Doe",
              "name": "Jane Doe"
            },
            {
              "id": "698c4d393701880136000085",
              "checked_in_at": "1933-09-02T11:04:03.0Z",
              "checked_out_at": "1960-02-15T23:32:08.0Z",
              "customer_id": "9a89942a-1d31-dfe9-a08b-d08350eaab76",
              "email": "eCMPNs7T1@mdgHeVmwEOxDmJhKawcOezcvX.tpq",
              "first_name": "Jane",
              "intake_form_submission_id": "698c4d393701880136000086",
              "intake_form_complete": false,
              "is_lead_booker": false,
              "last_name": "Doe",
              "name": "Jane Doe"
            }
          ],
          "inclusive_tax_amount": 88752951,
          "is_modifiable": true,
          "item_type": "nulla officia aliquip Excepteur dolor",
          "net_total": 45514234,
          "order_discount_amount": -20367025,
          "price": 67686726,
          "sold_by": {
            "id": "amet exercitation consectetur culpa",
            "name": "ea",
            "type": ""
          },
          "status": "confirmed",
          "total_cost": -67042336,
          "type_id": "698c4d393701880136000087",
          "type_name": "Duis nisi",
          "type_product_code": "est",
          "created_at": "2025-02-04T12:01:01.0Z",
          "updated_at": "2025-02-04T12:01:01.0Z"
        },
        {
          "id": "698c4d393701880136000088",
          "added_by_customer": true,
          "base_price": -52363063,
          "booking_reserved_until": "1942-04-10T17:15:49.0Z",
          "booking_summary": {
            "id": "698c4d393701880136000089",
            "area_ids": [
              "698c4d39370188013600008a",
              "698c4d39370188013600008b"
            ],
            "areas": [
              {
                "id": "698c4d39370188013600008c",
                "name": "Hot Tub 1"
              }
            ],
            "duration": -7598230,
            "end_time": "1960-11-10T04:44:40.0Z",
            "offering": {
              "id": "698c4d39370188013600008d",
              "name": "30 Minute Massage",
              "type": "appointment",
              "product_code": "velit in labore"
            },
            "start_time": "1958-02-01T05:45:15.0Z",
            "status": "reserved",
            "created_at": "2025-02-04T12:01:01.0Z",
            "updated_at": "2025-02-04T12:01:01.0Z"
          },
          "date": "1944-08-30",
          "discount_amount": 40584585,
          "discounts": [
            {
              "id": "698c4d39370188013600008e",
              "amount_type": "percentage",
              "applicable_for": "app_and_booking_engine",
              "applied_at": "1917-06-19T05:06:05.0Z",
              "applied_by": {
                "id": "cd114b1c-31cf-9afc-fc11-2c13d1365a49",
                "email": "velit aliqua Ut",
                "first_name": "Dan",
                "last_name": "Johnson",
                "full_name": "Dan Johnson",
                "avatar": {
                  "id": "f01348d1-5406-2cae-4096-020ad0ce9d97",
                  "file_name": "super-cool-photo.jpg",
                  "mime_type": "image/jpeg",
                  "original_url": "https://example.com/media/super-cool-photo.jpg",
                  "size": 84256,
                  "url": "https://example.com/media/super-cool-photo-thumbnail@2x.jpg"
                }
              },
              "calculated_amount": 150,
              "coupon": {
                "id": "698c4d39370188013600008f",
                "code": "FIVEOFF",
                "name": "April special",
                "description": "Get 10% off all treatments booked in April.",
                "customer_credit_id": "724bd6d1-5458-5589-92ad-13a1578657ba"
              },
              "coupon_code_id": "698c4d393701880136000090",
              "currency": "gbp",
              "discount_amount": 15,
              "discount_type_code": "SUMMER23",
              "reason_code": "general",
              "site_id": "ad46a6b3-6d52-c536-d5bb-ba3ed79373bd"
            },
            {
              "id": "698c4d393701880136000091",
              "amount_type": "monetary",
              "applicable_for": "app_and_booking_engine",
              "applied_at": "1906-10-13T05:40:51.0Z",
              "applied_by": {
                "id": "539706a4-fef2-b1b5-fc49-764f683b3ff9",
                "email": "elit reprehenderit nostrud",
                "first_name": "Dan",
                "last_name": "Johnson",
                "full_name": "Dan Johnson",
                "avatar": {
                  "id": "6a9200cd-6c2c-1973-8020-cf847916758f",
                  "file_name": "super-cool-photo.jpg",
                  "mime_type": "image/jpeg",
                  "original_url": "https://example.com/media/super-cool-photo.jpg",
                  "size": 84256,
                  "url": "https://example.com/media/super-cool-photo-thumbnail@2x.jpg"
                }
              },
              "calculated_amount": 150,
              "coupon": {
                "id": "698c4d393701880136000092",
                "code": "FIVEOFF",
                "name": "April special",
                "description": "Get 10% off all treatments booked in April.",
                "customer_credit_id": "0a395d73-2406-2c04-46f9-f2d2b1912b75"
              },
              "coupon_code_id": "698c4d393701880136000093",
              "currency": "gbp",
              "discount_amount": 15,
              "discount_type_code": "SUMMER23",
              "reason_code": "general",
              "site_id": "67c37cde-309c-4f32-7f43-31201ae77aa7"
            },
            {
              "id": "698c4d393701880136000094",
              "amount_type": "percentage",
              "applicable_for": "app_and_booking_engine",
              "applied_at": "1950-08-31T19:36:46.0Z",
              "applied_by": {
                "id": "33b2b029-96eb-311c-65d5-45c1ffff2570",
                "email": "cillum",
                "first_name": "Dan",
                "last_name": "Johnson",
                "full_name": "Dan Johnson",
                "avatar": {
                  "id": "da259499-788e-118a-291a-d4ae2be2c413",
                  "file_name": "super-cool-photo.jpg",
                  "mime_type": "image/jpeg",
                  "original_url": "https://example.com/media/super-cool-photo.jpg",
                  "size": 84256,
                  "url": "https://example.com/media/super-cool-photo-thumbnail@2x.jpg"
                }
              },
              "calculated_amount": 150,
              "coupon": {
                "id": "698c4d393701880136000095",
                "code": "FIVEOFF",
                "name": "April special",
                "description": "Get 10% off all treatments booked in April.",
                "customer_credit_id": "a190b420-1064-4bdd-a6bd-2305b7b1d912"
              },
              "coupon_code_id": "698c4d393701880136000096",
              "currency": "gbp",
              "discount_amount": 15,
              "discount_type_code": "SUMMER23",
              "reason_code": "general",
              "site_id": "cb0258a8-82ed-7d57-98ab-63586a865589"
            },
            {
              "id": "698c4d393701880136000097",
              "amount_type": "monetary",
              "applicable_for": "app_and_booking_engine",
              "applied_at": "1893-06-02T14:23:23.0Z",
              "applied_by": {
                "id": "6958610f-ac81-17d2-6362-90689f117a78",
                "email": "sunt ut ad ullamco",
                "first_name": "Dan",
                "last_name": "Johnson",
                "full_name": "Dan Johnson",
                "avatar": {
                  "id": "34766d0e-5539-4fa5-038b-6e1d5066b784",
                  "file_name": "super-cool-photo.jpg",
                  "mime_type": "image/jpeg",
                  "original_url": "https://example.com/media/super-cool-photo.jpg",
                  "size": 84256,
                  "url": "https://example.com/media/super-cool-photo-thumbnail@2x.jpg"
                }
              },
              "calculated_amount": 150,
              "coupon": {
                "id": "698c4d393701880136000098",
                "code": "FIVEOFF",
                "name": "April special",
                "description": "Get 10% off all treatments booked in April.",
                "customer_credit_id": "08b629a7-4e16-184a-fd07-05f7486b4f2d"
              },
              "coupon_code_id": "698c4d393701880136000099",
              "currency": "gbp",
              "discount_amount": 15,
              "discount_type_code": "SUMMER23",
              "reason_code": "general",
              "site_id": "7d7eea25-d670-a61a-5bde-44ab9421cab6"
            },
            {
              "id": "698c4d39370188013600009a",
              "amount_type": "monetary",
              "applicable_for": "app_and_booking_engine",
              "applied_at": "1946-05-12T17:12:37.0Z",
              "applied_by": {
                "id": "bceff03f-6792-2f3d-a83b-48e959ba68f1",
                "email": "voluptate cillum ut adipisicing aliquip",
                "first_name": "Dan",
                "last_name": "Johnson",
                "full_name": "Dan Johnson",
                "avatar": {
                  "id": "08c4de05-01e5-a851-38aa-0cd9785d9d85",
                  "file_name": "super-cool-photo.jpg",
                  "mime_type": "image/jpeg",
                  "original_url": "https://example.com/media/super-cool-photo.jpg",
                  "size": 84256,
                  "url": "https://example.com/media/super-cool-photo-thumbnail@2x.jpg"
                }
              },
              "calculated_amount": 150,
              "coupon": {
                "id": "698c4d39370188013600009b",
                "code": "FIVEOFF",
                "name": "April special",
                "description": "Get 10% off all treatments booked in April.",
                "customer_credit_id": "4d032f61-c59a-9c4a-1fb4-da233a2280bb"
              },
              "coupon_code_id": "698c4d39370188013600009c",
              "currency": "gbp",
              "discount_amount": 15,
              "discount_type_code": "SUMMER23",
              "reason_code": "general",
              "site_id": "37801c1f-4d3e-9f1a-165f-68dd9a49d387"
            }
          ],
          "exclusive_tax_amount": 4121911,
          "guest": {
            "id": "698c4d39370188013600009d",
            "checked_in_at": "1899-09-26T09:07:35.0Z",
            "checked_out_at": "1914-03-13T15:06:44.0Z",
            "customer_id": "c47eb971-7dea-b676-e47c-2d733df407ff",
            "email": "GeZezVECn6mqLJ@HdAgBIYHXjDdvDdIkt.gqh",
            "first_name": "Jane",
            "intake_form_submission_id": "698c4d39370188013600009e",
            "intake_form_complete": false,
            "is_lead_booker": false,
            "last_name": "Doe",
            "name": "Jane Doe"
          },
          "guests": [
            {
              "id": "698c4d39370188013600009f",
              "checked_in_at": "1966-12-06T09:19:06.0Z",
              "checked_out_at": "1958-05-18T01:47:49.0Z",
              "customer_id": "8ddb1c98-837e-7202-a492-07564b2e1f84",
              "email": "olUCUh0v-VEDA@utvryzpFSc.jk",
              "first_name": "Jane",
              "intake_form_submission_id": "698c4d3937018801360000a0",
              "intake_form_complete": true,
              "is_lead_booker": false,
              "last_name": "Doe",
              "name": "Jane Doe"
            }
          ],
          "inclusive_tax_amount": 27580600,
          "is_modifiable": false,
          "item_type": "ad cupidatat",
          "net_total": 93865882,
          "order_discount_amount": -27863397,
          "price": -46936634,
          "sold_by": {
            "id": "nulla amet",
            "name": "sit magna",
            "type": ""
          },
          "status": "confirmed",
          "total_cost": 65582526,
          "type_id": "698c4d3937018801360000a1",
          "type_name": "id voluptate cupidatat",
          "type_product_code": "ipsum sit velit id",
          "created_at": "2025-02-04T12:01:01.0Z",
          "updated_at": "2025-02-04T12:01:01.0Z"
        },
        {
          "id": "698c4d3937018801360000a2",
          "added_by_customer": true,
          "base_price": -33444837,
          "booking_reserved_until": "1915-08-29T05:51:24.0Z",
          "booking_summary": {
            "id": "698c4d3937018801360000a3",
            "area_ids": [
              "698c4d3937018801360000a4",
              "698c4d3937018801360000a5",
              "698c4d3937018801360000a6",
              "698c4d3937018801360000a7",
              "698c4d3937018801360000a8"
            ],
            "areas": [
              {
                "id": "698c4d3937018801360000a9",
                "name": "Hot Tub 1"
              },
              {
                "id": "698c4d3937018801360000aa",
                "name": "Hot Tub 1"
              },
              {
                "id": "698c4d3937018801360000ab",
                "name": "Hot Tub 1"
              }
            ],
            "duration": -76750866,
            "end_time": "1967-07-02T19:57:02.0Z",
            "offering": {
              "id": "698c4d3937018801360000ac",
              "name": "30 Minute Massage",
              "type": "appointment",
              "product_code": "Excepteur magna"
            },
            "start_time": "1967-12-11T07:01:42.0Z",
            "status": "pending_confirmation",
            "created_at": "2025-02-04T12:01:01.0Z",
            "updated_at": "2025-02-04T12:01:01.0Z"
          },
          "date": "1891-10-30",
          "discount_amount": 28683692,
          "discounts": [
            {
              "id": "698c4d3937018801360000ad",
              "amount_type": "monetary",
              "applicable_for": "app_and_booking_engine",
              "applied_at": "1940-10-21T09:06:43.0Z",
              "applied_by": {
                "id": "30b08c41-627f-5360-5e77-95c1bd11db44",
                "email": "Duis dolor id officia",
                "first_name": "Dan",
                "last_name": "Johnson",
                "full_name": "Dan Johnson",
                "avatar": {
                  "id": "53f93834-78a0-7dda-84b2-e03978b0506e",
                  "file_name": "super-cool-photo.jpg",
                  "mime_type": "image/jpeg",
                  "original_url": "https://example.com/media/super-cool-photo.jpg",
                  "size": 84256,
                  "url": "https://example.com/media/super-cool-photo-thumbnail@2x.jpg"
                }
              },
              "calculated_amount": 150,
              "coupon": {
                "id": "698c4d3937018801360000ae",
                "code": "FIVEOFF",
                "name": "April special",
                "description": "Get 10% off all treatments booked in April.",
                "customer_credit_id": "758d7a77-c3f6-e2d9-1429-c9baaf813f25"
              },
              "coupon_code_id": "698c4d3937018801360000af",
              "currency": "gbp",
              "discount_amount": 15,
              "discount_type_code": "SUMMER23",
              "reason_code": "general",
              "site_id": "6af2691d-5fb7-9106-1f51-4048ac19b631"
            },
            {
              "id": "698c4d3937018801360000b0",
              "amount_type": "percentage",
              "applicable_for": "app_and_booking_engine",
              "applied_at": "1946-03-10T13:47:54.0Z",
              "applied_by": {
                "id": "84eb4163-af4e-69fd-9483-82e9fcecf2a0",
                "email": "ullamco sed ad proident nulla",
                "first_name": "Dan",
                "last_name": "Johnson",
                "full_name": "Dan Johnson",
                "avatar": {
                  "id": "79284643-bc3f-a88d-0960-8b145f7386b4",
                  "file_name": "super-cool-photo.jpg",
                  "mime_type": "image/jpeg",
                  "original_url": "https://example.com/media/super-cool-photo.jpg",
                  "size": 84256,
                  "url": "https://example.com/media/super-cool-photo-thumbnail@2x.jpg"
                }
              },
              "calculated_amount": 150,
              "coupon": {
                "id": "698c4d3937018801360000b1",
                "code": "FIVEOFF",
                "name": "April special",
                "description": "Get 10% off all treatments booked in April.",
                "customer_credit_id": "8ffb8bc9-e6ee-dca9-6fd1-7c7425541238"
              },
              "coupon_code_id": "698c4d3937018801360000b2",
              "currency": "gbp",
              "discount_amount": 15,
              "discount_type_code": "SUMMER23",
              "reason_code": "general",
              "site_id": "0e9ba435-1ccb-6d50-1034-83797570705b"
            },
            {
              "id": "698c4d3937018801360000b3",
              "amount_type": "percentage",
              "applicable_for": "app_and_booking_engine",
              "applied_at": "1951-10-23T23:28:55.0Z",
              "applied_by": {
                "id": "8cdf6e50-c994-53a4-553c-3dbb2ec5f075",
                "email": "magna",
                "first_name": "Dan",
                "last_name": "Johnson",
                "full_name": "Dan Johnson",
                "avatar": {
                  "id": "6feb2a0c-77d4-440d-9dfe-9c466cbac58d",
                  "file_name": "super-cool-photo.jpg",
                  "mime_type": "image/jpeg",
                  "original_url": "https://example.com/media/super-cool-photo.jpg",
                  "size": 84256,
                  "url": "https://example.com/media/super-cool-photo-thumbnail@2x.jpg"
                }
              },
              "calculated_amount": 150,
              "coupon": {
                "id": "698c4d3937018801360000b4",
                "code": "FIVEOFF",
                "name": "April special",
                "description": "Get 10% off all treatments booked in April.",
                "customer_credit_id": "4eaad1c4-5307-070e-49ff-8c3c529bb8b9"
              },
              "coupon_code_id": "698c4d3937018801360000b5",
              "currency": "gbp",
              "discount_amount": 15,
              "discount_type_code": "SUMMER23",
              "reason_code": "general",
              "site_id": "0f2a7479-e65e-6a04-4576-5cc358b8fe70"
            }
          ],
          "exclusive_tax_amount": -43906684,
          "guest": {
            "id": "698c4d3937018801360000b6",
            "checked_in_at": "1898-09-04T18:48:45.0Z",
            "checked_out_at": "1906-08-08T20:34:38.0Z",
            "customer_id": "9f7aca5b-80c2-cd34-f596-ad2e56552ca5",
            "first_name": "Jane",
            "intake_form_complete": true,
            "is_lead_booker": true,
            "last_name": "Doe",
            "name": "Jane Doe"
          },
          "guests": [
            {
              "id": "698c4d3937018801360000b7",
              "checked_in_at": "1938-03-22T23:40:41.0Z",
              "checked_out_at": "1899-06-27T23:44:54.0Z",
              "customer_id": "81ab1374-ca38-aacb-91a3-02467815ac7b",
              "email": "Gs-RYrI-164mFk@aDSEReSsXmil.ks",
              "first_name": "Jane",
              "intake_form_submission_id": "698c4d3937018801360000b8",
              "intake_form_complete": true,
              "is_lead_booker": false,
              "last_name": "Doe",
              "name": "Jane Doe"
            },
            {
              "id": "698c4d3937018801360000b9",
              "checked_in_at": "1907-06-26T05:05:16.0Z",
              "checked_out_at": "1903-10-27T17:28:15.0Z",
              "customer_id": "0702817a-913a-91bf-6f24-cbe7454dd875",
              "first_name": "Jane",
              "intake_form_submission_id": "698c4d3937018801360000ba",
              "intake_form_complete": false,
              "is_lead_booker": false,
              "last_name": "Doe",
              "name": "Jane Doe"
            },
            {
              "id": "698c4d3937018801360000bb",
              "checked_in_at": "1966-12-22T14:46:49.0Z",
              "checked_out_at": "1902-04-06T03:36:30.0Z",
              "customer_id": "54c8e489-43e3-d63d-de65-e6f9f5440860",
              "email": "Y3Vb@NpcXOoJioJwmK.nsf",
              "first_name": "Jane",
              "intake_form_submission_id": "698c4d3937018801360000bc",
              "intake_form_complete": true,
              "is_lead_booker": false,
              "last_name": "Doe",
              "name": "Jane Doe"
            }
          ],
          "inclusive_tax_amount": 10810816,
          "is_modifiable": false,
          "item_type": "aliqua eiusmod dolore nulla",
          "net_total": 97982364,
          "order_discount_amount": 56229669,
          "price": 71548436,
          "sold_by": {
            "id": "in",
            "name": "amet in",
            "type": "user"
          },
          "status": "pending_confirmation",
          "total_cost": 97228888,
          "type_id": "698c4d3937018801360000bd",
          "type_name": "aute irure labore eiusmod",
          "type_product_code": "eu culpa",
          "created_at": "2025-02-04T12:01:01.0Z",
          "updated_at": "2025-02-04T12:01:01.0Z"
        },
        {
          "id": "698c4d3937018801360000be",
          "added_by_customer": false,
          "base_price": -40310888,
          "booking_reserved_until": "1966-10-30T21:16:23.0Z",
          "booking_summary": {
            "id": "698c4d3937018801360000bf",
            "duration": 98408518,
            "end_time": "1891-06-20T13:43:36.0Z",
            "equipment": [
              {
                "id": "698c4d3937018801360000c0",
                "name": "Hot Rocks"
              }
            ],
            "equipment_ids": [
              "698c4d3937018801360000c1",
              "698c4d3937018801360000c2"
            ],
            "offering": {
              "id": "698c4d3937018801360000c3",
              "name": "30 Minute Massage",
              "type": "appointment",
              "product_code": "cupidatat dolore"
            },
            "practitioners": [],
            "practitioner_ids": [
              "698c4d3937018801360000c4",
              "698c4d3937018801360000c5"
            ],
            "practitioner_was_requested": true,
            "room": {
              "id": "5dcb47800000000000000000",
              "capacity": 22872234,
              "name": "adipisicing"
            },
            "room_id": "698c4d3937018801360000c6",
            "room_was_requested": false,
            "session_id": "698c4d3937018801360000c7",
            "start_time": "1912-12-15T03:59:42.0Z",
            "status": "pending_confirmation",
            "created_at": "2025-02-04T12:01:01.0Z",
            "updated_at": "2025-02-04T12:01:01.0Z"
          },
          "date": "1918-02-26",
          "discount_amount": 43781152,
          "discounts": [
            {
              "id": "698c4d3937018801360000c8",
              "amount_type": "percentage",
              "applicable_for": "app_and_booking_engine",
              "applied_at": "1901-05-02T08:30:56.0Z",
              "applied_by": {
                "id": "d21433cb-7ffc-29f4-fe3f-12ada8971f72",
                "email": "cupidatat",
                "first_name": "Dan",
                "last_name": "Johnson",
                "full_name": "Dan Johnson",
                "avatar": {
                  "id": "5610adc4-3cf3-ef62-125d-2c55f4880384",
                  "file_name": "super-cool-photo.jpg",
                  "mime_type": "image/jpeg",
                  "original_url": "https://example.com/media/super-cool-photo.jpg",
                  "size": 84256,
                  "url": "https://example.com/media/super-cool-photo-thumbnail@2x.jpg"
                }
              },
              "calculated_amount": 150,
              "coupon": {
                "id": "698c4d3937018801360000c9",
                "code": "FIVEOFF",
                "name": "April special",
                "description": "Get 10% off all treatments booked in April.",
                "customer_credit_id": "b09d9e12-4fb5-1a92-c3b9-dfe335d168b9"
              },
              "coupon_code_id": "698c4d3937018801360000ca",
              "currency": "gbp",
              "discount_amount": 15,
              "discount_type_code": "SUMMER23",
              "reason_code": "general",
              "site_id": "78ee3181-338e-d1e9-76c7-7b88979119d2"
            },
            {
              "id": "698c4d3937018801360000cb",
              "amount_type": "percentage",
              "applicable_for": "app_and_booking_engine",
              "applied_at": "1957-04-23T12:12:01.0Z",
              "applied_by": {
                "id": "54ce34d7-a106-afae-3491-a5d3194551e1",
                "email": "sed",
                "first_name": "Dan",
                "last_name": "Johnson",
                "full_name": "Dan Johnson",
                "avatar": {
                  "id": "6a4b82a7-30c4-ed0d-0be0-1600dfbd6382",
                  "file_name": "super-cool-photo.jpg",
                  "mime_type": "image/jpeg",
                  "original_url": "https://example.com/media/super-cool-photo.jpg",
                  "size": 84256,
                  "url": "https://example.com/media/super-cool-photo-thumbnail@2x.jpg"
                }
              },
              "calculated_amount": 150,
              "coupon": {
                "id": "698c4d3937018801360000cc",
                "code": "FIVEOFF",
                "name": "April special",
                "description": "Get 10% off all treatments booked in April.",
                "customer_credit_id": "7cdab321-80b6-b2d2-ece6-5c2288ca22ae"
              },
              "coupon_code_id": "698c4d3937018801360000cd",
              "currency": "gbp",
              "discount_amount": 15,
              "discount_type_code": "SUMMER23",
              "reason_code": "general",
              "site_id": "954ccfcc-2bad-1b59-37d3-80647b27cdfa"
            },
            {
              "id": "698c4d3937018801360000ce",
              "amount_type": "percentage",
              "applicable_for": "app_and_booking_engine",
              "applied_at": "1907-07-17T18:49:35.0Z",
              "applied_by": {
                "id": "727da5e8-2ca7-8da4-dbe4-87eb8df5052b",
                "email": "eiusmod est cupidatat culpa",
                "first_name": "Dan",
                "last_name": "Johnson",
                "full_name": "Dan Johnson",
                "avatar": {
                  "id": "8f439abc-559e-dd87-5b07-c7f18e607f0a",
                  "file_name": "super-cool-photo.jpg",
                  "mime_type": "image/jpeg",
                  "original_url": "https://example.com/media/super-cool-photo.jpg",
                  "size": 84256,
                  "url": "https://example.com/media/super-cool-photo-thumbnail@2x.jpg"
                }
              },
              "calculated_amount": 150,
              "coupon": {
                "id": "698c4d3937018801360000cf",
                "code": "FIVEOFF",
                "name": "April special",
                "description": "Get 10% off all treatments booked in April.",
                "customer_credit_id": "c104a219-9bb3-74fa-2369-954ca80fac42"
              },
              "coupon_code_id": "698c4d3937018801360000d0",
              "currency": "gbp",
              "discount_amount": 15,
              "discount_type_code": "SUMMER23",
              "reason_code": "general",
              "site_id": "4e14a74e-ce15-ef20-1a56-c98637364cb0"
            },
            {
              "id": "698c4d3937018801360000d1",
              "amount_type": "percentage",
              "applicable_for": "app_and_booking_engine",
              "applied_at": "1923-03-27T05:14:30.0Z",
              "applied_by": {
                "id": "ef94f74b-4bb4-8708-1238-a43a89ed7b97",
                "email": "est anim officia",
                "first_name": "Dan",
                "last_name": "Johnson",
                "full_name": "Dan Johnson",
                "avatar": {
                  "id": "9adb1946-e654-cf9b-b532-0d04f29144d4",
                  "file_name": "super-cool-photo.jpg",
                  "mime_type": "image/jpeg",
                  "original_url": "https://example.com/media/super-cool-photo.jpg",
                  "size": 84256,
                  "url": "https://example.com/media/super-cool-photo-thumbnail@2x.jpg"
                }
              },
              "calculated_amount": 150,
              "coupon": {
                "id": "698c4d3937018801360000d2",
                "code": "FIVEOFF",
                "name": "April special",
                "description": "Get 10% off all treatments booked in April.",
                "customer_credit_id": "5880a656-426f-d492-6743-9dabc642a264"
              },
              "coupon_code_id": "698c4d3937018801360000d3",
              "currency": "gbp",
              "discount_amount": 15,
              "discount_type_code": "SUMMER23",
              "reason_code": "general",
              "site_id": "ffec67cd-1723-5ef5-8a14-db4ae74f02f9"
            }
          ],
          "exclusive_tax_amount": 89743963,
          "guest": {
            "id": "698c4d3937018801360000d4",
            "checked_in_at": "1903-01-25T18:16:16.0Z",
            "checked_out_at": "1939-11-10T02:13:34.0Z",
            "customer_id": "f4dc3ea6-1068-0ec3-2374-b47163f10036",
            "first_name": "Jane",
            "intake_form_complete": false,
            "is_lead_booker": true,
            "last_name": "Doe",
            "name": "Jane Doe"
          },
          "guests": [
            {
              "id": "698c4d3937018801360000d5",
              "checked_in_at": "1920-11-21T16:42:37.0Z",
              "checked_out_at": "1935-02-12T01:38:49.0Z",
              "customer_id": "0e8e62a1-6985-1052-448f-b6d98374107d",
              "email": "FDxnziOer@emVULsdrbwQUJ.ik",
              "first_name": "Jane",
              "intake_form_submission_id": "698c4d3937018801360000d6",
              "intake_form_complete": true,
              "is_lead_booker": true,
              "last_name": "Doe",
              "name": "Jane Doe"
            },
            {
              "id": "698c4d3937018801360000d7",
              "checked_in_at": "1922-06-05T01:34:57.0Z",
              "checked_out_at": "1901-01-02T16:29:06.0Z",
              "customer_id": "a48e71e1-282c-72a5-2863-d4438285516a",
              "email": "TTjpNI9@kTovdGyZIpdLcUguWoybckwujFkQh.vtfk",
              "first_name": "Jane",
              "intake_form_submission_id": "698c4d3937018801360000d8",
              "intake_form_complete": true,
              "is_lead_booker": true,
              "last_name": "Doe",
              "name": "Jane Doe"
            }
          ],
          "inclusive_tax_amount": -93653008,
          "is_modifiable": false,
          "item_type": "officia tempor sed",
          "net_total": -14957040,
          "order_discount_amount": -39589671,
          "price": 50716088,
          "sold_by": {
            "id": "reprehenderit veniam",
            "name": "cillum dolore minim sed",
            "type": "practitioner"
          },
          "status": "cancelled",
          "total_cost": -12880982,
          "type_id": "698c4d3937018801360000d9",
          "type_name": "magna est",
          "type_product_code": "Duis in magna Excepteur",
          "created_at": "2025-02-04T12:01:01.0Z",
          "updated_at": "2025-02-04T12:01:01.0Z"
        }
      ],
      "booking_items_end_date": "1894-02-23",
      "booking_items_start_date": "1964-10-31",
      "booking_items_span_multiple_days": false,
      "coupon_codes": [],
      "currency": "gbp",
      "customer_id": "769eed46-a31e-b122-e28f-34dc0a4f1cbb",
      "discount_total": 100,
      "discounts": [
        {
          "id": "698c4d3937018801360000da",
          "amount_type": "percentage",
          "applicable_for": "app_and_booking_engine",
          "applied_at": "1918-01-06T11:31:31.0Z",
          "applied_by": {
            "id": "70d28cca-b7f6-208e-d561-cc0b58b5974c",
            "email": "dolor amet",
            "first_name": "Dan",
            "last_name": "Johnson",
            "full_name": "Dan Johnson",
            "avatar": {
              "id": "5e366ebc-fc7f-0095-3ae9-ac65ae8f44fe",
              "file_name": "super-cool-photo.jpg",
              "mime_type": "image/jpeg",
              "original_url": "https://example.com/media/super-cool-photo.jpg",
              "size": 84256,
              "url": "https://example.com/media/super-cool-photo-thumbnail@2x.jpg"
            }
          },
          "calculated_amount": 150,
          "coupon": {
            "id": "698c4d3937018801360000db",
            "code": "FIVEOFF",
            "name": "April special",
            "description": "Get 10% off all treatments booked in April.",
            "customer_credit_id": "5a73a6ee-92c0-be4a-ebd9-2c18bf8ee27d"
          },
          "coupon_code_id": "698c4d3937018801360000dc",
          "currency": "gbp",
          "discount_amount": 15,
          "discount_type_code": "SUMMER23",
          "reason_code": "general",
          "site_id": "031a8a58-72a8-8b50-1a22-3bcd9af14b73"
        },
        {
          "id": "698c4d3937018801360000dd",
          "amount_type": "percentage",
          "applicable_for": "app_and_booking_engine",
          "applied_at": "1897-08-13T07:16:10.0Z",
          "applied_by": {
            "id": "d517583a-ab2e-cf23-21d7-155c72b7996f",
            "email": "esse irure",
            "first_name": "Dan",
            "last_name": "Johnson",
            "full_name": "Dan Johnson",
            "avatar": {
              "id": "a5909414-9fed-784d-913f-6b3330010ebf",
              "file_name": "super-cool-photo.jpg",
              "mime_type": "image/jpeg",
              "original_url": "https://example.com/media/super-cool-photo.jpg",
              "size": 84256,
              "url": "https://example.com/media/super-cool-photo-thumbnail@2x.jpg"
            }
          },
          "calculated_amount": 150,
          "coupon": {
            "id": "698c4d3937018801360000de",
            "code": "FIVEOFF",
            "name": "April special",
            "description": "Get 10% off all treatments booked in April.",
            "customer_credit_id": "a4bffa75-38d7-e784-0df1-7c100eba8065"
          },
          "coupon_code_id": "698c4d3937018801360000df",
          "currency": "gbp",
          "discount_amount": 15,
          "discount_type_code": "SUMMER23",
          "reason_code": "general",
          "site_id": "eeb6d2e3-d865-32ac-d393-de2d3bfe7933"
        },
        {
          "id": "698c4d3937018801360000e0",
          "amount_type": "percentage",
          "applicable_for": "app_and_booking_engine",
          "applied_at": "1918-09-13T19:55:02.0Z",
          "applied_by": {
            "id": "fa41c2df-05e7-a2b6-b4c6-f3797901d995",
            "email": "reprehenderit",
            "first_name": "Dan",
            "last_name": "Johnson",
            "full_name": "Dan Johnson",
            "avatar": {
              "id": "4645d0ba-a047-11a3-5707-ca37dd09c5e1",
              "file_name": "super-cool-photo.jpg",
              "mime_type": "image/jpeg",
              "original_url": "https://example.com/media/super-cool-photo.jpg",
              "size": 84256,
              "url": "https://example.com/media/super-cool-photo-thumbnail@2x.jpg"
            }
          },
          "calculated_amount": 150,
          "coupon": {
            "id": "698c4d3937018801360000e1",
            "code": "FIVEOFF",
            "name": "April special",
            "description": "Get 10% off all treatments booked in April.",
            "customer_credit_id": "5a3f14dd-e924-194e-c657-6c6e78a3081a"
          },
          "coupon_code_id": "698c4d3937018801360000e2",
          "currency": "gbp",
          "discount_amount": 15,
          "discount_type_code": "SUMMER23",
          "reason_code": "general",
          "site_id": "c9224a0f-e6af-d894-ea7b-155a659ebfd1"
        },
        {
          "id": "698c4d3937018801360000e3",
          "amount_type": "percentage",
          "applicable_for": "app_and_booking_engine",
          "applied_at": "1900-08-08T13:56:10.0Z",
          "applied_by": {
            "id": "86c0a59e-3a17-2710-81a1-a724690fabdc",
            "email": "id sint consequat cupidatat",
            "first_name": "Dan",
            "last_name": "Johnson",
            "full_name": "Dan Johnson",
            "avatar": {
              "id": "3f379fc1-00c3-2552-266e-9e85bbb07282",
              "file_name": "super-cool-photo.jpg",
              "mime_type": "image/jpeg",
              "original_url": "https://example.com/media/super-cool-photo.jpg",
              "size": 84256,
              "url": "https://example.com/media/super-cool-photo-thumbnail@2x.jpg"
            }
          },
          "calculated_amount": 150,
          "coupon": {
            "id": "698c4d3937018801360000e4",
            "code": "FIVEOFF",
            "name": "April special",
            "description": "Get 10% off all treatments booked in April.",
            "customer_credit_id": "5856ce7a-924c-f0c5-788d-e354af5a1c27"
          },
          "coupon_code_id": "698c4d3937018801360000e5",
          "currency": "gbp",
          "discount_amount": 15,
          "discount_type_code": "SUMMER23",
          "reason_code": "general",
          "site_id": "2ae3fcdb-703a-b526-486b-22647f82bcc3"
        }
      ],
      "email": "janedoe@example.com",
      "external_ids": [],
      "external_ref": "ABC-123",
      "external_visit_ref": "RES1234",
      "first_name": "Jane",
      "guests": [],
      "intake_form_required": true,
      "intake_form_url": "https://demo.try.be/intake-form",
      "intake_forms_complete": true,
      "integration_config_id": "5f344d756e7f2e7d3f2e4b82",
      "is_customer_required": true,
      "is_locked": false,
      "is_promo_code_discount_applied": true,
      "items": [],
      "items_status": "confirmed",
      "labels": [
        {
          "id": "698c4d3937018801360000e6",
          "color": "#FF0000",
          "name": "VIP",
          "order_id": "698c4d3937018801360000e7"
        },
        {
          "id": "698c4d3937018801360000e8",
          "color": "#FF0000",
          "name": "VIP",
          "order_id": "698c4d3937018801360000e9"
        },
        {
          "id": "698c4d3937018801360000ea",
          "color": "#FF0000",
          "name": "VIP",
          "order_id": "698c4d3937018801360000eb"
        },
        {
          "id": "698c4d3937018801360000ec",
          "color": "#FF0000",
          "name": "VIP",
          "order_id": "698c4d3937018801360000ed"
        }
      ],
      "last_name": "Doe",
      "locked_at": "2019-01-15T12:01:01.0Z",
      "net_total": 8000,
      "new_intake_form_url": "ea",
      "order_ref": "TRY00",
      "organisation_id": "0960dd78-fb24-66ec-ce65-87cb1a6aebd9",
      "outstanding_payment_amount": -6912607,
      "package_items": [
        {
          "id": "698c4d3937018801360000ee",
          "added_by_customer": true,
          "base_price": -45686645,
          "date": "1892-02-20",
          "discount_amount": 40172886,
          "discounts": [
            {
              "id": "698c4d3937018801360000ef",
              "amount_type": "percentage",
              "applicable_for": "app_and_booking_engine",
              "applied_at": "1949-08-20T21:09:18.0Z",
              "applied_by": {
                "id": "899d97d5-36e7-bd88-1059-0baa679cc8a6",
                "email": "culpa",
                "first_name": "Dan",
                "last_name": "Johnson",
                "full_name": "Dan Johnson",
                "avatar": {
                  "id": "d7a52ebc-4874-41a6-84ed-4d2556f13030",
                  "file_name": "super-cool-photo.jpg",
                  "mime_type": "image/jpeg",
                  "original_url": "https://example.com/media/super-cool-photo.jpg",
                  "size": 84256,
                  "url": "https://example.com/media/super-cool-photo-thumbnail@2x.jpg"
                }
              },
              "calculated_amount": 150,
              "coupon": {
                "id": "698c4d3937018801360000f0",
                "code": "FIVEOFF",
                "name": "April special",
                "description": "Get 10% off all treatments booked in April.",
                "customer_credit_id": "1d268dc9-7360-6a01-7b51-fc97067d0ef7"
              },
              "coupon_code_id": "698c4d3937018801360000f1",
              "currency": "gbp",
              "discount_amount": 15,
              "discount_type_code": "SUMMER23",
              "reason_code": "general",
              "site_id": "5399511c-b5bb-62eb-e416-46f5419dc57d"
            },
            {
              "id": "698c4d3937018801360000f2",
              "amount_type": "percentage",
              "applicable_for": "app_and_booking_engine",
              "applied_at": "1927-08-30T06:59:55.0Z",
              "applied_by": {
                "id": "5ed633f0-ab7f-7ce1-616e-70b55f28037e",
                "email": "reprehenderit minim nostrud",
                "first_name": "Dan",
                "last_name": "Johnson",
                "full_name": "Dan Johnson",
                "avatar": {
                  "id": "dc0d92f8-0635-e4c0-c353-4b9507096977",
                  "file_name": "super-cool-photo.jpg",
                  "mime_type": "image/jpeg",
                  "original_url": "https://example.com/media/super-cool-photo.jpg",
                  "size": 84256,
                  "url": "https://example.com/media/super-cool-photo-thumbnail@2x.jpg"
                }
              },
              "calculated_amount": 150,
              "coupon": {
                "id": "698c4d3937018801360000f3",
                "code": "FIVEOFF",
                "name": "April special",
                "description": "Get 10% off all treatments booked in April.",
                "customer_credit_id": "ca0f51a8-fbdf-aa57-ef3e-06d93e4535b5"
              },
              "coupon_code_id": "698c4d3937018801360000f4",
              "currency": "gbp",
              "discount_amount": 15,
              "discount_type_code": "SUMMER23",
              "reason_code": "general",
              "site_id": "10f7f974-32a9-f36d-9864-2d18a556a026"
            },
            {
              "id": "698c4d3937018801360000f5",
              "amount_type": "percentage",
              "applicable_for": "app_and_booking_engine",
              "applied_at": "1923-11-12T06:46:13.0Z",
              "applied_by": {
                "id": "c7226991-a5fd-d07b-9f89-d3889ff7c9f2",
                "email": "tempor",
                "first_name": "Dan",
                "last_name": "Johnson",
                "full_name": "Dan Johnson",
                "avatar": {
                  "id": "c2f1b107-c8ed-ff8a-fed1-cbf058caf389",
                  "file_name": "super-cool-photo.jpg",
                  "mime_type": "image/jpeg",
                  "original_url": "https://example.com/media/super-cool-photo.jpg",
                  "size": 84256,
                  "url": "https://example.com/media/super-cool-photo-thumbnail@2x.jpg"
                }
              },
              "calculated_amount": 150,
              "coupon": {
                "id": "698c4d3937018801360000f6",
                "code": "FIVEOFF",
                "name": "April special",
                "description": "Get 10% off all treatments booked in April.",
                "customer_credit_id": "125115e3-1a61-98aa-4d62-a072e2b13235"
              },
              "coupon_code_id": "698c4d3937018801360000f7",
              "currency": "gbp",
              "discount_amount": 15,
              "discount_type_code": "SUMMER23",
              "reason_code": "general",
              "site_id": "07d68ddc-1d7c-3b57-52f7-446e51eb27e9"
            },
            {
              "id": "698c4d3937018801360000f8",
              "amount_type": "percentage",
              "applicable_for": "app_and_booking_engine",
              "applied_at": "1893-05-02T01:07:14.0Z",
              "applied_by": {
                "id": "78b3000e-609d-87bb-f30f-13cf54e0c6c4",
                "email": "minim voluptate id magna",
                "first_name": "Dan",
                "last_name": "Johnson",
                "full_name": "Dan Johnson",
                "avatar": {
                  "id": "18459f49-8a63-27cd-aaa7-3ebcf6b7d8b1",
                  "file_name": "super-cool-photo.jpg",
                  "mime_type": "image/jpeg",
                  "original_url": "https://example.com/media/super-cool-photo.jpg",
                  "size": 84256,
                  "url": "https://example.com/media/super-cool-photo-thumbnail@2x.jpg"
                }
              },
              "calculated_amount": 150,
              "coupon": {
                "id": "698c4d3937018801360000f9",
                "code": "FIVEOFF",
                "name": "April special",
                "description": "Get 10% off all treatments booked in April.",
                "customer_credit_id": "283251c6-14b5-dbb7-1d6c-bf47d89ce7e7"
              },
              "coupon_code_id": "698c4d3937018801360000fa",
              "currency": "gbp",
              "discount_amount": 15,
              "discount_type_code": "SUMMER23",
              "reason_code": "general",
              "site_id": "44272a44-65f5-976a-504d-20cb45447ca1"
            }
          ],
          "exclusive_tax_amount": 78684052,
          "guest": {
            "id": "698c4d3937018801360000fb",
            "checked_in_at": "1966-10-18T15:29:11.0Z",
            "checked_out_at": "1961-02-17T21:56:14.0Z",
            "customer_id": "26f47dd0-0bbe-0178-a629-88747d225497",
            "email": "rpMaVL-auxegt@ETczyhRdxQQYToMfUAu.wzdi",
            "first_name": "Jane",
            "intake_form_submission_id": "698c4d3937018801360000fc",
            "intake_form_complete": true,
            "is_lead_booker": true,
            "last_name": "Doe",
            "name": "Jane Doe"
          },
          "guests": [
            {
              "id": "698c4d3937018801360000fd",
              "checked_in_at": "1938-10-15T21:24:51.0Z",
              "checked_out_at": "1903-03-16T04:42:12.0Z",
              "customer_id": "4d2a5ca3-74fa-ac49-40d9-f13c72e57677",
              "email": "1iJOp@K.cpx",
              "first_name": "Jane",
              "intake_form_submission_id": "698c4d3937018801360000fe",
              "intake_form_complete": true,
              "is_lead_booker": false,
              "last_name": "Doe",
              "name": "Jane Doe"
            },
            {
              "id": "698c4d3937018801360000ff",
              "checked_in_at": "1907-09-24T21:29:42.0Z",
              "checked_out_at": "1925-10-16T17:01:22.0Z",
              "customer_id": "3880a0c7-4b6c-1d30-97c1-76ca839bdb05",
              "email": "3Ptm5xeDHag6@EZcGmmZOU.bul",
              "first_name": "Jane",
              "intake_form_submission_id": "698c4d393701880136000100",
              "intake_form_complete": false,
              "is_lead_booker": false,
              "last_name": "Doe",
              "name": "Jane Doe"
            }
          ],
          "inclusive_tax_amount": -5447433,
          "is_modifiable": false,
          "item_type": "ea officia Duis dolore laboris",
          "net_total": 60398440,
          "option_budgets": [
            {
              "budget": "Lorem occaecat veniam reprehenderit ad",
              "choice_id": "veniam",
              "remaining": "adipisicing consectetur occaecat exercitation esse",
              "spent": "ad adipisicing culpa ipsum"
            },
            {
              "budget": "dolore ea laborum",
              "choice_id": "magna laboris",
              "remaining": "deserunt esse",
              "spent": "nulla Duis magna nostrud"
            }
          ],
          "order_discount_amount": -5072335,
          "package_items": [],
          "price": -74447122,
          "sold_by": {
            "id": "commodo",
            "name": "elit",
            "type": ""
          },
          "status": "cancelled",
          "total_cost": -7991182,
          "type_id": "698c4d393701880136000101",
          "type_name": "Lorem ut",
          "type_product_code": "ea dolore occaecat exercitation laboris",
          "created_at": "2025-02-04T12:01:01.0Z",
          "updated_at": "2025-02-04T12:01:01.0Z"
        },
        {
          "id": "698c4d393701880136000102",
          "added_by_customer": false,
          "base_price": 61370312,
          "date": "1906-02-18",
          "discount_amount": 40758617,
          "discounts": [
            {
              "id": "698c4d393701880136000103",
              "amount_type": "percentage",
              "applicable_for": "app_and_booking_engine",
              "applied_at": "1940-11-06T16:35:19.0Z",
              "applied_by": {
                "id": "f3846a08-82f6-9b17-f6f3-ae93503938f4",
                "email": "consequat sint Ut",
                "first_name": "Dan",
                "last_name": "Johnson",
                "full_name": "Dan Johnson",
                "avatar": {
                  "id": "7b073e33-173a-0274-cab4-dee336a320f9",
                  "file_name": "super-cool-photo.jpg",
                  "mime_type": "image/jpeg",
                  "original_url": "https://example.com/media/super-cool-photo.jpg",
                  "size": 84256,
                  "url": "https://example.com/media/super-cool-photo-thumbnail@2x.jpg"
                }
              },
              "calculated_amount": 150,
              "coupon": {
                "id": "698c4d393701880136000104",
                "code": "FIVEOFF",
                "name": "April special",
                "description": "Get 10% off all treatments booked in April.",
                "customer_credit_id": "bb058f8e-5f8d-0aa7-325d-c87568cef21d"
              },
              "coupon_code_id": "698c4d393701880136000105",
              "currency": "gbp",
              "discount_amount": 15,
              "discount_type_code": "SUMMER23",
              "reason_code": "general",
              "site_id": "fcb9911d-b622-3d37-565d-5e86753bf0e3"
            }
          ],
          "exclusive_tax_amount": 40934882,
          "guest": {
            "id": "698c4d393701880136000106",
            "checked_in_at": "1895-03-24T13:17:07.0Z",
            "checked_out_at": "1921-07-29T06:23:29.0Z",
            "customer_id": "45000952-792e-db3c-cd5a-c157c41d55bc",
            "email": "kC4@rxKMgHxtuvaHqFWwWqlkxhOTLKE.qf",
            "first_name": "Jane",
            "intake_form_submission_id": "698c4d393701880136000107",
            "intake_form_complete": true,
            "is_lead_booker": true,
            "last_name": "Doe",
            "name": "Jane Doe"
          },
          "guests": [
            {
              "id": "698c4d393701880136000108",
              "checked_in_at": "1963-05-16T08:32:48.0Z",
              "checked_out_at": "1922-08-24T03:11:42.0Z",
              "customer_id": "25f99c76-20ac-e960-2a0d-d115b2519878",
              "email": "k8l5FwPCadqv@iNlScEFkHDewVXmzIfdOymvsOKdAItgNP.lw",
              "first_name": "Jane",
              "intake_form_submission_id": "698c4d393701880136000109",
              "intake_form_complete": false,
              "is_lead_booker": false,
              "last_name": "Doe",
              "name": "Jane Doe"
            }
          ],
          "inclusive_tax_amount": 53058577,
          "is_modifiable": true,
          "item_type": "dolore consectetur eu proident est",
          "net_total": 58071643,
          "option_budgets": [],
          "order_discount_amount": -80171541,
          "package_items": [
            {
              "id": "698c4d39370188013600010a",
              "booking_summary": {
                "id": "698c4d39370188013600010b",
                "duration": -35523586,
                "end_time": "1909-10-04T06:52:28.0Z",
                "offering": {
                  "id": "698c4d39370188013600010c",
                  "name": "30 Minute Massage",
                  "type": "appointment",
                  "product_code": "aliquip est"
                },
                "start_time": "1953-02-11T20:54:52.0Z",
                "status": "reserved",
                "created_at": "2025-02-04T12:01:01.0Z",
                "updated_at": "2025-02-04T12:01:01.0Z"
              },
              "choice_id": "698c4d39370188013600010d",
              "duration": -35815450,
              "guests": [
                {
                  "id": "698c4d39370188013600010e",
                  "checked_in_at": "1924-07-22T18:15:01.0Z",
                  "checked_out_at": "1933-07-10T14:16:09.0Z",
                  "customer_id": "b5e1e438-19de-d498-77db-3491f5dbd0ea",
                  "email": "aO9WhXFdSCbzjKJ@FMqOZShRxrJaBczDqosVUefrfit.mbg",
                  "first_name": "Jane",
                  "intake_form_submission_id": "698c4d39370188013600010f",
                  "intake_form_complete": false,
                  "is_lead_booker": true,
                  "last_name": "Doe",
                  "name": "Jane Doe"
                },
                {
                  "id": "698c4d393701880136000110",
                  "checked_in_at": "1923-12-09T20:31:22.0Z",
                  "checked_out_at": "1940-11-04T08:20:48.0Z",
                  "customer_id": "23efdab5-6415-0918-2671-da22cc9134b2",
                  "email": "6KoUKphGq7@EEKYeHEjAbKbOSaDKnSYvY.udag",
                  "first_name": "Jane",
                  "intake_form_complete": true,
                  "is_lead_booker": false,
                  "last_name": "Doe",
                  "name": "Jane Doe"
                }
              ],
              "item_configuration": {
                "ut_1": false
              },
              "offering_id": "698c4d393701880136000111",
              "offering_name": "ex quis esse ad sit",
              "offering_type": "appointment",
              "option_id": "698c4d393701880136000112",
              "price_change": -5356073,
              "reserved_until": "1943-08-31T09:45:21.0Z",
              "shared_basket_item_id": "698c4d393701880136000113",
              "status": "submitted",
              "time": 840
            },
            {
              "id": "698c4d393701880136000114",
              "booking_summary": {
                "id": "698c4d393701880136000115",
                "duration": 30525308,
                "end_time": "1900-05-01T12:06:48.0Z",
                "equipment": [
                  {
                    "id": "698c4d393701880136000116",
                    "name": "Hot Rocks"
                  },
                  {
                    "id": "698c4d393701880136000117",
                    "name": "Hot Rocks"
                  },
                  {
                    "id": "698c4d393701880136000118",
                    "name": "Hot Rocks"
                  }
                ],
                "equipment_ids": [
                  "698c4d393701880136000119"
                ],
                "offering": {
                  "id": "698c4d39370188013600011a",
                  "name": "30 Minute Massage",
                  "type": "appointment",
                  "product_code": "sit veniam labore"
                },
                "practitioners": [
                  {
                    "id": "5dcb47800000000000000000",
                    "name": "Jane Doe"
                  },
                  {
                    "id": "5dcb47800000000000000000",
                    "name": "Jane Doe"
                  },
                  {
                    "id": "5dcb47800000000000000000",
                    "name": "Jane Doe"
                  }
                ],
                "practitioner_ids": [
                  "698c4d39370188013600011b"
                ],
                "practitioner_was_requested": false,
                "room": {
                  "id": "5dcb47800000000000000000",
                  "capacity": 23554130,
                  "name": "aute veniam aliqua magna ad"
                },
                "room_id": "698c4d39370188013600011c",
                "room_was_requested": true,
                "session_id": "698c4d39370188013600011d",
                "start_time": "1940-05-12T03:32:45.0Z",
                "status": "reserved",
                "created_at": "2025-02-04T12:01:01.0Z",
                "updated_at": "2025-02-04T12:01:01.0Z"
              },
              "choice_id": "698c4d39370188013600011e",
              "duration": 9678640,
              "guests": [
                {
                  "id": "698c4d39370188013600011f",
                  "checked_in_at": "1916-10-19T08:27:33.0Z",
                  "checked_out_at": "1898-05-04T10:28:51.0Z",
                  "customer_id": "9532187a-b3e3-ce5b-29cf-0366c189fd44",
                  "email": "MxwluQ@GoZPcce.jc",
                  "first_name": "Jane",
                  "intake_form_submission_id": "698c4d393701880136000120",
                  "intake_form_complete": true,
                  "is_lead_booker": true,
                  "last_name": "Doe",
                  "name": "Jane Doe"
                },
                {
                  "id": "698c4d393701880136000121",
                  "checked_in_at": "1918-09-27T03:26:46.0Z",
                  "checked_out_at": "1928-05-22T07:59:05.0Z",
                  "customer_id": "0018002e-7084-0936-b25e-fb577c8105af",
                  "first_name": "Jane",
                  "intake_form_complete": true,
                  "is_lead_booker": true,
                  "last_name": "Doe",
                  "name": "Jane Doe"
                }
              ],
              "item_configuration": {
                "elit5": 16642864,
                "labore_8": 20016870.583971083
              },
              "offering_id": "698c4d393701880136000122",
              "offering_name": "commodo nisi in cupidatat pariatur",
              "offering_type": "appointment",
              "option_id": "698c4d393701880136000123",
              "price_change": 85489079,
              "reserved_until": "1933-10-11T13:24:50.0Z",
              "time": 840
            },
            {
              "id": "698c4d393701880136000124",
              "choice_id": "698c4d393701880136000125",
              "duration": 27786221,
              "item_configuration": {
                "dolore2": -61118056
              },
              "offering_id": "698c4d393701880136000126",
              "offering_name": "exercitation amet sunt ut laborum",
              "offering_type": "appointment",
              "option_id": "698c4d393701880136000127",
              "price_change": 35974140,
              "reserved_until": "1963-07-02T05:29:37.0Z",
              "time": 840
            }
          ],
          "price": -41756271,
          "sold_by": {
            "id": "aliquip",
            "name": "proident in veniam",
            "type": ""
          },
          "status": "waitlisted",
          "total_cost": 87858295,
          "type_id": "698c4d393701880136000128",
          "type_name": "ut",
          "type_product_code": "ullamco",
          "created_at": "2025-02-04T12:01:01.0Z",
          "updated_at": "2025-02-04T12:01:01.0Z"
        }
      ],
      "payment_totals": {
        "chargeable": 500,
        "missing": 1000,
        "paid": 750,
        "pending": 250,
        "provided": 1500,
        "unpaid": 1000
      },
      "payments": [
        {
          "id": "698c4d393701880136000129",
          "amount": 10000,
          "capture_method": "automatic",
          "currency": "gbp",
          "details_source": "pay_by_link",
          "paid_at": "2020-02-24T12:01:01.0Z",
          "payable_id": "698c4d39370188013600012a",
          "payable_type": "mollit",
          "processor": "stripe",
          "processor_data": {
            "deserunt21b": true,
            "reprehenderit_59": 92643933.63914451,
            "Ut_7": -10388739,
            "elit0": -78809377.9610202
          },
          "processor_id": "698c4d39370188013600012b",
          "processor_type": "ut",
          "refundable_amount": 3500,
          "refunds": [
            {
              "id": "698c4d39370188013600012c",
              "payment_id": "698c4d39370188013600012d",
              "amount": 29714838,
              "currency": "gbp",
              "notes": "qui ex velit mollit",
              "status": "pending",
              "processor_data": {
                "do4": "do Excepteur"
              },
              "created_at": "1939-02-09T09:57:08.0Z"
            },
            {
              "id": "698c4d39370188013600012e",
              "payment_id": "698c4d39370188013600012f",
              "amount": 99546339,
              "currency": "gbp",
              "notes": "amet in Excepteur consectetur est",
              "status": "complete",
              "processor_data": {
                "elit_4": -91746781,
                "ina25": "sunt aliquip eu non",
                "pariatur_d_": -15723298.2616712,
                "minima": 61951369.577451676
              },
              "created_at": "1915-02-12T20:04:55.0Z"
            },
            {
              "id": "698c4d393701880136000130",
              "payment_id": "698c4d393701880136000131",
              "amount": 66988678,
              "currency": "gbp",
              "status": "failed",
              "processor_data": {
                "aute_f1": "ex tempor amet voluptate",
                "sit_5b": "ex Ut dolore pariatur labore",
                "sitbe": 71275634.01744679
              },
              "created_at": "1934-08-14T21:57:56.0Z"
            },
            {
              "id": "698c4d393701880136000132",
              "payment_id": "698c4d393701880136000133",
              "amount": 28750975,
              "currency": "gbp",
              "status": "complete",
              "processor_data": {
                "Duis76": -90405113.3218203
              },
              "created_at": "1952-06-30T18:41:59.0Z"
            },
            {
              "id": "698c4d393701880136000134",
              "payment_id": "698c4d393701880136000135",
              "amount": -22234115,
              "currency": "gbp",
              "notes": "officia sed sint",
              "status": "complete",
              "processor_data": {
                "pariatur88e": -39314318
              },
              "created_at": "1930-06-18T13:01:42.0Z"
            }
          ],
          "status": "pending",
          "created_at": "2025-02-04T12:01:01.0Z"
        },
        {
          "id": "698c4d393701880136000136",
          "amount": 10000,
          "capture_method": "automatic",
          "chargebacks": [
            {
              "id": "698c4d393701880136000137",
              "amount": "voluptate",
              "currency": "gbp",
              "payment_id": "698c4d393701880136000138",
              "processor_data": {
                "consequat83": true,
                "ullamco8b": "Lorem eiusmod",
                "veniam853": 32368260.90077667,
                "anime3c": -37222220,
                "fugiataf": 55401936
              },
              "reason": "laborum ut Lorem proident minim",
              "status": "pending",
              "created_at": "2025-02-04T12:01:01.0Z"
            },
            {
              "id": "698c4d393701880136000139",
              "amount": "culpa",
              "currency": "gbp",
              "payment_id": "698c4d39370188013600013a",
              "processor_data": {
                "et__": false,
                "aliquip5a": "anim nisi eiusmod pariatur Lorem",
                "nostrud_6a": 78564347.24082783
              },
              "reason": "exercitation irure commodo dolor",
              "status": "processed",
              "created_at": "2025-02-04T12:01:01.0Z"
            },
            {
              "id": "698c4d39370188013600013b",
              "amount": "eiusmod aliqua",
              "currency": "gbp",
              "payment_id": "698c4d39370188013600013c",
              "processor_data": {
                "magna_f7": 4072621.5885233134
              },
              "reason": "ipsum ad",
              "status": "confirmed",
              "created_at": "2025-02-04T12:01:01.0Z"
            }
          ],
          "currency": "gbp",
          "details_source": "pay_by_link",
          "failure_reason": "Suspected fraud",
          "order_ref": "dolore",
          "paid_at": "2020-02-24T12:01:01.0Z",
          "payable_id": "698c4d39370188013600013d",
          "payable_type": "officia veniam ut",
          "processor": "stripe",
          "processor_data": {
            "aliquip_72": "laboris consectetur",
            "occaecat_4": "culpa quis sit irure enim",
            "est_4": false,
            "commodo_e": -35202995
          },
          "processor_id": "698c4d39370188013600013e",
          "processor_type": "do Lorem",
          "refundable_amount": 3500,
          "refunds": [
            {
              "id": "698c4d39370188013600013f",
              "payment_id": "698c4d393701880136000140",
              "amount": -67905432,
              "currency": "gbp",
              "notes": "est in irure",
              "status": "pending",
              "processor_data": {
                "aliqua_618": -49840720
              },
              "created_at": "1919-05-25T01:36:35.0Z"
            }
          ],
          "status": "payment_method_charged",
          "created_at": "2025-02-04T12:01:01.0Z"
        },
        {
          "id": "698c4d393701880136000141",
          "amount": 10000,
          "capture_method": "automatic",
          "chargebacks": [
            {
              "id": "698c4d393701880136000142",
              "amount": "ipsum ad exercitation tempor",
              "currency": "gbp",
              "payment_id": "698c4d393701880136000143",
              "processor_data": {
                "Lorem_3": false
              },
              "reason": "occaecat",
              "status": "pending",
              "created_at": "2025-02-04T12:01:01.0Z"
            },
            {
              "id": "698c4d393701880136000144",
              "amount": "in deserunt eiusmod eu nisi",
              "currency": "gbp",
              "payment_id": "698c4d393701880136000145",
              "processor_data": {
                "dolor66": true,
                "voluptate_e": false,
                "qui_13": "ipsum ea non proident mollit",
                "tempor14": true
              },
              "reason": "veniam in",
              "status": "reversed",
              "created_at": "2025-02-04T12:01:01.0Z"
            },
            {
              "id": "698c4d393701880136000146",
              "amount": "dolore sunt eiusmod officia",
              "currency": "gbp",
              "payment_id": "698c4d393701880136000147",
              "processor_data": {
                "in11b": -15390528
              },
              "reason": "nulla sed fugiat",
              "status": "pending",
              "created_at": "2025-02-04T12:01:01.0Z"
            }
          ],
          "currency": "gbp",
          "details_source": "pay_by_link",
          "failure_reason": "Suspected fraud",
          "order_ref": "elit cupidatat occaecat laboris nisi",
          "paid_at": "2020-02-24T12:01:01.0Z",
          "payable_id": "698c4d393701880136000148",
          "payable_type": "nulla qui voluptate commodo sint",
          "processor": "stripe",
          "processor_data": {
            "Lorem_8b": 23897901,
            "exercitation_1_": -13014819
          },
          "processor_id": "698c4d393701880136000149",
          "processor_type": "commodo fugiat",
          "refundable_amount": 3500,
          "refunds": [
            {
              "id": "698c4d39370188013600014a",
              "payment_id": "698c4d39370188013600014b",
              "amount": -74775395,
              "currency": "gbp",
              "notes": "dolor id",
              "status": "pending",
              "processor_data": {
                "reprehenderit73": 13873394.851089895
              },
              "created_at": "1891-01-05T01:32:38.0Z"
            },
            {
              "id": "698c4d39370188013600014c",
              "payment_id": "698c4d39370188013600014d",
              "amount": 41125597,
              "currency": "gbp",
              "notes": "dolore",
              "status": "pending",
              "processor_data": {
                "sede31": 78009742,
                "ut2c": -44946819.374668404
              },
              "created_at": "1947-01-15T16:48:03.0Z"
            }
          ],
          "status": "pending",
          "created_at": "2025-02-04T12:01:01.0Z"
        },
        {
          "id": "698c4d39370188013600014e",
          "amount": 10000,
          "capture_method": "automatic",
          "chargebacks": [],
          "currency": "gbp",
          "details_source": "pay_by_link",
          "failure_reason": "Suspected fraud",
          "order_ref": "sunt culpa",
          "paid_at": "2020-02-24T12:01:01.0Z",
          "payable_id": "698c4d39370188013600014f",
          "payable_type": "irure",
          "processor": "stripe",
          "processor_data": {
            "dolor_f9": "veniam voluptate sit",
            "reprehenderit_0": -2303540.0689840615,
            "dolor_de7": false
          },
          "processor_id": "698c4d393701880136000150",
          "processor_type": "et eiusmod eu dolor",
          "refundable_amount": 3500,
          "refunds": [
            {
              "id": "698c4d393701880136000151",
              "payment_id": "698c4d393701880136000152",
              "amount": -65446941,
              "currency": "gbp",
              "notes": "aliqua",
              "status": "pending",
              "processor_data": {
                "reprehenderit70": 75323032.82879794,
                "pariaturc0": "et nulla reprehenderit incididunt enim",
                "adf": "id deserunt sunt reprehenderit"
              },
              "created_at": "1954-09-26T17:41:43.0Z"
            },
            {
              "id": "698c4d393701880136000153",
              "payment_id": "698c4d393701880136000154",
              "amount": 53421769,
              "currency": "gbp",
              "notes": "ad laborum aliquip",
              "status": "pending",
              "processor_data": {
                "velit_250": -29463848.4600116,
                "fugiat_573": -87530057
              },
              "created_at": "1892-05-24T15:58:50.0Z"
            }
          ],
          "status": "ready_for_capture",
          "created_at": "2025-02-04T12:01:01.0Z"
        },
        {
          "id": "698c4d393701880136000155",
          "amount": 10000,
          "capture_method": "automatic",
          "chargebacks": [],
          "currency": "gbp",
          "details_source": "pay_by_link",
          "failure_reason": "Suspected fraud",
          "order_ref": "cillum",
          "paid_at": "2020-02-24T12:01:01.0Z",
          "payable_id": "698c4d393701880136000156",
          "payable_type": "ut qui pariatur tempor",
          "processor": "stripe",
          "processor_data": {
            "deserunt9": "consectetur voluptate",
            "culpa46": 93412168.89526582,
            "sint_0e0": -40368304,
            "magna_59": 47488733
          },
          "processor_id": "698c4d393701880136000157",
          "processor_type": "est culpa proident",
          "refundable_amount": 3500,
          "refunds": [],
          "status": "cancelled",
          "created_at": "2025-02-04T12:01:01.0Z"
        }
      ],
      "phone": "+447727123456",
      "post_to_room_config": {
        "associated_at": "1950-10-05T20:31:04.0Z",
        "processor_data": {
          "G#": 2081111,
          "RN": "9500"
        }
      },
      "promo_code_applied_at": "1905-02-20T23:34:31.0Z",
      "promo_code_applied_by": {
        "id": "698c4d393701880136000158",
        "avatar": {
          "id": "7ce6331a-8755-d08f-109b-d362802e126f",
          "file_name": "super-cool-photo.jpg",
          "mime_type": "image/jpeg",
          "original_url": "https://example.com/media/super-cool-photo.jpg",
          "size": 84256,
          "url": "https://example.com/media/super-cool-photo-thumbnail@2x.jpg"
        },
        "email": "tIxLCXj12d35@GnrwATlsLvrSSPUTNaEUpOeDQlbuQo.ha",
        "first_name": "Jane",
        "full_name": "Jane Smith",
        "last_name": "Smith"
      },
      "purchase_items": [],
      "sales_channel": {
        "id": "698c4d393701880136000159",
        "name": "Web",
        "organisation_id": "af707c5e-3e84-abf4-8626-24de2c897a72"
      },
      "service_charge": {
        "amount": 1000,
        "item_amounts": [
          {
            "amount": 1000,
            "item_id": "698c4d39370188013600015a",
            "percentage": 10
          },
          {
            "amount": 1000,
            "item_id": "698c4d39370188013600015b",
            "percentage": 10
          },
          {
            "amount": 1000,
            "item_id": "698c4d39370188013600015c",
            "percentage": 10
          },
          {
            "amount": 1000,
            "item_id": "698c4d39370188013600015d",
            "percentage": 10
          }
        ],
        "percentage": 10
      },
      "site_id": "31e260c1-d8aa-d166-f167-e946ffa298d7",
      "special_requests": "I would like the Blue Room please",
      "stage": "in_treatment",
      "status": "submitted",
      "submit_auth_amount": 24298322,
      "submit_payment_amount": -28172033,
      "submitted_at": "2020-02-24T12:01:01.0Z",
      "submitted_by": {
        "id": "e49fd1aa-f72c-3571-d57f-dc94e8ddc9cf",
        "email": "do ea anim tempor ut",
        "first_name": "Dan",
        "last_name": "Johnson",
        "full_name": "Dan Johnson",
        "avatar": {
          "id": "f2acf901-bfe5-de9e-247e-df22b7321654",
          "file_name": "super-cool-photo.jpg",
          "mime_type": "image/jpeg",
          "original_url": "https://example.com/media/super-cool-photo.jpg",
          "size": 84256,
          "url": "https://example.com/media/super-cool-photo-thumbnail@2x.jpg"
        }
      },
      "taxes": [
        {
          "amount": 1290,
          "inclusive": true,
          "name": "VAT",
          "percentage": 20
        },
        {
          "amount": 1290,
          "inclusive": false,
          "name": "VAT",
          "percentage": 20
        },
        {
          "amount": 1290,
          "inclusive": true,
          "name": "VAT",
          "percentage": 20
        }
      ],
      "tip_amount": 1050,
      "tips": [],
      "total_cost": -30332671,
      "total_paid_or_authed": 43808936,
      "total_tax": 2000,
      "totals": {
        "exclusive_tax": 0,
        "inclusive_tax": 250,
        "order_discount": 11000,
        "subtotal": 12000,
        "total": 10000
      },
      "visit": {
        "id": "698c4d39370188013600015e",
        "visit_ref": "dolore sed eiusmod dolor",
        "visit_type": {
          "id": "698c4d39370188013600015f",
          "name": "Stay"
        },
        "status": "ut nisi aliquip elit nulla",
        "arrival_date": "1933-09-30T11:48:31.0Z",
        "departure_date": "1915-02-02T05:05:04.0Z",
        "first_name": "cillum",
        "last_name": "aliqua"
      },
      "voucher_codes": [
        {
          "id": "77f11f33-4977-ea04-b86e-89332f7d1dce",
          "amount_type": "discount_to_zero",
          "calculated_amount": 1000,
          "code": "ABCDEFGHIJ123",
          "coupon_code_id": "698c4d393701880136000160",
          "description": "A 30 minute treatment of your choice.",
          "is_redeemed": true,
          "name": "30 min treatment",
          "voucher_type_id": "698c4d393701880136000161"
        },
        {
          "id": "aa34d392-1e16-4e77-962d-9ce530130a82",
          "amount_type": "discount_to_zero",
          "calculated_amount": 1000,
          "code": "ABCDEFGHIJ123",
          "coupon_code_id": "698c4d393701880136000162",
          "description": "A 30 minute treatment of your choice.",
          "is_redeemed": false,
          "name": "30 min treatment",
          "voucher_type_id": "698c4d393701880136000163"
        },
        {
          "id": "6bea4e8d-75bf-99ce-06a1-c30784b78cf6",
          "amount_type": "discount_to_zero",
          "calculated_amount": 1000,
          "code": "ABCDEFGHIJ123",
          "coupon_code_id": "698c4d393701880136000164",
          "description": "A 30 minute treatment of your choice.",
          "is_redeemed": true,
          "name": "30 min treatment",
          "voucher_type_id": "698c4d393701880136000165"
        },
        {
          "id": "4841d2e9-0c72-b0a5-a9bd-9499ff73e1a8",
          "amount_type": "discount_to_zero",
          "calculated_amount": 1000,
          "code": "ABCDEFGHIJ123",
          "coupon_code_id": "698c4d393701880136000166",
          "description": "A 30 minute treatment of your choice.",
          "is_redeemed": false,
          "name": "30 min treatment",
          "voucher_type_id": "698c4d393701880136000167"
        }
      ],
      "created_at": "2020-02-24T12:01:01.0Z",
      "updated_at": "2020-02-24T12:01:01.0Z"
    },
    "payment_method": {
      "id": "7e24079c-8a53-37e3-afb8-8b9c1fe0f715",
      "payment_method_id": "pm_3K6a0RGysTOePye00nkob5Pi",
      "name": "My debit card",
      "type": "card",
      "status": "revoked",
      "cardholder_name": "Jane Doe",
      "card_brand": "amex",
      "card_country": "gb",
      "card_funding": "credit",
      "card_expiry": "08/22",
      "last_4": "1234",
      "processor": "stripe",
      "created_at": "2025-01-01T01:01:01.0Z",
      "updated_at": "2025-01-01T01:01:01.0Z",
      "revoked_at": "2025-01-01T01:01:01.0Z"
    },
    "created_at": "1904-12-15T18:52:14.0Z"
  }
}
404
example response
{
  "message": "The requested resource could not be found"
}
422
example response
{
  "errors": {
    "et067": [
      "Ut in"
    ],
    "exercitation7": [
      "aute commodo mollit irure",
      "consequat ipsum sunt nulla culpa",
      "dolor Lorem pariatur sed",
      "tempor sint minim nostrud aute",
      "adipisicing consequat cillum"
    ]
  },
  "message": "The request didn't pass validation"
}
getCustomerMemberships

List a customer's memberships

Use this endpoint to retrieve a list of Memberships for the given Customer.

When retrieving memberships with this endpoint, the next_charge property will be populated if applicable.

Path parameters

Responses

  • 200

    The customer's Memberships were successfully retrieved

  • 404

    The resource couldn't be found

GET/customers/customers/{customerId}/memberships
200
example response
{
  "data": [
    {
      "id": "adaeaaa3-022f-74f5-388e-e4defd0aa554",
      "attention_reason": "payment_disputed",
      "basket_id": "698c4d383701880136000043",
      "customer": {
        "id": "34a9319e-a3bf-6f18-5d98-65c8d00f4f4e",
        "first_name": "Jane",
        "last_name": "Doe",
        "full_name": "Jane Doe",
        "phone": "+447900000000",
        "has_password": true,
        "dob": "1950-07-04",
        "brand_id": "111abf24-6aa2-659c-5cbc-000c2b7fb254",
        "site_id": "11d8f394-b142-f416-6daa-286c62c6fe72",
        "stripe_id": "cus_1234567890",
        "express_stripe_id": "cus_1234567890",
        "email": "janedoe@example.com",
        "labels": [
          {
            "id": "20a9f34f-0f96-9140-ea3e-11b37a5d2a5e",
            "value": "VIP",
            "colour": "ff6634"
          }
        ],
        "preferred_locale": "en",
        "locked_at": "1947-08-24T17:37:01.0Z",
        "created_at": "1900-08-06T14:10:41.0Z",
        "updated_at": "1965-07-02T21:50:29.0Z",
        "deleted_at": "1952-12-18T02:34:02.0Z",
        "last_active_at": "1892-03-19T21:13:38.0Z",
        "email_verified_at": "1932-12-26T23:30:34.0Z",
        "last_check_in": {
          "checked_in_at": "1937-07-26T02:29:04.0Z",
          "method": "Scanned"
        },
        "avatar_id": "000000-000000-000000-000000",
        "avatar": {
          "id": "2802dd63-c071-6c91-42c1-3a16fabef9b9",
          "file_name": "super-cool-photo.jpg",
          "mime_type": "image/jpeg",
          "original_url": "https://example.com/media/super-cool-photo.jpg",
          "size": 84256,
          "url": "https://example.com/media/super-cool-photo-thumbnail@2x.jpg"
        },
        "external_ref": "dolor in ut"
      },
      "end_date": "1900-06-14T20:10:21.0Z",
      "external_ref": "quis Excepteur",
      "members": [],
      "membership_number": "1234567890",
      "next_billing_date": "1958-02-21T01:51:45.0Z",
      "next_charge": {
        "id": "b411327a-72eb-afec-2c41-b72bdc812bac",
        "amount": 3995,
        "currency": "GBP",
        "status": "pending",
        "billing_period_from": "1931-10-02",
        "billing_period_to": "1948-03-22"
      },
      "payment_method": {
        "id": "nulla",
        "type": "card",
        "last_4": "voluptate sit esse aliqua",
        "status": "revoked",
        "card_brand": "amex"
      },
      "rate": {
        "id": "2921b4c5-e039-ddf9-dc66-3e967ffc12cd",
        "membership_type_id": "591603a8-5d8b-8421-5663-6963106c8a20",
        "name": "Standard rate",
        "currency": "GBP",
        "price": 5000,
        "joining_fee": 1000,
        "billing_frequency": "P1M",
        "processors": [
          "nostrud aliquip enim",
          "aliquip Excepteur",
          "proident irure commodo in",
          "sunt cillum consectetur"
        ],
        "default_duration": "P1Y",
        "private": true,
        "created_at": "1918-01-28T04:01:16.0Z",
        "updated_at": "1944-03-05T13:50:07.0Z"
      },
      "site_id": "e4b5f5a4-5fc6-e599-e1a7-d47a332b9229",
      "source": "unknown",
      "start_date": "1923-12-07T01:57:12.0Z",
      "status": "needs_attention",
      "status_updated_at": "1952-07-02T14:16:42.0Z",
      "type": {
        "id": "20fb541a-b7d5-7ada-87ff-7fa6db8fb88d",
        "name": "Gold tier",
        "description": "Enjoy exclusive benefits as part of being a member in our Gold tier",
        "terms": "et dolore sed in",
        "brand_id": "ef159e81-21ac-ec6c-fd2b-b173423e51c3",
        "offline_payments": false,
        "disable_confirmation_email": false,
        "private": false,
        "visibility": "public",
        "minimum_start_date": "1954-04-07T05:02:53.0Z",
        "min_members": 2,
        "max_members": 4,
        "rates": [
          {
            "id": "e5b11628-e5db-096b-bd20-347eee8dcb40",
            "membership_type_id": "680788c6-dfbc-15b1-1b35-4b8a7f044d3d",
            "name": "Standard rate",
            "currency": "GBP",
            "price": 5000,
            "joining_fee": 1000,
            "billing_frequency": "P1M",
            "processors": [
              "laborum aliquip"
            ],
            "default_duration": "P1Y",
            "private": true,
            "created_at": "1959-09-13T09:18:43.0Z",
            "updated_at": "1947-08-31T23:43:09.0Z"
          },
          {
            "id": "7821ad9a-f8ad-9a25-4214-cef7c46623be",
            "membership_type_id": "6f79ce74-5542-07f6-4130-261bece139e9",
            "name": "Standard rate",
            "currency": "GBP",
            "price": 5000,
            "joining_fee": 1000,
            "billing_frequency": "P1M",
            "processors": [
              "pariatur consequat",
              "irure velit",
              "adipisicing do ad ex"
            ],
            "default_duration": "P1Y",
            "private": true,
            "created_at": "1968-02-06T15:41:57.0Z",
            "updated_at": "1925-06-01T01:09:46.0Z"
          },
          {
            "id": "11293c05-ff9b-d268-2d9b-99cb76621c5a",
            "membership_type_id": "c247a1ea-4f0c-f121-47f5-e3cdb0b3aa81",
            "name": "Standard rate",
            "currency": "GBP",
            "price": 5000,
            "joining_fee": 1000,
            "billing_frequency": "P1M",
            "processors": [],
            "default_duration": "P1Y",
            "private": true,
            "created_at": "1904-05-10T10:58:27.0Z",
            "updated_at": "1918-04-12T08:59:26.0Z"
          },
          {
            "id": "81025b9f-6741-9d52-aa06-7c447d61e6b2",
            "membership_type_id": "6fe8a52e-2687-7642-0cdd-8e3cace47b7e",
            "name": "Standard rate",
            "currency": "GBP",
            "price": 5000,
            "joining_fee": 1000,
            "billing_frequency": "P1M",
            "processors": [
              "dolore",
              "eiusmod",
              "anim Duis",
              "mollit aute eiusmod",
              "tempor Excepteur irure"
            ],
            "default_duration": "P1Y",
            "private": true,
            "created_at": "1921-06-14T12:52:09.0Z",
            "updated_at": "1954-11-04T10:42:42.0Z"
          }
        ],
        "revenue_schedule": "FREQ=WEEKLY",
        "created_at": "1951-09-30T21:42:17.0Z",
        "updated_at": "1924-08-28T20:10:09.0Z",
        "deleted_at": "1892-10-04T08:59:13.0Z"
      },
      "payment_details_url": "minim",
      "created_at": "1905-05-24T01:59:42.0Z"
    }
  ],
  "meta": {
    "from": 1,
    "to": 2,
    "total": 2,
    "current_page": 1,
    "last_page": 2,
    "per_page": 15,
    "path": "http://example.com/api"
  },
  "links": {
    "first": "http://example.com?page=1",
    "next": "https://example.com?page=3",
    "prev": "https://example.com?page=1",
    "last": "https://example.com?page=4"
  }
}
404
example response
{
  "message": "The requested resource could not be found"
}
actionLockCustomer

Lock a Customer

Use this endpoint to lock a Customer.

When a customer is locked, their details cannot be modified until their profile is unlocked.

Any requests to updateCustomer or anonymiseCustomer will fail with a 400 response.

Path parameters

Responses

  • 200

    The Customer was successfully retrieved

  • 404

    The resource couldn't be found

POST/customers/customers/{customerId}/lock
200
example response
{
  "data": {
    "id": "339b8900-0d87-eb76-78a7-ffd400e99538",
    "first_name": "Jane",
    "last_name": "Doe",
    "full_name": "Jane Doe",
    "phone": "+447900000000",
    "has_password": true,
    "dob": "1935-07-21",
    "brand_id": "cb9bae6a-f122-5866-c53c-53aa1debc79e",
    "site_id": "8276ffe9-0484-f2e8-e4d3-7e426acb8d9d",
    "stripe_id": "cus_1234567890",
    "express_stripe_id": "cus_1234567890",
    "email": "janedoe@example.com",
    "labels": [
      {
        "id": "8582837e-d9bc-6eeb-0062-6f1dab3b8407",
        "value": "VIP",
        "colour": "ff6634"
      },
      {
        "id": "bfc5bb38-22d8-b9d9-030d-10d59aecbc34",
        "value": "VIP",
        "colour": "ff6634"
      },
      {
        "id": "f3d3c514-5dc2-efff-379e-11a88f23b762",
        "value": "VIP",
        "colour": "ff6634"
      },
      {
        "id": "2eb2f18a-4263-a185-83c6-2974fcc75edf",
        "value": "VIP",
        "colour": "ff6634"
      }
    ],
    "preferred_locale": "en",
    "locked_at": "1937-01-16T09:09:08.0Z",
    "created_at": "1966-05-23T01:30:03.0Z",
    "updated_at": "1907-08-17T16:21:27.0Z",
    "deleted_at": "1961-06-23T06:52:12.0Z",
    "last_active_at": "1919-10-31T02:36:58.0Z",
    "email_verified_at": "1909-12-07T21:27:13.0Z",
    "last_check_in": {
      "checked_in_at": "1928-06-30T11:35:01.0Z",
      "method": "Scanned"
    },
    "avatar_id": "000000-000000-000000-000000",
    "avatar": {
      "id": "92674259-3408-583a-7494-bcda0ed72507",
      "file_name": "super-cool-photo.jpg",
      "mime_type": "image/jpeg",
      "original_url": "https://example.com/media/super-cool-photo.jpg",
      "size": 84256,
      "url": "https://example.com/media/super-cool-photo-thumbnail@2x.jpg"
    },
    "external_ref": "et dolor veniam cupidatat"
  }
}
404
example response
{
  "message": "The requested resource could not be found"
}
actionUnlockCustomer

Unlock a Customer

Use this endpoint to unlock a Customer.

Path parameters

Responses

  • 200

    The Customer was successfully retrieved

  • 404

    The resource couldn't be found

POST/customers/customers/{customerId}/unlock
200
example response
{
  "data": {
    "id": "4be81dc8-9650-81cc-21c0-8a1f43e602db",
    "first_name": "Jane",
    "last_name": "Doe",
    "full_name": "Jane Doe",
    "phone": "+447900000000",
    "has_password": true,
    "dob": "1961-06-24",
    "brand_id": "b21a7da8-1578-1bca-5034-9274857e5cf1",
    "site_id": "62cd6b39-4eaa-a35d-276c-4d4b05ff4058",
    "stripe_id": "cus_1234567890",
    "express_stripe_id": "cus_1234567890",
    "email": "janedoe@example.com",
    "labels": [
      {
        "id": "d558f9bd-1f7f-8281-44a6-9400d10a5dd5",
        "value": "VIP",
        "colour": "ff6634"
      },
      {
        "id": "c35f9f80-e9b5-b86f-8ea7-10b287732ea1",
        "value": "VIP",
        "colour": "ff6634"
      }
    ],
    "preferred_locale": "en",
    "locked_at": "1931-12-29T12:41:34.0Z",
    "created_at": "1893-06-04T15:42:43.0Z",
    "updated_at": "1914-07-25T06:21:26.0Z",
    "deleted_at": "1957-07-09T01:03:24.0Z",
    "last_active_at": "1896-06-02T22:31:30.0Z",
    "email_verified_at": "1899-04-09T04:50:03.0Z",
    "last_check_in": {
      "checked_in_at": "1927-03-08T15:15:23.0Z",
      "method": "Scanned"
    },
    "avatar_id": "000000-000000-000000-000000",
    "avatar": {
      "id": "4506769d-161f-34fe-65be-72d1963c4616",
      "file_name": "super-cool-photo.jpg",
      "mime_type": "image/jpeg",
      "original_url": "https://example.com/media/super-cool-photo.jpg",
      "size": 84256,
      "url": "https://example.com/media/super-cool-photo-thumbnail@2x.jpg"
    },
    "external_ref": "velit esse"
  }
}
404
example response
{
  "message": "The requested resource could not be found"
}
actionTriggerCustomerPasswordReset

Trigger reset password

Use this endpoint to trigger a password reset for a Customer.

The customer will receive a URL via email which they can use to reset their password.

The URL will be valid for 1 hour.

Path parameters

Responses

  • 200

    The Customer was successfully retrieved

  • 404

    The resource couldn't be found

POST/customers/customers/{customerId}/reset-password
200
example response
{
  "data": {
    "id": "f43d8c29-1d28-33f6-0ec7-7eebe2eb2b27",
    "first_name": "Jane",
    "last_name": "Doe",
    "full_name": "Jane Doe",
    "phone": "+447900000000",
    "has_password": true,
    "dob": "1928-07-07",
    "brand_id": "6b103463-3e35-12b3-891c-7d68858a7367",
    "site_id": "a5c32103-07e8-f5dc-e021-ccd0232da0dc",
    "stripe_id": "cus_1234567890",
    "express_stripe_id": "cus_1234567890",
    "email": "janedoe@example.com",
    "labels": [
      {
        "id": "c5f96f6c-6694-245a-315c-008092663c6c",
        "value": "VIP",
        "colour": "ff6634"
      },
      {
        "id": "8c5a6c00-b4bc-2a3a-1cd5-ba5855193e5b",
        "value": "VIP",
        "colour": "ff6634"
      }
    ],
    "preferred_locale": "en",
    "locked_at": "1963-02-03T09:30:22.0Z",
    "created_at": "1895-02-04T15:48:35.0Z",
    "updated_at": "1956-01-09T01:47:31.0Z",
    "deleted_at": "1916-11-17T07:58:35.0Z",
    "last_active_at": "1935-09-29T04:50:47.0Z",
    "email_verified_at": "1899-06-16T01:35:42.0Z",
    "last_check_in": {
      "checked_in_at": "1895-05-31T05:24:11.0Z",
      "method": "Scanned"
    },
    "avatar_id": "000000-000000-000000-000000",
    "avatar": {
      "id": "193fe28d-d526-f326-445d-a1e283357a47",
      "file_name": "super-cool-photo.jpg",
      "mime_type": "image/jpeg",
      "original_url": "https://example.com/media/super-cool-photo.jpg",
      "size": 84256,
      "url": "https://example.com/media/super-cool-photo-thumbnail@2x.jpg"
    },
    "external_ref": "cupidatat"
  }
}
404
example response
{
  "message": "The requested resource could not be found"
}
actionResendCustomerVerification

Resend verification

Use this endpoint to resend the email verification email for a Customer.

The customer will receive a URL via email which they can use to verify their email address.

Path parameters

Responses

  • 200

    The Customer was successfully retrieved

  • 404

    The resource couldn't be found

POST/customers/customers/{customerId}/resend-verification
200
example response
{
  "data": {
    "id": "2a09d26f-4f5a-31d1-614a-1a0857b4c7f9",
    "first_name": "Jane",
    "last_name": "Doe",
    "full_name": "Jane Doe",
    "phone": "+447900000000",
    "has_password": true,
    "dob": "1907-03-30",
    "brand_id": "743e36fd-2b6f-d199-e67c-36a4e275fc4d",
    "site_id": "e7eb5fde-b08b-b823-f8c7-74dfef57ece8",
    "stripe_id": "cus_1234567890",
    "express_stripe_id": "cus_1234567890",
    "email": "janedoe@example.com",
    "labels": [],
    "preferred_locale": "en",
    "locked_at": "1967-01-08T13:14:43.0Z",
    "created_at": "1894-01-28T17:59:26.0Z",
    "updated_at": "1938-02-12T12:27:34.0Z",
    "deleted_at": "1969-08-16T07:06:43.0Z",
    "last_active_at": "1957-11-14T11:12:08.0Z",
    "email_verified_at": "1964-10-26T16:16:28.0Z",
    "last_check_in": {
      "checked_in_at": "1900-12-21T19:57:01.0Z",
      "method": "Scanned"
    },
    "avatar_id": "000000-000000-000000-000000",
    "avatar": {
      "id": "a3b3937a-dfe8-25cc-d8ab-63f29569a5e9",
      "file_name": "super-cool-photo.jpg",
      "mime_type": "image/jpeg",
      "original_url": "https://example.com/media/super-cool-photo.jpg",
      "size": 84256,
      "url": "https://example.com/media/super-cool-photo-thumbnail@2x.jpg"
    },
    "external_ref": "Excepteur sunt"
  }
}
404
example response
{
  "message": "The requested resource could not be found"
}