{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/postnl/json-schema/postnl-location-response-single-schema.json",
  "title": "locationResponseSingle",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/postnl-locations-api-openapi.yml#/components/schemas/locationResponseSingle",
  "type": "object",
  "properties": {
    "GetLocationsResult": {
      "$ref": "#/$defs/getLocationsResultSingle"
    }
  },
  "$defs": {
    "getLocationsResultSingle": {
      "type": "object",
      "properties": {
        "ResponseLocation": {
          "$ref": "#/$defs/location"
        }
      }
    },
    "location": {
      "type": "object",
      "properties": {
        "Address": {
          "$ref": "#/$defs/locationsAddress"
        },
        "DeliveryOptions": {
          "type": "object",
          "description": "The options belonging to the pickup location. The delivery options RETA, UL, PU, DO, BW, RT and BWUL can be shown in the response. Please ignore these codes. These codes are internal PostNL codes.",
          "properties": {
            "string": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          }
        },
        "Distance": {
          "type": "integer",
          "format": "int32",
          "description": "The distance from the address/coordinates provided in the request to the pickup location returned. Distance in meters."
        },
        "Latitude": {
          "type": "number",
          "format": "float",
          "description": "The latitude of the pickup location"
        },
        "LocationCode": {
          "type": "integer",
          "format": "int32",
          "description": "The pickup location identifier"
        },
        "Longitude": {
          "type": "number",
          "format": "float",
          "description": "The longitude of the pickup location"
        },
        "Name": {
          "type": "string",
          "description": "The name of the pickup location"
        },
        "OpeningHours": {
          "$ref": "#/$defs/locationsOpeningHours"
        },
        "Sustainability": {
          "type": "object",
          "description": "Sustainability score; see [Sustainability codes](https://developer.postnl.nl/docs/#/http/reference-data/reference-codes/sustainability-codes) for possible values.",
          "properties": {
            "Code": {
              "type": "string",
              "description": "Sustainability score code",
              "enum": [
                "00",
                "01",
                "02",
                "03"
              ]
            },
            "Description": {
              "type": "string",
              "description": "Sustainability score code description"
            }
          }
        },
        "PartnerName": {
          "type": "string",
          "description": "The partner name belonging to the pickup location. Can be ignored, no longer used."
        },
        "RetailNetworkID": {
          "type": "string",
          "description": "The retail network belonging to the pickup location. Can be ignored, no longer used"
        }
      }
    },
    "locationsAddress": {
      "type": "object",
      "properties": {
        "City": {
          "type": "string",
          "description": "The city of the pickup location address"
        },
        "Countrycode": {
          "type": "string",
          "description": "The country of the pickup location address"
        },
        "HouseNr": {
          "type": "integer",
          "format": "int32",
          "description": "The house number of the pickup location address"
        },
        "HouseNrExt": {
          "type": "string",
          "description": "The house number extension of the pickup location address"
        },
        "Remark": {
          "type": "string",
          "description": "Additional information about the pickup location"
        },
        "Street": {
          "type": "string",
          "description": "The street of the pickup location address"
        },
        "Zipcode": {
          "type": "string",
          "description": "The zipcode of the pickup location address"
        }
      }
    },
    "locationsOpeningHours": {
      "type": "object",
      "description": "The standard opening times of the pickup location",
      "properties": {
        "Monday": {
          "type": "object",
          "properties": {
            "string": {
              "type": "string"
            }
          }
        },
        "Tuesday": {
          "type": "object",
          "properties": {
            "string": {
              "type": "string"
            }
          }
        },
        "Wednesday": {
          "type": "object",
          "properties": {
            "string": {
              "type": "string"
            }
          }
        },
        "Thursday": {
          "type": "object",
          "properties": {
            "string": {
              "type": "string"
            }
          }
        },
        "Friday": {
          "type": "object",
          "properties": {
            "string": {
              "type": "string"
            }
          }
        },
        "Saturday": {
          "type": "object",
          "properties": {
            "string": {
              "type": "string"
            }
          }
        },
        "Sunday": {
          "type": "object",
          "properties": {
            "string": {
              "type": "string"
            }
          }
        }
      }
    }
  }
}