v1

latestOpenAPI 3.0.3MIT2026-07-17291830.7 KB
cart

Replace/add an item in shopping cart

Adds an item to the shopping cart if it doesn't already exist, or replace with given item if it does.

put/api/v1/carts/{customerId}/items

Path parameters

customerIdstring required

Customer Identifier

Request body

idstring

Item Identifier

quantityinteger

The item quantity

{"stackTrail":"components:schemas:Item:properties:unitPrice","oasType":"schema","type":"unknown","description":"The item's price per unit"}

Response

Item added successfully

idstring

Item Identifier

quantityinteger

The item quantity

{"stackTrail":"components:schemas:Item:properties:unitPrice","oasType":"schema","type":"unknown","description":"The item's price per unit"}