Get a Stripe checkout URL to purchase credits with a minimum of $10
cURL
curl --request POST \ --url https://api.example.com/credits/topup \ --header 'Content-Type: <content-type>' \ --header 'x-api-key: <x-api-key>' \ --data '{ "dollars": 123 }'
curl -X POST https://xquik.com/api/v1/credits/topup \ -H "x-api-key: xq_YOUR_KEY_HERE" \ -H "Content-Type: application/json" \ -d '{"dollars": 10}' | jq
application/json
{ "url": "https://checkout.stripe.com/c/pay/cs_live_..." }
{ "error": "Minimum top-up is $10" }
{ "error": "unauthenticated" }
Was this page helpful?