Through this endoint it is possible to consult the list of NSNRecs linked to a processing of the InserirLogVendaPassagem method from its access key.
URL
Production: POST https://antt.ns.eti.br/v1/util/listar/nsnrecs
Input Data
The input data of this method must be sent in the request body as JSON format
| Field | Description | Data Type | Occurrence | Note |
|---|---|---|---|---|
| X-AUTH-TOKEN | User access token | String | 1-1 | |
| chave | Access key of the processing generated in the ANTT previously | String | 1-1 | |
| tpAmb | Type of Environment: 1 - Production; 2 - Test environment | String | 1-1 |
Request Example
nsNRec listing request example in JSON format
{
"X-AUTH-TOKEN": "YOUR_TOKEN_HERE",
"chave": "2021080865988700016511000002351000000010",
"tpAmb": "2"
}
Response Data
| Field | Description | Data Type | Occurrence | Parent | Note |
|---|---|---|---|---|---|
| Status | Processing Status Code | Int | 1-1 | ||
| Motivo | Literal description of processing status | String | 1-1 | ||
| nsNRecs | Object containing the listing of linked nsNRec | Object Array | 1-1 | Contains items only if nsNRecs are found linked to the processing key provided | |
| nsNRecs | nsNRec linked | Int | 1-1 | nsNRecs | |
| cStat | nsNRec status code | Int | 1-1 | nsNRecs | |
| xMotivo | Literal description of nsNRec status | String | 1-1 | nsNRecs |
Response Examples
Successful Response
{
"status": 200,
"motivo": "Consulta realizada com sucesso",
"NSNRecs": [
{
"cStat": 100,
"nsNRec": 105,
"xMotivo": "Ação executada com sucesso."
}
]
}
Returned Codes
| Código | Descrição |
|---|---|
| 200 | Log submission successfully executed. |
| -2 | Request data validation error. |
| -3 | Errors in log processing after sending to Core/ANTT |
| -4 | Errors in log processing after sending to Core/ANTT |
| -5 | Errors in log processing after sending to Core/ANTT |
| -6 | Document already processed and authorized. Check the nsNRec informed of the response. |