Create (or fetch the existing) Stripe PaymentIntent for a checkout.
Auth: same dual shape as GET /checkout/{id} —
X-Site-ID + X-Stella-Token (merchant’s storefront), orAuthorization: Bearer chk_… (Stella-hosted checkout-web).Idempotent: if the checkout already has payment_intent_id, the
Stripe API is asked for that same PI and its client_secret is
returned to the buyer. Re-charging is up to Stripe’s PI lifecycle
(we never create a second PI for the same checkout).
The PaymentIntent’s metadata stamps checkout_id and
merchant_id so the webhook handler can resolve back to the
Stella checkout without trusting client-side state.
Documentation Index
Fetch the complete documentation index at: https://docs.stella-commerce.com/llms.txt
Use this file to discover all available pages before exploring further.
Successful Response
Stripe PaymentIntent client payload.
Returned from POST /api/storefront/checkout/{id}/payment-intent
so the buyer's browser can mount the Stripe Payment Element with
client_secret. amount is in the smallest currency unit (cents
for USD, paisa for NPR) — same as Stripe's wire format.