Consulta categorias do produto
Endpoint
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": {}
}
]
}
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": {}
}
]
}
Last updated