1. Inicio
  2. Documentos
  3. NS ANTT ( English )
  4. InserirLogVendaPassagem
  5. Check Processing Status

Check Processing Status

This service is used to consult the processing status of the InserirLogVendaPassagem method previously sent to ANTT in the Sending Data request.

URL

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

Input Data
FieldOccurrenceData TypeDescription
X-AUTH-TOKEN1-1StringSoftware House Access Token
CNPJ1-1IntCNPJ of the company approved by ANTT
nsNRec1-1IntProcessing code ( ID )
Request Example

Check Processing Status Request in JSON Format

{
    "X-AUTH-TOKEN": "YOUR_TOKEN_HERE",
    "CNPJ": "11111111111111",
    "nsNRec": 107
}
Response Data
FieldOccurrenceData TypeParentDescription
status1-1IntProcessing Status Code
Motivo1-1StringLiteral description of processing status
cStat1-1Int or StringProcessing Status Status Code
chPassagem1-1Int or StringTicket Sale Log Access Key
idTransacao1-1StringTransaction ID of the InserirLogVendaPassagem method
log_doc1-1ObjectObject containing the data that were processed in the InserirLogvendaPassagem method
idLog1-1IntlogEmissaoLog identifier code processed at ANTT
codigoBilheteEmbarque1-1IntlogEmissaoticket identifier code
boarding:

0 = Normal;
1 = Free;
cnpjEmpresa1-1StringlogEmissaoCNPJ of the company approved by ANTT
numeroSerieEquipamentoFiscal1-1StringlogEmissaoEquipment serial number
issuing tax or key of
BP-e access
numeroBilheteEmbarque1-1StringlogEmissaoTicket number sent.

(nBP)
dataEmissaoBilhete1-1StringlogEmissaoDate of issue of the ticket sent.

UTC Standard: YYYYMMDD
horaEmissaoBilhete1-1StringlogEmissaoTime for issuing the ticket sent.

UTC Standard: HHMMSS
codigoCategoriaTransporte1-1IntlogEmissaoTransport Category

01 = interstate
02 = international
03 = intercity
04 = municipal
identificacaoLinha1-1StringlogEmissaoLine identification;
prefix:

road [8] or itinerary;

semi-urban [4], if applicable
(differentiated service)
idPontoOrigemViagem1-1IntlogEmissaoLocation of origin code of the
ticket.

The IBGE code of the municipality can be used
idPontoDestinoViagem1-1IntlogEmissaoDestination point code of
ticket.

The IBGE code of the municipality can be used
codigoTipoServico1-1IntlogEmissaoType of service offered in transport:

01: Conventional, with toilet;

02: Conventional, without toilet;

03: Semi-picked;

04: Bed, with air conditioning;

05: Bed, without air conditioning;

06: Executive;

07: Semi-urban;
dataViagem1-1StringlogEmissaoTicket trip data.

UTC Standard: YYYYMMDD
horaViagem1-1StringlogEmissaoTicket Travel Time.

UTC Standard: HHMMSS
codigoTipoViagem1-1IntlogEmissaoType of trip:

00: Regular;

01: extra01;

02: extra02;

03: extra03;

04: extra04;

(...)

NN: extraXX
numeroPoltrona1-1IntlogEmissaoseat number
plataformaEmbarque1-1StringlogemissaoBoarding Platform
codigoMotivoDesconto1-1IntlogEmissaoReason for discount:

01: Standard Rate – no discount;

02: Promotional Rate - Paragraph 3, art. 27 of Decree No. 2.521/98

05: Travel Ticket for the Elderly 100% - Item I, art. 40 of Law No.
10741/03;

06: Elderly Travel Ticket 50% - Item II, art. 40 of Law No.
10741/03

07: Travel Authorization - Free Pass - Art. 1 of Law No. 8.899/94;

08: Free Pass Auditors and Labor Agents - Art. 34 of the Decree
No. 4,552/02;

