Skip to main content

Update Cart Line

PATCH 

/api/portal/cart/lines/:line

Set the quantity on an existing line (enforces MOQ + increment). Send the line's last-seen expected_updated_at for shared-cart concurrency: if another buyer changed it first, the write still applies (last-write-wins) but the returned cart's conflict flag is true so the client can refresh.

Buyer portal token

Called by a B2B portal buyer with the bearer token POST /api/portal/auth/login returns (or the buyer's feed key) — not with a staff Personal Access Token.

A line that is not in your cart returns 404.

Request​

Responses​

OK

Response Headers
    Content-Type