Skip to main content

errand_list_schedule_slots

Returns the list of schedulable delivery times, for the user to pick “deliver by when”. The selected value is passed back into scheduled_at on errand_quote. Slots are 15 minutes apart, starting no earlier than 45 minutes from now and running through 23:45 tomorrow (Beijing time). When the user wants delivery “as soon as possible”, omit scheduled_at entirely — do not pass 0.
Only a value from this list is accepted — a timestamp you compute yourself from a minute count is rejected (SCHEDULED_AT_NOT_ON_GRID). The list is generated at call time, so refetch it if some time has passed. This applies even more when reusing a past order: don’t reuse its value, that time has very likely already passed.

Parameters

This tool takes no parameters — call it directly to get the currently available time slots.

Returns

Example response (excerpt; each day has up to 96 slots, all 15 minutes apart):

Error codes

See Error Handling for the full list.

Example call