Create a Transfer
POST/v2/transfers
Generic endpoint for creating transfers of any type. The type is specified by the mandatory 'kind' field at the root level of the payload:
Prerequisites
To issue a transfer, you must have a Financial Account, specified in financial_account_uid. The transfer account that records the operation is defined in transfer_account_uid; if omitted, the oldest linked to the financial account is used; if specified, it must belong to financial_account_uid.
Supported Types
PIX by Key
Specify kind: "pix" and provide the PIX data within pix.data (Payment standard):
{
"financial_account_uid": "...",
"amount": 100.0,
"kind": "pix",
"pix": {
"kind": "pix",
"data": {
"type": "key",
"key_type": "email",
"key": "recipient@example.com"
}
},
"beneficiary": {
"name": "João Silva",
"document": "123.456.789-10"
}
}
PIX by Bank Account
Specify kind: "pix" and provide the PIX data within pix.data with type: "bank_account":
{
"financial_account_uid": "...",
"amount": 200.0,
"kind": "pix",
"pix": {
"kind": "pix",
"data": {
"type": "bank_account",
"bank_account": {
"bank_code": "237",
"agency_number": "1234",
"account_number": "56789-0"
}
}
},
"beneficiary": {
"name": "Maria Santos",
"document": "987.654.321-00"
}
}
TED
Specify kind: "ted" and provide the bank data within ted.data:
{
"financial_account_uid": "...",
"amount": 300.0,
"kind": "ted",
"ted": {
"kind": "ted",
"data": {
"bank_account": {
"bank_code": "341",
"agency_number": "4321",
"agency_digit": "5",
"account_number": "98765-4",
"account_type": "checking"
}
}
},
"beneficiary": {
"name": "Pedro Oliveira",
"document": "11.222.333/0001-44"
}
}
Internal Transfer
Specify kind: "internal" and provide the destination account data within internal.data:
{
"financial_account_uid": "...",
"amount": 400.0,
"kind": "internal",
"internal": {
"kind": "internal",
"data": {
"agency_number": "0001",
"account_number": "12345-6"
}
},
"beneficiary": {
"name": "Ana Costa",
"document": "555.666.777-88"
}
}
Webhook Events
The transfer.db.created event is triggered in this operation.
Unified Endpoint: This endpoint unifies the creation of all transfer types. To create transfers of a specific type, you can also use the dedicated endpoints in
/api/v2/transfer/{type}.
Request
Responses
- 201
- 401
- 422
Internal Transfer Created
Authentication failure. Invalid token
Transfer type not identified