申请为交易重新发送令牌
将为 Pix 交易审批人生成并发送新令牌。如果已超过令牌验证尝试次数上限,则不允许重新发送。
Request
ENDPOINT
/account/ACCOUNT_KEY/pix_transfer/PIX_TRANSFER_KEY/resend_tokenMÉTODO
PATCHPath Params
| 字段 | 类型 | 描述 | 字符数 |
|---|---|---|---|
account_key * | uuidv4 | 账户的唯一标识键。 | 36 |
pix_transfer_key * | uuidv4 | QI 系统中 Pix 转账的唯一标识键。 | 36 |
Body Params
| 字段 | 类型 | 描述 | 字符数 |
|---|---|---|---|
contact_type | enumerator | 认证令牌的发送方式 | Enumerador contact_type |
信息
如果未发送 contact_type,令牌将以最初请求的方式发送。
| 枚举值 | 描述 |
|---|---|
| sms | 发送至手机的短信 |
| 发送至电子邮件 |
Response
STATUS
202Response Body: 交易已申请
{
"request_control_key": "b6804f32-101e-4702-8fbc-c2dbc4c2caec",
"pix_transfer_key": "8cb70dea-9fb0-4a68-9572-99a72849c8d6",
"end_to_end_id": "E32402502202405081755SxyT2DDcVwc",
"pix_transfer_status": "pending_2fa_approval",
"created_at": "2021-10-22T20:30:23.459Z"
}
STATUS
4xxResponse Body: 转账已拒绝
{
"title": "titulo",
"description": "description in English",
"translation": "descrição em portugues",
"code": "codigo",
"extra_fields": {
"pix_transfer_data": {
"request_control_key": "b6804f32-101e-4702-8fbc-c2dbc4c2caec",
"pix_transfer_key": "8cb70dea-9fb0-4a68-9572-99a72849c8d6",
"pix_transfer_status": "rejected",
"created_at": "2021-10-22T20:30:23.459Z"
}
}
}
HTTP 代码status | QI 代码code | 标题title | 描述(英文)description | 描述(葡文)translation |
|---|---|---|---|---|
| 400 | QIT000001 | Bad Request | Schema Error | Erro de Schema |
| 404 | PXT000004 | Account not found | Account not found for: {account_datum} | Conta não encontrada para: {account_datum} |
| 404 | PXT000023 | Outgoing PIX Transfer Not Found | Pix transfer key {pix_transfer_key} was not found | Transferência PIX de saída com chave {pix_transfer_key} não foi encontrada |
| 400 | PXT000171 | 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 | PXT000175 | Invalid Status | Pix transfer not in pending_2fa_approval status | Pix transfer não está pendente de aprovação por two factor authentication |
| 400 | PXT000176 | Error Sending Token | An error occurred while resending token and its being investigated | Um erro ocorreu ao reenviar token e está sendo investigado |