{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/dhl/json-schema/dhl-locations-schema.json",
  "title": "Locations",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/dhl-location-finder-unified-openapi.yml#/components/schemas/locations",
  "type": "object",
  "properties": {
    "locations": {
      "title": "Location",
      "description": "DHL Service Point location collection",
      "type": "array",
      "items": {
        "$ref": "#/$defs/location"
      }
    }
  },
  "$defs": {
    "Location": {
      "title": "Location",
      "type": "object",
      "required": [
        "type"
      ],
      "properties": {
        "ids": {
          "description": "One location can be known within different business units (providerTypes). They will be known under a unique ID within each business unit domain, as provided.",
          "type": "array",
          "items": {
            "$ref": "#/$defs/referenceLocation"
          }
        },
        "keyword": {
          "description": "Address to put on a label, to send a shipment to a service point or locker for pick up / drop off. For German locations, keyword and keywordId are placed as street name and house number, streetAddress is omitted on the label of a shipment. For locations outside of Germany, keyword and keywordId are placed in addition to streetAddress.",
          "type": "string"
        },
        "keywordId": {
          "description": "Id belonging to keyword that together with the keywordId build up the streetAddress for direct addressing to a service point or locker for pick up / drop off.",
          "type": "string"
        },
        "type": {
          "description": "Type of the DHL Service Point location.",
          "type": "string"
        },
        "leanLocker": {
          "description": "Lean lockers can be operated by app, only. There is no keyboard available.",
          "type": "boolean"
        },
        "dfLocker": {
          "description": "DeinFach lockers are part of the DHL partner network, operated by AZL GmbH. These lockers have a gray coloring.",
          "type": "boolean"
        }
      }
    },
    "address": {
      "title": "address",
      "type": "object",
      "required": [
        "countryCode"
      ],
      "properties": {
        "countryCode": {
          "title": "CountryCode",
          "description": "A short text string code (ISO 3166-1 alpha-2 country code) specifying the country.",
          "type": "string"
        },
        "postalCode": {
          "title": "PostalCode",
          "description": "Text specifying the postal code for an address. https://gs1.org/voc/postalCode",
          "type": "string"
        },
        "addressLocality": {
          "title": "AddressLocality",
          "description": "Text specifying the name of the locality, for example a city. https://gs1.org/voc/addressLocality",
          "type": "string"
        },
        "streetAddress": {
          "title": "StreetAddress",
          "description": "The street address expressed as free form text. The street address is printed on paper as the first lines below the name. For example, the name of the street and the number in the street or the name of a building. https://www.gs1.org/voc/streetAddress",
          "type": "string"
        }
      }
    },
    "averageCapacityDayOfWeek": {
      "title": "averageCapacityDayOfWeek",
      "type": "object",
      "properties": {
        "dayOfWeek": {
          "description": "The day of the week as defined at https://schema.org/DayOfWeek",
          "type": "string"
        },
        "capacity": {
          "title": "Capacity",
          "description": "Information on the average availability of locker capacity (only available in Germany).",
          "type": "string"
        }
      }
    },
    "closurePeriod": {
      "title": "closurePeriod",
      "description": "Periods where the DHL Service Point location is closed in the addition to opening hours.",
      "type": "object",
      "properties": {
        "type": {
          "description": "Reason for the closure",
          "type": "string"
        },
        "fromDate": {
          "description": "A date value in ISO 8601 format (`2017-06-21`) or a combination of date and time of day (`2017-06-21T14:07:17Z`) (see Chapter 5.4 of ISO 8601).",
          "type": "string"
        },
        "toDate": {
          "description": "A date value in ISO 8601 format (`2017-06-21`) or a combination of date and time of day (`2017-06-21T14:07:17Z`) (see Chapter 5.4 of ISO 8601).",
          "type": "string"
        }
      }
    },
    "containedInPlace": {
      "title": "containedInPlace",
      "description": "Description of the building/facility etc. this service point is located within",
      "type": "object",
      "properties": {
        "name": {
          "type": "string"
        }
      }
    },
    "geo": {
      "title": "geo",
      "description": "The geo coordinates of the DHL Service Point location.",
      "type": "object",
      "required": [
        "latitude",
        "longitude"
      ],
      "properties": {
        "latitude": {
          "description": "Latitude",
          "type": "number",
          "format": "double"
        },
        "longitude": {
          "description": "Longitude",
          "type": "number",
          "format": "double"
        }
      }
    },
    "location": {
      "title": "Location",
      "type": "object",
      "required": [
        "url",
        "location",
        "place"
      ],
      "properties": {
        "url": {
          "description": "The `self` link relation - globally unique identifier of this DHL Service Point location.",
          "type": "string"
        },
        "location": {
          "$ref": "#/$defs/Location"
        },
        "name": {
          "description": "Name of the DHL Service Point location.",
          "type": "string"
        },
        "distance": {
          "description": "Distance in meters (m) from the requested geographical coordinates.",
          "type": "integer",
          "format": "int64"
        },
        "routingDistance": {
          "$ref": "#/$defs/routingDistanceInfo"
        },
        "place": {
          "$ref": "#/$defs/place"
        },
        "openingHours": {
          "description": "List of the opening hours of the DHL Service Point location. http://supermodel.io/schemaorg/OpeningHoursSpecification.",
          "type": "array",
          "items": {
            "$ref": "#/$defs/openingHours"
          }
        },
        "closurePeriods": {
          "description": "Periods where the DHL Service Point location is closed in the addition to opening hours.",
          "type": "array",
          "items": {
            "$ref": "#/$defs/closurePeriod"
          }
        },
        "serviceTypes": {
          "description": "The list of services available at the DHL Service Point location.\n - express:drop-off-all - Includes any of the parcel:drop-off services. This can be used as a meta query parameter. It will not be part of the API response.\n - express:drop-off - Consumers can drop off DHL Express shipments. This applies to first mile.\n - express:drop-off-account - Consumers with a DHL Express account but without shipment label can drop off DHL Express shipment.\n - express:drop-off-easy - Consumers without a DHL Express account (new customer) can drop off DHL Express shipment.\n - express:drop-off-prelabeled - Consumers with a DHL Express account can drop off a DHL Express shipment which label has been created by using an online shipment manifest creation tool. The shipment can also be a return shipment.\n - express:drop-off-unlabeled - Location that offers unlabeled drop-off for DHL Express shipments. This service is also known as label-free, label-less or QR code drop-off.\n - express:pick-up - Consumers can pick up DHL Express shipments. This applies to last mile.\n - parcel:drop-off-all - Includes locations that offer any of the parcel:drop-off services. This can be used as a meta-query parameter. The service type \"parcel:drop-off-all\" will not be part of the API response.\n - parcel:drop-off - Deprecated. Please use \"serviceType=parcel:drop-off-firstmile\" to find locations that support parcel drop-off.\n - parcel:drop-off-unlabeled - Deprecated. Please use \"serviceType=parcel: drop-off-firstmile-unlabeled\", or \"serviceType=parcel:drop-off-return-unlabeled\" according to the need.\n - parcel:drop-off-unregistered - Deprecated. Please use \"serviceType=parcel:drop-off-firstmile\" to find locations that support parcel drop-off.\n - parcel:drop-off-firstmile - Locations that offer first-mile drop-off of labeled regular DHL Parcel shipments (not returns/reverse). For return shipments, please refer to parcel:drop-off-return services.\n - parcel:drop-off-firstmile-unlabeled - Locations that offer first-mile drop-off of unlabeled DHL Parcel shipments (not returns/reverse). This service is also known as label-free, label-less, or QR code drop-off. For return shipments, please refer to parcel:drop-off-return services.\n - parcel:drop-off-return - Locations that offer regular labeled return drop-off of DHL Parcel shipments (not first mile/initial drop-off of a new shipment).\n - parcel:drop-off-return-unlabeled - Locations that offer unlabeled return drop-off of DHL Parcel shipments (not first mile/initial drop-off of a new shipment). This service is also known as label-free, label-less, or QR code drop-off.\n - parcel:pick-up-all - Includes any of the parcel:pick-up services. This can be used as a meta-query parameter. The service type \"parcel:pick-up-all\" will not be part of the API response.\n - parcel:pick-up - Deprecated. Please use the other parcel:pick-up service options  according to the need.\n - parcel:pick-up-registered - Locations that offer pick-up of DHL Parcel shipments only for registered users. This Service Type is relevant only to Germany. All of these locations are packstations/lockers.\n - parcel:pick-up-unregistered - Locations that offer pick-up of DHL Parcel shipments for any user in the supported European countries.\n - age-verification - Reliable verification of the customers age. This service is commonly used to verify that the consumer has reached a specific age for an online offering (e.g. 14 or 18 years).\n - cash-on-delivery - Offering of \\\"cash on delivery\\\". A shipment is only handed over to the recipient against payment.\n - cash-service - Cash service is offered via cash or card payment service. In Germany Giro, Maestro, Postcard and cash payment is supported.\n - franking - Offering of labels for franking. This does not include the product \\\"Mobile Paketmarke\\\".\n - handicapped-access - Disabled fair access. - parking - Parking area close by.\n - letter-service - Letter services are offered (e.g. Post Office offering).\n - packaging-material - Offering for packing material such as packages for parcels, envelopes for letters, paper, pencils, pens.\n - postbank - Offering of services of the German financial institution Deutsche Postbank AG, a subsidiary of Deutsche Bank AG. The individual offering can be looked up at Deutsche Postbank AG.\n - postident - Postident is a service to reliably verify the identity of a consumer. This service is commonly used for online bank account identity verification.\n - NOTE - All deprecated services can still be used, but we encourage to re-configure your systems to the new recommended ones.\n ",
          "type": "array",
          "uniqueItems": true,
          "items": {
            "type": "string"
          }
        },
        "availableCapacity": {
          "title": "Capacity",
          "description": "Information on the average availability of locker capacity (only available in Germany).",
          "type": "string"
        },
        "averageCapacityDayOfWeek": {
          "description": "Indicates the average capacity of the parcel locker on the listed day. If this information is not available, only an aggregated average capacity indication based on the last weeks will be provided as availableCapacity.",
          "type": "array",
          "items": {
            "$ref": "#/$defs/averageCapacityDayOfWeek"
          }
        },
        "labels": {
          "description": "List of labels associated with the location. For Swedish DHL preferred locations, includes 'preferred'.",
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      }
    },
    "openingHours": {
      "title": "openingHours",
      "description": "List of the opening hours of the DHL Service Point location. http://supermodel.io/schemaorg/OpeningHoursSpecification.",
      "type": "object",
      "properties": {
        "opens": {
          "title": "Opens",
          "description": "The opening hour of the place or service on the given day(s) of the week.",
          "type": "string"
        },
        "closes": {
          "title": "Closes",
          "description": "The closing hour of the place or service on the given day(s) of the week.",
          "type": "string"
        },
        "dayOfWeek": {
          "title": "DayOfWeek",
          "description": "The day of the week, e.g. used to specify to which day the opening hours of an OpeningHoursSpecification refer.<br/><br/> Originally, URLs from <a href=\\\"http://purl.org/goodrelations/v1\\\">GoodRelations</a> were used (for <a class=\\\"localLink\\\" href=\\\"http://schema.org/Monday\\\">Monday</a>, <a class=\\\"localLink\\\" href=\\\"http://schema.org/Tuesday\\\">Tuesday</a>, <a class=\\\"localLink\\\" href=\\\"http://schema.org/Wednesday\\\">Wednesday</a>, <a class=\\\"localLink\\\" href=\\\"http://schema.org/Thursday\\\">Thursday</a>, <a class=\\\"localLink\\\" href=\\\"http://schema.org/Friday\\\">Friday</a>, <a class=\\\"localLink\\\" href=\\\"http://schema.org/Saturday\\\">Saturday</a>, <a class=\\\"localLink\\\" href=\\\"http://schema.org/Sunday\\\">Sunday</a> plus a special entry for <a class=\\\"localLink\\\" href=\\\"http://schema.org/PublicHolidays\\\">PublicHolidays</a>); these have now been integrated directly into schema.org.",
          "type": "string"
        }
      }
    },
    "place": {
      "title": "Place",
      "type": "object",
      "required": [
        "address",
        "geo"
      ],
      "properties": {
        "address": {
          "$ref": "#/$defs/address"
        },
        "geo": {
          "$ref": "#/$defs/geo"
        },
        "containedInPlace": {
          "$ref": "#/$defs/containedInPlace"
        }
      }
    },
    "referenceLocation": {
      "title": "referenceLocation",
      "type": "object",
      "required": [
        "locationId",
        "provider"
      ],
      "properties": {
        "locationId": {
          "description": "The ID as how the location is know within this business unit / provider.",
          "type": "string"
        },
        "provider": {
          "description": "The business unit of the DHL Service Point location.",
          "type": "string"
        }
      }
    },
    "routingDistanceInfo": {
      "title": "RoutingDistanceInfo",
      "description": "Routing distance information calculated via road network.",
      "type": "object",
      "properties": {
        "distance": {
          "description": "Distance in meters (m) calculated via routing.",
          "type": "integer",
          "format": "int64"
        },
        "distanceType": {
          "description": "Type of distance calculation method used.",
          "type": "string"
        }
      }
    }
  }
}