Skip to main content
POST
/
credits
/
quick-topup
Quick top-up credits
curl --request POST \
  --url https://api.example.com/credits/quick-topup \
  --header 'Content-Type: <content-type>' \
  --header 'x-api-key: <x-api-key>' \
  --data '{
  "dollars": 123
}'
Free — does not consume credits
curl -X POST https://xquik.com/api/v1/credits/quick-topup \
  -H "x-api-key: xq_YOUR_KEY_HERE" \
  -H "Content-Type: application/json" \
  -d '{"dollars": 25}' | jq

Headers

x-api-key
string
required
Your API key. Session cookie authentication is also supported.
Content-Type
string
required
Must be application/json.

Body

dollars
number
required
Amount in US dollars to charge. Minimum $10.

Response

Payment succeeded immediately. Credits added to your balance.
outcome
string
Always "charged".
balance
number
Updated credit balance after top-up.
credits
number
Number of credits added.
{
  "outcome": "charged",
  "balance": 1450,
  "credits": 1000
}