Skip to main content

Approve TED Transaction Batch Schedule with Two-Factor Authentication

Request

ENDPOINT
/account/ACCOUNT_KEY/ted_schedule_batch/SCHEDULE_BATCH_KEY/validate_token
METHOD
PUT

Path Params

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

Request Body
{

}

Body Params

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

Response

STATUS
201
Response Body: Approved Batch Schedule
{
"request_control_key": "b6804f32-101e-4702-8fbc-c2dbc4c2caec",
"schedule_batch_key": "f64b3fa7-d09d-4927-ad4f-b966df9fb153",
"schedule_batch_status": "approved",
"created_at": "2023-03-13T19:00:28.440Z"
}
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
400TED000102Invalid StatusTed Batch not in pending_2fa_approval statusLote de Ted não está pendente de aprovação por autenticação de dois fatores
404TED000103ScheduleBatch not FoundTed Schedule Batch was not foundAgendamento de Ted em lote não encontrado
400TED000106Invalid StatusScheduleBatch not in pending_2fa_approval statusLote Agendamentos de Ted não está pendente de aprovação por autenticação de dois fatores
400TED000107Schedule Batch could not be approvedScheduleBatch could not be approved due to current date being equal or after earliest schedule date. Rejecting batchScheduleBatch não pode ser aprovada devido a data atual ser superior ou igual à menor schedule_date. Rejeitando lote