Query Parameters
The unique identifier for the restaurant location
The unique identifier for the cart to process payment for
Headers
Bearer token for authenticated customers (optional for guest checkout)
Format:
Format:
Bearer {jwt_token}
Storefront API key for authentication
Response
The Stripe client secret needed to complete payment on the frontend
Total payment amount in cents (including tax and fees)
Three-letter ISO currency code (e.g., “usd”)
Additional metadata associated with the payment intent
Error Responses
The endpoint returns a Stripe client secret that should be used with Stripe’s client-side libraries (like Stripe.js) to complete the payment. When an authenticated customer makes the request (with Authorization header), the payment intent is automatically associated with their Stripe customer ID for future payment method saving. The amount includes all applicable taxes, fees, and discounts from the cart.
Ensure the cart is validated and contains available items before creating a payment intent. The payment intent amount is calculated based on the current cart state and cannot be modified after creation.
Authorizations
Headers
Bearer token for authenticated customers (optional for guest checkout). Format: Bearer {jwt_token}
Query Parameters
The unique identifier for the restaurant location
The unique identifier for the cart to process payment for
Response
Payment intent created successfully.
The response is of type object
.