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.

""
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": "66e0452ad302040127000001",
        "order_ref": "anim ad reprehenderit nostrud",
        "status": "cancelled",
        "num_items": 2,
        "customer": {
          "id": "d3c5e2f9-56c2-9338-06e9-2e21b90cfe23",
          "email": "jane@example.com",
          "first_name": "Jane",
          "last_name": "Jones"
        },
        "sales_channel": {
          "id": "66e0452ad302040127000002",
          "name": "Website"
        },
        "totals": {
          "subtotal": 15000,
          "order_discount": 0
        },
        "submitted_at": "1904-10-01T10:42:22.0Z",
        "site": {
          "id": "34efbe91-4d6a-4e51-4446-c7f52f5f319d",
          "name": "Palm Tree Spa"
        }
      },
      {
        "id": "66e0452ad302040127000003",
        "order_ref": "incididunt",
        "status": "submitted",
        "num_items": 2,
        "customer": {
          "id": "c23b7e70-b01b-9da2-f7aa-705b843a22b1",
          "email": "jane@example.com",
          "first_name": "Jane",
          "last_name": "Jones"
        },
        "sales_channel": {
          "id": "66e0452ad302040127000004",
          "name": "Website"
        },
        "totals": {
          "order_discount": 0,
          "total": 15000
        },
        "submitted_at": "1901-01-15T20:16:21.0Z",
        "site": {
          "id": "32ee3b27-4670-e72c-e697-e7ae9b8739e7",
          "name": "Palm Tree Spa"
        }
      },
      {
        "id": "66e0452ad302040127000005",
        "order_ref": "do laboris",
        "status": "submitted",
        "num_items": 2,
        "customer": {
          "id": "c45bfae0-e3a5-2b59-b125-4e9e54360a9e",
          "email": "jane@example.com",
          "first_name": "Jane",
          "last_name": "Jones"
        },
        "sales_channel": {
          "id": "66e0452ad302040127000006"
        },
        "totals": {
          "subtotal": 15000,
          "order_discount": 0,
          "total": 15000
        },
        "submitted_at": "1959-03-03T15:01:40.0Z",
        "site": {
          "id": "4bfb651c-de8d-c91c-d7d2-40fa2c277d3b",
          "name": "Palm Tree Spa"
        }
      },
      {
        "id": "66e0452ad302040127000007",
        "order_ref": "veniam ut quis",
        "status": "submitted",
        "customer": {
          "id": "21b93ddc-1a24-3905-afdc-ed6a076fb6bf",
          "email": "jane@example.com",
          "first_name": "Jane",
          "last_name": "Jones"
        },
        "sales_channel": {
          "id": "66e0452ad302040127000008",
          "name": "Website"
        },
        "totals": {
          "subtotal": 15000,
          "order_discount": 0,
          "total": 15000
        },
        "submitted_at": "1920-07-02T20:08:27.0Z",
        "site": {
          "id": "ea3377b3-3c90-3de1-b4c3-e237d9fdb8d2",
          "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": "bc4409ab-d97a-ec98-5a90-7db3a61381de",
      "first_name": "Jane",
      "last_name": "Doe",
      "full_name": "Jane Doe",
      "phone": "+447900000000",
      "has_password": true,
      "dob": "1925-04-13",
      "brand_id": "5fec36e8-1004-1fd0-16a0-f4a6448cc5fa",
      "site_id": "f417840b-998a-5643-6cea-6ef6d8eda660",
      "stripe_id": "cus_1234567890",
      "express_stripe_id": "cus_1234567890",
      "email": "janedoe@example.com",
      "labels": [
        {
          "id": "a747e60c-1e80-501b-1ada-09de4b72cb2e",
          "value": "VIP",
          "colour": "ff6634"
        },
        {
          "id": "79f020ef-431b-8206-9e63-a7abc3f02b06",
          "value": "VIP",
          "colour": "ff6634"
        },
        {
          "id": "915093b6-9ead-086b-7f77-52c17c44f221",
          "value": "VIP",
          "colour": "ff6634"
        },
        {
          "id": "8f2f30b9-0f5d-23da-7d63-15b0a5395e02",
          "value": "VIP",
          "colour": "ff6634"
        }
      ],
      "preferred_locale": "en",
      "locked_at": "1910-12-24T07:07:42.0Z",
      "created_at": "1952-03-06T12:09:50.0Z",
      "updated_at": "1959-10-02T13:20:28.0Z",
      "deleted_at": "1903-01-22T18:10:23.0Z",
      "last_active_at": "1906-07-14T20:37:48.0Z",
      "email_verified_at": "1965-09-28T22:56:10.0Z",
      "last_check_in": {
        "checked_in_at": "1894-01-05T04:25:41.0Z",
        "method": "Scanned"
      },
      "avatar_id": "000000-000000-000000-000000",
      "avatar": {
        "id": "0ea5e054-0aa4-8406-8c2b-5be11a0e5bf0",
        "file_name": "super-cool-photo.jpg",
        "mime_type": "image/jpeg",
        "size": 84256,
        "url": "https://example.com/media/super-cool-photo.jpg"
      },
      "external_ref": "ex consectetur"
    },
    {
      "id": "10a4b907-a79b-3b45-44c7-8caa2f4c038d",
      "first_name": "Jane",
      "last_name": "Doe",
      "full_name": "Jane Doe",
      "phone": "+447900000000",
      "has_password": true,
      "dob": "1897-10-10",
      "brand_id": "fd1cbec8-e943-0db4-31fa-dd3d22cad295",
      "site_id": "627693ec-0d3e-7e93-d1eb-ad78771fdf7a",
      "stripe_id": "cus_1234567890",
      "express_stripe_id": "cus_1234567890",
      "email": "janedoe@example.com",
      "labels": [
        {
          "id": "98abca05-218e-0d60-ceae-39d501c83db0",
          "value": "VIP",
          "colour": "ff6634"
        },
        {
          "id": "245c7df1-155b-c8fa-3b6d-4f701c15c8d9",
          "value": "VIP",
          "colour": "ff6634"
        },
        {
          "id": "994e2156-a1cb-6292-aced-140198db28a1",
          "value": "VIP",
          "colour": "ff6634"
        }
      ],
      "preferred_locale": "en",
      "locked_at": "1939-09-17T02:03:42.0Z",
      "created_at": "1900-12-08T03:27:13.0Z",
      "updated_at": "1928-12-02T23:25:03.0Z",
      "deleted_at": "1901-04-12T13:05:22.0Z",
      "last_active_at": "1894-01-31T14:49:24.0Z",
      "email_verified_at": "1945-07-02T08:48:57.0Z",
      "last_check_in": {
        "checked_in_at": "1911-01-23T12:08:53.0Z",
        "method": "Scanned"
      },
      "avatar_id": "000000-000000-000000-000000",
      "avatar": {
        "id": "f9ecbb52-bdbf-190c-4bfe-0b460ae92887",
        "file_name": "super-cool-photo.jpg",
        "mime_type": "image/jpeg",
        "size": 84256,
        "url": "https://example.com/media/super-cool-photo.jpg"
      },
      "external_ref": "in irure"
    }
  ],
  "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": "443facf4-0fa4-9d53-e856-2eeeb1a6dfaa",
    "first_name": "Jane",
    "last_name": "Doe",
    "full_name": "Jane Doe",
    "phone": "+447900000000",
    "has_password": true,
    "dob": "1945-06-03",
    "brand_id": "cb4ab238-a648-e5a4-9f04-5773e3ba0f33",
    "site_id": "42b98010-6d58-d55d-b288-84b031d36afd",
    "stripe_id": "cus_1234567890",
    "express_stripe_id": "cus_1234567890",
    "email": "janedoe@example.com",
    "labels": [
      {
        "id": "61565448-8141-a756-78f7-a32d15c483f6",
        "value": "VIP",
        "colour": "ff6634"
      },
      {
        "id": "2f6297e8-818c-dbcd-f00a-d55f44e933ce",
        "value": "VIP",
        "colour": "ff6634"
      }
    ],
    "preferred_locale": "en",
    "locked_at": "1963-09-06T23:23:29.0Z",
    "created_at": "1967-03-02T01:07:29.0Z",
    "updated_at": "1948-05-25T20:19:38.0Z",
    "deleted_at": "1903-12-31T11:55:18.0Z",
    "last_active_at": "1891-10-13T03:53:42.0Z",
    "email_verified_at": "1906-11-27T15:21:10.0Z",
    "last_check_in": {
      "checked_in_at": "1899-03-30T15:28:07.0Z",
      "method": "Scanned"
    },
    "avatar_id": "000000-000000-000000-000000",
    "avatar": {
      "id": "06f4bff6-ef93-23f4-d043-be474204be5d",
      "file_name": "super-cool-photo.jpg",
      "mime_type": "image/jpeg",
      "size": 84256,
      "url": "https://example.com/media/super-cool-photo.jpg"
    },
    "external_ref": "elit in anim sunt do"
  }
}
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": "2bf537ed-003d-d588-a771-3b0012568524",
    "first_name": "Jane",
    "last_name": "Doe",
    "full_name": "Jane Doe",
    "phone": "+447900000000",
    "has_password": true,
    "dob": "1944-03-02",
    "brand_id": "a5031f26-5a2d-bc3d-daed-fb6144e340d4",
    "site_id": "f584c688-54f7-f598-3aa3-7050aa5e8fce",
    "stripe_id": "cus_1234567890",
    "express_stripe_id": "cus_1234567890",
    "email": "janedoe@example.com",
    "labels": [
      {
        "id": "dc716e31-afac-579d-1016-9aefac22030f",
        "value": "VIP",
        "colour": "ff6634"
      },
      {
        "id": "e924cf44-7fec-1031-f965-61d47ae43be1",
        "value": "VIP",
        "colour": "ff6634"
      },
      {
        "id": "6ab43650-d2cc-af72-ead9-ad2dbdd05390",
        "value": "VIP",
        "colour": "ff6634"
      },
      {
        "id": "113e1ba8-975c-8a41-d5f3-7317adc74df5",
        "value": "VIP",
        "colour": "ff6634"
      },
      {
        "id": "c394be59-ab09-60e1-d16d-4b487c22f8e9",
        "value": "VIP",
        "colour": "ff6634"
      }
    ],
    "preferred_locale": "en",
    "locked_at": "1903-07-16T02:24:08.0Z",
    "created_at": "1956-10-09T13:20:09.0Z",
    "updated_at": "1953-09-18T06:24:36.0Z",
    "deleted_at": "1967-10-27T23:06:53.0Z",
    "last_active_at": "1893-08-12T03:40:19.0Z",
    "email_verified_at": "1934-11-18T14:07:34.0Z",
    "last_check_in": {
      "checked_in_at": "1925-02-05T02:16:34.0Z",
      "method": "Scanned"
    },
    "avatar_id": "000000-000000-000000-000000",
    "avatar": {
      "id": "904b1cd3-78ce-c425-765f-7fa6ae278f50",
      "file_name": "super-cool-photo.jpg",
      "mime_type": "image/jpeg",
      "size": 84256,
      "url": "https://example.com/media/super-cool-photo.jpg"
    },
    "external_ref": "ad id"
  }
}
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": "50cb8bf4-a478-86f6-0ea5-542a7ba3a639",
    "first_name": "Jane",
    "last_name": "Doe",
    "full_name": "Jane Doe",
    "phone": "+447900000000",
    "has_password": true,
    "dob": "1946-01-12",
    "brand_id": "911bd68d-fe69-8de5-2caa-4335b09b77c8",
    "site_id": "b5d0892b-7b8a-3c05-5522-e5c3689a2204",
    "stripe_id": "cus_1234567890",
    "express_stripe_id": "cus_1234567890",
    "email": "janedoe@example.com",
    "labels": [
      {
        "id": "3f414303-3061-f5f4-39d3-b0c617599453",
        "value": "VIP",
        "colour": "ff6634"
      },
      {
        "id": "02148bef-562c-6de5-7c09-0ed280533a9e",
        "value": "VIP",
        "colour": "ff6634"
      },
      {
        "id": "f030f79a-61cd-abc5-996e-31e7b8f94c42",
        "value": "VIP",
        "colour": "ff6634"
      }
    ],
    "preferred_locale": "en",
    "locked_at": "1899-12-23T16:31:27.0Z",
    "created_at": "1923-08-15T02:41:33.0Z",
    "updated_at": "1965-06-14T05:45:35.0Z",
    "deleted_at": "1921-09-19T22:02:07.0Z",
    "last_active_at": "1935-10-01T05:04:40.0Z",
    "email_verified_at": "1899-09-10T18:58:09.0Z",
    "last_check_in": {
      "checked_in_at": "1951-11-22T11:02:11.0Z",
      "method": "Scanned"
    },
    "avatar_id": "000000-000000-000000-000000",
    "avatar": {
      "id": "b9c989e8-fb6f-c34c-b2f7-1f75b89433d2",
      "file_name": "super-cool-photo.jpg",
      "mime_type": "image/jpeg",
      "size": 84256,
      "url": "https://example.com/media/super-cool-photo.jpg"
    },
    "external_ref": "incididunt in veniam est"
  }
}
404
example response
{
  "message": "The requested resource could not be found"
}
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": "6b36ddce-713b-aab4-046c-1bec8a3caf00",
      "site_id": "110fbe2a-e216-e40a-0698-71e54d730058",
      "membership_number": "1234567890",
      "customer": {
        "id": "4cb4b74e-e50d-b165-3805-552b90dd0450",
        "first_name": "Jane",
        "last_name": "Doe",
        "full_name": "Jane Doe",
        "phone": "+447900000000",
        "has_password": true,
        "dob": "1927-11-16",
        "brand_id": "91478443-345d-49a5-4ae5-65be5e0e2ea9",
        "site_id": "09b256e3-7aaa-b446-bb05-1e89f8695345",
        "stripe_id": "cus_1234567890",
        "express_stripe_id": "cus_1234567890",
        "email": "janedoe@example.com",
        "labels": [
          {
            "id": "3f3bc373-be14-818c-06bd-fd8e21c66644",
            "value": "VIP",
            "colour": "ff6634"
          },
          {
            "id": "0c640ca2-1898-27b8-425e-a5486f393815",
            "value": "VIP",
            "colour": "ff6634"
          },
          {
            "id": "572575ae-fe3e-bdb4-55df-74ca48ffac85",
            "value": "VIP",
            "colour": "ff6634"
          },
          {
            "id": "05342fd3-cff1-d8c7-dc17-1ed365fb0075",
            "value": "VIP",
            "colour": "ff6634"
          },
          {
            "id": "d93cc965-dc76-3bc0-b297-1abe666f24dc",
            "value": "VIP",
            "colour": "ff6634"
          }
        ],
        "preferred_locale": "en",
        "locked_at": "1898-04-19T23:49:45.0Z",
        "created_at": "1959-04-19T23:25:57.0Z",
        "updated_at": "1897-04-10T09:53:52.0Z",
        "deleted_at": "1891-09-22T09:04:43.0Z",
        "last_active_at": "1919-05-04T04:22:17.0Z",
        "email_verified_at": "1921-04-20T04:29:09.0Z",
        "last_check_in": {
          "checked_in_at": "1948-04-10T10:16:26.0Z",
          "method": "Scanned"
        },
        "avatar_id": "000000-000000-000000-000000",
        "avatar": {
          "id": "ae6c7198-8a10-a828-6982-566c2cf8c4c7",
          "file_name": "super-cool-photo.jpg",
          "mime_type": "image/jpeg",
          "size": 84256,
          "url": "https://example.com/media/super-cool-photo.jpg"
        },
        "external_ref": "incididunt dolor id dolore est"
      },
      "members": [
        {
          "customer_id": "d01f5113-2763-085e-896f-1de1b76832bf",
          "membership_number": "1234567890"
        }
      ],
      "type": {
        "id": "83d958ea-940b-d694-adf2-efba0e2c2a50",
        "name": "Gold tier",
        "description": "Enjoy exclusive benefits as part of being a member in our Gold tier",
        "terms": "sit in",
        "brand_id": "6cf92a0a-9013-5ae2-d04c-4599e2d8ffa3",
        "offline_payments": false,
        "disable_confirmation_email": true,
        "private": true,
        "minimum_start_date": "1937-04-24T13:24:47.0Z",
        "min_members": 2,
        "max_members": 4,
        "rates": [
          {
            "membership_type_id": "4db5aab4-642c-1e32-2e7a-8989988287d3",
            "name": "Standard rate",
            "price": 5000,
            "billing_frequency": "P1M",
            "processors": [
              "esse consequat commodo",
              "ut nisi in tempor",
              "sed Ut",
              "culpa",
              "qui adipisicing in id Duis"
            ],
            "created_at": "1912-09-23T10:22:01.0Z",
            "updated_at": "1903-01-18T11:33:21.0Z"
          },
          {
            "id": "d3227f05-1ab8-a2e1-b038-205363039a1e",
            "membership_type_id": "a271e64d-6d4a-3004-632e-8c53e42fc46a",
            "name": "Standard rate",
            "currency": "GBP",
            "price": 5000,
            "joining_fee": 1000,
            "tax": 1250,
            "billing_frequency": "P1M",
            "processors": [
              "amet in est cupidatat",
              "esse voluptate quis"
            ],
            "default_duration": "P1Y",
            "private": true,
            "created_at": "1913-11-25T16:41:55.0Z"
          },
          {
            "id": "4d850f26-306e-cfd2-16d9-810c05c53761",
            "name": "Standard rate",
            "currency": "GBP",
            "price": 5000,
            "joining_fee": 1000,
            "tax": 1250,
            "private": true,
            "updated_at": "1954-09-12T09:11:04.0Z"
          }
        ],
        "revenue_schedule": "FREQ=WEEKLY",
        "created_at": "1969-09-11T06:04:21.0Z",
        "updated_at": "1939-03-08T16:01:25.0Z",
        "deleted_at": "1952-02-22T11:30:10.0Z"
      },
      "rate": {
        "id": "e025c598-1465-19c7-115b-4ddc3273bddc",
        "membership_type_id": "89ad0384-3cd2-6e14-6b35-4609835985e8",
        "name": "Standard rate",
        "currency": "GBP",
        "price": 5000,
        "joining_fee": 1000,
        "tax": 1250,
        "billing_frequency": "P1M",
        "processors": [
          "Duis",
          "dolor",
          "ut"
        ],
        "private": true,
        "created_at": "1934-05-07T04:37:49.0Z",
        "updated_at": "1897-03-31T12:32:15.0Z"
      },
      "status": "reserved",
      "source": "self_signup",
      "payment_method": {
        "id": "Excepteur anim sit laborum",
        "type": "card"
      },
      "start_date": "1952-02-16T23:18:55.0Z",
      "basket_id": "66e0452ad302040127000009",
      "external_ref": "exercitation tempor ex consequat ad"
    },
    {
      "id": "2e235bbd-1c91-ded1-18c0-2d04888e5637",
      "site_id": "9ffc3baa-bc5b-6b5a-5fed-6aa2a3bbbd9a",
      "membership_number": "1234567890",
      "customer": {
        "id": "9ac1bdad-5787-6fd9-b36c-029195f213fe",
        "first_name": "Jane",
        "last_name": "Doe",
        "full_name": "Jane Doe",
        "phone": "+447900000000",
        "has_password": true,
        "dob": "1894-04-11",
        "brand_id": "941f4a4d-946b-0e1e-59b3-9d5a7f17891a",
        "site_id": "f3861ee9-daaa-5e40-1ebc-b1728fae9add",
        "stripe_id": "cus_1234567890",
        "express_stripe_id": "cus_1234567890",
        "email": "janedoe@example.com",
        "labels": [
          {
            "id": "477b7b24-0cfb-65ed-4e97-3a4618123177",
            "value": "VIP",
            "colour": "ff6634"
          },
          {
            "id": "83ccfd25-c9a3-ee20-64a9-bb634337b834",
            "value": "VIP",
            "colour": "ff6634"
          },
          {
            "id": "e82c63c0-a86d-e8e5-1cfe-32df8d77587b",
            "value": "VIP",
            "colour": "ff6634"
          },
          {
            "id": "3c309b32-3360-6e9f-9c06-391111c6f099",
            "value": "VIP",
            "colour": "ff6634"
          }
        ],
        "preferred_locale": "en",
        "locked_at": "1893-06-18T05:36:58.0Z",
        "created_at": "1897-10-04T17:34:09.0Z",
        "updated_at": "1916-05-05T03:39:01.0Z",
        "deleted_at": "1966-11-15T13:28:54.0Z",
        "last_active_at": "1958-12-15T11:33:41.0Z",
        "email_verified_at": "1918-03-01T08:09:53.0Z",
        "last_check_in": {
          "checked_in_at": "1965-04-19T07:04:12.0Z",
          "method": "Scanned"
        },
        "avatar_id": "000000-000000-000000-000000",
        "avatar": {
          "id": "10daf466-040d-53f4-d869-c3de18ff8a2a",
          "file_name": "super-cool-photo.jpg",
          "mime_type": "image/jpeg",
          "size": 84256,
          "url": "https://example.com/media/super-cool-photo.jpg"
        },
        "external_ref": "Duis incididunt"
      },
      "members": [
        {
          "membership_number": "1234567890",
          "is_lead": true
        },
        {
          "customer_id": "aca5a500-c82d-ad7b-463b-d2103e62f5b1",
          "membership_number": "1234567890",
          "is_lead": true
        }
      ],
      "type": {
        "id": "2262aeb8-7337-dbe2-a1c0-b39fa1c76917",
        "name": "Gold tier",
        "description": "Enjoy exclusive benefits as part of being a member in our Gold tier",
        "terms": "Excepteur aliqua",
        "brand_id": "95ac3665-bd8f-fb06-f2be-4509a69765d3",
        "offline_payments": true,
        "disable_confirmation_email": true,
        "private": false,
        "minimum_start_date": "1945-03-01T23:38:06.0Z",
        "min_members": 2,
        "max_members": 4,
        "rates": [
          {
            "currency": "GBP",
            "joining_fee": 1000,
            "tax": 1250,
            "billing_frequency": "P1M",
            "processors": [
              "ipsum",
              "labore",
              "adipisicing Lorem dolore labore"
            ],
            "created_at": "1950-01-20T07:12:19.0Z",
            "updated_at": "1946-07-08T17:51:28.0Z"
          },
          {
            "id": "5fc43445-f37d-e6e6-20e5-0f3741664f49",
            "membership_type_id": "d140e359-98ad-57f0-cead-f900c5d97168",
            "name": "Standard rate",
            "currency": "GBP",
            "price": 5000,
            "joining_fee": 1000,
            "tax": 1250,
            "billing_frequency": "P1M",
            "default_duration": "P1Y",
            "private": true,
            "created_at": "1933-04-20T16:41:18.0Z",
            "updated_at": "1952-05-17T05:28:44.0Z"
          }
        ],
        "revenue_schedule": "FREQ=WEEKLY",
        "created_at": "1923-01-09T20:21:04.0Z",
        "updated_at": "1943-11-05T09:21:37.0Z",
        "deleted_at": "1932-02-21T03:02:04.0Z"
      },
      "rate": {
        "id": "4c236d54-b874-b92d-6564-ba5a1d607f47",
        "membership_type_id": "76384c6d-3b37-920e-227d-a5c693418435",
        "billing_frequency": "P1M",
        "default_duration": "P1Y"
      },
      "status": "reserved",
      "source": "self_signup",
      "payment_method": {
        "type": "card",
        "last_4": "magna velit labore",
        "status": "revoked"
      },
      "start_date": "1953-06-15T17:15:47.0Z",
      "end_date": "1900-03-04T14:42:16.0Z",
      "created_at": "1922-09-13T05:19:53.0Z",
      "basket_id": "66e0452ad30204012700000a",
      "external_ref": "in pariatur",
      "next_billing_date": "1907-09-14T07:41:08.0Z",
      "next_charge": {
        "id": "ec6b2fd1-45be-5603-4931-ab3d5c5e617a",
        "amount": 3995,
        "currency": "GBP",
        "status": "succeeded",
        "billing_period_from": "1959-09-17",
        "billing_period_to": "1957-04-27"
      },
      "attention_reason": "payment_failed"
    },
    {
      "id": "429a9935-1412-7c0a-528a-6983a0585fa4",
      "site_id": "15e04132-fdba-0e3b-9915-33da8803650c",
      "membership_number": "1234567890",
      "customer": {
        "id": "32efe042-b467-a33a-a9a0-dba4bba9015b",
        "first_name": "Jane",
        "last_name": "Doe",
        "full_name": "Jane Doe",
        "phone": "+447900000000",
        "has_password": true,
        "dob": "1963-07-03",
        "brand_id": "03a06220-a2e8-c5d4-82e5-0260fe4c8d66",
        "site_id": "35f88dde-06f2-c505-655f-eb10156f3d6f",
        "stripe_id": "cus_1234567890",
        "express_stripe_id": "cus_1234567890",
        "email": "janedoe@example.com",
        "labels": [
          {
            "id": "3e1180a1-d0f0-1a84-c432-5329bc5873fa",
            "value": "VIP",
            "colour": "ff6634"
          },
          {
            "id": "a8d5d93c-963c-5300-a6d2-f2274b9fe134",
            "value": "VIP",
            "colour": "ff6634"
          }
        ],
        "preferred_locale": "en",
        "locked_at": "1953-02-08T18:02:59.0Z",
        "created_at": "1963-10-18T09:11:09.0Z",
        "updated_at": "1895-12-20T02:05:49.0Z",
        "deleted_at": "1939-01-05T13:49:45.0Z",
        "last_active_at": "1898-04-04T21:13:16.0Z",
        "email_verified_at": "1918-05-27T02:29:07.0Z",
        "last_check_in": {
          "checked_in_at": "1911-07-17T01:47:54.0Z",
          "method": "Scanned"
        },
        "avatar_id": "000000-000000-000000-000000",
        "avatar": {
          "id": "9e0b777a-117e-5456-815e-86434b2a0eea",
          "file_name": "super-cool-photo.jpg",
          "mime_type": "image/jpeg",
          "size": 84256,
          "url": "https://example.com/media/super-cool-photo.jpg"
        },
        "external_ref": "elit eiusmod aute Ut"
      },
      "members": [
        {
          "customer_id": "146a94e2-a058-59ae-0471-f3e3d86e99e6",
          "membership_number": "1234567890",
          "is_lead": true
        },
        {
          "customer_id": "724ec703-eaa4-b553-4c40-cad34a5e7ffb"
        },
        {
          "customer_id": "307bbd8e-661f-5c51-7e6f-9156f6c690c4",
          "membership_number": "1234567890"
        }
      ],
      "type": {
        "id": "32865a22-79f4-0803-3a3c-39da28b15bf9",
        "name": "Gold tier",
        "description": "Enjoy exclusive benefits as part of being a member in our Gold tier",
        "terms": "culpa nostrud ut veniam",
        "brand_id": "08da49a1-625b-cd18-4335-dce8f09728ee",
        "offline_payments": true,
        "disable_confirmation_email": true,
        "private": true,
        "minimum_start_date": "1912-04-24T03:41:01.0Z",
        "min_members": 2,
        "max_members": 4,
        "rates": [
          {
            "id": "08c61e27-38ee-9475-a941-1e2c65438718",
            "membership_type_id": "9571dafc-186f-c2a6-e3dc-87655be0ae2d",
            "name": "Standard rate",
            "currency": "GBP",
            "joining_fee": 1000,
            "tax": 1250,
            "billing_frequency": "P1M",
            "private": true,
            "created_at": "1911-08-20T13:29:29.0Z"
          },
          {
            "name": "Standard rate",
            "price": 5000,
            "joining_fee": 1000,
            "tax": 1250,
            "default_duration": "P1Y",
            "private": true,
            "created_at": "1920-05-25T18:26:26.0Z"
          }
        ],
        "revenue_schedule": "FREQ=WEEKLY",
        "created_at": "1968-04-07T07:13:58.0Z",
        "updated_at": "1937-04-01T15:45:23.0Z",
        "deleted_at": "1954-08-22T04:13:36.0Z"
      },
      "rate": {
        "id": "14875e1a-86c8-0966-8116-958436ec2424",
        "membership_type_id": "8ab59f58-a802-0ceb-b168-be5875a5ad73",
        "currency": "GBP",
        "price": 5000,
        "created_at": "1942-01-07T01:06:06.0Z"
      },
      "status": "expired",
      "source": "import",
      "payment_method": {
        "id": "enim est dolor ipsum fugiat",
        "status": "revoked"
      },
      "start_date": "1943-01-12T06:10:53.0Z",
      "end_date": "1934-06-22T15:25:14.0Z",
      "created_at": "1939-05-10T21:30:07.0Z",
      "basket_id": "66e0452ad30204012700000b",
      "external_ref": "incididunt adipisicing magna ut",
      "next_billing_date": "1896-09-13T12:23:48.0Z",
      "attention_reason": "payment_failed"
    },
    {
      "id": "cc7fc6e8-2998-fed2-dc4b-f4214b7683f7",
      "site_id": "5d65696b-30de-bc1d-79a1-98eb1725be43",
      "membership_number": "1234567890",
      "customer": {
        "id": "201f5bf1-6234-d303-93e1-2689f90986f8",
        "first_name": "Jane",
        "last_name": "Doe",
        "full_name": "Jane Doe",
        "phone": "+447900000000",
        "has_password": true,
        "dob": "1958-04-06",
        "brand_id": "97faae37-f0e4-21eb-fdee-73627da12f5d",
        "site_id": "639bb3e6-6f95-a230-3634-fe1aa97e8851",
        "stripe_id": "cus_1234567890",
        "express_stripe_id": "cus_1234567890",
        "email": "janedoe@example.com",
        "labels": [
          {
            "id": "b5c28704-a783-9f0b-b608-c9a9c071a105",
            "value": "VIP",
            "colour": "ff6634"
          },
          {
            "id": "ad540dd7-8b0d-6750-c49f-bdbe6cddaad8",
            "value": "VIP",
            "colour": "ff6634"
          },
          {
            "id": "57421bc4-6c4e-08aa-fa43-448ad6cdff34",
            "value": "VIP",
            "colour": "ff6634"
          },
          {
            "id": "8bffe1d0-6309-4153-9544-c4b219f8a368",
            "value": "VIP",
            "colour": "ff6634"
          }
        ],
        "preferred_locale": "en",
        "locked_at": "1912-02-17T02:40:37.0Z",
        "created_at": "1964-05-04T11:26:14.0Z",
        "updated_at": "1936-02-11T01:03:31.0Z",
        "deleted_at": "1926-09-21T07:57:41.0Z",
        "last_active_at": "1904-05-25T14:51:13.0Z",
        "email_verified_at": "1917-09-17T11:43:04.0Z",
        "last_check_in": {
          "checked_in_at": "1963-09-20T08:59:01.0Z",
          "method": "Scanned"
        },
        "avatar_id": "000000-000000-000000-000000",
        "avatar": {
          "id": "b30286ba-22cd-c0a7-d644-54788cd46bdf",
          "file_name": "super-cool-photo.jpg",
          "mime_type": "image/jpeg",
          "size": 84256,
          "url": "https://example.com/media/super-cool-photo.jpg"
        },
        "external_ref": "fugiat quis dolor"
      },
      "members": [
        {
          "customer_id": "0c61eb8e-5092-0f3e-a6b0-6dde331d2d79",
          "membership_number": "1234567890",
          "is_lead": false
        },
        {
          "customer_id": "3d3af0ce-b7af-93eb-64a6-95d9024b969a",
          "membership_number": "1234567890"
        },
        {
          "customer_id": "2a8044b9-c8f6-303d-b0de-3dc3c702bf88"
        },
        {
          "customer_id": "3abf537b-56c2-e152-4cff-92590bf2c6a9",
          "membership_number": "1234567890",
          "is_lead": true
        }
      ],
      "type": {
        "id": "6be468aa-db61-da26-6c50-b725e334780c",
        "name": "Gold tier",
        "description": "Enjoy exclusive benefits as part of being a member in our Gold tier",
        "terms": "cillum amet pariatur",
        "brand_id": "f53232b0-0528-8bf1-b15a-ce7c3e000a30",
        "offline_payments": false,
        "disable_confirmation_email": true,
        "private": false,
        "minimum_start_date": "1941-09-26T19:01:05.0Z",
        "min_members": 2,
        "max_members": 4,
        "rates": [
          {
            "id": "b960b629-9fbb-1c16-b48a-62a5da854905",
            "name": "Standard rate",
            "currency": "GBP",
            "price": 5000,
            "tax": 1250,
            "billing_frequency": "P1M",
            "processors": [
              "Ut",
              "quis proident labore officia",
              "dolore nulla in",
              "reprehenderit",
              "sed incididunt occaecat ut ut"
            ],
            "default_duration": "P1Y",
            "private": true,
            "created_at": "1954-11-12T05:51:07.0Z",
            "updated_at": "1963-01-25T01:42:44.0Z"
          },
          {
            "id": "864b2fce-4f7c-c3fa-3cb0-f28634d620ef",
            "membership_type_id": "6d20b261-43e5-b4c0-4b86-4ef178a840c6",
            "name": "Standard rate",
            "price": 5000,
            "joining_fee": 1000,
            "tax": 1250,
            "billing_frequency": "P1M",
            "processors": [
              "est sed aliqua enim magna",
              "aute voluptate in",
              "Excepteur ex tempor cillum",
              "cillum dolore"
            ],
            "default_duration": "P1Y",
            "private": true,
            "created_at": "1909-10-02T06:25:29.0Z",
            "updated_at": "1925-06-20T08:28:24.0Z"
          },
          {
            "id": "2de5cef3-f4e2-6b4d-e5df-12b06deabb99",
            "membership_type_id": "6e6adbc9-ac7d-8833-7d99-028cda342aed",
            "name": "Standard rate",
            "currency": "GBP",
            "price": 5000,
            "joining_fee": 1000,
            "tax": 1250,
            "billing_frequency": "P1M",
            "default_duration": "P1Y",
            "created_at": "1952-01-13T12:18:59.0Z"
          },
          {
            "currency": "GBP",
            "price": 5000,
            "joining_fee": 1000,
            "billing_frequency": "P1M",
            "processors": [
              "elit ea fugiat dolor",
              "esse non ipsum"
            ],
            "default_duration": "P1Y",
            "created_at": "1926-11-12T07:49:14.0Z",
            "updated_at": "1937-07-25T16:29:38.0Z"
          }
        ],
        "revenue_schedule": "FREQ=WEEKLY",
        "created_at": "1969-02-11T01:52:20.0Z",
        "updated_at": "1930-02-09T09:34:50.0Z",
        "deleted_at": "1929-06-13T20:54:22.0Z"
      },
      "source": "app",
      "start_date": "1928-05-17T03:33:14.0Z",
      "basket_id": "66e0452ad30204012700000c",
      "external_ref": "nulla incididunt ullamco enim",
      "next_billing_date": "1924-11-27T03:59:15.0Z",
      "next_charge": {
        "id": "45735fa5-5285-a76e-079f-febe4c523b3a",
        "amount": 3995,
        "currency": "GBP",
        "status": "processing",
        "billing_period_from": "1917-07-08",
        "billing_period_to": "1921-12-23"
      },
      "attention_reason": "payment_disputed"
    },
    {
      "id": "f68a1574-e909-3c04-71d2-74ae68026726",
      "site_id": "61c97c9b-3ddb-006a-8099-b00b4a2a7cd7",
      "membership_number": "1234567890",
      "customer": {
        "id": "cc15a325-795d-314f-ebc7-da0200a2b669",
        "first_name": "Jane",
        "last_name": "Doe",
        "full_name": "Jane Doe",
        "phone": "+447900000000",
        "has_password": true,
        "dob": "1903-02-11",
        "brand_id": "48722862-33dc-f633-ba32-72ef565caf29",
        "site_id": "5c3a199e-9cd6-e25f-8bb7-1c6c3585634e",
        "stripe_id": "cus_1234567890",
        "express_stripe_id": "cus_1234567890",
        "email": "janedoe@example.com",
        "labels": [
          {
            "id": "8d74a14f-ca54-e677-61f6-a6d3d39dfc94",
            "value": "VIP",
            "colour": "ff6634"
          },
          {
            "id": "02c6b665-0b2e-c0fe-9e7b-6169d30ebc73",
            "value": "VIP",
            "colour": "ff6634"
          }
        ],
        "preferred_locale": "en",
        "locked_at": "1923-08-26T10:32:40.0Z",
        "created_at": "1950-03-25T02:43:24.0Z",
        "updated_at": "1929-01-26T16:56:01.0Z",
        "deleted_at": "1946-06-29T11:03:42.0Z",
        "last_active_at": "1968-02-12T20:15:47.0Z",
        "email_verified_at": "1964-07-09T11:35:53.0Z",
        "last_check_in": {
          "checked_in_at": "1891-11-14T11:34:07.0Z",
          "method": "Scanned"
        },
        "avatar_id": "000000-000000-000000-000000",
        "avatar": {
          "id": "1cee6e98-c542-c325-bcb5-711176347d67",
          "file_name": "super-cool-photo.jpg",
          "mime_type": "image/jpeg",
          "size": 84256,
          "url": "https://example.com/media/super-cool-photo.jpg"
        },
        "external_ref": "pariatur enim ea voluptate"
      },
      "members": [
        {
          "customer_id": "062417b1-23c5-bd6d-f88e-86181b56937e",
          "membership_number": "1234567890",
          "is_lead": true
        },
        {
          "customer_id": "a995e9cd-01a3-f77e-ba16-9f9a54345e40",
          "membership_number": "1234567890",
          "is_lead": true
        },
        {
          "customer_id": "d68717f9-8f50-6ac9-45bd-a167cef30497"
        },
        {
          "customer_id": "44b03703-f3f9-84e7-5a5f-fc8cf1d11f47",
          "membership_number": "1234567890",
          "is_lead": true
        }
      ],
      "type": {
        "id": "a3713211-5ec7-7dd5-7b13-f223f59bba27",
        "name": "Gold tier",
        "description": "Enjoy exclusive benefits as part of being a member in our Gold tier",
        "terms": "sit ad dolore dolor reprehenderit",
        "brand_id": "0692e754-a45a-48cf-5459-80f06d0b8549",
        "offline_payments": true,
        "disable_confirmation_email": false,
        "private": false,
        "minimum_start_date": "1937-08-25T12:32:43.0Z",
        "min_members": 2,
        "max_members": 4,
        "rates": [
          {
            "id": "0c63e843-a2cd-0329-995b-a3e2fc4e4f53",
            "membership_type_id": "1b0624d0-a84e-7e4b-31be-8342ddef7e74",
            "name": "Standard rate",
            "currency": "GBP",
            "price": 5000,
            "joining_fee": 1000,
            "tax": 1250,
            "billing_frequency": "P1M",
            "processors": [
              "magna do est",
              "aliqua ipsum veniam commodo",
              "Ut consectetur",
              "cillum",
              "ea veniam dolore magna"
            ],
            "default_duration": "P1Y",
            "private": true,
            "created_at": "1929-06-13T18:16:47.0Z",
            "updated_at": "1890-03-16T17:06:34.0Z"
          },
          {
            "id": "90f73043-121f-133d-c6ff-12083c497248",
            "membership_type_id": "b8846996-255f-f8ff-e996-a3ec00d979f4",
            "name": "Standard rate",
            "currency": "GBP",
            "price": 5000,
            "joining_fee": 1000,
            "tax": 1250,
            "billing_frequency": "P1M",
            "processors": [
              "exercitation qui"
            ],
            "default_duration": "P1Y",
            "created_at": "1929-09-11T17:19:39.0Z"
          },
          {
            "id": "63403d2c-c708-471a-afc9-d1ad0b3a37c1",
            "membership_type_id": "1cb16ca9-1fbf-6273-5e35-c88cf636594f",
            "name": "Standard rate",
            "currency": "GBP",
            "price": 5000,
            "joining_fee": 1000,
            "tax": 1250,
            "billing_frequency": "P1M",
            "processors": [
              "pariatur"
            ],
            "default_duration": "P1Y",
            "private": true,
            "created_at": "1962-12-03T12:38:12.0Z",
            "updated_at": "1950-09-25T22:56:13.0Z"
          }
        ],
        "revenue_schedule": "FREQ=WEEKLY",
        "created_at": "1941-12-05T03:38:51.0Z",
        "updated_at": "1942-04-19T16:10:17.0Z",
        "deleted_at": "1903-03-01T08:12:21.0Z"
      },
      "rate": {
        "id": "c7293683-6cf4-ea08-7744-bbbbde47bee6",
        "name": "Standard rate",
        "price": 5000,
        "joining_fee": 1000,
        "tax": 1250,
        "billing_frequency": "P1M",
        "processors": [
          "Duis"
        ],
        "private": true,
        "created_at": "1890-09-05T11:59:01.0Z",
        "updated_at": "1937-01-15T22:33:28.0Z"
      },
      "status": "needs_attention",
      "source": "app",
      "payment_method": {
        "id": "cupidatat Ut velit",
        "type": "card",
        "last_4": "nisi",
        "status": "revoked",
        "card_brand": "amex"
      },
      "start_date": "1955-08-30T18:58:55.0Z",
      "end_date": "1892-10-19T19:08:03.0Z",
      "created_at": "1925-11-08T06:19:18.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": "a7e22408-5f38-805e-0b8d-ca720f1efe98",
    "first_name": "Jane",
    "last_name": "Doe",
    "full_name": "Jane Doe",
    "phone": "+447900000000",
    "has_password": true,
    "dob": "1948-04-07",
    "brand_id": "32f1588d-16f6-9b1c-81ed-431dd87d4d3a",
    "site_id": "ffdbc138-3f8e-40d0-f912-1d4ea969cf9c",
    "stripe_id": "cus_1234567890",
    "express_stripe_id": "cus_1234567890",
    "email": "janedoe@example.com",
    "labels": [
      {
        "id": "99874910-6c39-b23a-2908-ed10a4c049f8",
        "value": "VIP",
        "colour": "ff6634"
      },
      {
        "id": "9fd401db-8e8d-d1e3-cdb3-d6e5f2e7038d",
        "value": "VIP",
        "colour": "ff6634"
      },
      {
        "id": "f70a92c0-50a1-0d2a-8e4d-cbd17d104019",
        "value": "VIP",
        "colour": "ff6634"
      },
      {
        "id": "0077d326-d5dc-3de4-3272-9c77754b35ef",
        "value": "VIP",
        "colour": "ff6634"
      },
      {
        "id": "fa8ca9e6-2247-b429-6425-10dc361025d2",
        "value": "VIP",
        "colour": "ff6634"
      }
    ],
    "preferred_locale": "en",
    "locked_at": "1955-03-10T03:06:31.0Z",
    "created_at": "1890-01-30T14:11:47.0Z",
    "updated_at": "1912-08-28T04:25:28.0Z",
    "deleted_at": "1933-01-07T04:24:14.0Z",
    "last_active_at": "1933-10-31T11:32:54.0Z",
    "email_verified_at": "1925-11-20T02:12:29.0Z",
    "last_check_in": {
      "checked_in_at": "1952-02-19T20:31:02.0Z",
      "method": "Scanned"
    },
    "avatar_id": "000000-000000-000000-000000",
    "avatar": {
      "id": "8a4e3917-2933-af09-8526-ade96ea4eea0",
      "file_name": "super-cool-photo.jpg",
      "mime_type": "image/jpeg",
      "size": 84256,
      "url": "https://example.com/media/super-cool-photo.jpg"
    },
    "external_ref": "nostrud Excepteur sunt ex"
  }
}
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": "403b9c95-83f4-354f-362b-d0df2105c1c0",
    "first_name": "Jane",
    "last_name": "Doe",
    "full_name": "Jane Doe",
    "phone": "+447900000000",
    "has_password": true,
    "dob": "1895-04-18",
    "brand_id": "cdc326a9-2a28-a307-e10d-5c247c8a0931",
    "site_id": "f41130b1-4c8b-d88f-31bd-ab8946fc5783",
    "stripe_id": "cus_1234567890",
    "express_stripe_id": "cus_1234567890",
    "email": "janedoe@example.com",
    "labels": [
      {
        "id": "98a9ee4c-8e20-0122-1917-9ea8787664c1",
        "value": "VIP",
        "colour": "ff6634"
      },
      {
        "id": "b86cb720-8a2b-2fed-ade1-1c876a197057",
        "value": "VIP",
        "colour": "ff6634"
      }
    ],
    "preferred_locale": "en",
    "locked_at": "1953-11-11T09:45:56.0Z",
    "created_at": "1963-11-01T01:58:18.0Z",
    "updated_at": "1917-11-21T01:30:58.0Z",
    "deleted_at": "1928-08-02T01:47:31.0Z",
    "last_active_at": "1925-10-22T03:19:12.0Z",
    "email_verified_at": "1933-06-21T03:28:09.0Z",
    "last_check_in": {
      "checked_in_at": "1913-06-09T18:01:55.0Z",
      "method": "Scanned"
    },
    "avatar_id": "000000-000000-000000-000000",
    "avatar": {
      "id": "22c9604d-f28a-d737-114c-6c9d2e3ea89b",
      "file_name": "super-cool-photo.jpg",
      "mime_type": "image/jpeg",
      "size": 84256,
      "url": "https://example.com/media/super-cool-photo.jpg"
    },
    "external_ref": "commodo nisi quis"
  }
}
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": "13ef3cef-64cd-fb2a-30b5-92da18e5c141",
    "first_name": "Jane",
    "last_name": "Doe",
    "full_name": "Jane Doe",
    "phone": "+447900000000",
    "has_password": true,
    "dob": "1909-03-10",
    "brand_id": "9f686185-74aa-bed7-9c02-883957e1870a",
    "site_id": "c24b60bd-56dc-8c50-f1f8-632d6e1abfdd",
    "stripe_id": "cus_1234567890",
    "express_stripe_id": "cus_1234567890",
    "email": "janedoe@example.com",
    "labels": [
      {
        "id": "b4fe5d15-a886-16e3-9e4b-2926f32b8fe9",
        "value": "VIP",
        "colour": "ff6634"
      },
      {
        "id": "53c1f018-efd1-303f-423b-530218dd1a27",
        "value": "VIP",
        "colour": "ff6634"
      },
      {
        "id": "e825d463-7181-d245-a02c-d3579d254769",
        "value": "VIP",
        "colour": "ff6634"
      },
      {
        "id": "0dc12ab8-7754-71eb-cae3-c0bb70bec199",
        "value": "VIP",
        "colour": "ff6634"
      }
    ],
    "preferred_locale": "en",
    "locked_at": "1959-12-22T10:28:18.0Z",
    "created_at": "1918-02-11T15:07:02.0Z",
    "updated_at": "1944-09-16T06:48:26.0Z",
    "deleted_at": "1897-06-21T17:18:47.0Z",
    "last_active_at": "1942-12-04T02:45:53.0Z",
    "email_verified_at": "1894-11-06T12:37:57.0Z",
    "last_check_in": {
      "checked_in_at": "1924-10-15T16:21:08.0Z",
      "method": "Scanned"
    },
    "avatar_id": "000000-000000-000000-000000",
    "avatar": {
      "id": "580f54b4-b205-3075-20eb-d846d4d9f947",
      "file_name": "super-cool-photo.jpg",
      "mime_type": "image/jpeg",
      "size": 84256,
      "url": "https://example.com/media/super-cool-photo.jpg"
    },
    "external_ref": "et enim"
  }
}
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": "1ce8e558-8884-be2c-adab-04861dadf707",
    "first_name": "Jane",
    "last_name": "Doe",
    "full_name": "Jane Doe",
    "phone": "+447900000000",
    "has_password": true,
    "dob": "1941-02-09",
    "brand_id": "e3c8beca-95cf-a00f-8103-d6345c4754d5",
    "site_id": "b10a8d1b-27e7-54f2-04a1-2e73d1c11c9f",
    "stripe_id": "cus_1234567890",
    "express_stripe_id": "cus_1234567890",
    "email": "janedoe@example.com",
    "labels": [
      {
        "id": "200903a0-be6f-b12b-0a61-6c5b9fae46b9",
        "value": "VIP",
        "colour": "ff6634"
      },
      {
        "id": "c3f2ebdd-bc87-16d3-2c10-14b35285af55",
        "value": "VIP",
        "colour": "ff6634"
      }
    ],
    "preferred_locale": "en",
    "locked_at": "1913-07-21T20:47:41.0Z",
    "created_at": "1966-03-04T04:36:08.0Z",
    "updated_at": "1930-09-24T07:55:19.0Z",
    "deleted_at": "1942-09-11T10:48:28.0Z",
    "last_active_at": "1901-12-06T14:38:01.0Z",
    "email_verified_at": "1968-06-10T23:47:34.0Z",
    "last_check_in": {
      "checked_in_at": "1899-05-30T05:38:23.0Z",
      "method": "Scanned"
    },
    "avatar_id": "000000-000000-000000-000000",
    "avatar": {
      "id": "d9e52722-a66f-9dec-c296-5cbbdd91efe1",
      "file_name": "super-cool-photo.jpg",
      "mime_type": "image/jpeg",
      "size": 84256,
      "url": "https://example.com/media/super-cool-photo.jpg"
    },
    "external_ref": "anim laboris occaecat eu"
  }
}
404
example response
{
  "message": "The requested resource could not be found"
}