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

Familiarize yourself with pickup schedules. For more information, see Pickup times and schedules.

About this task

The pickup schedule configuration is optional. You might define a pickup schedule when you want to organize pickups for specific times of the day. By scheduling the pickups you ensure that adequate inventory and capacity is available during these times.

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.

What to do next

Depending on your fulfillment requirements, you can define a pickup either with or without a pickup schedule. For more information, see Scenario: Applying pickup schedules.