Credits Usage API

The Credits Usage API allows you to obtain real-time information on used credits, applicable to both one-off and subscription credits. This endpoint is restricted to organization admins for an organization and cannot be accessed by organization members.

Documentation

API Endpoint

GET

https://api.apifreaks.com/v1.0/credits/usage/info

Test
LANGUAGE
Python
PHP
Java
Node
Ruby
$ pip install requests

API Response

FieldTypeRequirementDescription
apiKeyStringMandatory
API key provided in the input whose usage is required
userStatusStringMandatory
status of user. Possible values are: (1) active (2) inactive (3) deleted
subActiveBooleanOptional
Whether subscriptions credits are consumable or not
subStatusStringOptional
Status of the subscription credits. Possible values are: (1) active (2) overdue (3) cancelled (4) deactivated
subAllowedCreditsIntegerOptional
Allowed credits limit of subscription credits
subUsedCreditsIntegerOptional
Used credits from subscription credits
subSurchargeStatusStringOptional
Status of Subscription Surcharge. Possible values are: (1) none (2) payment_added (3) payment_cleared
subSurchargeAllowedCreditsIntegerOptional
Surcharge allowed credits for susbcription
subSurchargeUsedCreditsIntegerOptional
Surcharge used credits from for susbcription
subSurchargeAllowedBooleanOptional
Whether surcharge credits are allowed for subscription or not
oneOffCreditsActiveBooleanMandatory
Whether one-off credits are consumable or not
oneOffAllowedCreditsIntegerMandatory
Allowed credits limit of one-off credits
oneOffUsedCreditsIntegerMandatory
Used credits from one-off credits

HTTP Error Codes

HTTP StatusReasons
403
You need to be organization admin to access this endpoint.