1. Inicio
  2. Documentos
  3. NS NF3e (English)
  4. NS NF3-e API Utility Func...
  5. List of nsNRecs linked to an NF3-e

List of nsNRecs linked to an NF3-e

Through this endpoints it’s possible to consult a list of NSNRecs linked to an NF3-e using its access key.

URL

Production: POST https://nf3e.ns.eti.br/v1/util/list/nsnrecs

Input Data

The input data of this method must be sent in the request body in JSON format or as QueryString in the method URL.

FieldDescriptionData TypeOccurrenceNotes
X-AUTH-TOKENUser access tokenString1-1
chNF3eNF3-e access keyInt1-1
tpAmbNF3-e authorization environment type: 1 - Production, 2 - HomologationInt0-1Standard value: 1
Request Example

NSNRecs list request

curl -X POST \
-H "Content-Type: application/json" \
-d '{"X-AUTH-TOKEN": "YOUR_TOKEN", "chNF3e": "11111111111111111111111111111111111111111111", "tpAmb": 2}'\
https://nf3e.ns.eti.br/v1/util/list/nsnrecs
Returned Data
FieldDescriptionData TypeOccurrenceParentNotes
statusProcessing status codeInt1-1
motivoLiteral description of the processing statusString1-1
nsNRecsObject containing the processing dataArray1-1Will only contain items if founded nsNRecs linked to the give NF3-e key
nsNRecsLinked nsNRecInt1-1nsNRecs
cStatnsNRec statusInt1-1nsNRecs
xMotivoLiteral description of the nsNRec statusString1-1nsNRecs
Response Examples

Successful response

{
    "status": 200,
    "motivo": "Consulta realizada com sucesso",
    "nsNRecs": [
        {
            "cStat": 437,
            "nsNRec": 4,
            "xMotivo": "Rejeição: A soma das tarifas aplicadas não pode ser maior que o valor unitário do item [nItem:1]"
        },
        {
            "cStat": 437,
            "nsNRec": 5,
            "xMotivo": "Rejeição: A soma das tarifas aplicadas não pode ser maior que o valor unitário do item [nItem:1]"
        },
        {
            "cStat": 437,
            "nsNRec": 6,
            "xMotivo": "Rejeição: A soma das tarifas aplicadas não pode ser maior que o valor unitário do item [nItem:1]"
        },
        {
            "cStat": 100,
            "nsNRec": 7,
            "xMotivo": "Autorizado o uso da NF3e "
        }
    ]
}
Return Codes
CodeDescription
200Consult successfully done
-2Invalid access key
-6Error loading information

Como podemos ajudar?