{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/revolut/main/json-schema/revolut-customer-created-schema.json",
  "title": "Customer",
  "description": "A customer object.",
  "x-generated": "2026-10-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/revolut-customers-api-openapi.yml#/components/schemas/Customer-Created",
  "type": "object",
  "properties": {
    "id": {
      "$ref": "#/$defs/Customer-Id"
    },
    "full_name": {
      "$ref": "#/$defs/Full-Name"
    },
    "email": {
      "$ref": "#/$defs/Email"
    },
    "phone": {
      "$ref": "#/$defs/Phone"
    },
    "created_at": {
      "type": "string",
      "format": "date-time",
      "description": "The date and time the customer was created."
    },
    "updated_at": {
      "type": "string",
      "format": "date-time",
      "description": "The date and time the customer was last updated."
    }
  },
  "required": [
    "id",
    "created_at",
    "updated_at",
    "email"
  ],
  "$defs": {
    "Customer-Id": {
      "type": "string",
      "format": "uuid",
      "description": "Unique identifier for the customer."
    },
    "Email": {
      "type": "string",
      "format": "email",
      "description": "The email address of the customer."
    },
    "Full-Name": {
      "type": "string",
      "description": "The full name of the customer."
    },
    "Phone": {
      "type": "string",
      "description": "The phone number of the customer in [E.164 format](https://en.wikipedia.org/wiki/E.164)."
    }
  }
}