Skip to main content
POST
/
v1
/
transfers
/
{transfer_id}
/
refunds
Refund a Received Pix Transfer
curl --request POST \
  --url https://plugin-pix-indirect.api.lerian.net/v1/transfers/{transfer_id}/refunds \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'X-Account-Id: <x-account-id>' \
  --header 'X-Reason: <x-reason>' \
  --data '
{
  "amount": "100.00"
}
'
{
  "id": "550e8400-e29b-41d4-a716-44665544rf01",
  "originalEndToEndId": "E123456789BR1234567890123456789",
  "returnEndToEndId": "D123456789BR1234567890123456789",
  "amount": "100.00",
  "status": "COMPLETED",
  "reason": "FR01",
  "createdAt": "2024-01-15T10:30:00Z"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

X-Account-Id
string
required

Unique identifier of the Midaz Ledger Account (UUID format).

X-Reason
enum<string>
required

Refund reason code. BE08 = Bank Error, FR01 = Fraud, MD06 = Refund Requested by End Customer, SL02 = PixWithdrawal/PixChange Error.

Available options:
BE08,
FR01,
MD06,
SL02

Path Parameters

transfer_id
string
required

Unique identifier of the Pix transfer (UUID format).

Body

application/json
amount
string

Refund amount.

Example:

"100.00"

Response

Refund instruction submitted successfully.

id
string

Refund unique identifier.

Example:

"550e8400-e29b-41d4-a716-44665544rf01"

originalEndToEndId
string

Original transfer E2E ID.

Example:

"E123456789BR1234567890123456789"

returnEndToEndId
string

Return transfer E2E ID.

Example:

"D123456789BR1234567890123456789"

amount
string

Refund amount.

Example:

"100.00"

status
string

Refund status.

Example:

"COMPLETED"

reason
string

Refund reason code.

Example:

"FR01"

createdAt
string<date-time>
Example:

"2024-01-15T10:30:00Z"