{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/amigo/main/json-schema/amigo-create-customer-request-schema.json",
  "title": "CreateCustomerRequest",
  "x-generated": "2026-10-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amigo-billing-api-openapi.yml#/components/schemas/CreateCustomerRequest",
  "properties": {
    "name": {
      "type": "string",
      "maxLength": 256,
      "minLength": 1,
      "title": "Name"
    },
    "slug": {
      "type": "string",
      "maxLength": 63,
      "minLength": 2,
      "pattern": "^[a-z0-9][a-z0-9-]*[a-z0-9]$",
      "title": "Slug"
    },
    "billing_email": {
      "type": "string",
      "format": "email",
      "title": "Billing Email"
    },
    "billing_contact": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 256
        },
        {
          "type": "null"
        }
      ],
      "title": "Billing Contact"
    },
    "mercury_memo": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 256
        },
        {
          "type": "null"
        }
      ],
      "title": "Mercury Memo"
    },
    "address": {
      "additionalProperties": true,
      "type": "object",
      "title": "Address"
    }
  },
  "type": "object",
  "required": [
    "name",
    "slug",
    "billing_email"
  ]
}