申请为批量 Pix 交易重新发送令牌
将生成一个新令牌并发送给账户交易审批人。如果令牌验证尝试次数已达上限,则不允许重新发送。
请求
ENDPOINT
/account/ACCOUNT_KEY/pix_transfer_batch/PIX_TRANSFER_BATCH_KEY/resend_token方法
PATCHPath Params
| 字段 | 类型 | 描述 | 字符数 |
|---|---|---|---|
account_key * | uuidv4 | 账户的唯一标识键。 | 36 |
pix_transfer_batch_key * | uuidv4 | 批量交易的唯一标识键。 | 36 |
Request Body
{
"contact_type": "sms"
}
Body Params
| 字段 | 类型 | 描述 | 字符数 |
|---|---|---|---|
contact_type | enumerator | 认证令牌的发送方式 | Enumerador contact_type |
信息
如果未发送 contact_type,令牌将以原始申请的方式发送。
| 枚举值 | 描述 |
|---|---|
| sms | 通过手机短信发送 |
| 通过电子邮件发送 |
响应
STATUS
202Response Body: 交易已申请
{
"request_control_key": "b6804f32-101e-4702-8fbc-c2dbc4c2caec",
"pix_transfer_batch_key": "8cb70dea-9fb0-4a68-9572-99a72849c8d6",
"pix_transfer_status": "pending_2fa_approval"
}
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_batch_key": "8cb70dea-9fb0-4a68-9572-99a72849c8d6",
"pix_transfer_status": "rejected"
}
}
}
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} |
| 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 |
| 404 | PXT000178 | Pix Transfer Batch not found | A pix_transfer_batch not found | Uma pix_transfer_batch não encontrada |
| 400 | PXT000180 | Invalid Status | Pix transfer Batch not in pending_2fa_approval status | Pix transfer em lote não está pendente de aprovação por duṕla autenticação |
| 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 | PXT000172 | Token Expired | Token has expired. Resend token or recreate transferToken has expired. Resend token or recreate transfer | Token expirado. Reenvie token ou recrie a transferência |
| 400 | PXT000173 | Incorrect Token | Token sent does not match expected | Token enviado não condiz com, o esperado |