Skip to main content

Approve TED with Two-Factor Authentication

Request

ENDPOINT
/account/ACCOUNT_KEY/ted/TED_KEY/validate_token
METHOD
PUT

Path Params

FieldTypeDescriptionCharacters
account_keyuuidv4Unique account identification key.36
ted_keyuuidv4Unique TED transfer identification key36

Email and SMS Authentication

Request Body
{
"token": "329123"
}

Device Authentication

To approve and finalize device authentication, the request must be sent with an empty payload. Validation occurs internally, without the need for additional information in the request body. It's important to note that this endpoint should only be used after the transaction request has been initiated.

Request Body
{

}

Body Params

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

Response

STATUS
201
Response Body: Transfer Sent
{
"request_control_key": "b6804f32-101e-4702-8fbc-c2dbc4c2caec",
"transaction_key": "46804f32-101e-4702-8fbc-c2dbc4c2caec",
"ted_key": "8cb70dea-9fb0-4a68-9572-99a72849c8d6",
"transaction_amount": 202.01,
"fee_amount": 10,
"ted_status": "sent",
"created_at": "2021-10-22T20:30:23.459Z"
}
STATUS
202
Response Body: Pending Transfer
{
"request_control_key": "b6804f32-101e-4702-8fbc-c2dbc4c2caec",
"ted_key": "8cb70dea-9fb0-4a68-9572-99a72849c8d6",
"transaction_amount": 202.01,
"fee_amount": 10,
"ted_status": "pending",
"created_at": "2021-10-22T20:30:23.459Z"
}
STATUS
4xx
Response Body: Transfer Rejected
{
"title": "titulo",
"description": "description in English",
"translation": "descrição em portugues",
"code": "codigo",
"extra_fields": {
"ted_data": {
"request_control_key": "b6804f32-101e-4702-8fbc-c2dbc4c2caec",
"ted_key": "8cb70dea-9fb0-4a68-9572-99a72849c8d6",
"transaction_amount": 202.01,
"fee_amount": 10,
"ted_status": "rejected",
"created_at": "2021-10-22T20:30:23.459Z"
}
}
}
STATUS
4xx
Response Body: Error
{
"title": "titulo",
"description": "description in English",
"translation": "descrição em portugues",
"code": "codigo",
"extra_fields": {}
}
Information

The errors previously listed for perform TED are subject to being returned by this endpoint in addition to the errors listed below.

HTTP Code
status
QI Code
code
Title
title
Description (eng)
description
Description (ptbr)
translation
400QIT000001Bad RequestSchema ErrorErro de Schema
404TED000020Not FoundTed was not found for the given parameters.Ted não encontrada para os parâmetros fornecidos.
404TED000086Invalid StatusTed not in pending_2fa_approval statusTed não está pendente de aprovação por autenticação de dois fatores
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
400TED000084Incorrect TokenToken sent does not match expectedToken enviado não condiz com, o esperado
400TED000083Token ExpiredToken has expired. Resend token or recreate transferToken expirado. Reenvie token ou recrie a transferência
400TED000110Token RequiredA token is required for SMS or email validation.Um token é necessário para validação via SMS ou email.