checkout_url, where they choose any payment method your store accepts.
Orders created through the API follow the same rules as your storefront: prices come from your catalogue, stock is reserved, coupons and product rules apply, and fraud checks run.
Create an order
Response (201)
checkout_url. Unpaid orders expire after 3 hours.
Fields you can send
Fields you can send
Errors when creating
Errors when creating
Physical products
For products that ship, add the address. Get the options first withPOST /shipping/quote, or leave out shipping_rate_id to use the cheapest rate.
total_cents and shown as shipping_cents. Without an address, the customer enters it on the checkout page before paying. After payment, ship the order with POST /orders/{invoiceId}/shipments.
Order statuses
Listen to the
order.completed webhook instead of polling. See Webhooks.