Reservations temporarily reserve available quantity for customers when they add a Line Item to a Cart.
For a comprehensive overview of reservations, including how to configure and use them, see the Reservations section in the Inventory overview.
Representations
Reservation
A Reservation represents a quantity of inventory that is reserved.
idString | Unique identifier of the Reservation. |
versionInt | Current version of the Reservation. |
expiresAt | Date and time (UTC) the Reservation will no longer be valid. It can take a few minutes after expiry
for the state to be updated to Expired and the stock to be released. |
inventoryEntry | Reference to the related InventoryEntry used to manage the inventory. |
quantityInt | The quantity of inventory that is reserved. |
owner | Reference to the owner of the Reservation. |
lineItemIdString | Unique identifier of the LineItem this Reservation is associated with. |
state | Current state of the Reservation. |
createdAt | Date and time (UTC) the Reservation was initially created. |
createdBy | IDs and references that created the Reservation. |
lastModifiedAt | Date and time (UTC) the Reservation was last updated. |
lastModifiedBy | IDs and references that last modified the Reservation. |
Reservation State
Status of the Reservation.
Created- The
availableQuantityof the item has been reduced by the reserved quantity, but thequantityOnStockremains unchanged. Updated- The reservation has been updated. If the quantity of an item changed, the
availableQuantityis increased or decreased accordingly, while thequantityOnStockremains unchanged. Released- The reserved quantity of the item has been released. The
availableQuantityis increased accordingly. Expired- The reservation has expired and the
availableQuantityis increased accordingly. Reservation expirations are eventually consistent, meaning it can take a few minutes for the status to update after expiration. Committed- The quantity of the item has been allocated for fulfillment. The
quantityOnStockhas been reduced by the reserved quantity.
ReservationReference
Reference to a Reservation.
idString | Unique identifier of the referenced Reservation. |
typeId | reservationType of referenced resource. |
obj | Contains the representation of the expanded Reservation.
Only present in responses to requests with Reference Expansion for Reservations. |