Rotas públicas (sem autenticação)
Estas rotas não usam chave de API.
Base: https://api.nivesistemas.com.br · 59 endpoints
GET /health
Seção intitulada “GET /health”Health check — { ok, service }
curl -X GET "https://api.nivesistemas.com.br/health" \ -H "Authorization: Bearer sl_live_exemplo_abc123xyz789" \ -H "X-Store-Slug: loja-demo"const res = await fetch("https://api.nivesistemas.com.br/health", { 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/health", headers={ "Authorization": "Bearer sl_live_exemplo_abc123xyz789", "X-Store-Slug": "loja-demo", },)print(res.json())GET /public/reviews/:token
Seção intitulada “GET /public/reviews/:token”Obter avaliação pendente (link enviado ao cliente)
Parâmetros de rota: token
curl -X GET "https://api.nivesistemas.com.br/public/reviews/{token}" \ -H "Authorization: Bearer sl_live_exemplo_abc123xyz789" \ -H "X-Store-Slug: loja-demo"const res = await fetch("https://api.nivesistemas.com.br/public/reviews/{token}", { 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/public/reviews/{token}", headers={ "Authorization": "Bearer sl_live_exemplo_abc123xyz789", "X-Store-Slug": "loja-demo", },)print(res.json())POST /public/reviews/:token
Seção intitulada “POST /public/reviews/:token”Enviar resposta de avaliação
Parâmetros de rota: token
Corpo (JSON)
| Campo | Tipo | Obrigatório | Descrição |
|---|---|---|---|
rating |
integer | sim | Nota de 1 a 5 |
npsScore |
integer | sim | NPS de 0 a 10 |
comment |
string | não | Comentário opcional |
curl -X POST "https://api.nivesistemas.com.br/public/reviews/{token}" \ -H "Authorization: Bearer sl_live_exemplo_abc123xyz789" \ -H "X-Store-Slug: loja-demo" \ -H "Content-Type: application/json" \ -d '{"rating":1,"npsScore":1,"comment":""}'const res = await fetch("https://api.nivesistemas.com.br/public/reviews/{token}", { method: "POST", headers: { Authorization: "Bearer sl_live_exemplo_abc123xyz789", "X-Store-Slug": "loja-demo", "Content-Type": "application/json", }, body: JSON.stringify({ "rating": 1, "npsScore": 1, "comment": "" }),});const data = await res.json();import requests
res = requests.request( "POST", "https://api.nivesistemas.com.br/public/reviews/{token}", headers={ "Authorization": "Bearer sl_live_exemplo_abc123xyz789", "X-Store-Slug": "loja-demo", }, json={ "rating": 1, "npsScore": 1, "comment": "" },)print(res.json())GET /public/checkout/:token
Seção intitulada “GET /public/checkout/:token”Resumo da venda para checkout por link (sem login)
Parâmetros de rota: token
curl -X GET "https://api.nivesistemas.com.br/public/checkout/{token}" \ -H "Authorization: Bearer sl_live_exemplo_abc123xyz789" \ -H "X-Store-Slug: loja-demo"const res = await fetch("https://api.nivesistemas.com.br/public/checkout/{token}", { 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/public/checkout/{token}", headers={ "Authorization": "Bearer sl_live_exemplo_abc123xyz789", "X-Store-Slug": "loja-demo", },)print(res.json())GET /public/checkout/:token/config
Seção intitulada “GET /public/checkout/:token/config”Public Key MP e flags do checkout online
Parâmetros de rota: token
curl -X GET "https://api.nivesistemas.com.br/public/checkout/{token}/config" \ -H "Authorization: Bearer sl_live_exemplo_abc123xyz789" \ -H "X-Store-Slug: loja-demo"const res = await fetch("https://api.nivesistemas.com.br/public/checkout/{token}/config", { 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/public/checkout/{token}/config", headers={ "Authorization": "Bearer sl_live_exemplo_abc123xyz789", "X-Store-Slug": "loja-demo", },)print(res.json())POST /public/checkout/:token/customer
Seção intitulada “POST /public/checkout/:token/customer”Identificar/atualizar cliente no checkout
Parâmetros de rota: token
Corpo (JSON)
| Campo | Tipo | Obrigatório | Descrição |
|---|---|---|---|
name |
string | sim | Nome completo |
cpf |
string | sim | CPF do cliente |
email |
string | sim | |
phone |
string | sim | Telefone |
confirmUpdate |
boolean | não | Confirma alteração de cadastro existente |
curl -X POST "https://api.nivesistemas.com.br/public/checkout/{token}/customer" \ -H "Authorization: Bearer sl_live_exemplo_abc123xyz789" \ -H "X-Store-Slug: loja-demo" \ -H "Content-Type: application/json" \ -d '{"name":"Exemplo","cpf":"","email":"","phone":"","confirmUpdate":true}'const res = await fetch("https://api.nivesistemas.com.br/public/checkout/{token}/customer", { method: "POST", headers: { Authorization: "Bearer sl_live_exemplo_abc123xyz789", "X-Store-Slug": "loja-demo", "Content-Type": "application/json", }, body: JSON.stringify({ "name": "Exemplo", "cpf": "", "email": "", "phone": "", "confirmUpdate": true }),});const data = await res.json();import requests
res = requests.request( "POST", "https://api.nivesistemas.com.br/public/checkout/{token}/customer", headers={ "Authorization": "Bearer sl_live_exemplo_abc123xyz789", "X-Store-Slug": "loja-demo", }, json={ "name": "Exemplo", "cpf": "", "email": "", "phone": "", "confirmUpdate": True },)print(res.json())GET /public/checkout/:token/payment-conditions
Seção intitulada “GET /public/checkout/:token/payment-conditions”Formas de pagamento disponíveis (à vista/a prazo)
Parâmetros de rota: token
curl -X GET "https://api.nivesistemas.com.br/public/checkout/{token}/payment-conditions" \ -H "Authorization: Bearer sl_live_exemplo_abc123xyz789" \ -H "X-Store-Slug: loja-demo"const res = await fetch("https://api.nivesistemas.com.br/public/checkout/{token}/payment-conditions", { 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/public/checkout/{token}/payment-conditions", headers={ "Authorization": "Bearer sl_live_exemplo_abc123xyz789", "X-Store-Slug": "loja-demo", },)print(res.json())POST /public/checkout/:token/charge
Seção intitulada “POST /public/checkout/:token/charge”Criar cobrança PIX ou cartão online
Parâmetros de rota: token
Corpo (JSON)
| Campo | Tipo | Obrigatório | Descrição |
|---|---|---|---|
channel |
string | sim | PIX ou CARD |
paymentMethodId |
string | sim | ID da forma de pagamento |
priceBasis |
string | sim | CASH ou CREDIT |
cardToken |
string | não | Token do Payment Brick (cartão) |
installments |
integer | não | Parcelas (cartão) |
curl -X POST "https://api.nivesistemas.com.br/public/checkout/{token}/charge" \ -H "Authorization: Bearer sl_live_exemplo_abc123xyz789" \ -H "X-Store-Slug: loja-demo" \ -H "Content-Type: application/json" \ -d '{"channel":"","paymentMethodId":"","priceBasis":"","cardToken":"","installments":1}'const res = await fetch("https://api.nivesistemas.com.br/public/checkout/{token}/charge", { method: "POST", headers: { Authorization: "Bearer sl_live_exemplo_abc123xyz789", "X-Store-Slug": "loja-demo", "Content-Type": "application/json", }, body: JSON.stringify({ "channel": "", "paymentMethodId": "", "priceBasis": "", "cardToken": "", "installments": 1 }),});const data = await res.json();import requests
res = requests.request( "POST", "https://api.nivesistemas.com.br/public/checkout/{token}/charge", headers={ "Authorization": "Bearer sl_live_exemplo_abc123xyz789", "X-Store-Slug": "loja-demo", }, json={ "channel": "", "paymentMethodId": "", "priceBasis": "", "cardToken": "", "installments": 1 },)print(res.json())GET /public/checkout/:token/charge/:chargeId/status
Seção intitulada “GET /public/checkout/:token/charge/:chargeId/status”Status da cobrança (polling UX; confirmação via webhook)
Parâmetros de rota: token, chargeId
curl -X GET "https://api.nivesistemas.com.br/public/checkout/{token}/charge/{chargeId}/status" \ -H "Authorization: Bearer sl_live_exemplo_abc123xyz789" \ -H "X-Store-Slug: loja-demo"const res = await fetch("https://api.nivesistemas.com.br/public/checkout/{token}/charge/{chargeId}/status", { 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/public/checkout/{token}/charge/{chargeId}/status", headers={ "Authorization": "Bearer sl_live_exemplo_abc123xyz789", "X-Store-Slug": "loja-demo", },)print(res.json())GET /public/convenience/settings
Seção intitulada “GET /public/convenience/settings”Obter configurações
curl -X GET "https://api.nivesistemas.com.br/public/convenience/settings" \ -H "Authorization: Bearer sl_live_exemplo_abc123xyz789" \ -H "X-Store-Slug: loja-demo"const res = await fetch("https://api.nivesistemas.com.br/public/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/public/convenience/settings", headers={ "Authorization": "Bearer sl_live_exemplo_abc123xyz789", "X-Store-Slug": "loja-demo", },)print(res.json())GET /public/convenience/slots
Seção intitulada “GET /public/convenience/slots”Horários disponíveis
curl -X GET "https://api.nivesistemas.com.br/public/convenience/slots" \ -H "Authorization: Bearer sl_live_exemplo_abc123xyz789" \ -H "X-Store-Slug: loja-demo"const res = await fetch("https://api.nivesistemas.com.br/public/convenience/slots", { 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/public/convenience/slots", headers={ "Authorization": "Bearer sl_live_exemplo_abc123xyz789", "X-Store-Slug": "loja-demo", },)print(res.json())GET /public/convenience/catalog
Seção intitulada “GET /public/convenience/catalog”Catálogo público online
curl -X GET "https://api.nivesistemas.com.br/public/convenience/catalog" \ -H "Authorization: Bearer sl_live_exemplo_abc123xyz789" \ -H "X-Store-Slug: loja-demo"const res = await fetch("https://api.nivesistemas.com.br/public/convenience/catalog", { 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/public/convenience/catalog", headers={ "Authorization": "Bearer sl_live_exemplo_abc123xyz789", "X-Store-Slug": "loja-demo", },)print(res.json())GET /public/convenience/zones
Seção intitulada “GET /public/convenience/zones”Zonas de entrega
curl -X GET "https://api.nivesistemas.com.br/public/convenience/zones" \ -H "Authorization: Bearer sl_live_exemplo_abc123xyz789" \ -H "X-Store-Slug: loja-demo"const res = await fetch("https://api.nivesistemas.com.br/public/convenience/zones", { 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/public/convenience/zones", headers={ "Authorization": "Bearer sl_live_exemplo_abc123xyz789", "X-Store-Slug": "loja-demo", },)print(res.json())POST /public/convenience/auth/request-code
Seção intitulada “POST /public/convenience/auth/request-code”Solicitar código de autenticação
curl -X POST "https://api.nivesistemas.com.br/public/convenience/auth/request-code" \ -H "Authorization: Bearer sl_live_exemplo_abc123xyz789" \ -H "X-Store-Slug: loja-demo"const res = await fetch("https://api.nivesistemas.com.br/public/convenience/auth/request-code", { 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/public/convenience/auth/request-code", headers={ "Authorization": "Bearer sl_live_exemplo_abc123xyz789", "X-Store-Slug": "loja-demo", },)print(res.json())POST /public/convenience/auth/verify-code
Seção intitulada “POST /public/convenience/auth/verify-code”Validar código de autenticação
curl -X POST "https://api.nivesistemas.com.br/public/convenience/auth/verify-code" \ -H "Authorization: Bearer sl_live_exemplo_abc123xyz789" \ -H "X-Store-Slug: loja-demo"const res = await fetch("https://api.nivesistemas.com.br/public/convenience/auth/verify-code", { 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/public/convenience/auth/verify-code", headers={ "Authorization": "Bearer sl_live_exemplo_abc123xyz789", "X-Store-Slug": "loja-demo", },)print(res.json())GET /public/convenience/me
Seção intitulada “GET /public/convenience/me”Cliente autenticado (catálogo online)
curl -X GET "https://api.nivesistemas.com.br/public/convenience/me" \ -H "Authorization: Bearer sl_live_exemplo_abc123xyz789" \ -H "X-Store-Slug: loja-demo"const res = await fetch("https://api.nivesistemas.com.br/public/convenience/me", { 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/public/convenience/me", headers={ "Authorization": "Bearer sl_live_exemplo_abc123xyz789", "X-Store-Slug": "loja-demo", },)print(res.json())PATCH /public/convenience/me
Seção intitulada “PATCH /public/convenience/me”Atualizar perfil (catálogo online)
curl -X PATCH "https://api.nivesistemas.com.br/public/convenience/me" \ -H "Authorization: Bearer sl_live_exemplo_abc123xyz789" \ -H "X-Store-Slug: loja-demo"const res = await fetch("https://api.nivesistemas.com.br/public/convenience/me", { 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/public/convenience/me", headers={ "Authorization": "Bearer sl_live_exemplo_abc123xyz789", "X-Store-Slug": "loja-demo", },)print(res.json())GET /public/convenience/addresses
Seção intitulada “GET /public/convenience/addresses”Listar endereços
curl -X GET "https://api.nivesistemas.com.br/public/convenience/addresses" \ -H "Authorization: Bearer sl_live_exemplo_abc123xyz789" \ -H "X-Store-Slug: loja-demo"const res = await fetch("https://api.nivesistemas.com.br/public/convenience/addresses", { 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/public/convenience/addresses", headers={ "Authorization": "Bearer sl_live_exemplo_abc123xyz789", "X-Store-Slug": "loja-demo", },)print(res.json())POST /public/convenience/addresses
Seção intitulada “POST /public/convenience/addresses”Criar endereço
curl -X POST "https://api.nivesistemas.com.br/public/convenience/addresses" \ -H "Authorization: Bearer sl_live_exemplo_abc123xyz789" \ -H "X-Store-Slug: loja-demo"const res = await fetch("https://api.nivesistemas.com.br/public/convenience/addresses", { 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/public/convenience/addresses", headers={ "Authorization": "Bearer sl_live_exemplo_abc123xyz789", "X-Store-Slug": "loja-demo", },)print(res.json())PUT /public/convenience/addresses/:id
Seção intitulada “PUT /public/convenience/addresses/:id”Atualizar endereço
Parâmetros de rota: id
curl -X PUT "https://api.nivesistemas.com.br/public/convenience/addresses/{id}" \ -H "Authorization: Bearer sl_live_exemplo_abc123xyz789" \ -H "X-Store-Slug: loja-demo"const res = await fetch("https://api.nivesistemas.com.br/public/convenience/addresses/{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/public/convenience/addresses/{id}", headers={ "Authorization": "Bearer sl_live_exemplo_abc123xyz789", "X-Store-Slug": "loja-demo", },)print(res.json())DELETE /public/convenience/addresses/:id
Seção intitulada “DELETE /public/convenience/addresses/:id”Excluir endereço
Parâmetros de rota: id
curl -X DELETE "https://api.nivesistemas.com.br/public/convenience/addresses/{id}" \ -H "Authorization: Bearer sl_live_exemplo_abc123xyz789" \ -H "X-Store-Slug: loja-demo"const res = await fetch("https://api.nivesistemas.com.br/public/convenience/addresses/{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/public/convenience/addresses/{id}", headers={ "Authorization": "Bearer sl_live_exemplo_abc123xyz789", "X-Store-Slug": "loja-demo", },)print(res.json())POST /public/convenience/orders
Seção intitulada “POST /public/convenience/orders”Criar pedido (catálogo online)
curl -X POST "https://api.nivesistemas.com.br/public/convenience/orders" \ -H "Authorization: Bearer sl_live_exemplo_abc123xyz789" \ -H "X-Store-Slug: loja-demo"const res = await fetch("https://api.nivesistemas.com.br/public/convenience/orders", { 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/public/convenience/orders", headers={ "Authorization": "Bearer sl_live_exemplo_abc123xyz789", "X-Store-Slug": "loja-demo", },)print(res.json())GET /public/convenience/orders
Seção intitulada “GET /public/convenience/orders”Listar pedidos
curl -X GET "https://api.nivesistemas.com.br/public/convenience/orders" \ -H "Authorization: Bearer sl_live_exemplo_abc123xyz789" \ -H "X-Store-Slug: loja-demo"const res = await fetch("https://api.nivesistemas.com.br/public/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/public/convenience/orders", headers={ "Authorization": "Bearer sl_live_exemplo_abc123xyz789", "X-Store-Slug": "loja-demo", },)print(res.json())GET /public/convenience/orders/:id
Seção intitulada “GET /public/convenience/orders/:id”Detalhe
Parâmetros de rota: id
curl -X GET "https://api.nivesistemas.com.br/public/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/public/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/public/convenience/orders/{id}", headers={ "Authorization": "Bearer sl_live_exemplo_abc123xyz789", "X-Store-Slug": "loja-demo", },)print(res.json())POST /public/checkout/:token/open
Seção intitulada “POST /public/checkout/:token/open”Registrar abertura do checkout
Parâmetros de rota: token
curl -X POST "https://api.nivesistemas.com.br/public/checkout/{token}/open" \ -H "Authorization: Bearer sl_live_exemplo_abc123xyz789" \ -H "X-Store-Slug: loja-demo"const res = await fetch("https://api.nivesistemas.com.br/public/checkout/{token}/open", { 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/public/checkout/{token}/open", headers={ "Authorization": "Bearer sl_live_exemplo_abc123xyz789", "X-Store-Slug": "loja-demo", },)print(res.json())POST /public/checkout/:token/preview-total
Seção intitulada “POST /public/checkout/:token/preview-total”Prévia do total do checkout
Parâmetros de rota: token
curl -X POST "https://api.nivesistemas.com.br/public/checkout/{token}/preview-total" \ -H "Authorization: Bearer sl_live_exemplo_abc123xyz789" \ -H "X-Store-Slug: loja-demo"const res = await fetch("https://api.nivesistemas.com.br/public/checkout/{token}/preview-total", { 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/public/checkout/{token}/preview-total", headers={ "Authorization": "Bearer sl_live_exemplo_abc123xyz789", "X-Store-Slug": "loja-demo", },)print(res.json())GET /health/ready
Seção intitulada “GET /health/ready”Readiness check
curl -X GET "https://api.nivesistemas.com.br/health/ready" \ -H "Authorization: Bearer sl_live_exemplo_abc123xyz789" \ -H "X-Store-Slug: loja-demo"const res = await fetch("https://api.nivesistemas.com.br/health/ready", { 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/health/ready", headers={ "Authorization": "Bearer sl_live_exemplo_abc123xyz789", "X-Store-Slug": "loja-demo", },)print(res.json())GET /health/pools
Seção intitulada “GET /health/pools”Status dos pools
curl -X GET "https://api.nivesistemas.com.br/health/pools" \ -H "Authorization: Bearer sl_live_exemplo_abc123xyz789" \ -H "X-Store-Slug: loja-demo"const res = await fetch("https://api.nivesistemas.com.br/health/pools", { 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/health/pools", headers={ "Authorization": "Bearer sl_live_exemplo_abc123xyz789", "X-Store-Slug": "loja-demo", },)print(res.json())GET /openapi.json
Seção intitulada “GET /openapi.json”Especificação OpenAPI (parcial)
curl -X GET "https://api.nivesistemas.com.br/openapi.json" \ -H "Authorization: Bearer sl_live_exemplo_abc123xyz789" \ -H "X-Store-Slug: loja-demo"const res = await fetch("https://api.nivesistemas.com.br/openapi.json", { 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/openapi.json", headers={ "Authorization": "Bearer sl_live_exemplo_abc123xyz789", "X-Store-Slug": "loja-demo", },)print(res.json())GET /platform-status
Seção intitulada “GET /platform-status”Status de manutenção da plataforma
curl -X GET "https://api.nivesistemas.com.br/platform-status" \ -H "Authorization: Bearer sl_live_exemplo_abc123xyz789" \ -H "X-Store-Slug: loja-demo"const res = await fetch("https://api.nivesistemas.com.br/platform-status", { 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/platform-status", headers={ "Authorization": "Bearer sl_live_exemplo_abc123xyz789", "X-Store-Slug": "loja-demo", },)print(res.json())GET /store-lookup
Seção intitulada “GET /store-lookup”Localizar loja por CPF/CNPJ
Query params
| Campo | Tipo | Obrigatório | Descrição |
|---|---|---|---|
document |
string | não | CPF (11) ou CNPJ (14 dígitos) |
cnpj |
string | não | Alias de document |
curl -X GET "https://api.nivesistemas.com.br/store-lookup" \ -H "Authorization: Bearer sl_live_exemplo_abc123xyz789" \ -H "X-Store-Slug: loja-demo"const res = await fetch("https://api.nivesistemas.com.br/store-lookup", { 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/store-lookup", headers={ "Authorization": "Bearer sl_live_exemplo_abc123xyz789", "X-Store-Slug": "loja-demo", },)print(res.json())GET /public/service-orders/:token
Seção intitulada “GET /public/service-orders/:token”Portal público da OS (token)
Parâmetros de rota: token
curl -X GET "https://api.nivesistemas.com.br/public/service-orders/{token}" \ -H "Authorization: Bearer sl_live_exemplo_abc123xyz789" \ -H "X-Store-Slug: loja-demo"const res = await fetch("https://api.nivesistemas.com.br/public/service-orders/{token}", { 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/public/service-orders/{token}", headers={ "Authorization": "Bearer sl_live_exemplo_abc123xyz789", "X-Store-Slug": "loja-demo", },)print(res.json())POST /public/service-orders/:token/satisfaction
Seção intitulada “POST /public/service-orders/:token/satisfaction”Enviar satisfação no portal da OS
Parâmetros de rota: token
Corpo (JSON)
| Campo | Tipo | Obrigatório | Descrição |
|---|---|---|---|
score |
integer | sim | Nota de 1 a 5 |
comment |
string | não | Comentário |
curl -X POST "https://api.nivesistemas.com.br/public/service-orders/{token}/satisfaction" \ -H "Authorization: Bearer sl_live_exemplo_abc123xyz789" \ -H "X-Store-Slug: loja-demo" \ -H "Content-Type: application/json" \ -d '{"score":1,"comment":""}'const res = await fetch("https://api.nivesistemas.com.br/public/service-orders/{token}/satisfaction", { method: "POST", headers: { Authorization: "Bearer sl_live_exemplo_abc123xyz789", "X-Store-Slug": "loja-demo", "Content-Type": "application/json", }, body: JSON.stringify({ "score": 1, "comment": "" }),});const data = await res.json();import requests
res = requests.request( "POST", "https://api.nivesistemas.com.br/public/service-orders/{token}/satisfaction", headers={ "Authorization": "Bearer sl_live_exemplo_abc123xyz789", "X-Store-Slug": "loja-demo", }, json={ "score": 1, "comment": "" },)print(res.json())GET /public/customer-profile/store
Seção intitulada “GET /public/customer-profile/store”Nome e logo da loja (portal do cliente)
curl -X GET "https://api.nivesistemas.com.br/public/customer-profile/store" \ -H "Authorization: Bearer sl_live_exemplo_abc123xyz789" \ -H "X-Store-Slug: loja-demo"const res = await fetch("https://api.nivesistemas.com.br/public/customer-profile/store", { 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/public/customer-profile/store", headers={ "Authorization": "Bearer sl_live_exemplo_abc123xyz789", "X-Store-Slug": "loja-demo", },)print(res.json())GET /public/customer-profile/me
Seção intitulada “GET /public/customer-profile/me”Perfil do cliente (JWT do catálogo online ou token de acesso)
curl -X GET "https://api.nivesistemas.com.br/public/customer-profile/me" \ -H "Authorization: Bearer sl_live_exemplo_abc123xyz789" \ -H "X-Store-Slug: loja-demo"const res = await fetch("https://api.nivesistemas.com.br/public/customer-profile/me", { 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/public/customer-profile/me", headers={ "Authorization": "Bearer sl_live_exemplo_abc123xyz789", "X-Store-Slug": "loja-demo", },)print(res.json())GET /public/customer-profile/requests
Seção intitulada “GET /public/customer-profile/requests”Solicitações de alteração do próprio cliente
curl -X GET "https://api.nivesistemas.com.br/public/customer-profile/requests" \ -H "Authorization: Bearer sl_live_exemplo_abc123xyz789" \ -H "X-Store-Slug: loja-demo"const res = await fetch("https://api.nivesistemas.com.br/public/customer-profile/requests", { 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/public/customer-profile/requests", headers={ "Authorization": "Bearer sl_live_exemplo_abc123xyz789", "X-Store-Slug": "loja-demo", },)print(res.json())POST /public/customer-profile/requests
Seção intitulada “POST /public/customer-profile/requests”Pedir alteração de cadastro
Corpo (JSON)
| Campo | Tipo | Obrigatório | Descrição |
|---|---|---|---|
changes |
object | sim | Campos alterados |
source |
string | não | PORTAL | SECURE_LINK | PERIODIC_PROMPT |
curl -X POST "https://api.nivesistemas.com.br/public/customer-profile/requests" \ -H "Authorization: Bearer sl_live_exemplo_abc123xyz789" \ -H "X-Store-Slug: loja-demo" \ -H "Content-Type: application/json" \ -d '{"changes":null,"source":""}'const res = await fetch("https://api.nivesistemas.com.br/public/customer-profile/requests", { method: "POST", headers: { Authorization: "Bearer sl_live_exemplo_abc123xyz789", "X-Store-Slug": "loja-demo", "Content-Type": "application/json", }, body: JSON.stringify({ "changes": null, "source": "" }),});const data = await res.json();import requests
res = requests.request( "POST", "https://api.nivesistemas.com.br/public/customer-profile/requests", headers={ "Authorization": "Bearer sl_live_exemplo_abc123xyz789", "X-Store-Slug": "loja-demo", }, json={ "changes": None, "source": "" },)print(res.json())POST /public/customer-profile/requests/pending/cancel
Seção intitulada “POST /public/customer-profile/requests/pending/cancel”Cancelar solicitação pendente do próprio cliente
curl -X POST "https://api.nivesistemas.com.br/public/customer-profile/requests/pending/cancel" \ -H "Authorization: Bearer sl_live_exemplo_abc123xyz789" \ -H "X-Store-Slug: loja-demo"const res = await fetch("https://api.nivesistemas.com.br/public/customer-profile/requests/pending/cancel", { 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/public/customer-profile/requests/pending/cancel", headers={ "Authorization": "Bearer sl_live_exemplo_abc123xyz789", "X-Store-Slug": "loja-demo", },)print(res.json())GET /public/customer-profile/preferences
Seção intitulada “GET /public/customer-profile/preferences”Preferências de comunicação
curl -X GET "https://api.nivesistemas.com.br/public/customer-profile/preferences" \ -H "Authorization: Bearer sl_live_exemplo_abc123xyz789" \ -H "X-Store-Slug: loja-demo"const res = await fetch("https://api.nivesistemas.com.br/public/customer-profile/preferences", { 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/public/customer-profile/preferences", headers={ "Authorization": "Bearer sl_live_exemplo_abc123xyz789", "X-Store-Slug": "loja-demo", },)print(res.json())PATCH /public/customer-profile/preferences
Seção intitulada “PATCH /public/customer-profile/preferences”Atualizar preferências de comunicação
curl -X PATCH "https://api.nivesistemas.com.br/public/customer-profile/preferences" \ -H "Authorization: Bearer sl_live_exemplo_abc123xyz789" \ -H "X-Store-Slug: loja-demo"const res = await fetch("https://api.nivesistemas.com.br/public/customer-profile/preferences", { 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/public/customer-profile/preferences", headers={ "Authorization": "Bearer sl_live_exemplo_abc123xyz789", "X-Store-Slug": "loja-demo", },)print(res.json())GET /public/unsubscribe/:token
Seção intitulada “GET /public/unsubscribe/:token”Info do descadastro de notificações
Parâmetros de rota: token
curl -X GET "https://api.nivesistemas.com.br/public/unsubscribe/{token}" \ -H "Authorization: Bearer sl_live_exemplo_abc123xyz789" \ -H "X-Store-Slug: loja-demo"const res = await fetch("https://api.nivesistemas.com.br/public/unsubscribe/{token}", { 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/public/unsubscribe/{token}", headers={ "Authorization": "Bearer sl_live_exemplo_abc123xyz789", "X-Store-Slug": "loja-demo", },)print(res.json())POST /public/unsubscribe/:token
Seção intitulada “POST /public/unsubscribe/:token”Confirmar descadastro de notificações
Parâmetros de rota: token
curl -X POST "https://api.nivesistemas.com.br/public/unsubscribe/{token}" \ -H "Authorization: Bearer sl_live_exemplo_abc123xyz789" \ -H "X-Store-Slug: loja-demo"const res = await fetch("https://api.nivesistemas.com.br/public/unsubscribe/{token}", { 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/public/unsubscribe/{token}", headers={ "Authorization": "Bearer sl_live_exemplo_abc123xyz789", "X-Store-Slug": "loja-demo", },)print(res.json())GET /public/notificacoes/desativar/:token
Seção intitulada “GET /public/notificacoes/desativar/:token”Alias em português de GET /unsubscribe/:token
Parâmetros de rota: token
curl -X GET "https://api.nivesistemas.com.br/public/notificacoes/desativar/{token}" \ -H "Authorization: Bearer sl_live_exemplo_abc123xyz789" \ -H "X-Store-Slug: loja-demo"const res = await fetch("https://api.nivesistemas.com.br/public/notificacoes/desativar/{token}", { 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/public/notificacoes/desativar/{token}", headers={ "Authorization": "Bearer sl_live_exemplo_abc123xyz789", "X-Store-Slug": "loja-demo", },)print(res.json())POST /public/notificacoes/desativar/:token
Seção intitulada “POST /public/notificacoes/desativar/:token”Alias em português de POST /unsubscribe/:token
Parâmetros de rota: token
curl -X POST "https://api.nivesistemas.com.br/public/notificacoes/desativar/{token}" \ -H "Authorization: Bearer sl_live_exemplo_abc123xyz789" \ -H "X-Store-Slug: loja-demo"const res = await fetch("https://api.nivesistemas.com.br/public/notificacoes/desativar/{token}", { 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/public/notificacoes/desativar/{token}", headers={ "Authorization": "Bearer sl_live_exemplo_abc123xyz789", "X-Store-Slug": "loja-demo", },)print(res.json())GET /public/infinity-tap/:loja/callback
Seção intitulada “GET /public/infinity-tap/:loja/callback”Callback InfiniteTap (loja no path) — redireciona para a UI
Parâmetros de rota: loja
curl -X GET "https://api.nivesistemas.com.br/public/infinity-tap/{loja}/callback" \ -H "Authorization: Bearer sl_live_exemplo_abc123xyz789" \ -H "X-Store-Slug: loja-demo"const res = await fetch("https://api.nivesistemas.com.br/public/infinity-tap/{loja}/callback", { 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/public/infinity-tap/{loja}/callback", headers={ "Authorization": "Bearer sl_live_exemplo_abc123xyz789", "X-Store-Slug": "loja-demo", },)print(res.json())GET /public/infinity-tap/callback
Seção intitulada “GET /public/infinity-tap/callback”Callback InfiniteTap (loja via header/query)
curl -X GET "https://api.nivesistemas.com.br/public/infinity-tap/callback" \ -H "Authorization: Bearer sl_live_exemplo_abc123xyz789" \ -H "X-Store-Slug: loja-demo"const res = await fetch("https://api.nivesistemas.com.br/public/infinity-tap/callback", { 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/public/infinity-tap/callback", headers={ "Authorization": "Bearer sl_live_exemplo_abc123xyz789", "X-Store-Slug": "loja-demo", },)print(res.json())GET /mercadopago/webhook
Seção intitulada “GET /mercadopago/webhook”Health do webhook Mercado Pago
curl -X GET "https://api.nivesistemas.com.br/mercadopago/webhook" \ -H "Authorization: Bearer sl_live_exemplo_abc123xyz789" \ -H "X-Store-Slug: loja-demo"const res = await fetch("https://api.nivesistemas.com.br/mercadopago/webhook", { 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/mercadopago/webhook", headers={ "Authorization": "Bearer sl_live_exemplo_abc123xyz789", "X-Store-Slug": "loja-demo", },)print(res.json())POST /mercadopago/webhook
Seção intitulada “POST /mercadopago/webhook”Receber notificação Mercado Pago (use ?loja=)
curl -X POST "https://api.nivesistemas.com.br/mercadopago/webhook" \ -H "Authorization: Bearer sl_live_exemplo_abc123xyz789" \ -H "X-Store-Slug: loja-demo"const res = await fetch("https://api.nivesistemas.com.br/mercadopago/webhook", { 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/mercadopago/webhook", headers={ "Authorization": "Bearer sl_live_exemplo_abc123xyz789", "X-Store-Slug": "loja-demo", },)print(res.json())GET /webhooks/superfrete
Seção intitulada “GET /webhooks/superfrete”Health do webhook SuperFrete
curl -X GET "https://api.nivesistemas.com.br/webhooks/superfrete" \ -H "Authorization: Bearer sl_live_exemplo_abc123xyz789" \ -H "X-Store-Slug: loja-demo"const res = await fetch("https://api.nivesistemas.com.br/webhooks/superfrete", { 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/webhooks/superfrete", headers={ "Authorization": "Bearer sl_live_exemplo_abc123xyz789", "X-Store-Slug": "loja-demo", },)print(res.json())POST /webhooks/superfrete
Seção intitulada “POST /webhooks/superfrete”Receber notificação SuperFrete (use ?loja=)
curl -X POST "https://api.nivesistemas.com.br/webhooks/superfrete" \ -H "Authorization: Bearer sl_live_exemplo_abc123xyz789" \ -H "X-Store-Slug: loja-demo"const res = await fetch("https://api.nivesistemas.com.br/webhooks/superfrete", { 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/webhooks/superfrete", headers={ "Authorization": "Bearer sl_live_exemplo_abc123xyz789", "X-Store-Slug": "loja-demo", },)print(res.json())POST /public/convenience/orders/guest
Seção intitulada “POST /public/convenience/orders/guest”Criar pedido sem cadastro (nome, telefone, endereço, itens, pagamento)
Resposta: 201 Created
curl -X POST "https://api.nivesistemas.com.br/public/convenience/orders/guest" \ -H "Authorization: Bearer sl_live_exemplo_abc123xyz789" \ -H "X-Store-Slug: loja-demo"const res = await fetch("https://api.nivesistemas.com.br/public/convenience/orders/guest", { 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/public/convenience/orders/guest", headers={ "Authorization": "Bearer sl_live_exemplo_abc123xyz789", "X-Store-Slug": "loja-demo", },)print(res.json())POST /public/convenience/catalog-access
Seção intitulada “POST /public/convenience/catalog-access”Registrar acesso ao catálogo (métrica)
Corpo (JSON)
| Campo | Tipo | Obrigatório | Descrição |
|---|---|---|---|
catalogo |
string | não | Slug do catálogo |
Resposta: 204 No Content
curl -X POST "https://api.nivesistemas.com.br/public/convenience/catalog-access" \ -H "Authorization: Bearer sl_live_exemplo_abc123xyz789" \ -H "X-Store-Slug: loja-demo" \ -H "Content-Type: application/json" \ -d '{"catalogo":""}'const res = await fetch("https://api.nivesistemas.com.br/public/convenience/catalog-access", { method: "POST", headers: { Authorization: "Bearer sl_live_exemplo_abc123xyz789", "X-Store-Slug": "loja-demo", "Content-Type": "application/json", }, body: JSON.stringify({ "catalogo": "" }),});const data = await res.json();import requests
res = requests.request( "POST", "https://api.nivesistemas.com.br/public/convenience/catalog-access", headers={ "Authorization": "Bearer sl_live_exemplo_abc123xyz789", "X-Store-Slug": "loja-demo", }, json={ "catalogo": "" },)print(res.json())GET /public/convenience/loyalty
Seção intitulada “GET /public/convenience/loyalty”Pontos de fidelidade do cliente logado no catálogo
curl -X GET "https://api.nivesistemas.com.br/public/convenience/loyalty" \ -H "Authorization: Bearer sl_live_exemplo_abc123xyz789" \ -H "X-Store-Slug: loja-demo"const res = await fetch("https://api.nivesistemas.com.br/public/convenience/loyalty", { 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/public/convenience/loyalty", headers={ "Authorization": "Bearer sl_live_exemplo_abc123xyz789", "X-Store-Slug": "loja-demo", },)print(res.json())GET /public/customer-profile/loyalty
Seção intitulada “GET /public/customer-profile/loyalty”Pontos de fidelidade no portal do cliente (token)
curl -X GET "https://api.nivesistemas.com.br/public/customer-profile/loyalty" \ -H "Authorization: Bearer sl_live_exemplo_abc123xyz789" \ -H "X-Store-Slug: loja-demo"const res = await fetch("https://api.nivesistemas.com.br/public/customer-profile/loyalty", { 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/public/customer-profile/loyalty", headers={ "Authorization": "Bearer sl_live_exemplo_abc123xyz789", "X-Store-Slug": "loja-demo", },)print(res.json())POST /public/service-orders/:token/confirm
Seção intitulada “POST /public/service-orders/:token/confirm”Cliente confirma presença no horário
Parâmetros de rota: token
curl -X POST "https://api.nivesistemas.com.br/public/service-orders/{token}/confirm" \ -H "Authorization: Bearer sl_live_exemplo_abc123xyz789" \ -H "X-Store-Slug: loja-demo"const res = await fetch("https://api.nivesistemas.com.br/public/service-orders/{token}/confirm", { 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/public/service-orders/{token}/confirm", headers={ "Authorization": "Bearer sl_live_exemplo_abc123xyz789", "X-Store-Slug": "loja-demo", },)print(res.json())POST /public/service-orders/:token/decline
Seção intitulada “POST /public/service-orders/:token/decline”Cliente avisa que não poderá ir
Parâmetros de rota: token
curl -X POST "https://api.nivesistemas.com.br/public/service-orders/{token}/decline" \ -H "Authorization: Bearer sl_live_exemplo_abc123xyz789" \ -H "X-Store-Slug: loja-demo"const res = await fetch("https://api.nivesistemas.com.br/public/service-orders/{token}/decline", { 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/public/service-orders/{token}/decline", headers={ "Authorization": "Bearer sl_live_exemplo_abc123xyz789", "X-Store-Slug": "loja-demo", },)print(res.json())GET /public/nota/:file
Seção intitulada “GET /public/nota/:file”PDF da nota fiscal enviado ao cliente por link assinado (sem login)
Parâmetros de rota: file
Query params
| Campo | Tipo | Obrigatório | Descrição |
|---|---|---|---|
exp |
string | sim | Expiração do link |
sig |
string | sim | Assinatura do link |
Resposta: :file é o id do documento fiscal seguido de .pdf. Retorna application/pdf inline; 404 se o link for inválido ou expirado. Os links são gerados pelo vendedor (app), não pela API de integração.
curl -X GET "https://api.nivesistemas.com.br/public/nota/{file}" \ -H "Authorization: Bearer sl_live_exemplo_abc123xyz789" \ -H "X-Store-Slug: loja-demo"const res = await fetch("https://api.nivesistemas.com.br/public/nota/{file}", { 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/public/nota/{file}", headers={ "Authorization": "Bearer sl_live_exemplo_abc123xyz789", "X-Store-Slug": "loja-demo", },)print(res.json())GET /public/rastreio/:shipmentId
Seção intitulada “GET /public/rastreio/:shipmentId”Redireciona para a página pública de rastreio da transportadora (destino do botão “Rastrear pedido” do WhatsApp)
Parâmetros de rota: shipmentId
Query params
| Campo | Tipo | Obrigatório | Descrição |
|---|---|---|---|
loja |
string | não | Slug da loja (alternativa ao header X-Store-Slug) |
Resposta: 302 para a URL de rastreio da transportadora. 404 se o envio não existe ou ainda não tem rastreio.
curl -X GET "https://api.nivesistemas.com.br/public/rastreio/{shipmentId}" \ -H "Authorization: Bearer sl_live_exemplo_abc123xyz789" \ -H "X-Store-Slug: loja-demo"const res = await fetch("https://api.nivesistemas.com.br/public/rastreio/{shipmentId}", { 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/public/rastreio/{shipmentId}", headers={ "Authorization": "Bearer sl_live_exemplo_abc123xyz789", "X-Store-Slug": "loja-demo", },)print(res.json())POST /public/service-orders/:token/quote-decision
Seção intitulada “POST /public/service-orders/:token/quote-decision”Oficina: o cliente aprova ou recusa o orçamento pelo link do portal da OS
Parâmetros de rota: token
Corpo (JSON)
| Campo | Tipo | Obrigatório | Descrição |
|---|---|---|---|
decision |
string | sim | APPROVE ou DECLINE |
comment |
string | não | Comentário (até 2000) |
Resposta: { ok, decision, status, quoteApprovedAt, quoteDeclinedAt, needsReapproval }. 404 se o link é inválido; 400 se o orçamento venceu ou não está aguardando resposta; 409 se o orçamento já foi aprovado e o cliente tenta recusar.
curl -X POST "https://api.nivesistemas.com.br/public/service-orders/{token}/quote-decision" \ -H "Authorization: Bearer sl_live_exemplo_abc123xyz789" \ -H "X-Store-Slug: loja-demo" \ -H "Content-Type: application/json" \ -d '{"decision":"","comment":""}'const res = await fetch("https://api.nivesistemas.com.br/public/service-orders/{token}/quote-decision", { method: "POST", headers: { Authorization: "Bearer sl_live_exemplo_abc123xyz789", "X-Store-Slug": "loja-demo", "Content-Type": "application/json", }, body: JSON.stringify({ "decision": "", "comment": "" }),});const data = await res.json();import requests
res = requests.request( "POST", "https://api.nivesistemas.com.br/public/service-orders/{token}/quote-decision", headers={ "Authorization": "Bearer sl_live_exemplo_abc123xyz789", "X-Store-Slug": "loja-demo", }, json={ "decision": "", "comment": "" },)print(res.json())
