1. Home
  2. Docs
  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;
2 = Discount Provided by Law
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

1 = interstate
2 = internationa
identificacaoLinha1-1StringlogEmissaoLine identification;
prefix:
(Regular Road Transport)
[8], [11] ou [12]
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:

1: A (Bed);

2: B (Bed) - leito;

3: C (Semi-bed);

4: D (Executive);

5: E (basic)
dataViagem1-1StringlogEmissaoTicket trip data.

UTC Standard: YYYYMMDD
horaViagem1-1StringlogEmissaoTicket Travel Time.

UTC Standard: HHMMSS
codigoTipoViagem1-1IntlogEmissaoType of trip:

0 - Does not meet Minimum Regularity/Frequency
1 - Meets Minimum Regularity/Frequency
numeroPoltrona1-1IntlogEmissaoseat number
plataformaEmbarque1-1StringlogemissaoBoarding Platform
codigoMotivoDesconto1-1IntlogEmissaoReason for discount:

0 - Standard Rate – no discount;
1 - Promotional Rate
2 - Elderly Person (free)
3 - Elderly Person (minimum 50% discount)
4 - Holder of Free Pass Credential
5 - Companion of Holder of Free Pass Credential
6 - Youth (free)
7 - Youth (minimum 50% discount)
8 - Lap Child (up to 6 years old)
9 - Auditor or Labor Agent
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;
valorICMS1-1FloatLogEmissaoMin: 0.00;
Max: 99999999.99; NumeroChar();
origemEmissao1-1IntLogEmissao01 = In-person;
02 = Embarked;
03 = Internet;
04 = Self-service terminal (kiosk
sequenciamento1-1IntLogEmissaoCódigo sequencial de ordenação
Min: 0;
Max: 99
idViagem1-1StringLogEmissaoTrip Identifier Code (Regular Bus Service) Information in the sequence presented and separated by hyphens. Below, the explanation of each item that should be included in the idViagem.
Scheduled Date of the Trip at the Initial Line Point: YYYYMMDD
Scheduled Time of the Trip at the Initial Line Point:HHMMSS
Trip Type Code:
NN 00 = Does not meet the Minimum Regularity; 01 = Meets the Minimum Regularity
Line Direction Code: 0 = Return; 1 = Outbound
Line Prefix SGP/SIGMA: 8, 11, or 12 characters
Example request: YYYYMMDD-HHMMSS-NN-N-PPPPPPPPPPPP
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
dataNascimentoPassageiro1-1StringinformacoesPassageiroPassenger's date of birth:
YYYYMMDD
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": "2024070736461700013500000000152000000010",
    "idTransacao": "e68026a8-d8a3-481b-af57-3d6417515bb3",
    "log_doc": {
        "idLog": 0,
        "codigoBilheteEmbarque": "01",
        "cnpjEmpresa": "07364617000135",
        "numeroSerieEquipamentoFiscal": "43240707364617000135630630000001521000000018",
        "numeroBilheteEmbarque": "000000152",
        "dataEmissaoBilhete": "20240715",
        "horaEmissaoBilhete": "143300",
        "codigoCategoriaTransporte": "02",
        "identificacaoLinha": "00000001",
        "idPontoOrigemViagem": 4314915,
        "idPontoDestinoViagem": 4106910,
        "codigoTipoServico": "01",
        "dataViagem": "20240715",
        "horaViagem": "150000",
        "codigoTipoViagem": "01",
        "numeroPoltrona": 1,
        "plataformaEmbarque": "5",
        "codigoMotivoDesconto": "01",
        "valorTarifa": 85.17,
        "percentualDesconto": 0.0,
        "aliquotaICMS": 17.0,
        "valorICMS": 17.0,
        "valorPedagio": 0.0,
        "valorTaxaEmbarque": 20.0,
        "valorTotal": 75.17,
        "sequenciamento": 0,
        "origemEmissao": "01",
        "idViagem": null,
        "informacoesPassageiro": {
            "nomePassageiro": "Rafael Dall Agnol Ecco",
            "dataNascimentoPassageiro": null,
            "tipoDocumentoIdentificacaoPassageiro": 1,
            "documentoIdentificacaoPassageiro": "03037398",
            "cpfPassageiro": null,
            "celularPassageiro": null
        }
    },
    "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.

How can we help?