Skip to main content
POST
/
self-serve
/
credits
/
purchase
Create Stripe Checkout session for credit purchase
curl --request POST \
  --url https://api.platform.dakota.xyz/self-serve/credits/purchase \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "tier_price_cents": 10000
}
'
{
  "checkout_url": "https://checkout.stripe.com/c/pay/cs_test_a1b2c3"
}

Authorizations

x-api-key
string
header
required

Body

application/json
tier_price_cents
integer<int64>
required
Example:

10000

Response

Stripe Checkout session created

checkout_url
string<uri>
required
Example:

"https://checkout.stripe.com/c/pay/cs_test_123"