Newer Version Available

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

Commerce Webstore Cart, Clone

Clones an existing cart to create a secondary, read-only cart to support Pay Now functionality. Sets the guest cart status to PendingDelete in a B2B store or Closed in a D2C store.
Resource
1/commerce/webstores/webstoreId/carts/cartStateOrId/actions/clone
Values for cartStateOrId are:
  • cartId—ID of the cart.
  • active—Active cart. This value should only be used for authenticated users.
  • current—Cart that isn’t closed or pending deletion. Available in version 50.0 and later.
Available version
60.0
HTTP methods
POST
Request parameters for POST
Parameter Name Type Description Required or Optional Available Version
targetEffectiveAccountId String Effective Account ID associated with the cloned cart. Required 60.0
targetType String Type of the cloned cart. Value is PayNowReadOnly. Required 60.0
Response body for POST
Cart Summary