Documentação NIIW API
  • Comece aqui
  • API Reference
    • Info
    • Autenticação
    • Nota Fiscal
      • Adicionar da Nota Fiscal
      • Consulta por ID
      • Consulta de Notas Fiscais
      • Quantidade de notas em processamento
      • Lista de Notas em processamento
      • Reenvio de webhook
    • Produto
      • Consulta de Produtos
      • Consulta por ID
      • Consulta categorias do produto
      • De acordo com as suas últimas compras
    • Dados CPF/CNPJ
      • Consulta por CPF e Data de Nascimento
      • Consulta por CPF
      • Consulta por CNPJ
  • Suporte
    • Precisa de ajuda?
Powered by GitBook
On this page
  1. API Reference
  2. Produto

De acordo com as suas últimas compras

PreviousConsulta categorias do produtoNextDados CPF/CNPJ

Last updated 1 year ago

Endpoint


Exemplo cURL

curl -X 'GET' \
  'https://apim.niiw.io/api/product/lasted/list' \
  -H 'accept: application/json' \
  -H 'Authorization: Bearer eyJhbGciOiJI..........'

Exemplo Request Body

[
  {
    "_id": "string",
    "brand": {
      "name": "string",
      "picture": "string"
    },
    "description": "string",
    "thumbnail": "string",
    "price": "string",
    "max_price": 0,
    "min_price": 0,
    "avg_price": 0,
    "category": "string",
    "category_level_0": "string",
    "category_level_1": "string",
    "category_level_2": "string",
    "category_level_3": "string",
    "category_level_4": "string",
    "gtin": "string",
    "gpc": {
      "code": "string",
      "description": "string"
    },
    "ncm": {
      "code": "string",
      "description": "string",
      "full_description": "string"
    },
    "cest": {
      "id": 0,
      "code": "string",
      "description": "string",
      "parent_id": 0
    },
    "payload": {}
  }
]

De acordo com as suas últimas compras

get

Recupera os últimos 100 produtos processados do usuário autenticado

Authorizations
Responses
200
Operação bem sucedida
application/json
404
Não encontrado
get
GET /api/product/lasted/list HTTP/1.1
Host: apim.niiw.io
Authorization: Bearer JWT
Accept: */*
[
  {
    "_id": "text",
    "brand": {
      "name": "text",
      "picture": "text"
    },
    "description": "text",
    "thumbnail": "text",
    "price": "text",
    "max_price": 1,
    "min_price": 1,
    "avg_price": 1,
    "category": "text",
    "category_level_0": "text",
    "category_level_1": "text",
    "category_level_2": "text",
    "category_level_3": "text",
    "category_level_4": "text",
    "gtin": "text",
    "gpc": {
      "code": "text",
      "description": "text"
    },
    "ncm": {
      "code": "text",
      "description": "text",
      "full_description": "text"
    },
    "cest": {
      "id": 1,
      "code": "text",
      "description": "text",
      "parent_id": 1
    },
    "payload": {}
  }
]
  • Endpoint
  • GETDe acordo com as suas últimas compras
  • Exemplo cURL
  • Exemplo Request Body