Catálogo online (admin)
Catálogo, zonas de entrega e pedidos do catálogo online — as rotas mantêm o nome interno /convenience.
Base: https://api.nivesistemas.com.br · 26 endpoints
GET /convenience/settings
Seção intitulada “GET /convenience/settings”Obter configurações
curl -X GET "https://api.nivesistemas.com.br/convenience/settings" \ -H "Authorization: Bearer sl_live_exemplo_abc123xyz789" \ -H "X-Store-Slug: loja-demo"const res = await fetch("https://api.nivesistemas.com.br/convenience/settings", { method: "GET", headers: { Authorization: "Bearer sl_live_exemplo_abc123xyz789", "X-Store-Slug": "loja-demo", },});const data = await res.json();import requests
res = requests.request( "GET", "https://api.nivesistemas.com.br/convenience/settings", headers={ "Authorization": "Bearer sl_live_exemplo_abc123xyz789", "X-Store-Slug": "loja-demo", },)print(res.json())PUT /convenience/settings
Seção intitulada “PUT /convenience/settings”Atualizar configurações
curl -X PUT "https://api.nivesistemas.com.br/convenience/settings" \ -H "Authorization: Bearer sl_live_exemplo_abc123xyz789" \ -H "X-Store-Slug: loja-demo"const res = await fetch("https://api.nivesistemas.com.br/convenience/settings", { method: "PUT", headers: { Authorization: "Bearer sl_live_exemplo_abc123xyz789", "X-Store-Slug": "loja-demo", },});const data = await res.json();import requests
res = requests.request( "PUT", "https://api.nivesistemas.com.br/convenience/settings", headers={ "Authorization": "Bearer sl_live_exemplo_abc123xyz789", "X-Store-Slug": "loja-demo", },)print(res.json())GET /convenience/cities
Seção intitulada “GET /convenience/cities”Listar cidades
curl -X GET "https://api.nivesistemas.com.br/convenience/cities" \ -H "Authorization: Bearer sl_live_exemplo_abc123xyz789" \ -H "X-Store-Slug: loja-demo"const res = await fetch("https://api.nivesistemas.com.br/convenience/cities", { method: "GET", headers: { Authorization: "Bearer sl_live_exemplo_abc123xyz789", "X-Store-Slug": "loja-demo", },});const data = await res.json();import requests
res = requests.request( "GET", "https://api.nivesistemas.com.br/convenience/cities", headers={ "Authorization": "Bearer sl_live_exemplo_abc123xyz789", "X-Store-Slug": "loja-demo", },)print(res.json())POST /convenience/cities
Seção intitulada “POST /convenience/cities”Criar cidade
curl -X POST "https://api.nivesistemas.com.br/convenience/cities" \ -H "Authorization: Bearer sl_live_exemplo_abc123xyz789" \ -H "X-Store-Slug: loja-demo"const res = await fetch("https://api.nivesistemas.com.br/convenience/cities", { method: "POST", headers: { Authorization: "Bearer sl_live_exemplo_abc123xyz789", "X-Store-Slug": "loja-demo", },});const data = await res.json();import requests
res = requests.request( "POST", "https://api.nivesistemas.com.br/convenience/cities", headers={ "Authorization": "Bearer sl_live_exemplo_abc123xyz789", "X-Store-Slug": "loja-demo", },)print(res.json())PUT /convenience/cities/:id
Seção intitulada “PUT /convenience/cities/:id”Atualizar cidade
Parâmetros de rota: id
curl -X PUT "https://api.nivesistemas.com.br/convenience/cities/{id}" \ -H "Authorization: Bearer sl_live_exemplo_abc123xyz789" \ -H "X-Store-Slug: loja-demo"const res = await fetch("https://api.nivesistemas.com.br/convenience/cities/{id}", { method: "PUT", headers: { Authorization: "Bearer sl_live_exemplo_abc123xyz789", "X-Store-Slug": "loja-demo", },});const data = await res.json();import requests
res = requests.request( "PUT", "https://api.nivesistemas.com.br/convenience/cities/{id}", headers={ "Authorization": "Bearer sl_live_exemplo_abc123xyz789", "X-Store-Slug": "loja-demo", },)print(res.json())DELETE /convenience/cities/:id
Seção intitulada “DELETE /convenience/cities/:id”Excluir
Parâmetros de rota: id
curl -X DELETE "https://api.nivesistemas.com.br/convenience/cities/{id}" \ -H "Authorization: Bearer sl_live_exemplo_abc123xyz789" \ -H "X-Store-Slug: loja-demo"const res = await fetch("https://api.nivesistemas.com.br/convenience/cities/{id}", { method: "DELETE", headers: { Authorization: "Bearer sl_live_exemplo_abc123xyz789", "X-Store-Slug": "loja-demo", },});const data = await res.json();import requests
res = requests.request( "DELETE", "https://api.nivesistemas.com.br/convenience/cities/{id}", headers={ "Authorization": "Bearer sl_live_exemplo_abc123xyz789", "X-Store-Slug": "loja-demo", },)print(res.json())POST /convenience/cities/:cityId/neighborhoods
Seção intitulada “POST /convenience/cities/:cityId/neighborhoods”Criar bairro
Parâmetros de rota: cityId
curl -X POST "https://api.nivesistemas.com.br/convenience/cities/{cityId}/neighborhoods" \ -H "Authorization: Bearer sl_live_exemplo_abc123xyz789" \ -H "X-Store-Slug: loja-demo"const res = await fetch("https://api.nivesistemas.com.br/convenience/cities/{cityId}/neighborhoods", { method: "POST", headers: { Authorization: "Bearer sl_live_exemplo_abc123xyz789", "X-Store-Slug": "loja-demo", },});const data = await res.json();import requests
res = requests.request( "POST", "https://api.nivesistemas.com.br/convenience/cities/{cityId}/neighborhoods", headers={ "Authorization": "Bearer sl_live_exemplo_abc123xyz789", "X-Store-Slug": "loja-demo", },)print(res.json())PUT /convenience/neighborhoods/:id
Seção intitulada “PUT /convenience/neighborhoods/:id”Atualizar bairro
Parâmetros de rota: id
curl -X PUT "https://api.nivesistemas.com.br/convenience/neighborhoods/{id}" \ -H "Authorization: Bearer sl_live_exemplo_abc123xyz789" \ -H "X-Store-Slug: loja-demo"const res = await fetch("https://api.nivesistemas.com.br/convenience/neighborhoods/{id}", { method: "PUT", headers: { Authorization: "Bearer sl_live_exemplo_abc123xyz789", "X-Store-Slug": "loja-demo", },});const data = await res.json();import requests
res = requests.request( "PUT", "https://api.nivesistemas.com.br/convenience/neighborhoods/{id}", headers={ "Authorization": "Bearer sl_live_exemplo_abc123xyz789", "X-Store-Slug": "loja-demo", },)print(res.json())DELETE /convenience/neighborhoods/:id
Seção intitulada “DELETE /convenience/neighborhoods/:id”Excluir bairro
Parâmetros de rota: id
curl -X DELETE "https://api.nivesistemas.com.br/convenience/neighborhoods/{id}" \ -H "Authorization: Bearer sl_live_exemplo_abc123xyz789" \ -H "X-Store-Slug: loja-demo"const res = await fetch("https://api.nivesistemas.com.br/convenience/neighborhoods/{id}", { method: "DELETE", headers: { Authorization: "Bearer sl_live_exemplo_abc123xyz789", "X-Store-Slug": "loja-demo", },});const data = await res.json();import requests
res = requests.request( "DELETE", "https://api.nivesistemas.com.br/convenience/neighborhoods/{id}", headers={ "Authorization": "Bearer sl_live_exemplo_abc123xyz789", "X-Store-Slug": "loja-demo", },)print(res.json())GET /convenience/catalog-products
Seção intitulada “GET /convenience/catalog-products”Listar produtos do catálogo (paginado)
curl -X GET "https://api.nivesistemas.com.br/convenience/catalog-products" \ -H "Authorization: Bearer sl_live_exemplo_abc123xyz789" \ -H "X-Store-Slug: loja-demo"const res = await fetch("https://api.nivesistemas.com.br/convenience/catalog-products", { method: "GET", headers: { Authorization: "Bearer sl_live_exemplo_abc123xyz789", "X-Store-Slug": "loja-demo", },});const data = await res.json();import requests
res = requests.request( "GET", "https://api.nivesistemas.com.br/convenience/catalog-products", headers={ "Authorization": "Bearer sl_live_exemplo_abc123xyz789", "X-Store-Slug": "loja-demo", },)print(res.json())PATCH /convenience/catalog-products/:id
Seção intitulada “PATCH /convenience/catalog-products/:id”Atualizar
Parâmetros de rota: id
curl -X PATCH "https://api.nivesistemas.com.br/convenience/catalog-products/{id}" \ -H "Authorization: Bearer sl_live_exemplo_abc123xyz789" \ -H "X-Store-Slug: loja-demo"const res = await fetch("https://api.nivesistemas.com.br/convenience/catalog-products/{id}", { method: "PATCH", headers: { Authorization: "Bearer sl_live_exemplo_abc123xyz789", "X-Store-Slug": "loja-demo", },});const data = await res.json();import requests
res = requests.request( "PATCH", "https://api.nivesistemas.com.br/convenience/catalog-products/{id}", headers={ "Authorization": "Bearer sl_live_exemplo_abc123xyz789", "X-Store-Slug": "loja-demo", },)print(res.json())GET /convenience/orders
Seção intitulada “GET /convenience/orders”Listar pedidos
curl -X GET "https://api.nivesistemas.com.br/convenience/orders" \ -H "Authorization: Bearer sl_live_exemplo_abc123xyz789" \ -H "X-Store-Slug: loja-demo"const res = await fetch("https://api.nivesistemas.com.br/convenience/orders", { method: "GET", headers: { Authorization: "Bearer sl_live_exemplo_abc123xyz789", "X-Store-Slug": "loja-demo", },});const data = await res.json();import requests
res = requests.request( "GET", "https://api.nivesistemas.com.br/convenience/orders", headers={ "Authorization": "Bearer sl_live_exemplo_abc123xyz789", "X-Store-Slug": "loja-demo", },)print(res.json())GET /convenience/orders/summary
Seção intitulada “GET /convenience/orders/summary”Resumo
curl -X GET "https://api.nivesistemas.com.br/convenience/orders/summary" \ -H "Authorization: Bearer sl_live_exemplo_abc123xyz789" \ -H "X-Store-Slug: loja-demo"const res = await fetch("https://api.nivesistemas.com.br/convenience/orders/summary", { method: "GET", headers: { Authorization: "Bearer sl_live_exemplo_abc123xyz789", "X-Store-Slug": "loja-demo", },});const data = await res.json();import requests
res = requests.request( "GET", "https://api.nivesistemas.com.br/convenience/orders/summary", headers={ "Authorization": "Bearer sl_live_exemplo_abc123xyz789", "X-Store-Slug": "loja-demo", },)print(res.json())GET /convenience/orders/:id
Seção intitulada “GET /convenience/orders/:id”Detalhe
Parâmetros de rota: id
curl -X GET "https://api.nivesistemas.com.br/convenience/orders/{id}" \ -H "Authorization: Bearer sl_live_exemplo_abc123xyz789" \ -H "X-Store-Slug: loja-demo"const res = await fetch("https://api.nivesistemas.com.br/convenience/orders/{id}", { method: "GET", headers: { Authorization: "Bearer sl_live_exemplo_abc123xyz789", "X-Store-Slug": "loja-demo", },});const data = await res.json();import requests
res = requests.request( "GET", "https://api.nivesistemas.com.br/convenience/orders/{id}", headers={ "Authorization": "Bearer sl_live_exemplo_abc123xyz789", "X-Store-Slug": "loja-demo", },)print(res.json())PATCH /convenience/orders/:id/fulfillment
Seção intitulada “PATCH /convenience/orders/:id/fulfillment”Atualizar fulfillment do pedido
Parâmetros de rota: id
curl -X PATCH "https://api.nivesistemas.com.br/convenience/orders/{id}/fulfillment" \ -H "Authorization: Bearer sl_live_exemplo_abc123xyz789" \ -H "X-Store-Slug: loja-demo"const res = await fetch("https://api.nivesistemas.com.br/convenience/orders/{id}/fulfillment", { method: "PATCH", headers: { Authorization: "Bearer sl_live_exemplo_abc123xyz789", "X-Store-Slug": "loja-demo", },});const data = await res.json();import requests
res = requests.request( "PATCH", "https://api.nivesistemas.com.br/convenience/orders/{id}/fulfillment", headers={ "Authorization": "Bearer sl_live_exemplo_abc123xyz789", "X-Store-Slug": "loja-demo", },)print(res.json())POST /convenience/orders/:id/finalize-cod
Seção intitulada “POST /convenience/orders/:id/finalize-cod”Finalizar pedido COD
Parâmetros de rota: id
curl -X POST "https://api.nivesistemas.com.br/convenience/orders/{id}/finalize-cod" \ -H "Authorization: Bearer sl_live_exemplo_abc123xyz789" \ -H "X-Store-Slug: loja-demo"const res = await fetch("https://api.nivesistemas.com.br/convenience/orders/{id}/finalize-cod", { method: "POST", headers: { Authorization: "Bearer sl_live_exemplo_abc123xyz789", "X-Store-Slug": "loja-demo", },});const data = await res.json();import requests
res = requests.request( "POST", "https://api.nivesistemas.com.br/convenience/orders/{id}/finalize-cod", headers={ "Authorization": "Bearer sl_live_exemplo_abc123xyz789", "X-Store-Slug": "loja-demo", },)print(res.json())GET /convenience/catalogs
Seção intitulada “GET /convenience/catalogs”Listar catálogos online
curl -X GET "https://api.nivesistemas.com.br/convenience/catalogs" \ -H "Authorization: Bearer sl_live_exemplo_abc123xyz789" \ -H "X-Store-Slug: loja-demo"const res = await fetch("https://api.nivesistemas.com.br/convenience/catalogs", { method: "GET", headers: { Authorization: "Bearer sl_live_exemplo_abc123xyz789", "X-Store-Slug": "loja-demo", },});const data = await res.json();import requests
res = requests.request( "GET", "https://api.nivesistemas.com.br/convenience/catalogs", headers={ "Authorization": "Bearer sl_live_exemplo_abc123xyz789", "X-Store-Slug": "loja-demo", },)print(res.json())POST /convenience/catalogs
Seção intitulada “POST /convenience/catalogs”Criar catálogo
Corpo (JSON)
| Campo | Tipo | Obrigatório | Descrição |
|---|---|---|---|
name |
string | sim | Nome |
active |
boolean | não | Ativo |
templateId |
string | não | Modelo visual |
brandColor |
string | não | Cor da marca |
whatsappOrderEnabled |
boolean | não | Pedido via WhatsApp |
whatsappPhone |
string | não | |
showInactiveProducts |
boolean | não | Mostra produtos inativos como Indisponível (sem compra) |
showOutOfStock |
boolean | não | Mostra produtos esgotados como Esgotado (sem compra) |
carouselLayout |
boolean | não | Vitrine em carrossel por categoria (padrão: grade) |
ageGateEnabled |
boolean | não | Vitrine pede confirmação de maior de 18 anos antes de mostrar os produtos |
combos |
array | não | Combos da capa da vitrine (substitui a lista inteira; [] tira todos): [{ name, description?, price?, items: [{ productId, variantId?, quantity }] }]. price nulo = soma dos produtos. Kit com sabor à escolha (grade por combinação): item com o productId do kit e SEM variantId faz a vitrine perguntar os sabores; com variantId fica fixo naquela combinação. Kit já tem preço: deixe price nulo. Oferta/banner de um produto só na capa (ex.: Cerveja R$ 6,99 ao lado de um combo) = combo com 1 item e price da oferta |
lists |
array | não | Listas livres da vitrine, antes das categorias: [{ id?, title, productIds: string[] }] na ordem em que aparecem (até 30 listas, 200 produtos cada). Manda todas: a que não vier é apagada. Pelo MCP, prefira a ferramenta listas_do_catalogo |
highlightColor |
string | não | Cor de destaque da vitrine (hex). null = a do modelo |
heroTag |
string | não | Capa: selo curto no topo (null = sem selo) |
heroTitle |
string | não | Capa: primeira linha |
heroHighlight |
string | não | Capa: linha em destaque (na cor de destaque) |
showWhatsappContact |
boolean | não | Botão de WhatsApp no topo da vitrine (usa whatsappPhone) |
bannerDataUrl |
string | não | Banner no topo da vitrine (data URL PNG/JPEG/WebP; null remove) |
fulfillmentLocationId |
uuid | não | Local que atende |
Resposta: 201 Created
curl -X POST "https://api.nivesistemas.com.br/convenience/catalogs" \ -H "Authorization: Bearer sl_live_exemplo_abc123xyz789" \ -H "X-Store-Slug: loja-demo" \ -H "Content-Type: application/json" \ -d '{"name":"Exemplo","active":true,"templateId":"","brandColor":"","whatsappOrderEnabled":true,"whatsappPhone":"","showInactiveProducts":true,"showOutOfStock":true,"carouselLayout":true,"ageGateEnabled":true,"combos":[],"lists":[],"highlightColor":"","heroTag":"","heroTitle":"","heroHighlight":"","showWhatsappContact":true,"bannerDataUrl":"","fulfillmentLocationId":"00000000-0000-0000-0000-000000000000"}'const res = await fetch("https://api.nivesistemas.com.br/convenience/catalogs", { method: "POST", headers: { Authorization: "Bearer sl_live_exemplo_abc123xyz789", "X-Store-Slug": "loja-demo", "Content-Type": "application/json", }, body: JSON.stringify({ "name": "Exemplo", "active": true, "templateId": "", "brandColor": "", "whatsappOrderEnabled": true, "whatsappPhone": "", "showInactiveProducts": true, "showOutOfStock": true, "carouselLayout": true, "ageGateEnabled": true, "combos": [], "lists": [], "highlightColor": "", "heroTag": "", "heroTitle": "", "heroHighlight": "", "showWhatsappContact": true, "bannerDataUrl": "", "fulfillmentLocationId": "00000000-0000-0000-0000-000000000000" }),});const data = await res.json();import requests
res = requests.request( "POST", "https://api.nivesistemas.com.br/convenience/catalogs", headers={ "Authorization": "Bearer sl_live_exemplo_abc123xyz789", "X-Store-Slug": "loja-demo", }, json={ "name": "Exemplo", "active": True, "templateId": "", "brandColor": "", "whatsappOrderEnabled": True, "whatsappPhone": "", "showInactiveProducts": True, "showOutOfStock": True, "carouselLayout": True, "ageGateEnabled": True, "combos": [], "lists": [], "highlightColor": "", "heroTag": "", "heroTitle": "", "heroHighlight": "", "showWhatsappContact": True, "bannerDataUrl": "", "fulfillmentLocationId": "00000000-0000-0000-0000-000000000000" },)print(res.json())PATCH /convenience/catalogs/:id
Seção intitulada “PATCH /convenience/catalogs/:id”Atualizar catálogo (só os campos enviados; combos troca a lista de combos e ofertas/banners de produto da capa)
Parâmetros de rota: id
Corpo (JSON)
| Campo | Tipo | Obrigatório | Descrição |
|---|---|---|---|
name |
string | não | Nome |
active |
boolean | não | Ativo |
templateId |
string | não | Modelo visual |
brandColor |
string | não | Cor da marca |
whatsappOrderEnabled |
boolean | não | Pedido via WhatsApp |
whatsappPhone |
string | não | |
showInactiveProducts |
boolean | não | Mostra produtos inativos como Indisponível (sem compra) |
showOutOfStock |
boolean | não | Mostra produtos esgotados como Esgotado (sem compra) |
carouselLayout |
boolean | não | Vitrine em carrossel por categoria (padrão: grade) |
ageGateEnabled |
boolean | não | Vitrine pede confirmação de maior de 18 anos antes de mostrar os produtos |
combos |
array | não | Combos da capa da vitrine (substitui a lista inteira; [] tira todos): [{ name, description?, price?, items: [{ productId, variantId?, quantity }] }]. price nulo = soma dos produtos. Kit com sabor à escolha (grade por combinação): item com o productId do kit e SEM variantId faz a vitrine perguntar os sabores; com variantId fica fixo naquela combinação. Kit já tem preço: deixe price nulo. Oferta/banner de um produto só na capa (ex.: Cerveja R$ 6,99 ao lado de um combo) = combo com 1 item e price da oferta |
highlightColor |
string | não | Cor de destaque da vitrine (hex). null = a do modelo |
heroTag |
string | não | Capa: selo curto no topo (null = sem selo) |
heroTitle |
string | não | Capa: primeira linha |
heroHighlight |
string | não | Capa: linha em destaque (na cor de destaque) |
showWhatsappContact |
boolean | não | Botão de WhatsApp no topo da vitrine (usa whatsappPhone) |
bannerDataUrl |
string | não | Banner no topo da vitrine (data URL PNG/JPEG/WebP; null remove) |
sortOrder |
number | não | Posição na lista de catálogos |
fulfillmentLocationId |
uuid | não | Local que atende |
lists |
array | não | Listas livres da vitrine (ex.: Mais vendidos): [{ id?, title, productIds }] na ordem da vitrine. Substitui todas as listas; [] apaga todas |
Resposta: Devolve o catálogo com combos e lists já lidos.
curl -X PATCH "https://api.nivesistemas.com.br/convenience/catalogs/{id}" \ -H "Authorization: Bearer sl_live_exemplo_abc123xyz789" \ -H "X-Store-Slug: loja-demo" \ -H "Content-Type: application/json" \ -d '{"name":"Exemplo","active":true,"templateId":"","brandColor":"","whatsappOrderEnabled":true,"whatsappPhone":"","showInactiveProducts":true,"showOutOfStock":true,"carouselLayout":true,"ageGateEnabled":true,"combos":[],"highlightColor":"","heroTag":"","heroTitle":"","heroHighlight":"","showWhatsappContact":true,"bannerDataUrl":"","sortOrder":0,"fulfillmentLocationId":"00000000-0000-0000-0000-000000000000","lists":[]}'const res = await fetch("https://api.nivesistemas.com.br/convenience/catalogs/{id}", { method: "PATCH", headers: { Authorization: "Bearer sl_live_exemplo_abc123xyz789", "X-Store-Slug": "loja-demo", "Content-Type": "application/json", }, body: JSON.stringify({ "name": "Exemplo", "active": true, "templateId": "", "brandColor": "", "whatsappOrderEnabled": true, "whatsappPhone": "", "showInactiveProducts": true, "showOutOfStock": true, "carouselLayout": true, "ageGateEnabled": true, "combos": [], "highlightColor": "", "heroTag": "", "heroTitle": "", "heroHighlight": "", "showWhatsappContact": true, "bannerDataUrl": "", "sortOrder": 0, "fulfillmentLocationId": "00000000-0000-0000-0000-000000000000", "lists": [] }),});const data = await res.json();import requests
res = requests.request( "PATCH", "https://api.nivesistemas.com.br/convenience/catalogs/{id}", headers={ "Authorization": "Bearer sl_live_exemplo_abc123xyz789", "X-Store-Slug": "loja-demo", }, json={ "name": "Exemplo", "active": True, "templateId": "", "brandColor": "", "whatsappOrderEnabled": True, "whatsappPhone": "", "showInactiveProducts": True, "showOutOfStock": True, "carouselLayout": True, "ageGateEnabled": True, "combos": [], "highlightColor": "", "heroTag": "", "heroTitle": "", "heroHighlight": "", "showWhatsappContact": True, "bannerDataUrl": "", "sortOrder": 0, "fulfillmentLocationId": "00000000-0000-0000-0000-000000000000", "lists": [] },)print(res.json())DELETE /convenience/catalogs/:id
Seção intitulada “DELETE /convenience/catalogs/:id”Excluir catálogo
Parâmetros de rota: id
Resposta: 204 No Content
curl -X DELETE "https://api.nivesistemas.com.br/convenience/catalogs/{id}" \ -H "Authorization: Bearer sl_live_exemplo_abc123xyz789" \ -H "X-Store-Slug: loja-demo"const res = await fetch("https://api.nivesistemas.com.br/convenience/catalogs/{id}", { method: "DELETE", headers: { Authorization: "Bearer sl_live_exemplo_abc123xyz789", "X-Store-Slug": "loja-demo", },});const data = await res.json();import requests
res = requests.request( "DELETE", "https://api.nivesistemas.com.br/convenience/catalogs/{id}", headers={ "Authorization": "Bearer sl_live_exemplo_abc123xyz789", "X-Store-Slug": "loja-demo", },)print(res.json())GET /convenience/catalogs/:id/arrangement
Seção intitulada “GET /convenience/catalogs/:id/arrangement”Ordem da vitrine do catálogo (categorias e produtos na sequência em que aparecem)
Parâmetros de rota: id
Resposta: { catalog, customCategoryOrder, customProductOrder, categories: [{ id (null = sem categoria), name, products: [{ id, description, active, thumbnailUrl, position }] }] }
curl -X GET "https://api.nivesistemas.com.br/convenience/catalogs/{id}/arrangement" \ -H "Authorization: Bearer sl_live_exemplo_abc123xyz789" \ -H "X-Store-Slug: loja-demo"const res = await fetch("https://api.nivesistemas.com.br/convenience/catalogs/{id}/arrangement", { method: "GET", headers: { Authorization: "Bearer sl_live_exemplo_abc123xyz789", "X-Store-Slug": "loja-demo", },});const data = await res.json();import requests
res = requests.request( "GET", "https://api.nivesistemas.com.br/convenience/catalogs/{id}/arrangement", headers={ "Authorization": "Bearer sl_live_exemplo_abc123xyz789", "X-Store-Slug": "loja-demo", },)print(res.json())PUT /convenience/catalogs/:id/arrangement
Seção intitulada “PUT /convenience/catalogs/:id/arrangement”Mudar a ordem das categorias e dos produtos na vitrine do catálogo
Parâmetros de rota: id
Corpo (JSON)
| Campo | Tipo | Obrigatório | Descrição |
|---|---|---|---|
categoryIds |
string[] | não | Categorias na sequência desejada; as não citadas vêm depois, em ordem alfabética. [] = tudo alfabético |
products |
{ categoryId: string | null, productIds: string[] }[] | não | Ordem dos produtos por categoria (categoryId null = sem categoria). Os não citados vêm depois, por nome |
resetProducts |
boolean | não | Volta todos os produtos do catálogo para a ordem por nome |
Resposta: Mesmo formato do GET. 400 se a categoria não existe ou o produto não está naquela categoria do catálogo.
curl -X PUT "https://api.nivesistemas.com.br/convenience/catalogs/{id}/arrangement" \ -H "Authorization: Bearer sl_live_exemplo_abc123xyz789" \ -H "X-Store-Slug: loja-demo" \ -H "Content-Type: application/json" \ -d '{"categoryIds":null,"products":null,"resetProducts":true}'const res = await fetch("https://api.nivesistemas.com.br/convenience/catalogs/{id}/arrangement", { method: "PUT", headers: { Authorization: "Bearer sl_live_exemplo_abc123xyz789", "X-Store-Slug": "loja-demo", "Content-Type": "application/json", }, body: JSON.stringify({ "categoryIds": null, "products": null, "resetProducts": true }),});const data = await res.json();import requests
res = requests.request( "PUT", "https://api.nivesistemas.com.br/convenience/catalogs/{id}/arrangement", headers={ "Authorization": "Bearer sl_live_exemplo_abc123xyz789", "X-Store-Slug": "loja-demo", }, json={ "categoryIds": None, "products": None, "resetProducts": True },)print(res.json())PATCH /convenience/orders/:id/delivery-fee
Seção intitulada “PATCH /convenience/orders/:id/delivery-fee”Ajustar a taxa de entrega do pedido
Parâmetros de rota: id
Corpo (JSON)
| Campo | Tipo | Obrigatório | Descrição |
|---|---|---|---|
fee |
number | sim | Taxa |
curl -X PATCH "https://api.nivesistemas.com.br/convenience/orders/{id}/delivery-fee" \ -H "Authorization: Bearer sl_live_exemplo_abc123xyz789" \ -H "X-Store-Slug: loja-demo" \ -H "Content-Type: application/json" \ -d '{"fee":0}'const res = await fetch("https://api.nivesistemas.com.br/convenience/orders/{id}/delivery-fee", { method: "PATCH", headers: { Authorization: "Bearer sl_live_exemplo_abc123xyz789", "X-Store-Slug": "loja-demo", "Content-Type": "application/json", }, body: JSON.stringify({ "fee": 0 }),});const data = await res.json();import requests
res = requests.request( "PATCH", "https://api.nivesistemas.com.br/convenience/orders/{id}/delivery-fee", headers={ "Authorization": "Bearer sl_live_exemplo_abc123xyz789", "X-Store-Slug": "loja-demo", }, json={ "fee": 0 },)print(res.json())POST /convenience/catalog-products/add-all
Seção intitulada “POST /convenience/catalog-products/add-all”Incluir no catálogo online todos os produtos ativos que ainda não estão nele
Corpo (JSON)
| Campo | Tipo | Obrigatório | Descrição |
|---|---|---|---|
catalogId |
string | não | Catálogo (omitido = o catálogo padrão) |
q |
string | não | Só produtos cuja descrição contenha o texto (até 200) |
Resposta: { catalog: { id, name }, added }. Não inclui produto composto com composição incompleta. 404 se o catálogo informado não existe.
curl -X POST "https://api.nivesistemas.com.br/convenience/catalog-products/add-all" \ -H "Authorization: Bearer sl_live_exemplo_abc123xyz789" \ -H "X-Store-Slug: loja-demo" \ -H "Content-Type: application/json" \ -d '{"catalogId":"","q":""}'const res = await fetch("https://api.nivesistemas.com.br/convenience/catalog-products/add-all", { method: "POST", headers: { Authorization: "Bearer sl_live_exemplo_abc123xyz789", "X-Store-Slug": "loja-demo", "Content-Type": "application/json", }, body: JSON.stringify({ "catalogId": "", "q": "" }),});const data = await res.json();import requests
res = requests.request( "POST", "https://api.nivesistemas.com.br/convenience/catalog-products/add-all", headers={ "Authorization": "Bearer sl_live_exemplo_abc123xyz789", "X-Store-Slug": "loja-demo", }, json={ "catalogId": "", "q": "" },)print(res.json())GET /convenience/static-pix
Seção intitulada “GET /convenience/static-pix”Chave PIX fixa que o cliente vê no catálogo para pagar na retirada ou entrega
curl -X GET "https://api.nivesistemas.com.br/convenience/static-pix" \ -H "Authorization: Bearer sl_live_exemplo_abc123xyz789" \ -H "X-Store-Slug: loja-demo"const res = await fetch("https://api.nivesistemas.com.br/convenience/static-pix", { method: "GET", headers: { Authorization: "Bearer sl_live_exemplo_abc123xyz789", "X-Store-Slug": "loja-demo", },});const data = await res.json();import requests
res = requests.request( "GET", "https://api.nivesistemas.com.br/convenience/static-pix", headers={ "Authorization": "Bearer sl_live_exemplo_abc123xyz789", "X-Store-Slug": "loja-demo", },)print(res.json())PUT /convenience/static-pix
Seção intitulada “PUT /convenience/static-pix”Cadastrar ou trocar a chave PIX do catálogo (pixKey vazio remove)
Corpo (JSON)
| Campo | Tipo | Obrigatório | Descrição |
|---|---|---|---|
keyType |
string | sim | CNPJ, CPF, PHONE, EMAIL ou EVP (chave aleatória) |
pixKey |
string | sim | Chave PIX |
receiverName |
string | não | Nome do recebedor (até 25 caracteres) |
receiverCity |
string | não | Cidade do recebedor (até 15 caracteres) |
curl -X PUT "https://api.nivesistemas.com.br/convenience/static-pix" \ -H "Authorization: Bearer sl_live_exemplo_abc123xyz789" \ -H "X-Store-Slug: loja-demo" \ -H "Content-Type: application/json" \ -d '{"keyType":"","pixKey":"","receiverName":"","receiverCity":""}'const res = await fetch("https://api.nivesistemas.com.br/convenience/static-pix", { method: "PUT", headers: { Authorization: "Bearer sl_live_exemplo_abc123xyz789", "X-Store-Slug": "loja-demo", "Content-Type": "application/json", }, body: JSON.stringify({ "keyType": "", "pixKey": "", "receiverName": "", "receiverCity": "" }),});const data = await res.json();import requests
res = requests.request( "PUT", "https://api.nivesistemas.com.br/convenience/static-pix", headers={ "Authorization": "Bearer sl_live_exemplo_abc123xyz789", "X-Store-Slug": "loja-demo", }, json={ "keyType": "", "pixKey": "", "receiverName": "", "receiverCity": "" },)print(res.json())
