Request a refund
Request a full or partial refund of a received Pix payment.
Request a refund of a Pix payment received for the specified charge. The money returns to the account that made the payment. Send the amount you want to refund; the same request supports full and partial refunds.
In Production, accepting the request does not yet confirm the refund. In Sandbox, the simulation completes within the request. Keep the returned identifier and check the status of that same request.
See Refunds for the conditions of use and how to track the result.
Path Params
Identifier of the charge that received the Pix payment.
Up to 100 characters
Headers
Unique key chosen by your system to identify this request. When retrying, send the same key and parameters. Without this header, the request is processed normally. See the idempotency guide for retention and handling pending or uncertain responses.
1 to 255 characters
Body Params
Applying an example replaces the body fields.
Amount requested for a refund, in Brazilian real cents. To refund the full amount, provide the remaining amount shown in the eligibility query.
Minimum 1
Refund request description. You can leave this field empty.
Up to 200 characters
Responses
Response Body
Refund completed in Sandbox or result of an already processed request, without repeating its effect. Check the returned status.
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
Request accepted and awaiting confirmation. Keep the id and track the same request through the refunds GET endpoint. The amount must not yet be considered refunded.
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, or the request origin could not be identified. Check error.code and error.message. When error.details is present, correct the indicated fields 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.
Response Body
A refund cannot be requested under current conditions. The message identifies the cause; for a status restriction, it shows the current charge status and accepted statuses. Check the code and query the history or eligibility before another request. Retry-After, when present, gives the waiting period for a temporary restriction.
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.