Newer Version Available

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

Commerce Webstore Cart, Add to Wishlist

Copy the products from a cart to a wishlist.
Resource
1/commerce/webstores/webstoreId/carts/cartStateOrId/actions/add-cart-to-wishlist
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
50.0
Requires Chatter
No
HTTP methods
POST
Request body for POST
Root XML tag
<cartToWishlist>
JSON example
1{
2"wishlistId": "3orxx00000000A1"
3}
Properties
Name Type Description Required or Optional Available Version
wishlistId String ID of the wishlist to copy cart products to. Required 50.0
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 50.0
Response body for POST
Cart to Wishlist Result