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
Key | Datatype | Required | Description |
---|---|---|---|
productFields | null |
Request Body
{"productId"=>"{{productId}}", "quantity"=>"5", "type"=>"Product"}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string |