Look up charge statistics
Look up charge counts, amounts and payment rate for a period.
Check your company's charge and payment totals to track performance in an ERP, report or your own dashboard. Choose the period you need; the response includes counts, amounts and payment rate.
Amounts are gross and changes may take a few seconds to appear. See how to interpret each total in Charge statistics.
Query Params
The query period, based on the São Paulo calendar. today means today; last_7_days, last_15_days and last_30_days include today and previous days. Only these periods are accepted. start_at and end_at are response fields, not custom date filters.
Responses
Response Body
Statistics for the requested period. Amounts are gross, before fees or refunds, and do not represent the available balance. A query with no records returns zero counts and amounts.
Charge issuance and receipt statistics for the period. Canceled charges remain in the issued total; deleted records are excluded from the totals.
Period considered in the query.
Start of the period, included in the query, in Unix UTC seconds. Corresponds to midnight in São Paulo on the first day.
End of the period, excluded from the query, in Unix UTC seconds. Corresponds to midnight in São Paulo after the last day.
Charges created in the period, regardless of current state.
Number of charges in the set.
Sum of charge amounts, in Brazilian real cents, without deducting fees or refunds.
Charges created in the period, regardless of current state.
Number of charges in the set.
Sum of charge amounts, in Brazilian real cents, without deducting fees or refunds.
Charges created in the period, regardless of current state.
Number of charges in the set.
Sum of charge amounts, in Brazilian real cents, without deducting fees or refunds.
Percentage of issued charges that were paid: issued_paid.count divided by issued.count, multiplied by 100. Uses up to two decimal places and returns zero when there are no issued charges.
Last known update of the queried totals, in Unix UTC seconds, or null when this information is unavailable.
Response Body
The period was not accepted or the URL contains an invalid parameter. Check error.details to identify the field and reason.
Code and explanation of the error returned by the API.
Stable error code.
Error explanation in English. For validation errors, it summarizes the category; details identify the corrections. Use the codes to handle the response.
Invalid fields or references submitted in the body, with the field, code and explanation. Omitted for general errors and when there is no field correction to indicate.
Public name of the JSON field, query parameter, path parameter or header related to the error. Nested fields and lists retain their path and index. $ represents the root of the JSON body.
Reason for the field error, such as REQUIRED, INVALID_TAXID, UNKNOWN_FIELD, DUPLICATE_FIELD or INVALID_TYPE.
Explanation in English of the problem with this field or parameter and the available correction. Do not use the text to determine your integration flow.
For common errors, see HTTP response codes.