Skip to main content
POST
Create Purchase Session

Body

application/json
full_code
string
required

The verification code, given as a query parameter in the purchase URL

Example:

"proj_abc123_def456ghi789"

price_id
string
required

The Stack auth price ID to purchase

Example:

"price_1234567890abcdef"

quantity
integer
default:1

The quantity to purchase

Example:

1

Response

200 - application/json

Successful response

client_secret
string

Stripe client secret used by the browser to confirm payment via Stripe Elements. Omitted when no payment step is required from the customer; in that case the purchase is being settled without a confirmation step and the caller should skip mounting Stripe Elements.

Example:

"1234567890abcdef_secret_xyz123"