Endpoints
Notes
line_itemsis required when creating a session.mode: paymentaccepts either catalog-backed items withprice_idor inline items withname,amount, andcurrency.mode: subscriptionrequires recurring catalog prices. Recurring items must share one currency and billing cadence.- Hosted checkout confirms payment or activates the subscription for you. Do not call the merchant confirm endpoint from a hosted integration.
POST /v1/checkout/sessions/{id}/confirmtakes no JSON body and does not support subscription-mode sessions.- Quantity and optional-item mutations only apply while a session is open and before the payment intent is attached.
- Hosted checkout URLs are buyer-facing capability URLs. Merchant API keys should stay on your server.
- Treat redirects as user-experience signals. Verify server-side state before fulfillment.

