Skip to main content

Approve TED Transaction Scheduling with Two-Factor Authentication

Request

ENDPOINT
/account/ACCOUNT_KEY/ted_schedule/SCHEDULE_KEY/validate_token
METHOD
PUT

Path Params

FieldTypeDescriptionCharacters
account_keyuuidv4Unique account identification key.36
schedule_keyuuidv4Unique scheduling identification key.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 scheduling request has been initiated.

Request Body
{

}

Body Params

FieldTypeDescriptionCharacters
tokenstringAuthentication code sent to the account's transaction approver required for TFA via SMS or email6

Response

STATUS
201
Response Body: Scheduling Approved
{
"request_control_key": "b6804f32-101e-4702-8fbc-c2dbc4c2caec",
"schedule_key": "f64b3fa7-d09d-4927-ad4f-b966df9fb153",
"schedule_status": "scheduled",
"schedule_date": "2024-12-31"
}
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
400QIT000001Bad Requestschema error descriptionSchema Inválido
404TED000009Not FoundAccount not found for the given key: {account_key}Conta não encontrada para a chave fornecida: {account_key}
403TED000018UnauthorizedProvided account not owned by SELECTED_AGENTConta fornecida não pertencente ao SELECTED_AGENT
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 expirado. Reenvie token ou recrie a transferência
400TED000084Incorrect TokenToken sent does not match expectedToken enviado não condiz com, o esperado
400TED000085Error Validating TokenAn error occurred while validating token and it is being investigatedUm erro ocorreu ao validar token e está sendo investigado
400TED000086Invalid StatusTed not in pending_2fa_approval statusTed não está pendente de aprovação por autenticação de dois fatores
404TED000093TedSchedule not FoundTedSchedule was not foundTedSchedule não encontrada
400TED000096Bad RequestAction cannot be taken place as there is currently a pending transfer in progressA ação não pôde ser completada como há uma transferência pendente
400TED000099Invalid StatusTed Schedule not in pending_2fa_approval statusAgendamento Ted não está pendente de aprovação por autenticação de dois fatores
400TED000100Invalid Schedule DateSchedule must be approved before the scheduled dateAgendamento deve ser aprovado em data anterior à programada para transação