Retrieve the items in a cart, sorted by product ID.
Operation ID: getProductCartItemCollectionA collection of items grouped by product in the cart.
curl "https://{yourinstance}.salesforce.com/services/data/v64.0/commerce/webstores/{webstoreId}/carts/{activeCartOrId}/products"
The valid value is—cartId (ID of the cart), active (this value is only to be used for authenticated users), or current (cart that isn’t closed or pending deletion).
The ID of the web store.
Specifies the number of items per page. Valid values are from 1 through 100. If you don’t specify a value, the default size is 25.
The three-letter ISO 4217 currency code of the cart.
The comma-separated list of up to 15 product fields. Results include fields that you have access to. Some product fields (such as productName and sku) are returned even when not included in the productFields parameter.
The ID of the buyer account or guest buyer profile for which the request is made. If unspecified, the default value is determined from context.
Specifies the requested page number.
Success
The number of cart items returned on the current page.
The current page of cart items. The value matches the requested page number, unless the requested page number exceeds the total number of pages. In this scenario, the current page is the highest available page number.
Indicates whether at least one of the results contains an error (True) or not (False).
The collection of products in the cart.
The total number of unique products in the cart.
The total number of pages for the given page size.