Skip to main content
POST
/
v1
/
transfers
/
cashout
/
process
Process a Pix Transfer
curl --request POST \
  --url https://plugin-pix-indirect.api.lerian.net/v1/transfers/cashout/process \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'X-Account-Id: <x-account-id>' \
  --data '
{
  "initiationId": "550e8400-e29b-41d4-a716-44665544i001"
}
'
{
  "id": "550e8400-e29b-41d4-a716-44665544t001",
  "endToEndId": "E123456789BR1234567890123456789",
  "amount": "100.00",
  "status": "COMPLETED",
  "type": "CASHOUT",
  "createdAt": "2024-01-15T10:30:00Z",
  "updatedAt": "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).

Body

application/json
initiationId
string
required

Initiation ID from the initiate step.

Example:

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

Response

Pix transfer processed successfully.

id
string

Transfer unique identifier.

Example:

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

endToEndId
string

End-to-end identifier.

Example:

"E123456789BR1234567890123456789"

amount
string

Transfer amount.

Example:

"100.00"

status
enum<string>

Transfer status.

Available options:
PENDING,
PROCESSING,
COMPLETED,
FAILED,
CANCELLED
Example:

"COMPLETED"

type
enum<string>

Transfer type.

Available options:
CASHOUT,
CASHIN
Example:

"CASHOUT"

createdAt
string<date-time>
Example:

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

updatedAt
string<date-time>
Example:

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