Alíquotas internas por UF
Alíquota interna de ICMS e FCP por estado, usadas no cálculo de DIFAL e operações interestaduais.
Base: https://api.nivesistemas.com.br · 6 endpoints
GET /fiscal-uf-rates
Seção intitulada “GET /fiscal-uf-rates”Listar alíquotas cadastradas
curl -X GET "https://api.nivesistemas.com.br/fiscal-uf-rates" \ -H "Authorization: Bearer sl_live_exemplo_abc123xyz789" \ -H "X-Store-Slug: loja-demo"const res = await fetch("https://api.nivesistemas.com.br/fiscal-uf-rates", { 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/fiscal-uf-rates", headers={ "Authorization": "Bearer sl_live_exemplo_abc123xyz789", "X-Store-Slug": "loja-demo", },)print(res.json())PUT /fiscal-uf-rates/:uf
Seção intitulada “PUT /fiscal-uf-rates/:uf”Criar ou atualizar a alíquota da UF
Parâmetros de rota: uf
Corpo (JSON)
| Campo | Tipo | Obrigatório | Descrição |
|---|---|---|---|
internalRate |
number | sim | Alíquota interna (%) |
fcpRate |
number | não | FCP (%) |
notes |
string | não | Observações |
curl -X PUT "https://api.nivesistemas.com.br/fiscal-uf-rates/{uf}" \ -H "Authorization: Bearer sl_live_exemplo_abc123xyz789" \ -H "X-Store-Slug: loja-demo" \ -H "Content-Type: application/json" \ -d '{"internalRate":0,"fcpRate":0,"notes":""}'const res = await fetch("https://api.nivesistemas.com.br/fiscal-uf-rates/{uf}", { method: "PUT", headers: { Authorization: "Bearer sl_live_exemplo_abc123xyz789", "X-Store-Slug": "loja-demo", "Content-Type": "application/json", }, body: JSON.stringify({ "internalRate": 0, "fcpRate": 0, "notes": "" }),});const data = await res.json();import requests
res = requests.request( "PUT", "https://api.nivesistemas.com.br/fiscal-uf-rates/{uf}", headers={ "Authorization": "Bearer sl_live_exemplo_abc123xyz789", "X-Store-Slug": "loja-demo", }, json={ "internalRate": 0, "fcpRate": 0, "notes": "" },)print(res.json())DELETE /fiscal-uf-rates/:uf
Seção intitulada “DELETE /fiscal-uf-rates/:uf”Remover alíquota da UF
Parâmetros de rota: uf
Resposta: 204 No Content
curl -X DELETE "https://api.nivesistemas.com.br/fiscal-uf-rates/{uf}" \ -H "Authorization: Bearer sl_live_exemplo_abc123xyz789" \ -H "X-Store-Slug: loja-demo"const res = await fetch("https://api.nivesistemas.com.br/fiscal-uf-rates/{uf}", { 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/fiscal-uf-rates/{uf}", headers={ "Authorization": "Bearer sl_live_exemplo_abc123xyz789", "X-Store-Slug": "loja-demo", },)print(res.json())GET /fiscal-uf-rates/exceptions
Seção intitulada “GET /fiscal-uf-rates/exceptions”Exceções de alíquota interna e FCP da UF de destino por NCM (DIFAL)
Query params
| Campo | Tipo | Obrigatório | Descrição |
|---|---|---|---|
uf |
string | não | UF |
curl -X GET "https://api.nivesistemas.com.br/fiscal-uf-rates/exceptions" \ -H "Authorization: Bearer sl_live_exemplo_abc123xyz789" \ -H "X-Store-Slug: loja-demo"const res = await fetch("https://api.nivesistemas.com.br/fiscal-uf-rates/exceptions", { 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/fiscal-uf-rates/exceptions", headers={ "Authorization": "Bearer sl_live_exemplo_abc123xyz789", "X-Store-Slug": "loja-demo", },)print(res.json())POST /fiscal-uf-rates/exceptions
Seção intitulada “POST /fiscal-uf-rates/exceptions”Criar exceção de alíquota
Corpo (JSON)
| Campo | Tipo | Obrigatório | Descrição |
|---|---|---|---|
uf |
string | sim | UF de destino |
ncmPrefix |
string | sim | NCM ou prefixo (2–10 dígitos) |
internalRate |
number | sim | Alíquota interna (%) |
fcpRate |
number | não | FCP (%) |
source |
string | sim | Fonte legal (3–300) |
notes |
string | não | Observações |
validFrom |
string | não | Início da vigência |
validTo |
string | não | Fim da vigência |
Resposta: 201 Created
curl -X POST "https://api.nivesistemas.com.br/fiscal-uf-rates/exceptions" \ -H "Authorization: Bearer sl_live_exemplo_abc123xyz789" \ -H "X-Store-Slug: loja-demo" \ -H "Content-Type: application/json" \ -d '{"uf":"","ncmPrefix":"","internalRate":0,"fcpRate":0,"source":"","notes":"","validFrom":"","validTo":""}'const res = await fetch("https://api.nivesistemas.com.br/fiscal-uf-rates/exceptions", { method: "POST", headers: { Authorization: "Bearer sl_live_exemplo_abc123xyz789", "X-Store-Slug": "loja-demo", "Content-Type": "application/json", }, body: JSON.stringify({ "uf": "", "ncmPrefix": "", "internalRate": 0, "fcpRate": 0, "source": "", "notes": "", "validFrom": "", "validTo": "" }),});const data = await res.json();import requests
res = requests.request( "POST", "https://api.nivesistemas.com.br/fiscal-uf-rates/exceptions", headers={ "Authorization": "Bearer sl_live_exemplo_abc123xyz789", "X-Store-Slug": "loja-demo", }, json={ "uf": "", "ncmPrefix": "", "internalRate": 0, "fcpRate": 0, "source": "", "notes": "", "validFrom": "", "validTo": "" },)print(res.json())DELETE /fiscal-uf-rates/exceptions/:id
Seção intitulada “DELETE /fiscal-uf-rates/exceptions/:id”Excluir exceção
Parâmetros de rota: id
Resposta: 204 No Content
curl -X DELETE "https://api.nivesistemas.com.br/fiscal-uf-rates/exceptions/{id}" \ -H "Authorization: Bearer sl_live_exemplo_abc123xyz789" \ -H "X-Store-Slug: loja-demo"const res = await fetch("https://api.nivesistemas.com.br/fiscal-uf-rates/exceptions/{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/fiscal-uf-rates/exceptions/{id}", headers={ "Authorization": "Bearer sl_live_exemplo_abc123xyz789", "X-Store-Slug": "loja-demo", },)print(res.json())
