Newer Version Available

This content describes an older version of this product. View Latest

Commerce Webstore Cart Inventory Reservations (Developer Preview)

Create, update, or delete an inventory reservation from the cart.

This feature is available as a developer preview. It isn’t generally available unless or until Salesforce announces its general availability in documentation or in press releases or public statements. All commands, parameters, and other features are subject to change or deprecation at any time, with or without notice.

Note

Resource
1/commerce/webstores/webstoreId/carts/cartStateOrId/inventory-reservations
Values for cartStateOrId are:
  • cartId—ID of the cart.
  • active—Active cart.
  • current—Cart that isn’t closed or pending deletion. Available in version 50.0 and later.
Available version
58.0
Requires Chatter
No
HTTP methods
DELETE, PUT

Use PUT to create and update a reservation.

Request parameters for DELETE
Parameter Name Type Description Required or Optional Available Version
effectiveAccountId String ID of the buyer account or guest buyer profile for which the request is made. If unspecified, the default value is determined from context. Optional 58.0
Response body for DELETE
204 Successful Delete
Request body for PUT
Root XML tag
<cartInventoryReservationInput>
JSON example
1{
2   "durationInSeconds":100
3}
Properties
Name Type Description Required or Optional Available Version
durationIn​Seconds Integer Reservation duration in seconds. Required 58.0
Request parameters for PUT
Parameter Name Type Description Required or Optional Available Version
effectiveAccountId String ID of the buyer account or guest buyer profile for which the request is made. If unspecified, the default value is determined from context. Optional 58.0
Response body for PUT
Cart Inventory Reservation