Commerce
Catalog, inventory, orders, payments, shipping, promotions and the sales channels on top of them. One pipeline serves online, point of sale, marketplaces and bookings — an order placed at a till and an order placed by an AI shopping agent are the same object.
Scope: commerce:read · commerce:write
Money on the wire
Amounts are integers in minor units with an explicit currency — { "netTotalMinor": 129900, "currency": "EUR" } is €1,299.00. Never a float, never a formatted string. Do your arithmetic in minor units and format only at the edge.
Currency is a property of the catalog, not of the order: a catalog prices in one currency, and selling in another means a second catalog or a price list.
Products and catalog
/commerce/productsPaged list with search and filters.Try it/commerce/productsCreate a product.Try it/commerce/products/{id}One product with its variants.Try it/commerce/products/{id}Update a product.Try it/commerce/products/{id}Delete a product.Try it/commerce/products/{id}/duplicateCopy a product with its variants.Try it/commerce/products/{id}/variantsAdd a variant.Try it/commerce/products/{id}/variants/{variantId}Update one variant.Try it/commerce/products/{id}/variants/bulkUpdate many variants at once.Try it/commerce/products/{id}/variants/{variantId}Remove a variant.Try it/commerce/variants/{variantId}/unitsSet unit conversions.Try it/commerce/variants/{variantId}/bundleSet bundle composition.Try it/commerce/variants/searchFind a variant by text.Try it/commerce/barcode/{code}Find a variant by scan.Try it/commerce/categoriesThe category tree.Try it/commerce/categoriesCreate a category.Try it/commerce/categories/{id}Update a category.Try it/commerce/categories/{id}Delete a category.Try it/commerce/collectionsCollections.Try it/commerce/collectionsCreate a collection.Try it/commerce/collections/{id}Update a collection.Try it/commerce/collections/{id}Delete a collection.Try it/commerce/collections/{id}/itemsSet collection membership.Try it/commerce/price-listsPrice lists.Try it/commerce/price-listsCreate a price list.Try it/commerce/price-lists/{id}Update a price list.Try it/commerce/price-lists/{id}Delete a price list.Try it/commerce/price-lists/{id}/itemsSet the prices in it.Try it/commerce/customers/{contactId}/groupAssign a customer group — this drives price-list selection.Try it/commerce/products/importStart a catalog import.Try it/commerce/products/import/{importId}/runRun the mapped import.Try it/commerce/products/exportExport the catalog.Try itOrders
An order carries three orthogonal states, and integrations should read all three rather than collapsing them into one status:
| Axis | Values |
|---|---|
status | draft → open → completed | cancelled |
payment_status | unpaid · authorized · partially_paid · paid · partially_refunded · refunded |
fulfillment_status | unfulfilled · partially_fulfilled · fulfilled · delivered · partially_returned · returned |
completed is derived: paid and fulfilled or delivered. Cash on delivery — delivered before paid — is a legal path, not an anomaly.
/commerce/ordersPaged list. ?withSummary=1 adds a filter-scoped total.Try it/commerce/ordersCreate an order. status: "open" places it immediately. Idempotent on clientRef.Try it/commerce/orders/{id}The order with its lines and timeline.Try it/commerce/orders/{id}Edit the order. Sending lines replaces the whole line set and re-prices it.Try it/commerce/orders/{id}/confirmDraft → open, reserving stock.Try it/commerce/orders/{id}/convertTurn a quote into an order.Try it/commerce/orders/{id}/cancelCancel and restock. Refused once anything has shipped.Try itWhat you can still change, and when
Line edits are legal on a draft, and on an open order that is still unfulfilled and unpaid. Cancelling is refused once anything has shipped — returns come back through an RMA, because no stock release reverses a completed sale. Both refusals are 409 CONFLICT.
Filters worth knowing
fulfillmentStatus=to_fulfill— everything awaiting shipment (unfulfilled and partially fulfilled, excluding cancelled).paymentStatus=outstanding— money owed (unpaid and partially paid, excluding cancelled).- Quotes are excluded by default.
?kind=quotelists them;?kind=allreturns everything.
Carts and checkout
/commerce/cartsCreate a cart.Try it/commerce/carts/{id}Mutate it. Every change re-runs pricing server-side, so totals is always authoritative.Try it/commerce/carts/{id}/checkoutReserve stock and produce an open, unpaid order. Idempotent on client_ref.Try itFulfillments and returns
/commerce/orders/{id}/fulfillmentsFulfil some or all lines.Try it/commerce/orders/{id}/fulfillments/{fid}Update a fulfillment.Try it/commerce/orders/{id}/fulfillments/{fid}/cancelCancel a fulfillment.Try it/commerce/orders/{id}/returnsOpen an RMA.Try it/commerce/orders/{id}/returns/{rid}/approveApprove the return.Try it/commerce/orders/{id}/returns/{rid}/rejectReject it.Try it/commerce/orders/{id}/returns/{rid}/receiveMark the goods received.Try it/commerce/orders/{id}/returns/{rid}/resolveResolve it — refund, replace or credit.Try it/commerce/orders/{id}/shipmentsShipments against the order.Try it/commerce/orders/{id}/shipmentsCreate a shipment.Try itPayments
/commerce/orders/{id}/paymentsTake a payment. Money only lands on a placed order.Try it/commerce/orders/{id}/paymentsThe money ledger for the order.Try it/commerce/orders/{id}/refundsRefund.Try it/commerce/payment-gatewaysGateways configured for the organization.Try it/commerce/payment-methodsManual and offline payment methods.Try it/commerce/payment-methodsAdd one.Try it/commerce/payment-methods/{id}Update one.Try it/commerce/cod-settlementsCash-on-delivery reconciliation batches.Try it/commerce/cod-settlementsOpen a settlement batch.Try it/commerce/cod-settlements/{id}/matchMatch payments into the batch.Try it/commerce/cod-settlements/{id}/closeClose the batch.Try it/commerce/companies/{companyId}/commerce-profileB2B terms and assigned price list.Try it/commerce/companies/{companyId}/commerce-profileUpdate them.Try it/commerce/companies/{companyId}/house-accountHouse account balance.Try it/commerce/companies/{companyId}/house-account/settleSettle the account.Try it/commerce/orders/{id}/charge-accountCharge an order to the company's account.Try it/commerce/orders/{id}/fiscal-documentsInvoices and fiscal receipts.Try it/commerce/orders/{id}/fiscal-documentsIssue one.Try it/commerce/orders/{id}/fiscal-documents/{docId}/voidVoid one.Try itGateway callbacks arrive on /commerce/webhooks/pay/{provider}, signed by the provider — never call it yourself.
Inventory
/commerce/locationsStock locations.Try it/commerce/locationsCreate a location.Try it/commerce/locations/{id}Update a location.Try it/commerce/locations/{id}Delete a location.Try it/commerce/stockStock across locations.Try it/commerce/stock/adjustAdjust on hand, with a reason.Try it/commerce/stock/{variantId}Per-variant level.Try it/commerce/stock/{variantId}/movementsThe movement ledger.Try it/commerce/stock/{variantId}/lotsLot detail.Try it/commerce/variants/{variantId}/serialsSerial numbers on a variant.Try it/commerce/serials/{id}Update a serial.Try it/commerce/suppliersSuppliers.Try it/commerce/suppliersCreate a supplier.Try it/commerce/suppliers/{id}Update a supplier.Try it/commerce/purchase-ordersPurchase orders.Try it/commerce/purchase-ordersCreate one.Try it/commerce/purchase-orders/{id}/placePlace it with the supplier.Try it/commerce/purchase-orders/{id}/cancelCancel it.Try it/commerce/purchase-orders/{id}/receiveReceive goods against it.Try it/commerce/transfersInter-location transfers.Try it/commerce/transfersCreate a transfer.Try it/commerce/transfers/{id}/dispatchDispatch it.Try it/commerce/transfers/{id}/receiveReceive it.Try it/commerce/transfers/{id}/cancelCancel it.Try it/commerce/stocktakesStock counts.Try it/commerce/stocktakesStart a count.Try it/commerce/stocktakes/{id}/linesSet the counted lines.Try it/commerce/stocktakes/{id}/completeComplete the count and post the variance.Try it/commerce/stocktakes/{id}/cancelCancel the count.Try it/commerce/reports/expiringLots approaching expiry.Try it/commerce/reports/recallTrace a lot for a recall.Try it/commerce/reports/valuationInventory valuation.Try itPromotions, loyalty and gift cards
/commerce/promotionsPromotions.Try it/commerce/promotionsCreate a promotion.Try it/commerce/promotions/{id}Update it.Try it/commerce/promotions/{id}Delete it.Try it/commerce/promotions/{id}/activateTurn it on.Try it/commerce/promotions/{id}/pauseTurn it off.Try it/commerce/promotions/{id}/codesDiscount codes.Try it/commerce/promotions/{id}/codesMint codes.Try it/commerce/promotions/{id}/usageRedemption history.Try it/commerce/promotions/previewWhat a cart would get, before committing.Try it/commerce/loyalty/programThe loyalty programme.Try it/commerce/loyalty/programConfigure it.Try it/commerce/loyalty/accountsMember balances.Try it/commerce/loyalty/accounts/{contactId}One balance.Try it/commerce/loyalty/accounts/{contactId}/adjustManual points adjustment.Try it/commerce/gift-cardsGift cards.Try it/commerce/gift-cardsIssue one.Try it/commerce/gift-cards/{id}One gift card.Try it/commerce/gift-cards/lookupLook one up by code.Try it/commerce/gift-cards/redeemRedeem against an order.Try it/commerce/gift-cards/{id}/adjustAdjust the balance.Try it/commerce/store-credit/{contactId}Store-credit balance.Try itShipping
/commerce/shipping/quoteRate a shipment.Try it/commerce/shipping/zonesShipping zones.Try it/commerce/shipping/zonesCreate a zone.Try it/commerce/shipping/zones/{id}Update a zone.Try it/commerce/shipping/zones/{id}Delete a zone.Try it/commerce/shipping/zones/{zoneId}/ratesAdd a rate to the zone.Try it/commerce/shipping/rates/{id}Update a rate.Try it/commerce/shipping/rates/{id}Delete a rate.Try it/commerce/shipping/carrier-accountsCarrier credentials.Try it/commerce/shipping/carrier-accountsConnect a carrier.Try it/commerce/shipping/carrier-accounts/{id}Update one.Try itSales channels
/commerce/channels/connectorsAvailable marketplace connectors.Try it/commerce/channelsConnected channels.Try it/commerce/channelsConnect a channel.Try it/commerce/channels/{id}Update a channel.Try it/commerce/channels/{id}Disconnect it.Try it/commerce/channels/{id}/listingsListings and their mapping to your catalog.Try it/commerce/channels/{id}/listings/linkMap a listing to a variant.Try it/commerce/channels/{id}/importPull orders in.Try it/commerce/channels/{id}/syncPush the catalog out.Try it/commerce/channels/{id}/jobsSync jobs.Try it/commerce/channels/{id}/jobs/{jobId}/retryRetry a failed sync.Try it/commerce/channels/{id}/analyticsChannel performance.Try it/commerce/channels/agentic/enableExpose the store to AI shopping agents.Try it/commerce/channels/agentic/registerRegister with an agent network.Try it/commerce/channels/agentic/readinessWhat is still missing before agents can buy.Try itPoint of sale
/commerce/pos/… covers registers, shift open/close and cash movements, offline sale sync, staff and commissions. POS clients work offline and reconcile with POST /commerce/pos/sales/sync, so a sale is never lost to a dropped connection.
Bookings and stays
/commerce/services, /commerce/resources, /commerce/availability and /commerce/bookings cover appointment-style selling; /commerce/properties, /commerce/rooms, /commerce/rate-plans and /commerce/stays cover lodging with folios. Both place real orders, so payments, taxes and reporting are the same as anywhere else.
Settings, tax and reporting
/commerce/settingsStore settings.Try it/commerce/settingsReplace them.Try it/commerce/tax-ratesTax rates.Try it/commerce/tax-ratesCreate one.Try it/commerce/tax-rates/{id}Update one.Try it/commerce/tax-rates/{id}Delete one.Try it/commerce/functionsCustom pricing and validation functions.Try it/commerce/functionsCreate one.Try it/commerce/functions/{id}Update one.Try it/commerce/functions/{id}Delete one.Try it/commerce/functions/testRun function code against sample lines before saving it.Try it/commerce/reportsSaved reports.Try it/commerce/reports/{id}Run one.Try it/commerce/reviewsProduct reviews.Try it/commerce/reviewsCreate a review.Try it/commerce/reviews/{id}Moderate a review.Try itStorefront endpoints
/public/commerce/{websiteId}/… serves your own storefront — products, collections, carts, checkout, reviews and recommendations — to anonymous shoppers, and /public/agentic/{tenant}/… serves the signed feed and checkout that AI shopping agents use. Neither takes an API key; they are called by the storefront and by external agents.