POST
/
v1
/
book_delivery_window_slot

Body

application/json

Expected payload for the book delivery window slot endpoint.

orderId
string
required

The order to which the delivery window slot will be committed to.

slotId
string
required

The id of the delivery window slot

requestedCapacity
number | null

The requested capacity for the delivery window slot.

Response

200 - application/json

Document object returned by the API.

id
string
required

The id of the delivery window slot

deliveryWindowId
string
required

The id of the delivery window object

storeLocationId
string
required

The id of the store location

startTime
string
required

The start time of the delivery window slot

endTime
string
required

The end time of the delivery window slot

capacity
number | null

The capacity for the delivery window slot

priceCents
integer | null

The price for the delivery window slot

score
number | null

The score for the delivery window slot

expiresAt
string | null

The time at which the delivery window slot expires