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"
}Creates a Stripe Checkout session for a valid prepaid credit tier for the authenticated self-serve client.
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"
}Was this page helpful?