Skip to main content

Perform Ted Transaction in Batch

QI Tech offers the possibility to perform multiple ted transactions with a single call. In this system, transactions are performed asynchronously. If an http status 4xx is returned in the initial call, none of the transactions will be performed. After the request, the integrating partner will receive a webhook for each transaction informing the final status of the attempt, which can be rejected or sent.

Request

ENDPOINT
/account/ACCOUNT_KEY/ted_batch
METHOD
POST
{
"request_control_key": "6e4fc980-f8a1-4462-b6e2-d8a49f0ac055",
"teds": [
{
"request_control_key": "0c3d2a3e-c121-464e-b5a4-8e69e0c17bbd",
"target_account": {
"account_branch": "0001",
"account_number": "92796",
"account_digit": "1",
"owner_document_number": "23599885000192",
"owner_name": "Titular da Conta",
"ispb": "12345678",
"account_type": "checking_account"
},
"transaction_amount": 8.86
}
]
}

Path Params

FieldTypeDescriptionCharacters
account_keyuuidv4Unique account identification key.36

Body Params

FieldTypeDescriptionCharacters
request_control_key *uuidv4Unique request identification key used by the client in uuid v4 format.36
teds *arrayList of ted objects linked to the batch.list of Ted object

Ted object

FieldTypeDescriptionCharacters
request_control_key *stringUnique request identification key used by the client in uuid v4 format.36
target_account *objectDestination accounttarget_account object
transaction_amount *floatTransfer amount10

target_account object

FieldTypeDescriptionCharacters
account_branch *stringBranch.4
account_digit *stringAccount digit1
account_number *stringAccount number.20
owner_document_number *stringCPF or CNPJ (numbers only) of the account holder.14
owner_name *stringAccount holder name.50
account_type*stringAccount type.account_type enumerator
ispb *stringBased on financial institution CNPJ (8 digits).8

account_type enumerator

EnumeratorTranslation
checking_accountchecking account
deposit_accountdeposit account
guaranteed_accountguaranteed account
investment_accountinvestment account
payment_accountpayment account
saving_accountsavings account

Response

STATUS
201
Response Body: Batch Transfer Approved
{
"request_control_key": "b6804f32-101e-4702-8fbc-c2dbc4c2caec",
"ted_batch_key": "8cb70dea-9fb0-4a68-9572-99a72849c8d6",
"ted_batch_status": "approved"
}

ted_batch_status enumerator

EnumeratorDescription
approvedBatch transfer approved and transactions in execution process.
rejectedBatch transfer rejected
pending_2fa_approvalBatch scheduling pending approval by two-factor authentication
cancelledBatch transfer cancelled
STATUS
4xx
Response Body: Batch Rejected
{
"title": "titulo",
"description": "description in English",
"translation": "descrição em portugues",
"code": "codigo",
"extra_fields": {
"ted_batch_data": {
"request_control_key": "b6804f32-101e-4702-8fbc-c2dbc4c2caec",
"ted_batch_key": "8cb70dea-9fb0-4a68-9572-99a72849c8d6",
"ted_batch_status": "rejected"
}
}
}
STATUS
4xx
Response Body: Error
{
"title": "titulo",
"description": "description in English",
"translation": "descrição em portugues",
"code": "codigo",
"extra_fields": {}
}
Information

The errors previously listed for Ted transfer are liable to be returned by this endpoint.