- Carts — managing shopping carts, items, coupon codes, checkout flow (addresses, delivery, payments, completion)
- Orders — retrieving completed orders
cartId as the first argument.
Carts
Create & Retrieve
Items
Discount Codes
Gift Cards
Fees and Duties
A cart may carry charges that are neither a product price nor tax: gift wrapping, a handling charge, a cash-on-delivery surcharge, or an import duty on a cross-border order. Each is a fee on the cart, and the storefront should show every one of them before the customer pays.kind is one of surcharge, handling, gift_wrap, cod, payment or duty. Fees are already part of total, so list them as their own lines between the subtotal and the total; never add them on top. A duty fee is a customs charge and is not taxed, which is why it is worth showing under its own label rather than folding it into a generic “fees” line.
Fees are written by the merchant or by an integration, never by the customer; there is no Store API endpoint to create one.
Checkout
Update Cart
Complete Checkout
orders. Use isOrderGroup to tell the two apart:
Fulfillments
Fulfillments are included in the cart response — there is no separate list endpoint.Store Credits
payment_methods: apply it here, then collect whatever amount_due is left with a payment method. It can’t be combined with a gift card on the same cart.
Totals
The cart and order responses break the amount the customer pays into these totals. Each has a raw string value and adisplay_ twin formatted in the cart’s currency.
item_total— the products, before anything elsedelivery_total— the selected delivery ratesdiscount_total— promotions and discount codes, as a negative amountfee_total— every fee on the cart, duties includedtax_total— tax on items, delivery and taxable feestotal— what the order costs: items, delivery, fees and tax, less discountsstore_credit_total/gift_card_total— store credit or gift card value applied against the totalamount_due— what is left to pay after store credit and gift cardscovered_by_store_credit— boolean, whether the order is fully covered by store creditgift_card— associated gift card (if applicable)

