申请重发令牌
将生成新令牌并发送给负责创建设备的审批人(仅限通过电子邮件或 SMS 联系的情况)。若超出令牌验证尝试次数限制,则不允许重发。
Request
ENDPOINT
/account/ACCOUNT_KEY/device/DEVICE_KEY/resend_tokenMÉTODO
PATCH路径参数
| 字段 | 类型 | 描述 | 字符数 |
|---|---|---|---|
account_key | uuidv4 | 账户唯一标识键。 | 36 |
device_key | uuidv4 | 设备唯一标识键。 | 36 |
Body 参数
| 字段 | 类型 | 描述 | 字符数 |
|---|---|---|---|
contact_type* | string | 指定与账户审批负责人的联系方式。可能的值为 sms、email | contact_type 枚举值 |
说明
若未发送 contact_type,令牌将按原始申请的方式发送。
| 枚举值 | 描述 |
|---|---|
| sms | 通过短信发送至手机 |
| 通过电子邮件发送 |
Response
STATUS
202Response Body: 重发已申请
{
"device_key": "b6804f32-101e-4702-8fbc-c2dbc4c2caec",
"device_status": "pending_2fa_approval",
"created_at": "2024-12-22T20:30:23.459Z"
}
STATUS
4xxResponse Body: Error
{
"title": "titulo",
"description": "description in English",
"translation": "descrição em portugues",
"code": "codigo",
"extra_fields": {}
}
HTTP 代码status | QI 代码code | 标题title | 描述(英文)description | 描述(葡文)translation |
|---|---|---|---|---|
| 400 | QIT000001 | Bad Request | Schema Error | Erro de Schema |
| 404 | OBD000002 | Not Found | Bank account not found | Conta não encontrada |
| 400 | OBD000088 | Bad Request | Account blocked or closed can not perform this action | A conta bloqueada ou fechada não pode executar esta ação |
| 400 | OBD000089 | Bad Request | Hub account can not perform this action | A conta hub não pode executar esta ação |
| 400 | OBD000097 | Error occurred while sending token | An unexpected error occurred while sending token | Um erro inexperado ocorreu ao tentar enviar token |
| 400 | OBD000099 | 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 |
| 404 | OBD000100 | Device not found | No device is associated with the provided device_key. | Nenhum dispositivo está associado à device_key fornecida. |