Skip to main content
POST
/
api
/
billing
/
checkout
Create Stripe checkout session
curl --request POST \
  --url https://macrobymark.com/api/billing/checkout \
  --header 'Content-Type: application/json' \
  --cookie next-auth.session-token= \
  --data '
{
  "priceId": "<string>"
}
'
{
  "url": "<string>"
}

Documentation Index

Fetch the complete documentation index at: https://docs.macrobymark.com/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

next-auth.session-token
string
cookie
required

NextAuth.js session cookie

Body

application/json
priceId
string
required

Response

200 - application/json

Checkout URL

url
string<uri>