Toast · JSON Structure

Orders Customer Structure

Customer schema from Toast API

Type: object Properties: 0
Food ServicePoint of SaleRestaurantsHospitality

Customer is a JSON Structure definition published by Toast. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Meta-schema: https://json-structure.org/meta/core/v0/#

JSON Structure

Raw ↑
{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/toast/refs/heads/main/json-structure/orders-customer-structure.json",
  "name": "Customer",
  "description": "Customer schema from Toast API",
  "type": "object",
  "allOf": [
    {
      "$ref": "#/definitions/ToastReference"
    },
    {
      "type": "object",
      "required": [
        "firstName",
        "lastName",
        "email",
        "phone"
      ],
      "properties": {
        "firstName": {
          "type": "string",
          "description": "The first name, or given name, of the guest.\n"
        },
        "lastName": {
          "type": "string",
          "description": "The last name, or surname, of the guest.\n"
        },
        "phone": {
          "type": "string",
          "description": "The telephone number of the guest.\n"
        },
        "phoneCountryCode": {
          "type": "string",
          "description": "The international phone country code for the number of the guest.\n"
        },
        "email": {
          "type": "string",
          "description": "The email address corresponding to the guest who placed the order.\n\nThe email address is the key that identifies a unique restaurant guest. All distinct guests should have distinct email addresses.\n"
        }
      }
    }
  ]
}