Overview
Checkout is the bridge between a cart (items + shipping) and payment. The Commerce checkout flow is intentionally stepwise so you can validate totals before creating an invoice.Authentication
Requires a commerce-scoped API key:x-commerce-api-key: ck_....
Request
Endpoints:POST /api/commerce/merchant/checkout/estimatePOST /api/commerce/merchant/checkout/addressPOST /api/commerce/merchant/checkout/invoice
Playground (interactive reference)
Example (create invoice):Response
Representative invoice creation response:- Commerce invoices expire after ~30 minutes (
expiresAtin the response). - Create a new invoice for every checkout attempt or retry; do not reuse expired or failed invoices.
- Max commerce order value is $2500; requests above this return a checkout error.
- Offers must be deliverable within 10 days to be eligible for checkout.
Errors
400invalid checkout payload401missing/invalid commerce auth
Examples
Recommended flow:- Estimate (
/estimate) → 2) Address (/address) → 3) Invoice (/invoice)

