Skip to main content
POST
Create checkout session

Authorizations

Authorization
string
header
required

Headless API key (qk_...). Pro plan required.

Body

cartId
string
productId
string
quantity
number
Required range: 1 <= x <= 99
successUrl
string

Absolute https URL Stripe redirects to after successful payment. May include {CHECKOUT_SESSION_ID}. Defaults to the hosted Quickshops success page.

cancelUrl
string

Absolute https URL Stripe redirects to if the customer cancels. Defaults to the hosted Quickshops storefront.

Response

Response for status 200

data
object
required