Consulta por ID

Endpoint


Exemplo cURL

curl -X 'GET' \
  'https://apim.niiw.io/api/receipt/6504558124399ee6271cce7d' \
  -H 'accept: */*' \
  -H 'Authorization: Bearer eyJhbGc............................'

Exemplo Response Body

{
  "items": [
    {
      "code": "62........",
      "description": "BEB........",
      "quantity": 1,
      "unit": "UN",
      "unitValue": 29.99,
      "value": 29.99,
      "ncm": "22........",
      "ncmName": "Vin........",
      "cfop": "5405",
      "valueDiscount": 0,
      "valueTransport": 0,
      "valueInsurance": 0,
      "originGoods": "0 - Nacional",
      "tributationICMS": "60 - ICM........",
      "baseCalculationICMSNormal": 0,
      "aliquotICMSNormal": 0,
      "valueICMSNormal": 0,
      "comercialCodeEAN": "77........",
      "comercialUnit": "UN",
      "comercialQuantity": 1000,
      "tributableCodeEAN": "77........",
      "tributableUnit": "UN",
      "tributableQuantity": 1000,
      "comercializationUnitValue": 29.99,
      "tributalizationUnitValue": 29.99,
      "tributeValueAproximated": 14.2
    }
  ],
  "removed": false,
  "_id": "65........",
  "created_at": "2023-09-15T13:01:22.886Z",
  "receipt": "65........",
  "user": "61........",
  "origin": {
    "qrcode": "53........",
    "accessCode": "53........",
    "state": "DF",
    "type": "NFCe"
  },
  "company": {
    "cnpj": "21........",
    "matrixBranchIdentifier": "2",
    "registrationStatus": "ATIVA",
    "registrationStatusDate": "2017-06-06T00:00:00.000Z",
    "startActivityDate": "2017-06-06T00:00:00.000Z",
    "mainFiscalCnae": "47........",
    "cnae": "Seç........",
    "mainActivity": [
      {
        "code": "471........",
        "text": "Comé........"
      }
    ],
    "secondaryActivities": [
      {
        "code": "00........",
        "text": "Não........"
      }
    ],
    "street": "RUA........",
    "number": "S/N",
    "complement": "LOT........",
    "neighborhood": "SUL........",
    "postalCode": "71........",
    "state": "DF",
    "phones": [
      "61........"
    ],
    "email": "nad........",
    "tradeName": "BEL........",
    "streetType": "FILIAL",
    "legalName": "SIC........"
  },
  "data": {
    "number": "13........",
    "issueDate": "2023-09-05T18:17:29.000Z",
    "authorizationDate": "2023-09-10T15:06:54.000Z",
    "authorizationProtocol": "35........",
    "accessKey": "53........",
    "taxpayerInterest": "135668",
    "quantityItems": 9,
    "value": 64.91,
    "discount": 0,
    "valueToPay": 64.91,
    "formOfPayment": "Cartão de Débito",
    "change": 0,
    "tax": 30.34,
    "serie": "107"
  },
  "nfce": {
    "xmlVersion": "4.00",
    "accessKey": "53-2........",
    "numberNFC": "13........",
    "issueDate": "2023-09-05T18:17:29.000Z",
    "model": "65",
    "serie": "107",
    "totalValue": "64,91",
    "qrCode": "http://dec.faz........",
    "eventsNFe": "Auto........",
    "protocol": "35........",
    "dateTime": "2023-09-10T15:06:54.000Z",
    "baseCalculationICMS": 0.18,
    "valueICMS": 0.04,
    "baseCalculationICMSST": 0,
    "valueICMSReplacement": 0,
    "valueICMSFCPUFDest": 0,
    "valueICMSIntUFDest": 0,
    "valueICMSIntUFRemet": 0,
    "valueTotalProducts": 64.91,
    "valueTransport": 0,
    "valueInsurance": 0,
    "otherAdditionalCost": 0,
    "totalValueIPI": 0,
    "totalValueNFCe": 64.91,
    "totalValueDiscount": 0,
    "totalValueII": 0,
    "valuePIS": 0,
    "valueCONFINS": 0,
    "transportModality": "9-SemFrete",
    "formOfPayment": "4 - Cartão de Débito",
    "valuePaid": 64.91,
    "operatorFlag": "99 - Outros",
    "numberAuthorization": "091767",
    "printFormatDANFE": "4 - DANFE NFC-e",
    "xsltVersion": "v3.1.0",
    "complementInformationTaxPayer": "Tri........"
  },
  "_class": "io.niiw.data.analysis.domain.entity.EnrichedReceipt"
}

Last updated