Retrieve cart items of a specific product.
Operation ID: getProductCartItemA collection of cartitems for a given product in the cart.
curl "https://{yourinstance}.salesforce.com/services/data/v64.0/commerce/webstores/{webstoreId}/carts/{activeCartOrId}/products/{productId}"
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 product.
The ID of the web store.
The three-letter ISO 4217 currency code of the cart.
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.
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.
Success
The collection of items in a cart.
Product summary for a cart item.