{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/smarfle-com/json-schema/smarfle-com-customer-create-schema.json",
  "title": "CustomerCreate",
  "x-generated": "2026-11-26",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/smarfle-com-openapi.yml#/components/schemas/CustomerCreate",
  "type": "object",
  "required": [
    "first_name"
  ],
  "additionalProperties": false,
  "properties": {
    "first_name": {
      "type": "string",
      "minLength": 1,
      "maxLength": 80
    },
    "last_name": {
      "type": "string",
      "maxLength": 80
    },
    "company_name": {
      "type": "string",
      "maxLength": 120
    },
    "email": {
      "type": "string",
      "format": "email"
    },
    "phone": {
      "type": "string",
      "maxLength": 30
    },
    "status": {
      "type": "string",
      "enum": [
        "lead",
        "active",
        "inactive",
        "archived"
      ],
      "default": "active"
    },
    "notes": {
      "type": "string",
      "maxLength": 5000
    },
    "address_street": {
      "type": "string",
      "maxLength": 200
    },
    "address_unit": {
      "type": "string",
      "maxLength": 50
    },
    "address_city": {
      "type": "string",
      "maxLength": 100
    },
    "address_state": {
      "type": "string",
      "maxLength": 50
    },
    "address_zip": {
      "type": "string",
      "maxLength": 20
    }
  }
}