v1

latestSwagger 2.02026-08-043765135.6 KB
customers

Create customer

Create a new customer. When creating a customer you should include at least one of either email, phoneNumber or firstName & lastName.

post/customers

Query parameters

mockboolean

Return mock data

Request body

Example request

{
  "data": {
    "type": "customer",
    "attributes": {
      "organizationId": "bdb88373-bf66-4bfc-a4f8-3a35be5c2f9c"
    }
  }
}

Response

Return a single data response

Example response

{
  "data": {
    "attributes": {
      "createdAt": "2018-02-03T10:30:00Z",
      "updatedAt": "2018-02-03T10:30:00Z"
    },
    "relationships": {
      "organization": {
        "data": {
          "type": "organizations",
          "id": "bdb88373-bf66-4bfc-a4f8-3a35be5c2f9c"
        }
      }
    }
  }
}