Refund a Received Pix Transfer
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.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Headers
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.
Path Parameters
Unique identifier of the Pix transfer (UUID format).
Body
Total refund amount. When operations is provided, this must equal
the sum of all operation amounts.
"100.50"
Optional description for the refund.
140"Customer reported unauthorized transaction"
Custom key-value attributes for this refund. Maximum 50 keys, key max 100 chars, value max 2000 chars.
Explicit per-account debit operations for partial distributed
refunds. When present, each operation specifies the accountAlias and
amount to debit, and the sum of all operation amounts must equal the
total refund amount. When absent, the existing refund flow is used
(simple or full refund with fee inversion).
1 - 50 elementsResponse
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"

