跳到主要内容

请求重新发送 TED 交易令牌

将生成新令牌并发送给 TED 交易的批准人。如果已超过令牌验证尝试次数限制,将不允许重新发送。

请求

ENDPOINT
/account/ACCOUNT_KEY/ted/TED_KEY/resend_token
方法
PATCH

Path Params

字段类型描述字符数
account_key *uuidv4账户的唯一标识键。36
ted_key *uuidv4TED 转账的唯一标识键36

Body Params

字段类型描述字符数
contact_typeenumerator验证令牌的发送方式Enumerador contact_type
信息

如果未发送 contact_type,令牌将按原始请求的方式发送。

Enumerador contact_type

枚举值描述
sms通过手机短信发送
email通过电子邮件发送

响应

STATUS
202
Response Body: 已请求交易
{
"request_control_key": "b6804f32-101e-4702-8fbc-c2dbc4c2caec",
"ted_key": "8cb70dea-9fb0-4a68-9572-99a72849c8d6",
"transaction_amount": 202.01,
"fee_amount": 10,
"ted_status": "pending_2fa_approval",
"created_at": "2021-10-22T20:30:23.459Z"
}
STATUS
4xx
Response 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_key": "8cb70dea-9fb0-4a68-9572-99a72849c8d6",
"transaction_amount": 202.01,
"fee_amount": 10,
"ted_status": "rejected",
"created_at": "2021-10-22T20:30:23.459Z"
}
}
}
HTTP 状态码
status
QI 代码
code
标题
title
描述(英文)
description
描述(葡文)
translation
400QIT000001Bad RequestSchema ErrorErro de Schema
404TED000009Account not foundAccount not found for the given key: {account_key}Conta não encontrada para a chave fornecida: {account_ke}
404TED000020Not FoundTed was not found for the given parameters.Ted não encontrada para os parâmetros fornecidos.
404TED000086Invalid StatusTed not in pending_2fa_approval statusTed não está pendente de aprovação por autenticação de dois fatores
400TED000082Number of token validation attempts exceededThe maximum number of failed token validation attempts has been reachedNúmero máximo de tentativas de validação de token atingida
400TED000087Error Sending TokenAn error occurred while resending token and its being investigatedUm erro ocorreu ao reenviar token e está sendo investigado