Newer Version Available

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

Commerce Webstore Cart, Make Primary

Make a secondary cart a primary cart.
Resource
1/commerce/webstores/webstoreID/carts/cartStateOrId/actions/make-primary
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
53.0
HTTP methods
POST
Request parameters for POST
Parameter Name Type Description Required or Optional Available Version
effective​AccountId 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 53.0
Response body for POST
Commerce Action Result