{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/dhl/json-schema/dhl-pickup-location-id-schema.json",
  "title": "PickupLocationId",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/dhl-dhl-parcel-de-pickup-post-parcel-germany-openapi.yml#/components/schemas/PickupLocationId",
  "type": "object",
  "properties": {
    "id": {
      "$ref": "#/$defs/AsId"
    },
    "pickupAddress": {
      "$ref": "#/$defs/PickupAddress"
    }
  },
  "$defs": {
    "AddressHouse": {
      "type": "string",
      "maxLength": 10
    },
    "AddressStreet": {
      "type": "string",
      "maxLength": 70
    },
    "AsId": {
      "type": "string",
      "description": "The pickup location id",
      "maxLength": 12,
      "minLength": 12,
      "pattern": "^AS[0-9]{10}$"
    },
    "City": {
      "type": "string",
      "maxLength": 35
    },
    "Country": {
      "type": "string",
      "minLength": 2,
      "maxLength": 2
    },
    "Name": {
      "type": "string",
      "maxLength": 50
    },
    "PickupAddress": {
      "type": "object",
      "properties": {
        "name1": {
          "$ref": "#/$defs/Name"
        },
        "name2": {
          "$ref": "#/$defs/Name"
        },
        "addressStreet": {
          "$ref": "#/$defs/AddressStreet"
        },
        "addressHouse": {
          "$ref": "#/$defs/AddressHouse"
        },
        "postalCode": {
          "$ref": "#/$defs/PostalCode"
        },
        "city": {
          "$ref": "#/$defs/City"
        },
        "country": {
          "$ref": "#/$defs/Country"
        },
        "state": {
          "$ref": "#/$defs/State"
        }
      },
      "required": [
        "name1",
        "addressStreet",
        "addressHouse",
        "postalCode",
        "city"
      ]
    },
    "PostalCode": {
      "type": "string",
      "maxLength": 7
    },
    "State": {
      "type": "string",
      "maxLength": 35
    }
  }
}