{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/dhl/json-schema/dhl-uk-postcode-district-schema.json",
  "title": "ukPostcodeDistrict",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/dhl-ecommerce-uk-openapi.json#/components/schemas/ukPostcodeDistrict",
  "type": "object",
  "properties": {
    "postcodeDistrict": {
      "type": "string",
      "description": "UK Postcode district e.g. CV8 3"
    },
    "district": {
      "type": "string",
      "description": "District or area"
    },
    "town": {
      "type": "string",
      "description": "Town or city"
    },
    "county": {
      "type": "string",
      "description": "County"
    },
    "sortationCode": {
      "type": "string",
      "description": "Sortation code to print on labels for this UK postcode district"
    },
    "latestNotification": {
      "type": "string",
      "description": "Latest time a collection can be booked in this UK postcode district in ISO8601 format"
    },
    "latestCollection": {
      "type": "string",
      "description": "Latest time a collection can be collected in this UK postcode district in ISO8601 format"
    },
    "nineAm": {
      "type": "boolean",
      "description": "Are deliveries before 9am available at this UK postcode district?"
    },
    "tenThirtyAm": {
      "type": "boolean",
      "description": "Are deliveries before 10:30am available at this UK postcode district?"
    },
    "am": {
      "type": "boolean",
      "description": "Are deliveries before 12pm available at this UK postcode district?"
    },
    "nextday": {
      "type": "boolean",
      "description": "Are deliveries in one business day available at this UK postcode district?"
    },
    "fortyEightHr": {
      "type": "boolean",
      "description": "Are deliveries in two business day's available at this UK postcode district?"
    },
    "saturday": {
      "type": "boolean",
      "description": "Are deliveries on a Saturday available at this UK postcode district?"
    },
    "saturday9am": {
      "type": "boolean",
      "description": "Are deliveries on a Saturday before 9am available at this UK postcode district?"
    },
    "saturday1030am": {
      "type": "boolean",
      "description": "Are deliveries on a Saturday before 10:30am available at this UK postcode district?"
    },
    "thirdPartyCollection": {
      "type": "boolean",
      "description": "Are adhoc third party collections available from this UK postcode district?"
    },
    "returns": {
      "type": "boolean",
      "description": "Are returns including inbox returns available at this UK postcode district?"
    },
    "customsLevel": {
      "enum": [
        "none",
        "basic",
        "full"
      ],
      "type": "string",
      "description": "What level of customs information is needed at this UK postcode district. For example in Jersey and Guernsey a basic (cn22) level of customs information is required"
    },
    "ukHolidayRegion": {
      "enum": [
        "england-and-wales",
        "scotland",
        "northern-ireland"
      ],
      "type": "string",
      "description": "UK bank holiday region this postcode district is situated in. This region can be used with the related UK Bank Holiday's API to determine whether a given date is a bank/public holiday at a particular UK Postcode District."
    },
    "secondarySort": {
      "type": "string",
      "description": "Secondary sortation name to print on labels for this UK postcode district"
    }
  }
}