Skip to main content
GET
/
credits
/
topup
/
status
Get top-up status
curl --request GET \
  --url https://api.example.com/credits/topup/status \
  --header 'x-api-key: <x-api-key>'

Documentation Index

Fetch the complete documentation index at: https://docs.xquik.com/llms.txt

Use this file to discover all available pages before exploring further.

Free - does not consume credits
Use this endpoint after creating a standard top-up checkout. Pass the checkout session ID for that top-up to check whether payment is complete.
curl "https://xquik.com/api/v1/credits/topup/status?session_id=checkout_session_id" \
  -H "x-api-key: xq_YOUR_KEY_HERE" | jq

Headers

x-api-key
string
required
Your API key. Session cookie authentication is also supported.

Query parameters

session_id
string
required
Checkout session ID for the top-up checkout.

Response

Payment succeeded. Credits have been added to the account.
status
string
Always "paid".
amount_dollars
integer
Dollar amount requested for the top-up.
credits
string
Credit amount granted as a Bigint string.
{
  "amount_dollars": 25,
  "credits": "166666",
  "status": "paid"
}
Last modified on May 5, 2026