Use this endpoint to initiate a refund for a previously received Pix transfer. The refund returns funds to the original sender of the transaction.
Notes:
Only received Pix transfers (cash-in) can be refunded.
Multiple refunds can be issued for the same original transfer, but the sum of all refunds cannot exceed the original transaction amount.
Refunds are processed immediately and cannot be cancelled once submitted.
The original transfer must be identified by its end-to-end identifier (E2E ID).
The refund status will change from PENDING to PROCESSING to COMPLETED/FAILED via webhook notifications.
Midaz transaction processing for refunds is handled asynchronously when the refund status is confirmed via webhook.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Unique identifier of the Midaz Ledger Account (UUID format).
Refund reason code. BE08 = Bank Error, FR01 = Fraud, MD06 = Refund Requested by End Customer, SL02 = PixWithdrawal/PixChange Error.
BE08, FR01, MD06, SL02 Optional idempotency key for safe retries. Reuse the same value only when retrying the same operation after an unknown outcome.
See Retries and idempotency for details.
Time-to-live in seconds for the idempotency key cache. Defines how long the system remembers a processed request.
See Retries and idempotency for details.
Unique identifier of the Pix transfer (UUID format).
Refund amount.
"100.00"
Refund instruction submitted successfully.
The response includes the X-Idempotency-Replayed header.
If the value is false, the transaction was just processed. If the value is true, the response is a replay of a previously processed request.
See Retries and idempotency for more details.
Refund unique identifier.
"019c96a0-0c53-7a8d-8e29-67971d96d0e3"
Original transfer E2E ID.
"E123456789BR1234567890123456789"
Return transfer E2E ID.
"D123456789BR1234567890123456789"
Refund amount.
"100.00"
Refund status.
"COMPLETED"
Refund reason code.
"FR01"
"2024-01-15T10:30:00Z"