{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/parcelone/json-schema/parcelone-customer-schema.json",
  "title": "Customer",
  "description": "Customer information including Mandators and Consigners",
  "x-generated": "2026-10-28",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/parcelone-shipping-openapi.json#/components/schemas/Customer",
  "properties": {
    "CustomerID": {
      "description": "- Customers Client No. - MaxLen 20",
      "type": "string"
    },
    "MandatorID": {
      "description": "- Mandator ID - MaxLen 20",
      "type": "string"
    },
    "Shortname": {
      "description": "- Mandator Shortname - MaxLen 20",
      "type": "string"
    },
    "Default": {
      "description": "- if Default for this Customer - bool",
      "type": "integer"
    },
    "StatusID": {
      "description": "- Status ID (0=Customer active, 1=Customer blocked, 2=Customer annulled)",
      "type": "integer"
    },
    "Status": {
      "description": "- Status Description (e.g. Customer active) - MaxLen 20",
      "type": "string"
    },
    "Consigners": {
      "description": "- List of Consigners for this Mandator",
      "type": "array",
      "items": {
        "$ref": "#/$defs/Consigner"
      }
    }
  },
  "type": "object",
  "$defs": {
    "Consigner": {
      "description": "Consigner / Sender Information",
      "required": [
        "Currency",
        "Value"
      ],
      "properties": {
        "ConsignerID": {
          "description": "- Consigner ID - MaxLen 50",
          "type": "string"
        },
        "Shortname": {
          "description": "- Consigner Shortname - MaxLen 30",
          "type": "string"
        },
        "Default": {
          "description": "- if default Consigner for this Mandator - bool",
          "type": "integer"
        }
      },
      "type": "object"
    }
  }
}