Skip to main content

Approve batch transaction with Two-Factor Authentication

Request

ENDPOINT
/account/ACCOUNT_KEY/pix_transfer_batch/PIX_TRANSFER_BATCH_KEY/validate_token
METHOD
PUT

Path Params

FieldTypeDescriptionCharacters
account_keyuuidv4Unique account identification key.36
pix_transfer_batch_keyuuidv4Unique identification key for the pix batch transfer.36
Request Body
{
"token": "329adf"
}

Body Params

FieldTypeDescriptionCharacters
token *stringAuthentication code sent to the account's transaction approver6

Response

STATUS
201
Response Body: Transfer sent
{
"request_control_key": "b6804f32-101e-4702-8fbc-c2dbc4c2caec",
"pix_transfer_batch_key": "8cb70dea-9fb0-4a68-9572-99a72849c8d6",
"pix_transfer_batch_status": "approved"
}
STATUS
4xx
Response Body: Transfer rejected
{
"title": "titulo",
"description": "description in English",
"translation": "description in portuguese",
"code": "codigo",
"extra_fields": {
"pix_transfer_batch_data": {
"request_control_key": "b6804f32-101e-4702-8fbc-c2dbc4c2caec",
"pix_transfer_batch_key": "8cb70dea-9fb0-4a68-9572-99a72849c8d6",
"pix_transfer_batch_status": "rejected"
}
}
}
STATUS
4xx
Response Body: Error
{
"title": "titulo",
"description": "description in English",
"translation": "description in portuguese",
"code": "codigo",
"extra_fields": {}
}
HTTP Code
status
QI Code
code
Title
title
Description (eng)
description
Description (ptbr)
translation
404PXT000178Pix Transfer Batch not foundA pix_transfer_batch not foundUma pix_transfer_batch não encontrada
400PXT000180Invalid StatusPix transfer Batch not in pending_2fa_approval statusPix transfer em lote não está pendente de aprovação por autenticação de dois fatores
400PXT000171Number 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
400PXT000172Token ExpiredToken has expired. Resend token or recreate transferToken has expired. Resend token or recreate transferToken expirado. Reenvie token ou recrie a transferência
400PXT000173Incorrect TokenToken sent does not match expectedToken enviado não condiz com, o esperado