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

Consulta categorias do produto

PreviousConsulta por IDNextDe acordo com as suas últimas compras

Last updated 1 year ago

Endpoint


Exemplo cURL

curl -X 'GET' \
  'https://apim.niiw.io/api/product/category/6244c113effb563129001536/pager/1/10/' \
  -H 'accept: application/json' \
  -H 'Authorization: Bearer eyJhbGciOiJIUzI1N...................'

Exemplo Request Body

{
  "page": 0,
  "perPage": 0,
  "total": 0,
  "list": [
    {
      "_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": {}
    }
  ]
}

Consulta paginada com filtro

get

Consulta de paginada de produtos por NCM

Authorizations
Path parameters
perPagenumberRequired

Número de registros por página

pagenumberRequired

Página de resultados a ser recuperada (0..N)

codestringRequired

Código

Responses
200Success
application/json
Responseall of
and
get
GET /api/product/category/{code}/pager/{page}/{perPage}/ HTTP/1.1
Host: apim.niiw.io
Authorization: Bearer JWT
Accept: */*
200Success
{
  "page": 1,
  "perPage": 1,
  "total": 1,
  "list": [
    {
      "_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
  • GETConsulta paginada com filtro
  • Exemplo cURL
  • Exemplo Request Body