{{title}}

In this tutorial, we’ll learn how to add functionality to the shopping cart checkout process that allows customers to choose a specific parcel delivery date and time window using the Delivery Choice API.


The following steps will be completed:

  1. Retrieve a list of available delivery dates based on the required postage service and the origin and destination postcodes of the item to be sent
  2. Retrieve a list of available timed delivery windows for a particular day of the week

Authentication

In this tutorial, we’ll learn how to add functionality to the shopping cart checkout process that allows customers to choose a specific parcel delivery date and time window using the Delivery Choice API.


Step 1: Retrieve a list of available delivery dates

In this step, we’ll call the the delivery dates service to retrieve a list of available dates for a parcel delivery based on the input parameters provided.

Input parameters required

The code above generates the following HTTP request:

The response contains

Step 2: Retrieve a list of available timed delivery windows

In this step, we’ll call the the delivery timeslots service to retrieve a list of available delivery time windows for a particular day of the week.

Input parameters required

The code above generates the following HTTP request:

The response contains