{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/rezdy/json-schema/rezdy-customer-schema.json",
  "title": "Customer",
  "description": "The customer is the person making the booking, and most of the time paying for it.<br>It differs from Participants, who are the people attending a tour",
  "x-generated": "2026-12-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/rezdy-supplier-api-openapi.yml#/components/schemas/Customer",
  "type": "object",
  "properties": {
    "id": {
      "type": "integer",
      "description": "Rezdy internal ID of the customer",
      "format": "int64"
    },
    "firstName": {
      "type": "string",
      "description": "First name"
    },
    "middleName": {
      "type": "string",
      "description": "Middle name"
    },
    "lastName": {
      "type": "string",
      "description": "Last Name"
    },
    "name": {
      "type": "string",
      "description": "Full name - generated from first/middle/last names"
    },
    "email": {
      "type": "string",
      "description": "Email"
    },
    "companyName": {
      "type": "string",
      "description": "Company name"
    },
    "phone": {
      "type": "string",
      "description": "Preferred Phone number"
    },
    "mobile": {
      "type": "string",
      "description": "Mobile phone number"
    },
    "fax": {
      "type": "string",
      "description": "Fax number"
    },
    "skype": {
      "type": "string",
      "description": "Skype alias"
    },
    "dob": {
      "type": "string",
      "description": "Date of birth",
      "format": "date-time"
    },
    "preferredLanguage": {
      "type": "string",
      "description": "Preferred language. Should be a 2 letter ISO country code"
    },
    "newsletter": {
      "type": "boolean",
      "description": "Subscribe to the newsletter"
    },
    "marketing": {
      "type": "boolean",
      "description": "Agree to receive marketing emails"
    },
    "aboutUs": {
      "type": "string",
      "description": "How did you hear about us?"
    },
    "title": {
      "type": "string",
      "description": "Title",
      "enum": [
        "MR",
        "MS",
        "MRS",
        "MISS"
      ]
    },
    "gender": {
      "type": "string",
      "description": "Gender: MALE or FEMALE",
      "enum": [
        "MALE",
        "FEMALE"
      ]
    },
    "addressLine": {
      "type": "string",
      "description": "Address"
    },
    "addressLine2": {
      "type": "string",
      "description": "Extended Address"
    },
    "postCode": {
      "type": "string",
      "description": "Postcode / ZIP"
    },
    "city": {
      "type": "string",
      "description": "City/Town/Suburb"
    },
    "state": {
      "type": "string",
      "description": "State/County/Region"
    },
    "countryCode": {
      "type": "string",
      "description": "2 letter ISO country code"
    }
  }
}