Skip to content
Guides
API reference
stablebilling:read

Get the current AI credit balance

GET/v1/billing/current/ai-credits/balance

Authorization

bearerAuth
AuthorizationBearer <token>

OAuth2 access token issued by Ecomiq Auth.

In: header

Response Body

application/json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

curl -X GET "https://example.com/v1/billing/current/ai-credits/balance"
{  "accountId": "string",  "monthlyCreditAllowance": 0,  "monthlyCreditsUsed": 0,  "purchasedCreditBalance": 0,  "reservedCredits": 0,  "availableCredits": 0,  "cycleStartsOn": "2019-08-24T14:15:22Z",  "cycleEndsOn": "2019-08-24T14:15:22Z"}