Argon

API Reference

Get credits left

Return the remaining credit balance for an API key without debiting a credit.

POSThttps://api.argonpay.app/graphqlgetCreditsLeft

Returns the remaining credit balance for your API key. Does not debit a credit.

Endpoint

POST https://api.argonpay.app/graphql

Query

GraphQL
query GetCreditsLeft($apiKey: String!) {
getCreditsLeft(apiKey: $apiKey) {
code
message
creditsLeft
apiKey {
key
wallet
creditsLeft
userId
createdAt
custodian {
id
name
}
}
}
}

Arguments

NameTypeRequiredDescription
apiKeyString!YesYour merchant API key

Example variables

JSON
{
"apiKey": "YOUR_API_KEY"
}

Success response (shape)

JSON
{
"data": {
"getCreditsLeft": {
"code": 200,
"message": "OK",
"creditsLeft": 480,
"apiKey": {
"creditsLeft": 480,
"wallet": "0x...",
"key": "..."
}
}
}
}