Skip to main content

Get Cart

GET 

/api/portal/cart

Return the active account's cart, re-priced and re-validated. Each line reports its current unit price, line total, availability, and any warnings; the cart reports subtotal and minimum-order-value progress.

Not yet available to API tokens

This endpoint currently requires session authentication; Personal Access Token scope support is in progress.

Each warning is an object: code (price_changed, backordered, insufficient_stock, out_of_stock), message (a ready-to-display sentence, which for the stock codes names the quantity actually available), and blocks_checkout (true for insufficient_stock and out_of_stock — those lines are rejected by Submit Checkout until the quantity is reduced).

subtotal is always the pre-discount goods total. When the account has an order-value discount ladder, order_discount reports the tier earned at that subtotal (percent/amount/min_subtotal, all null below the first tier) and the next tier up (next_percent/next_min_subtotal/next_remaining, all null at the top of the ladder). total is subtotal less amount — what the buyer pays before tax and shipping, and equal to subtotal when no ladder applies.

Request

Responses

OK

Response Headers
    Content-Type