Check refund eligibility
Check whether a charge can be refunded and the maximum amount you can request now.
Check whether a charge can receive a refund request, its remaining amount, the maximum you can request now and the amounts of requests still pending.
The response describes conditions at the time of the query. It does not set aside an amount for a refund or guarantee acceptance of a later request.
See Check the refundable amount to understand restrictions and when to request a refund.
Path Params
Identifier of the charge that received the Pix payment.
Up to 100 characters
Responses
Response Body
Current conditions for requesting a refund. max_refund_amount_cents shows the limit available now, without reserving money. Eligible true does not guarantee a later request: the amount and conditions will be checked on submission.
Current availability for requesting a Pix refund.
Public ID of the queried charge.
Indicates whether a refund can be requested for the charge under the current conditions.
Reason preventing the refund, or null when eligible is true. When the status prevents the refund, the message reports the charge's current status and the accepted statuses.
Code of the condition preventing the refund. Use this value to determine how your integration handles it.
Explanation in English for diagnosis. The text may improve without changing the code; do not use it to control the integration.
Remaining charge amount that can be refunded, in Brazilian real cents. The maximum available for a request now is in max_refund_amount_cents.
Amount of requests still awaiting a result, in Brazilian real cents.
Maximum that can be requested now, in Brazilian real cents, considering the remaining charge amount and available balance. Zero when a condition prevents the refund. The query does not reserve this amount.
Response Body
A field or parameter is invalid. Check error.details and correct the indicated data before trying again.
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.
Response Body
Charge not found in the authenticated company and environment.
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.