请求重新发送 TED 批量交易令牌
将生成新令牌并发送给账户转账批准人。如果已超过令牌验证尝试次数限制,将不允许重新发送。
请求
ENDPOINT
/account/ACCOUNT_KEY/ted_batch/TED_BATCH_KEY/resend_token方法
PATCHPath Params
| 字段 | 类型 | 描述 | 字符数 |
|---|---|---|---|
account_key * | uuidv4 | 账户的唯一标识键。 | 36 |
ted_batch_key * | uuidv4 | 批量交易的唯一标识键。 | 36 |
Request Body
{
"contact_type": "sms"
}
Body Params
| 字段 | 类型 | 描述 | 字符数 |
|---|---|---|---|
contact_type | enumerator | 验证令牌的发送方式 | Enumerador contact_type |
信息
如果未发送 contact_type,令牌将按原始请求的方式发送。
Enumerador contact_type
| 枚举值 | 描述 |
|---|---|
| sms | 通过手机短信发送 |
| 通过电子邮件发送 |
响应
STATUS
202Response Body: 已请求交易
{
"request_control_key": "b6804f32-101e-4702-8fbc-c2dbc4c2caec",
"ted_batch_key": "8cb70dea-9fb0-4a68-9572-99a72849c8d6",
"ted_status": "pending_2fa_approval"
}
STATUS
4xxResponse Body: 已拒绝转账
{
"title": "titulo",
"description": "description in English",
"translation": "descrição em portugues",
"code": "codigo",
"extra_fields": {
"ted_data": {
"request_control_key": "b6804f32-101e-4702-8fbc-c2dbc4c2caec",
"ted_batch_key": "8cb70dea-9fb0-4a68-9572-99a72849c8d6",
"ted_status": "rejected"
}
}
}
HTTP 状态码status | QI 代码code | 标题title | 描述(英文)description | 描述(葡文)translation |
|---|---|---|---|---|
| 400 | QIT000001 | Bad Request | Schema Error | Erro de Schema |
| 404 | TED000009 | Account not found | Account not found for the given key: {account_key} | Conta não encontrada para a chave fornecida: {account_ke} |
| 404 | TED000020 | Not Found | Ted was not found for the given parameters. | Ted não encontrada para os parâmetros fornecidos. |
| 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 | TED000086 | Invalid Status | Ted not in pending_2fa_approval status | Ted não está pendente de aprovação por autenticação de dois fatores |
| 400 | TED000087 | Error Sending Token | An error occurred while resending token and its being investigated | Um erro ocorreu ao reenviar token e está sendo investigado |
| 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 |