Skip to content
Quotas

Get Account Quotasexperimental

GET/api/accounts/{accountId}/quotas

Retrieve quota limits and usages for the current intervals. Ie, all quotas for the current day, current month and current year as well as any quotas that are not associated with a temporal period.

Errors

If a quota limit is exceeded by an action that enforces quota limits, an error response will be returned. The quotas field will contain all quota limits that are exceeded with the usage set to the amount that the quota would have been updated to if the action was completed.

Terminal window
{
"message": "QUOTA_EXCEEDED",
"quotas": [
{
"limit": "9999",
"interval": "2021",
"period": "yearly",
"usage": "10000",
"type": "topup",
"assetType": "centrapay.nzd.main"
}
]
}

Path parameters

  • accountIdrequired string

Responses

Request
curl -X GET https://service.centrapay.com/api/accounts/Jaim1Cu1Q55uooxSens6yk/quotas \
-H 'x-api-key: <TOKEN>'