{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/navision/json-schema/navision-customer-create-schema.json",
  "title": "CustomerCreate",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/navision-customers-api-openapi.yml#/components/schemas/CustomerCreate",
  "type": "object",
  "required": [
    "displayName"
  ],
  "properties": {
    "number": {
      "type": "string",
      "maxLength": 20
    },
    "displayName": {
      "type": "string",
      "maxLength": 100
    },
    "type": {
      "type": "string",
      "enum": [
        "Person",
        "Company"
      ]
    },
    "addressLine1": {
      "type": "string",
      "maxLength": 100
    },
    "addressLine2": {
      "type": "string",
      "maxLength": 50
    },
    "city": {
      "type": "string",
      "maxLength": 30
    },
    "state": {
      "type": "string",
      "maxLength": 20
    },
    "country": {
      "type": "string",
      "maxLength": 10
    },
    "postalCode": {
      "type": "string",
      "maxLength": 20
    },
    "phoneNumber": {
      "type": "string",
      "maxLength": 30
    },
    "email": {
      "type": "string",
      "maxLength": 80
    },
    "website": {
      "type": "string",
      "maxLength": 80
    },
    "taxLiable": {
      "type": "boolean"
    },
    "taxRegistrationNumber": {
      "type": "string",
      "maxLength": 20
    },
    "currencyCode": {
      "type": "string",
      "maxLength": 10
    },
    "blocked": {
      "type": "string",
      "enum": [
        " ",
        "Ship",
        "Invoice",
        "All"
      ]
    }
  }
}