1. Inicio
  2. Documentos
  3. NS ANTT ( English )
  4. Utility
  5. nsNRec listing

nsNRec listing

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

FieldDescriptionData TypeOccurrenceNote
X-AUTH-TOKENUser access tokenString1-1
chaveAccess key of the processing generated in the ANTT previouslyString1-1
tpAmbType of Environment:

1 - Production;
2 - Test environment
String1-1
Request Example

nsNRec listing request example in JSON format

{
	"X-AUTH-TOKEN": "YOUR_TOKEN_HERE",
	"chave": "2021080865988700016511000002351000000010",
	"tpAmb": "2"
}
Response Data
FieldDescriptionData TypeOccurrenceParentNote
StatusProcessing Status CodeInt1-1
MotivoLiteral description of processing statusString1-1
nsNRecsObject containing the listing of linked nsNRecObject Array1-1Contains items only if nsNRecs are found linked to the processing key provided
nsNRecsnsNRec linkedInt1-1nsNRecs
cStatnsNRec status codeInt1-1nsNRecs
xMotivoLiteral description of nsNRec statusString1-1nsNRecs
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ó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?