1. Inicio
  2. Documentos
  3. NS ANTT ( English )
  4. InserirLogVendaPassagem
  5. Download

Download

The download method of the Ticket Sales Log is responsible for returning the JSON or XML of the InserirLogVendaPassagem method processing in ANTT from the supply of the key generated in the processing of the mentioned method.

URL

Production: POST https://antt.ns.eti.br/v1/antt/logvenda/download

Input Data
FieldOccurrenceDescription
X-AUTH-TOKEN1-1User access token
chave1-1Access key of the processing generated in the ANTT previously
tpDown1-1Download type:

X - XML;
J - JSON;
tpAmb1-1
Type of Environment:

1 - Production;
2 - Test Environment
Request Examples

Download Request Example

{
    "X-AUTH-TOKEN": "YOUR_TOKEN_HERE",
    "chave":"43210806598988743000126630060000023521000000012",
    "tpAmb": "2",
    "tpDown":"X"
}  
Response Data
FieldDescriptionOccurrenceData TypeParentNote
statusProcessing Status Code1-1Int
motivoLiteral description of processing status1-1String
chaveAccess key of the processing generated in the ANTT previously0-1Int
xmlProcessing distribution XML0-1StringOnly when status = 200 and tpDown = x
jsonjson object containing the distribution data of the processing performed in ANTT0-1ObjectOnly when status = 200 and tpDown = j
erroObject containing error information0-1ObjectOnly with status other than 200
cStatError Status Code1-1Interro
xMotivoLiteral description of the error1-1Stringerro
Response Examples

Successful Response

{
	"status": 200,
	"motivo": "Consulta realizada com sucesso",
	"chave": "2021080856488900012500000002536000000016",
	"xml": "..."
}
Returned Codes
CódigoDescrição
200Log submission successfully executed.
-2Request data validation error.
-3Errors in log processing after sending to Core/ANTT
-4Errors in log processing after sending to Core/ANTT
-5Errors in log processing after sending to Core/ANTT
-6Document already processed and authorized. Check the nsNRec informed of the response.

Como podemos ajudar?