Add item to the cart

POST {{orgUrl}}/services/data/v{{apiVersion}}/commerce/webstores/{{webstoreId}}/carts/:cartId/cart-items

Adds a quantity of 5 items (identified by the variable productId) to the cart (identified by the variable _cartId).

Request Params

KeyDatatypeRequiredDescription
productFieldsnull

Request Body

{"productId"=>"{{productId}}", "quantity"=>"5", "type"=>"Product"}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring