请求 TED 批量调度(双因素身份验证)
QI Tech 提供通过单次调用执行多个 TED 批量调度的功能。如果初始调用返回 http status 4xx,则不会执行任何调度。
在此类型的调度中,需要通过发送给账户中具有批准转账权限的人员的令牌来确认付款调度。
配置为使用双因素身份验证的集成合作伙伴的 TED 批量调度请求方式与请求 TED 批量调度 中描述的方式类似。区别在于添加了 tfa_info 对象,以及成功请求的状态将始终为 pending_2fa_approval。
向批准人发送令牌的通知事件为 baas.token_validation.ted.schedule.batch。可以自定义发送的消息。
请求
ENDPOINT
/account/ACCOUNT_KEY/ted_schedule_batch方法
POST{
"request_control_key": "6e4fc980-f8a1-4462-b6e2-d8a49f0ac055",
"ted_schedules": [
{
"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,
"schedule_date": "2024-12-01"
}
],
"tfa_info": {
"approver_document_number": "98765432100",
"contact_type": "email"
}
}
Path Params
| 字段 | 类型 | 描述 | 字符数 |
|---|---|---|---|
account_key | uuidv4 | 账户的唯一标识键。 | 36 |
Body Params
| 字段 | 类型 | 描述 | 字符数 |
|---|---|---|---|
request_control_key * | uuidv4 | 客户使用的 uuid v4 格式的请求唯一标识键。 | 36 |
ted_schedules * | array | 与批次关联的 ted_schedule 对象列表。 | 列表 Objeto ted_schedule |
tfa_info * | Object | 包含账户批准人文件号和联系方式的对象。 | Objeto tfa_info |
Objeto tfa_info
| 字段 | 类型 | 描述 |
|---|---|---|
approver_document_number * | string | 账户批准人的文件号。 |
contact_type * | string | 与账户批准人的联系方式,可为 sms 或 email |
Objeto ted_schedule
| 字段 | 类型 | 描述 | 字符数 |
|---|---|---|---|
request_control_key * | string | 客户使用的 uuid v4 格式的请求唯一标识键。 | 36 |
target_account * | object | 目标账户 | Objeto target_account |
transaction_amount * | float | 转账金额 | 10 |
schedule_date * | string | 执行交易的日期。 | 10 |