请求双因素身份验证 TED 调度
请求
ENDPOINT
/account/ACCOUNT_KEY/ted_schedule方法
POST通过邮件和短信进行身份验证
Request Body: 通过短信或邮件进行 TFA 的调度
{
"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"
}
}
通过设备进行身份验证
除了现有的 sms 和 email 身份验证方式外,还可以使用预先注册的设备对交易进行身份验证。在这种情况下,需要从 Device Scan 中获取 session_id 并在 tfa_info 中发送。
Request Body: 通过设备进行 TFA 的调度
{
"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",
"session_id": "b2f18d3a-67c2-4a7f-98e5-1d3f5c6b8a72",
"contact_type": "device"
}
}
Body Params
| 字段 | 类型 | 描述 | 字符数 |
|---|---|---|---|
request_control_key * | string | 客户使 用的 uuid v4 格式的请求唯一标识键。 | 36 |
target_account * | object | 目标账户 | Objeto target_account |
transaction_amount * | float | 转账金额 | 10 |
schedule_date * | string | 执行交易的日期。 | 10 |
tfa_info * | Object | 包含账户批准人文件号和联系方式的对象。 | Objeto tfa_info |
Objeto tfa_info
| 字段 | 类型 | 描述 | 字符数 |
|---|---|---|---|
approver_document_number * | string | 账户批准人的文件号。 | 11 |
session_id | string | 设备会话唯一标识键,UUID v4 格式(设备 TFA 必填)。 | 36 |
contact_type * | string | 与账户批准人的联系方式,可为 sms、email 或 device |
Objeto target_account
| 字段 | 类型 | 描述 | 字符数 |
|---|---|---|---|
account_branch * | string | 银行代码(机构代码)。 | 4 |
account_digit * | string |