production
development
https://pp.api.royalmail.net
Preprod Custom Endpoint
Paths
/
get /
Locates the delivery office for a given UK Postcode.
Enter a postcode in the URL and the response JSON will contain the name, the address and the business hours of the Delivery Office dedicated to this postcode.
To use this operation you must use one of the following sets of security requirements.
Client ID
X-IBM-Client-Id
(apiKey located in header)
Client Secret
X-IBM-Client-Secret
(apiKey located in header)
Client ID
X-IBM-Client-Id
(apiKey located in header)
Bearer
Bearer
(oauth2 password)
Scopes
guid
postcode
Required in query
string
Enter UK Postcode to locate a delivery office for.
{
"default": "{postcode}"
}
Accept
Optional in header
string
application/json
200
Successful query
{
"schema": {
"type": "object",
"properties": {
"header": {
"type": "object",
"properties": {
"statusCode": {
"type": "string"
},
"responseDate": {
"type": "string"
},
"apiVersion": {
"type": "string"
}
}
},
"searchedPostcode": {
"type": "string"
},
"deliveryOffice": {
"type": "object",
"properties": {
"id": {
"type": "integer"
},
"officeDetails": {
"type": "object",
"properties": {
"name": {
"type": "string"
{
"schema": {
"type": "object",
"properties": {
"header": {
"type": "object",
"properties": {
"statusCode": {
"type": "string"
},
"responseDate": {
"type": "string"
},
"apiVersion": {
"type": "string"
}
}
},
"searchedPostcode": {
"type": "string"
},
"deliveryOffice": {
"type": "object",
"properties": {
"id": {
"type": "integer"
},
"officeDetails": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"address1": {
"type": "string"
},
"address2": {
"type": "string"
},
"address3": {
"type": "string"
},
"address4": {
"type": "string"
},
"address5": {
"type": "string"
},
"address6": {
"type": "string"
},
"address7": {
"type": "string"
},
"address8": {
"type": "string"
},
"postcode": {
"type": "string"
}
}
},
"businessDays": {
"type": "array",
"items": {
"type": "object",
"properties": {
"businessDay": {
"type": "string"
},
"openingTimes": {
"type": "array",
"items": {
"type": "object",
"properties": {
"opensAt": {
"type": "string"
},
"closesAt": {
"type": "string"
}
}
}
}
}
}
},
"locationDetails": {
"type": "object",
"properties": {
"latitude": {
"type": "number"
},
"longitude": {
"type": "number"
},
"distance": {
"type": "integer"
}
}
},
"facilities": {
"type": "array",
"items": {
"type": "string"
}
}
}
}
}
},
"examples": {
"application\/json": {
"header": {
"statusCode": "200",
"responseDate": "2015-09-29 10:46:45",
"apiVersion": "1"
},
"searchedPostcode": "M11AD",
"deliveryOffice": {
"id": 7690,
"officeDetails": {
"name": "Manchester CDO Enquiry Office",
"address1": "Royal Mail",
"address2": "Manchester CDO Enquiry Office",
"address3": "Manchester Mail Centre",
"address4": "77 Oldham Road",
"address5": "MANCHESTER",
"address6": "",
"address7": "",
"address8": "",
"postcode": "M4 5AA"
},
"businessDays": [
{
"businessDay": "Sunday",
"openingTimes": [
{
"opensAt": "12:00",
"closesAt": "16:00"
}
]
},
{
"businessDay": "Monday",
"openingTimes": [
{
"opensAt": "06:00",
"closesAt": "17:30"
}
]
},
{
"businessDay": "Tuesday",
"openingTimes": [
{
"opensAt": "06:00",
"closesAt": "17:30"
}
]
},
{
"businessDay": "Wednesday",
"openingTimes": [
{
"opensAt": "06:00",
"closesAt": "20:00"
}
]
},
{
"businessDay": "Thursday",
"openingTimes": [
{
"opensAt": "06:00",
"closesAt": "17:30"
}
]
},
{
"businessDay": "Friday",
"openingTimes": [
{
"opensAt": "06:00",
"closesAt": "17:30"
}
]
},
{
"businessDay": "Saturday",
"openingTimes": [
{
"opensAt": "06:00",
"closesAt": "14:00"
}
]
}
],
"locationDetails": {
"latitude": 53.4874,
"longitude": -2.2272,
"distance": 1255
},
"facilities": [
"carParking",
"disabledAccess"
]
}
}
}
}
x
400
Bad request, invalid or incorrectly formatted postcode.
{
"headers": [],
"examples": {
"application\/json": {
"httpCode": "400",
"httpMessage": "Bad Request",
"moreInformation": "Invalid UK Postcode"
}
},
"schema": {
"type": "object",
"properties": {
"httpCode": {
"type": "string"
},
"httpMessage": {
"type": "string"
},
"moreInformation": {
"type": "string"
}
}
}
}
404
Invalid Postcode
{
"headers": [],
"examples": {
"application\/json": {
"httpCode": "404",
"httpMessage": "Not Found",
"moreInformation": "eBDofApi001 - No Delivery Office Found for postcode"
}
},
"schema": {
"type": "object",
"properties": {
"httpCode": {
"type": "string"
},
"httpMessage": {
"type": "string"
},
"moreInformation": {
"type": "string"
}
}
}
}
Example Request
Try this operation
No response. This is a mixed content call. It is not possible to test HTTP APIs from an HTTPS secured Portal site and vice versa.
No response. This is a cross-origin call. Make sure the server accepts requests from this portal. Or if using self-signed SSL certificates then paste the URL above into your browser to accept the certificate before trying again (On Internet Explorer it must be the same browser tab.).
Definitions
[]