Ever Connect
v1.4.0中文·EN·한국어Sign inRequest access
Carts

Add / update cart items (idempotent)

PUT/api/v1/carts/{account}/linesToken requiredcart:writewrite2 pts

Path parameters

NameTypeDescription
account requiredstringCart owner account (the OMS site login, e.g. 100470admin).
max length 64

Request body (JSON)

FieldTypeDescription
lines requiredarray<object>Line array, each { sku, quantity }. At least one; quantity=0 removes the line when adjusting a reservation.
1–500
lines[].sku requiredstringSKU / barcode — the colour + size level, e.g. OB0021611. For the whole style use product_code instead.
max length 64
lines[].quantity requiredintegerQuantity, a positive integer, e.g. 2. In reservation adjustments / carts, 0 removes the line.
0–99999

Response

The envelope is decided by the HTTP status alone: 2xx with { data: … } (lists also carry page / page_size / has_more or total_count); 4xx / 5xx with { error: { code, message, hint, request_id, doc_url } }.

Send an Idempotency-Key header (any unique string, e.g. a UUID) on writes: a network retry never creates a second order. Orders are drafts by default until a person confirms them in the ERP.