Follow the question structure recommended by Dev Bot before submitting your integration questions.
costLimit) configured for the scope of the key used in the request.π§ Notes The returned usage corresponds to the current month. API Pro usage is calculated considering the applicable costs for daytime and nighttime hits. The financial limit is independent between different scopes. Usage generated by keys registered under General Admin is accounted for within the General Admin scope, while usage generated by a branch key is accounted for within the respective branch scope. The costLimitfield represents the financial limit configured for the queried scope.The financial limit is optional. When configured, it is used to control the maximum API Pro usage cost for the period. When the accumulated cost reaches the configured limit, the keys linked to the respective scope are blocked from generating additional API Pro usage. After the limit is reached and the key is blocked, this endpoint can no longer be queried using the blocked key. Requests will return HTTP 401with theAPI_COST_LIMIT_REACHEDcode.Usage and blocking are reset at the beginning of a new month, while the configured limit remains in effect for the new period.
| Field | Type | Description |
|---|---|---|
period | object | Object containing the period considered for usage calculation. See below. |
currency | string | Currency used for usage costs and the financial limit. |
usage | object | Object containing the number of hits and accumulated costs for the period. See below. |
costLimit | number | API Pro financial usage limit configured for the scope of the key used. |
period Object Structure| Field | Type | Description |
|---|---|---|
start | date-time | Start date and time of the period considered for usage calculation in the current month. |
end | date-time | End date and time of the period considered for usage calculation. |
usage Object Structure| Field | Type | Description |
|---|---|---|
daytime | object | Accumulated usage during the daytime period. |
nighttime | object | Accumulated usage during the nighttime period. |
total | object | Total accumulated usage considering both daytime and nighttime periods. |
daytime, nighttime, and total Object Structure| Field | Type | Description |
|---|---|---|
hits | int32 | Number of requests (hits) counted for the respective period. In the total object, it represents the sum of daytime and nighttime hits. |
cost | number | Accumulated cost of requests for the respective period. In the total object, it represents the total accumulated cost. |
| Market | currency |
|---|---|
| Brazil | BRL |
| Applicable LATAM markets | USD |
costLimit, the keys linked to the respective scope are blocked.{
"error": {
"code": "API_COST_LIMIT_REACHED",
"message": "The configured API usage cost limit has been reached."
}
}NOTE. While the key remains active, this endpoint can be used to monitor usage and compare usage.total.costagainst the configuredcostLimit.