09: Child Free - Item XVII, art. 29 of Decree No.
2,521/98;

10: Youth Travel Ticket 100% - Item I, art. 32 of Law No.
12,852/13;

11: Youth Travel Ticket 50% - Item II, art. 32 of Law No.
12,852/13;

12: Travel Authorization - Free Companion Pass - Art. 1 of
Law No. 8.899/94;
valorTarifa1-1IntlogEmissaoFee Value

Formatting: 10.2

Min: 0.00;
Max: 99999999.99
percentualDesconto1-1FloatlogEmissaoPercentual do desconto.

Formatação: 5,2

Min: 0.00;
Max: 100.00;
aliquotaICMS1-1FloatLogEmissaoPercentual da Alíquota do ICMS.

Formatação: 5,2

Min: 0.00;
Max: 100.00;
valorPedagio1-1FloatLogEmissaoToll Value

Formatting: 10.2

Min: 0.00;
Max: 99999999.99
valorTaxaEmbarque1-1FloatLogEmissaoBoarding Tax Value

Formatting: 5.2

Min: 0.00;
Max: 100.00;
valorTotal1-1FloatLogEmissaoTotal Amount

Formatting: 5.2

Min: 0.00;
Max: 100.00;
informacoesPassageiro1-1ObjectObject containing the passenger data that was informed in the ticket sent to be processed by the InserirLogVendaPassagemmethod
nomePassageiro1-1StringinformacoesPassageiroPassenger name
documentoIdentificacaoPassageiro1-1StringinformacoesPassageiroIdentification document of the
passenger

Example: "CPF"
cpfPassageiro0-1StringinformacoesPassageiroPassenger CPF
celularPassageiro0-1StringinformacoesPassageiroPassenger Telephone Number

Examples:
+5521915140585;
5121915140585;
21915140585;
2184340791
tpAmb1-1StringEnvironment where the InsertLogVendaPassagem method processing was generated

1 = Production;
2 = Test Environment
xMotivo1-1StringLiteral Description of "cStat"
Response Examples

Successful Response

{
    "status": 200,
    "motivo": "Consulta realizada com sucesso",
    "cStat": "100",
    "chPassagem": "2021080736561800025500000002536000000016",
    "idTransacao": "56492653-ah0b-46h5-995a-f61d8a945eaa",
    "log_doc": {
        "idLog": 0,
        "codigoBilheteEmbarque": 1,
        "cnpjEmpresa": "07364617000135",
        "numeroSerieEquipamentoFiscal": "43210807364617000135630060000023521000000012",
        "numeroBilheteEmbarque": "000002352",
        "dataEmissaoBilhete": "20210823",
        "horaEmissaoBilhete": "160600",
        "codigoCategoriaTransporte": 2,
        "identificacaoLinha": "00000001",
        "idPontoOrigemViagem": 4314902,
        "idPontoDestinoViagem": 4106902,
        "codigoTipoServico": 1,
        "dataViagem": "20210823",
        "horaViagem": "173145",
        "codigoTipoViagem": 1,
        "numeroPoltrona": 1,
        "plataformaEmbarque": "5",
        "codigoMotivoDesconto": 1,
        "valorTarifa": 50.0,
        "percentualDesconto": 0.0,
        "aliquotaICMS": 17.0,
        "valorPedagio": 0.0,
        "valorTaxaEmbarque": 10.0,
        "valorTotal": 60.0,
        "informacoesPassageiro": {
            "nomePassageiro": "JOHN DOE",
            "documentoIdentificacaoPassageiro": "CPF",
            "cpfPassageiro": "00268825074",
            "celularPassageiro": "51988695436"
        }
    },
    "tpAmb": "2",
    "xMotivo": "Ação executada com sucesso."
}

Unsuccessful Response

{
	"status": -5,
	"motivo": "Nao foi possivel carregar o status do Log de Venda de Passagem",
	"erro": {
		"cStat": 2,
		"xMotivo": "Erro de validação de dados na ANTT"
	}
}
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?