Skip to main content

Approve Batch Transaction with Two-Factor Authentication

Request

ENDPOINT
/account/ACCOUNT_KEY/ted_batch/TED_BATCH_KEY/validate_token
METHOD
PUT

Path Params

FieldTypeDescriptionCharacters
account_keyuuidv4Unique account identification key.36
ted_batch_keyuuidv4Unique identification key for the TED batch transaction.36

Authentication via Email and SMS

Request Body
{
"token": "329123"
}

Authentication via Device

To approve and finalize device authentication, the request must be sent with an empty payload. Validation occurs internally, with no additional information required in the request body. Note that this endpoint should only be used after the batch transaction request has been initiated.

Request Body
{

}

Body Params

FieldTypeDescriptionCharacters
tokenstringAuthentication code sent to the account movement approver required for TFA via SMS or email6

Response

STATUS
201
Response Body: Approved Batch
{
"request_control_key": "b6804f32-101e-4702-8fbc-c2dbc4c2caec",
"ted_batch_key": "8cb70dea-9fb0-4a68-9572-99a72849c8d6",
"ted_batch_status": "approved"
}
STATUS
4xx
Response Body: Rejected Batch
{
"title": "titulo",
"description": "description in English",
"translation": "descrição em portugues",
"code": "codigo",
"extra_fields": {
"ted_batch_data": {
"request_control_key": "b6804f32-101e-4702-8fbc-c2dbc4c2caec",
"ted_batch_key": "8cb70dea-9fb0-4a68-9572-99a72849c8d6",
"ted_batch_status": "rejected"
}
}
}
STATUS
4xx
Response Body: Error
{
"title": "titulo",
"description": "description in English",
"translation": "descrição em portugues",
"code": "codigo",
"extra_fields": {}
}
HTTP Code
status
QI Code
code
Title
title
Description (eng)
description
Description (ptbr)
translation
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
400TED000083Token ExpiredToken has expired. Resend token or recreate transferToken has expired. Resend token or recreate transferToken expirado. Reenvie token ou recrie a transferência
400TED000084Incorrect TokenToken sent does not match expectedToken enviado não condiz com, o esperado
404TED000101TedBatch not FoundTed Batch was not foundTedBatch não encontrada
400TED000102Invalid StatusTed Batch not in pending_2fa_approval statusLote de Ted não está pendente de aprovação por autenticação de dois fatores