manufacturing-v1

Pay Cart

Charge the account's saved card for this cart and create the order, with no person in the loop.

Preconditions: the cart is open, its quote is ready, it has a ship_to and a shipping_option_id, and the account has a card on file (GET /v1/account, saved on the website's account page) or the request names a Stripe PaymentMethod. The charge is the cart's totals.amount_total_cents. On success the cart becomes checked_out and the response carries order_id. An uncertain result returns 202 with status processing; a durable worker retries order creation with the same payment. Timeouts never trigger automatic refunds. Retrying a paid cart returns the existing payment.

post/v1/carts/{cart_id}/pay

Path parameters

cart_idstring required

Request body

customer_emailstring nullable

Receipt and order emails; defaults to the account email.

customer_phonestring nullable

Response

Already paid; the existing payment.

object'cart_payment'
cart_idstring required
status'paid' | 'processing' | 'failed' | 'refunded' required
payment_intent_idstring nullable
amount_total_centsinteger required
order_idstring nullable
order_urlstring nullable

/v1/orders/{order_id} once the order exists.

paid_atstring date-time nullable

Changes

Changed in 1 of the 11 revisions of this API.1