Configuring pickup times and schedules by using APIs
You can define pickup schedules to specify when pickups can occur. Pickup schedules allow you to restrict order pickups to specific time windows throughout the day and over a certain date range. The pickup schedules allow you to provide more accurate promising dates to customers as you plan the pickup times in advance.
Before you begin
About this task
Procedure
To define a pickup schedule use the Define node daily pick schedule API.
For example,
you can create a pickup schedule to specify the date range, days, and times when pickups can occur:
[
{
"validFromDateIncl": "2000-01-01",
"validToDateIncl": "2999-01-01",
"schedule": {
"monday": [{ "fromTimeIncl": "08:00:00", "toTimeExcl": "17:00:00" }],
"tuesday": [{ "fromTimeIncl": "08:00:00", "toTimeExcl": "17:00:00" }],
"wednesday": [{ "fromTimeIncl": "08:00:00", "toTimeExcl": "17:00:00" }],
"thursday": [{ "fromTimeIncl": "08:00:00", "toTimeExcl": "17:00:00" }],
"friday": [{ "fromTimeIncl": "08:00:00", "toTimeExcl": "17:00:00" }],
"saturday": [],
"sunday": []
}
}
]
In this example, the pickup schedule specifies that pickups can occur from 08:00 hours
to 17:00 hours exclusive from Monday to Friday only, starting on January 01 2000 and running until
January 01 2999.