批准双因素身份验证批量交易
请求
ENDPOINT
/account/ACCOUNT_KEY/ted_batch/TED_BATCH_KEY/validate_token方法
PUTPath Params
| 字段 | 类型 | 描述 | 字符数 |
|---|---|---|---|
account_key | uuidv4 | 账户的唯一标识键。 | 36 |
ted_batch_key | uuidv4 | TED 批量交易的唯一标识键。 | 36 |
Request Body
{
"token": "329123"
}
Body Params
| 字段 | 类型 | 描述 | 字符数 |
|---|---|---|---|
token * | string | 发送给账户转账批准人的验证码 | 6 |
响应
STATUS
201Response Body: 已批准批次
{
"request_control_key": "b6804f32-101e-4702-8fbc-c2dbc4c2caec",
"ted_batch_key": "8cb70dea-9fb0-4a68-9572-99a72849c8d6",
"ted_batch_status": "approved"
}
STATUS
4xxResponse Body: 已拒绝批次
{
"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"
}
}
}
HTTP 状态码status | QI 代码code | 标题title | 描述(英文)description | 描述(葡文)translation |
|---|---|---|---|---|
| 400 | TED000082 | Number of token validation attempts exceeded | The maximum number of failed token validation attempts has been reached | Número máximo de tentativas de validação de token atingida |
| 400 | TED000083 | Token Expired | Token has expired. Resend token or recreate transfer | Token expirado. Reenvie token ou recrie a transferência |
| 400 | TED000084 | Incorrect Token | Token sent does not match expected | Token enviado não condiz com, o esperado |
| 404 | TED000101 | TedBatch not Found | Ted Batch was not found | TedBatch não encontrada |
| 400 | TED000102 | Invalid Status | Ted Batch not in pending_2fa_approval status | Lote de Ted não está pendente de aprovação por autenticação de dois fatores |