Retrieve a refund
View the status, dates and reason for a confirmed refund failure.
View a refund using the identifier returned when requesting it or listing the history, within the authenticated company and environment. The response includes the status, dates and available reason when a failure is confirmed.
This request does not create another refund or speed up confirmation.
See Track the result to interpret the response.
Path Params
Refund identifier received in the request or refund history.
Up to 100 characters
Responses
Response Body
Current request status. Completion or failure dates are null until the corresponding result is confirmed. In failed, failure_reason shows the available cause; unrecorded causes remain unknown.
Pix refund request linked to a charge.
Public refund request ID.
ID of the charge that received the original payment.
Amount requested for a refund, in Brazilian real cents.
Request description, or null when not provided.
Current status: reserved for a request being prepared, accepted for a request accepted and awaiting confirmation, completed for a completed refund, failed for a confirmed failure and unknown for a result not yet confirmed. Retrieve the same request until there is a confirmed result.
Request date, in Unix seconds in UTC.
Refund confirmation date, in Unix seconds in UTC, or null.
Confirmed failure date, in Unix seconds in UTC, or null.
Reason available when the status is failed, or null for other statuses. A failure with no recorded cause uses REFUND_FAILURE_REASON_UNAVAILABLE; do not assume the request was rejected.
Confirmed cause code. REFUND_FAILURE_REASON_UNAVAILABLE indicates that the cause is unavailable.
Explanation in English and guidance for tracking the request. Use code to handle the cause; do not depend on the exact text.
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
Refund 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.