Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
cURL
curl --request POST \ --url https://identity.contra.id/v1/billing/top-up
Create a Stripe checkout session to add credits.
curl -X POST https://identity.contra.id/v1/billing/top-up \ -H "x-api-key: $CONTRA_KEY" -H "Content-Type: application/json" \ -d '{ "amount_in_dollars": 200, "success_url": "https://yourapp.com/billing/success", "cancel_url": "https://yourapp.com/billing/cancel" }'
amount_in_dollars
success_url
cancel_url
{ "checkout_session_id": "cs_live_a1b2…", "checkout_session_url": "https://checkout.stripe.com/c/pay/cs_live_a1b2…" }
checkout_session_url