Skip to main content

TED Schedule Completion Webhook

After completing a TED schedule, a webhook will be sent to the integrating partner with the result.

Attention!

QI Tech webhooks should not be mapped in a restrictive way. Additional fields may be included in the webhook payloads returned by our APIs.

Webhook Request Body​

Request Body: Schedule Completed and Sent
{
"webhook_type": "baas.ted.ted_schedule.completed",
"webhook_datetime": "2021-10-22T20:30:23.459Z",
"data": {
"request_control_key": "b8eb663e-10fe-4729-9db5-8f8c93de5001",
"schedule_key": "0c9091ab-079b-4a43-8b3d-d4ba36a23883",
"schedule_batch_key": null,
"schedule_status": "sent",
"target_account": {
"account_branch": "0001",
"account_digit": "8",
"account_number": "1234567",
"owner_document_number": "***91111***",
"owner_person_type": "natural",
"owner_name": "Conta manual geral",
"account_type": "checking_account",
"ispb": "99999004"
},
"transaction_amount": 2.0,
"rejection_info": null,
"schedule_date": "2024-07-10",
"updated_at": "2024-07-10T16:19:38Z",
"created_at": "2024-06-10T11:17:28Z",
"schedule_transfers": [
{
"request_control_key": "12723821-41d5-496b-b66c-fb7188f50fc1",
"ted_key": "91028dfa-43a2-4665-adf2-0bd4571f6f0d",
"created_at": "2024-07-10T16:19:38Z",
"ted_status": "sent",
"fee_amount": 2.00
}
]
}
}
Request Body: Schedule Completed and Rejected
{
"webhook_type": "baas.ted.ted_schedule.completed",
"webhook_datetime": "2021-10-22T20:30:23.459Z",
"data": {
"request_control_key": "b8eb663e-10fe-4729-9db5-8f8c93de5001",
"schedule_key": "0c9091ab-079b-4a43-8b3d-d4ba36a23883",
"schedule_batch_key": null,
"schedule_status": "sent",
"target_account": {
"account_branch": "0001",
"account_digit": "8",
"account_number": "1234567",
"owner_document_number": "***91111***",
"owner_person_type": "natural",
"owner_name": "Conta manual geral",
"account_type": "checking_account",
"ispb": "99999004"
},
"transaction_amount": 2.0,
"rejection_info": {
"error_code": "TED000103",
"error_description": "The maximum number of failed transfer attempts has been reached",
"error_translation": "Número máximo de tentativas de transferência foi atingida",
"rejection_reason": "max_tries_exceeded"
},
"schedule_date": "2024-07-10",
"updated_at": "2024-07-10T16:19:38Z",
"created_at": "2024-06-10T11:17:28Z",
"schedule_transfers": [
{
"ted_key": "907e38c5-5700-492f-a181-8f651317458b",
"created_at": "2024-07-10T16:19:38Z",
"ted_status": "rejected",
"fee_amount": 2.00
},
{
"ted_key": "356f8855-8f8d-4aaa-8e8c-1287e363d143",
"created_at": "2024-07-10T17:19:38Z",
"ted_status": "rejected",
"fee_amount": 2.00
},
{
"ted_key": "c51cc7ee-d966-4bbb-8405-4850b90b43f8",
"created_at": "2024-07-10T18:19:38Z",
"ted_status": "rejected",
"fee_amount": 2.00
}
]
}
}

Webhook Body Param​

FieldTypeDescriptionMax. Characters
webhook_typestringAn enumerator that defines the type of event being reported23
webhook_datetimestringDate and time of the webhook sending20
request_control_keyuuidv4Unique identification key for the request used by the client in uuid v4 format.36
schedule_keystringUnique identification key for the schedule36
schedule_batch_keystringUnique identification key for the schedule batch36
schedule_statusstringStatus of the scheduleEnumerator schedule_status
target_accountobjectTarget account for the scheduleObject target_account
transaction_amountnumberTransfer amount10
schedule_transfersarrayList of transfer attempts made by the schedulelist of Object schedule_transfer
schedule_datestringDate when the transaction will be executed.10
rejection_infoobjectObject with information about the rejection event
updated_atstringDate and time of the last schedule update.20
created_atstringDate and time of schedule creation.20

Ted Schedule Status​

EnumeratorDescription
scheduledTransaction scheduled
sentSchedule completed and sent successfully. Final state
rejectedSchedule rejected during creation or execution. Final state
cancelledSchedule cancelled by client request. Final state
pending_2fa_approvalPending approval by two-factor authentication
waiting_batch_approvalSchedule created and linked to a batch waiting for two-factor authentication approval

Schedule Transfer Object​

FieldTypeDescriptionCharacters
ted_keyuuidv4Unique identification key for the TED transfer in QI system.36
ted_statusstringTransaction status.Enumerator ted_status
fee_amountnumberTransfer amount10
created_atstringDate and time of transaction creation20

Ted Status Enumerator​

EnumeratorDescription
sentTransaction sent successfully. Final state
rejectedTransaction rejected during execution. Final state
pendingTransaction pending completion. Transitory state

target_account Object​

FieldTypeDescriptionCharacters
account_branchstringAccount branch6
account_digitstringAccount digit1
account_numberstringAccount number20
owner_document_numberstringCPF or CNPJ (numbers only) of the account holder14
owner_namestringName of the account holder150
owner_person_typeenumeratorIdentifier whether the owner of the sent account is a natural or legal personEnumerator owner_person_type
owner_namestringName of the account holder150
account_typeenumeratorType of accountEnumerator account_type
ispbstringEight-digit code that identifies banks in the Central Bank's reserve transfer system8

owner_person_type Enumerator​

EnumDescription
naturalNatural person
legalLegal person

account_type Enumerator​

EnumeratorTranslation
checking_accountchecking account
deposit_accountdeposit account
guaranteed_accountguarantee account
investment_accountinvestment account
payment_accountpayment account
saving_accountsavings account