Create Refund
Refund
Create Refund
Create a new refund. To initiate the refund, you must provide the unique identifier of the Pix or credit card payment in the parameter.
POST
Create Refund
Some important rules
Sandbox Testing
To test refund scenarios in the sandbox environment, the field
amount must be one of the following values: 100, 1000, or 10000.Additionally, you must include the field reason with the value “APRO”.Path Parameters
The cash-in ID (payin ID) for which the refund will be created.Example:
63730Request Body
The refund amount.Example:
10Reason for the refund.Example:
"Teste"URL to receive webhook notifications about refund status changes.
Response
Refund ID.
The ID of the payin (cash-in) being refunded.
Current status ID of the refund.Status codes:
2: Requested4: Paid (refund completed)5: Error
User who created the refund.
Client ID.
Refund amount.
History of status changes.
End-to-end ID (for Pix transactions). Can be
null.Reason for the refund.
Error code from wallet (if any). Can be
null.URL for webhook notifications. Can be
null.Refund created date.
Refund update date.
Important Information About the Webhook metadata
Refund Status
| Status | Description | Status ID |
|---|---|---|
| Requested | The refund has been requested. | 2 |
| Paid | The refund has been successfully paid. | 4 |
| Error | An error occurred during the refund process. | 5 |

