{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/dpd-group/main/json-schema/dpd-group-customer-schema.json",
  "title": "Customer",
  "description": "For more info about customers see the [Customer DSW](#/CustomerDSW)",
  "x-generated": "2026-10-13",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/dpd-group-customers-api-openapi.yml#/components/schemas/Customer",
  "properties": {
    "DSW": {
      "$ref": "#/$defs/CustomerDSW"
    },
    "isActive": {
      "type": "boolean"
    },
    "id": {
      "$ref": "#/$defs/CustomerID"
    }
  },
  "required": [
    "DSW",
    "id",
    "isActive"
  ],
  "type": "object",
  "$defs": {
    "CustomerDSW": {
      "description": "The customer unique global identification number used across multiple DPD services.\n\nA single user account can have multiple customers.  \nThis allows for a single user account to manage multiple branches via this API.\n",
      "maxLength": 12,
      "minLength": 11,
      "type": "string"
    },
    "CustomerID": {
      "description": "The internal GeoAPI customer ID\n\nYou would only use this if there is no other way to identify the customer.\n",
      "type": "number"
    }
  }
}