manufacturing-v1

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, a nonblank customer_phone or ship_to.phone for delivery contact, 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. New payments require at least $32 before sales tax, including shipping and production surcharges (409 minimum_order_not_met). 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. A failed handoff returns 502 order_creation_pending while recovery continues; retry this cart, not a new payment. Timeouts never trigger automatic refunds. Retrying a paid cart returns the existing payment.

post/v1/carts/{cart_id}/pay

Request

  • Base URL
    https://api.rmfg.com
  • URL
    https://api.rmfg.com/v1/carts/{cart_id}/pay
  • Auth
    HTTP bearer

Path parameters

cart_idstring required

Request body

customer_emailstring nullable

Receipt and order emails; defaults to the account email.

customer_phonestring nullable

Delivery contact phone. Required for a new headless payment unless ship_to.phone is set on the cart; blank values do not count.

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