API Reference
Get credits left
Return the remaining credit balance for an API key without debiting a credit.
Returns the remaining credit balance for your API key. Does not debit a credit.
Endpoint
POST https://api.argonpay.app/graphql
Query
query GetCreditsLeft($apiKey: String!) { getCreditsLeft(apiKey: $apiKey) { code message creditsLeft apiKey { key wallet creditsLeft userId createdAt custodian { id name } } }}Arguments
| Name | Type | Required | Description |
|---|---|---|---|
apiKey | String! | Yes | Your merchant API key |
Example variables
{ "apiKey": "YOUR_API_KEY"}Success response (shape)
{ "data": { "getCreditsLeft": { "code": 200, "message": "OK", "creditsLeft": 480, "apiKey": { "creditsLeft": 480, "wallet": "0x...", "key": "..." } } }}