Deliverydate

Documentation

With this API you can determine the first date customers can receive their parcels. And it is also possible to determine the date you need to supply the parcels to PostNL in order to have the parcels delivered to your customers on a given shipping date.

Why use the Deliverydate API

• Use this service as a starting point in the Timeframe API to show customers the possible day and time of arrival.

• PostNL delivery days and dates are always up to date by using this service and takes into account ‘non-business’ days like Sundays and public holidays.

• This API contains two methods; it calculates the expected delivery date for shipment and can calculates the date to handover or send the shipments.

Get started

Request your (Sandbox) API Key and start using the API.
As soon as you have an API key, it is recommended to run our Postman collections. Here you can find code examples of the various services and products we offer. This makes implementing the APIs much easier.

Start using the API

Development

On this page you will find all the necessary information for implementing this API.
Please check the Guidelines for useful information.
Descriptions, formats and examples of the API attributes are also very useful to look at.

Methods

Call details

Versioning

GUIDELINES

Code examples

Request GetDeliveryDate: 

curl --location --request GET 'https://api-sandbox.postnl.nl/shipment/v2_2/calculate/
date/delivery?AllowSundaySorting=true&ShippingDuration=1&
ShippingDate=01-092022& Options=Daytime&CutOffTime=17:00:00&
OriginCountryCode=NL&CountryCode=NL&PostalCode=3532VC&HouseNumber=49&
City=Utrecht&Street=Bilderdijkstraat' \
--header 'apikey: ***' \

Response: 

{
    "DeliveryDate": "02-09-2022",
    "Options": {
        "string": "Daytime"
    }
}

Request GetSentDate:

curl --location --request GET 'https://api-sandbox.postnl.nl/shipment/v2_2/calculate/
date/shipping?ShippingDuration=1&DeliveryDate=02-09-2022&PostalCode=3532VC&
CountryCode=NL&City=Utrecht&Street=Bilderdijkstraat&HouseNumber=49' \
--header 'apikey: ***' \

Response:

{
    "SentDate": "01-09-2022"
}

Request GetDeliveryDate

GetDeliveryDate type

AttributeMandatoryFormatDescriptionExample
AllowSundaySortingMBoolean [true/false]Whether or not the requesting party allows for Sunday sorting (which leads to delivery on Monday).true
CityOString [0-35] City of the address  Hoofddorp
CountrycodeMString [2] The ISO2 country codes NL 
CutOffTimesMCutOffTime typeCut off times per day. At least one cut off time must be specified. 
HouseNrOString [0-35] The house number of the delivery address42
HouseNrExtOString [0-35] House number extension A
OptionsMString [7-9] The delivery options for which a delivery date
should be returned. Only one delivery option can
be specified. See Guidelines for possible values.
Daytime

OriginCountryCode

OString [2] Origin country of the shipment
Default NL
Possible values NL and BE.
NL
PostalCodeMString [4-10] Zipcode of the address2132WT
ShippingDateMDatetime [19] Date/time of preparing the shipment for sending. Format:  dd-mm-yyyy hh:mm:ss 29-06-2016 14:00:00
ShippingDurationMInteger [1] The duration it takes for the shipment to be delivered to PostNL in days. A value of 1 means that the parcel will be delivered to PostNL on the same day as the date specified in ShippingDate. A value of 2 means the parcel will arrive at PostNL a day later etc.1
StreetOString [0-95] The street name of the delivery address.Siriusdreef

CutOffTime type

AttributeMandatoryFormatDescriptionExample
Day MInteger [2] Number of the day of week. 01 = Monday, 02 =
Tuesday, …, 07 = Sunday. It is also possible to use value 00 to specify a generic cut off time for all days.
00
TimeMTime [8] The cut off time for this day of week.
Format: hh:mm:ss
14:00:00
AvailableOBoolean [true/false]Specifies whether you are available on the day entered in CutOffTime.Day. If you are closed on a Sunday for instance, this value is set to false for CutOffTime.Day = 07.true

Message type

AttributeMandatoryFormatDescriptionExample
MessageIDMString [1-12]ID of the message1
MessageTimeStampMDateTime [19]Date/time of sending the message. Format: dd-mm-yyyy hh:mm:ss29-06-2016 12:00:00

Response GetDeliveryDate

Attribute  DescriptionExample
Deliverydate  Response with the delivery date 30-06-2016 
Options  The delivery options for which a delivery date
is returned. Only one delivery option is specified. See Guidelines for possible values.
Daytime

Request GetSentDate

GetSentDate type

AttributeMandatoryFormatDescriptionExample
AllowSundaySortingMBoolean [true/false]Whether or not the requesting party allows for Sunday sorting (which leads to delivery on Monday).true
CityOString [0-35] City of the address  Hoofddorp
CountrycodeMString [2] The ISO2 country codes NL 
DeliveryDateMDate [10] Date of the expected delivery (to the final destination) of the shipment. Format: dd-mm-yyyy30-06-2016
HousNrOString [0-35] The house number of the delivery address42
HouseNrExtOString [0-35] House number extension A
OptionsMString [7-9] 

The delivery options for which a delivery date
should be returned. 

Note that for now all the options are processed as Daytime option (see Guidelines).

Daytime
PostalCodeMString [4-10] Zipcode of the address2132WT
ShippingDurationMInteger [1] The duration it takes for the shipment to be delivered to PostNL in days. A value of 1 means that the parcel will be delivered to PostNL on the same day as the date specified in ShippingDate. A value of 2 means the parcel will arrive at PostNL a day later etc.1
StreetOString [0-95] The street name of the delivery address.Siriusdreef

Message type

AttributeMandatoryFormatDescriptionExample
MessageIDMString [1-12] ID of the message.1
MessageTimeStampMDatetime [19] Date/time of sending the message. Format:  dd-mm-yyyy hh:mm:ss 29-06-2016 12:00:00

Response GetSentDate

Attribute  DescriptionExample
Sentdate   Response with the sent date. 

29-06-2016