Introduction
API multi-tenant do Valuor ERP.
Contextos de uso
Admin Central (backend.valuor.com.br/api/) — Rotas exclusivas do super_admin para gestão de tenants, planos, assinaturas, faturamento e configurações do sistema.
Tenant ({empresa}.valuor.com.br/api/) — Rotas do ERP acessadas pelos usuários de cada empresa. Requerem que o banco de dados do tenant esteja provisionado.
Central — Público — Registro de novas empresas, listagem de planos e download de APKs. Acessíveis sem autenticação.
This documentation aims to provide all the information you need to work with our API.
Authenticating requests
This API is not authenticated.
Central — Cadastro
POST api/register
Example request:
curl --request POST \
"https://backend.valuor.com.br/api/register" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"company_name\": \"gbrc\",
\"subdomain\": \"cykmc\",
\"admin_name\": \"pepvdaooniwy\",
\"admin_email\": \"[email protected]\",
\"admin_password\": \"myaulpoyzpwdaurdva\",
\"plan_slug\": \"consequatur\",
\"billing_cycle\": \"quarterly\",
\"payment_method\": \"pix\",
\"coupon_code\": \"xbtpoqhtqfjxus\"
}"
const url = new URL(
"https://backend.valuor.com.br/api/register"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"company_name": "gbrc",
"subdomain": "cykmc",
"admin_name": "pepvdaooniwy",
"admin_email": "[email protected]",
"admin_password": "myaulpoyzpwdaurdva",
"plan_slug": "consequatur",
"billing_cycle": "quarterly",
"payment_method": "pix",
"coupon_code": "xbtpoqhtqfjxus"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (422):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Dados inválidos.",
"errors": {
"plan_slug": [
"validation.exists"
]
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Central — Planos
GET api/plans/{slug}
Example request:
curl --request GET \
--get "https://backend.valuor.com.br/api/plans/aspernatur" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/plans/aspernatur"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (422):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Usuário sem empresa vinculada."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Central — Aplicativo
Retorna a versão mais recente de um app para o cliente checar atualização.
Endpoint público — sem autenticação.
GET /api/auth/app/versao?app=mobile|pdv|consumidor
Example request:
curl --request GET \
--get "https://backend.valuor.com.br/api/auth/app/versao" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/auth/app/versao"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"version_name": "1.0.0",
"version_code": 68,
"apk_url": "https://backend.valuor.com.br/api/app/download/34",
"mandatory": false,
"sha256": "0eef01abccabdd769a872fc508f515a0d8793b4a2cc4ea221a7c5f1fa13d66e5",
"changelog": null
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Faz download do APK. Se for URL externa, redireciona; caso contrário, serve o arquivo local.
Rota pública: GET /api/app/download/{id}
Example request:
curl --request GET \
--get "https://backend.valuor.com.br/api/app/download/34" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/app/download/34"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
Show headers
content-type: application/vnd.android.package-archive
content-disposition: attachment; filename="mobile-1.0.0-68.apk"
cache-control: no-store, private
vary: Origin
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Lista todos os releases. Exclusivo super_admin.
Example request:
curl --request GET \
--get "https://backend.valuor.com.br/api/admin/app-releases" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/admin/app-releases"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Não autenticado."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Cria um novo release. Aceita upload de arquivo OU URL externa.
Multipart: app_type, version_name, version_code, mandatory, changelog, apk (file) | apk_url (texto)
Example request:
curl --request POST \
"https://backend.valuor.com.br/api/admin/app-releases" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--form "app_type=mobile"\
--form "version_name=pedvhenv"\
--form "version_code=73"\
--form "mandatory="\
--form "changelog=yl"\
--form "sha256=badhitwbaeyigusaympycudygieeqimhwrkybkbkyqulgtmkrurdhwvanzcmtffx"\
--form "apk_url=https://www.hettinger.net/doloremque-voluptas-corrupti-nihil-aut-asperiores-est-fugiat"\
--form "apk=@/tmp/phpjnEelj" const url = new URL(
"https://backend.valuor.com.br/api/admin/app-releases"
);
const headers = {
"Content-Type": "multipart/form-data",
"Accept": "application/json",
};
const body = new FormData();
body.append('app_type', 'mobile');
body.append('version_name', 'pedvhenv');
body.append('version_code', '73');
body.append('mandatory', '');
body.append('changelog', 'yl');
body.append('sha256', 'badhitwbaeyigusaympycudygieeqimhwrkybkbkyqulgtmkrurdhwvanzcmtffx');
body.append('apk_url', 'https://www.hettinger.net/doloremque-voluptas-corrupti-nihil-aut-asperiores-est-fugiat');
body.append('apk', document.querySelector('input[name="apk"]').files[0]);
fetch(url, {
method: "POST",
headers,
body,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Não autenticado."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Atualiza metadados de um release (mandatory, ativo, changelog, apk_url).
Example request:
curl --request PUT \
"https://backend.valuor.com.br/api/admin/app-releases/34" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"mandatory\": false,
\"ativo\": true,
\"changelog\": \"gijqqkyvjzcrulgajgwpeczy\",
\"apk_url\": \"https:\\/\\/kautzer.info\\/eius-placeat-laudantium-labore.html\"
}"
const url = new URL(
"https://backend.valuor.com.br/api/admin/app-releases/34"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"mandatory": false,
"ativo": true,
"changelog": "gijqqkyvjzcrulgajgwpeczy",
"apk_url": "https:\/\/kautzer.info\/eius-placeat-laudantium-labore.html"
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Não autenticado."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Remove o release e o arquivo APK.
Example request:
curl --request DELETE \
"https://backend.valuor.com.br/api/admin/app-releases/34" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/admin/app-releases/34"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Não autenticado."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Autenticação
Endpoints de login, logout e dados do usuário autenticado.
Login
Autentica o usuário e retorna um Bearer token Sanctum.
Passe o token em todas as requisições como Authorization: Bearer {token}.
Example request:
curl --request POST \
"https://backend.valuor.com.br/api/auth/login" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"email\": \"[email protected]\",
\"password\": \"password\",
\"device_name\": \"Pixel 8\"
}"
const url = new URL(
"https://backend.valuor.com.br/api/auth/login"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"email": "[email protected]",
"password": "password",
"device_name": "Pixel 8"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"token": "1|xK8zQmN...",
"user": {
"id": 1,
"name": "Administrador",
"email": "[email protected]",
"role": "admin_empresa",
"ativo": true,
"empresa_id": 1,
"empresa": {
"id": 1,
"nome": "Empresa Exemplo",
"cnpj": "12345678000100",
"plano": "profissional"
}
}
}
Example response (401):
{
"message": "Credenciais inválidas."
}
Example response (403):
{
"message": "Usuário inativo."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Cadastro de nova empresa (onboarding público)
Cria a empresa e o usuário administrador inicial em uma única transação. Retorna token Sanctum para login automático.
Example request:
curl --request POST \
"https://backend.valuor.com.br/api/auth/register" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"nome\": \"Minha Empresa Ltda\",
\"cnpj\": \"12345678000195\",
\"email\": \"[email protected]\",
\"telefone\": \"11999999999\",
\"plano\": \"basico\",
\"admin_nome\": \"João Silva\",
\"admin_email\": \"[email protected]\",
\"admin_password\": \"senha1234\"
}"
const url = new URL(
"https://backend.valuor.com.br/api/auth/register"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"nome": "Minha Empresa Ltda",
"cnpj": "12345678000195",
"email": "[email protected]",
"telefone": "11999999999",
"plano": "basico",
"admin_nome": "João Silva",
"admin_email": "[email protected]",
"admin_password": "senha1234"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (201):
{
"token": "1|abc...",
"user": {
"id": 1,
"name": "João Silva"
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Usuário autenticado
Retorna os dados do usuário dono do token atual.
Example request:
curl --request GET \
--get "https://backend.valuor.com.br/api/auth/me" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/auth/me"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"user": {
"id": 1,
"name": "Administrador",
"email": "[email protected]",
"role": "admin_empresa",
"ativo": true,
"empresa_id": 1,
"empresa": {
"id": 1,
"nome": "Empresa Exemplo"
}
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Matriz de permissões efetivas do usuário autenticado.
Retorna { tela: { ver, incluir, editar, excluir } }. O frontend cacheia e
usa para esconder/desabilitar botões. Backend ainda é a fonte da verdade —
use o middleware permission:tela.acao para reforçar nas rotas.
Example request:
curl --request GET \
--get "https://backend.valuor.com.br/api/auth/permissoes" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/auth/permissoes"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Não autenticado."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Logout
Revoga o token atual.
Example request:
curl --request POST \
"https://backend.valuor.com.br/api/auth/logout" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/auth/logout"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Example response (200):
{
"message": "Logout realizado com sucesso."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Logout em todos os dispositivos
Revoga todos os tokens do usuário (todos os dispositivos).
Example request:
curl --request POST \
"https://backend.valuor.com.br/api/auth/logout-all" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/auth/logout-all"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Example response (200):
{
"message": "Todos os tokens revogados."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Token de acesso à API Fiscal (JWT curta duração — mobile)
Gera um JWT HS256 válido por 30 minutos para que o app mobile chame a API Fiscal diretamente (NFC-e, DANFE) sem expor a API Key.
Example request:
curl --request POST \
"https://backend.valuor.com.br/api/auth/fiscal-token" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/auth/fiscal-token"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Example response (200):
{
"token": "eyJ...",
"expires_in": 1800
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Perfil
Gerenciamento do perfil do usuário autenticado.
Meu perfil
Retorna os dados do usuário autenticado com empresa vinculada.
Example request:
curl --request GET \
--get "https://backend.valuor.com.br/api/auth/profile" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/auth/profile"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"user": {
"id": 1,
"name": "João Silva",
"email": "[email protected]",
"role": "vendedor",
"ativo": true,
"empresa": {
"id": 1,
"nome": "Empresa Ltda"
}
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Atualizar perfil
Atualiza nome, email e/ou senha do usuário autenticado.
Para alterar a senha, envie password_atual + password + password_confirmation.
Example request:
curl --request PUT \
"https://backend.valuor.com.br/api/auth/profile" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"João Silva\",
\"email\": \"[email protected]\",
\"password_atual\": \"senhaAtual123\",
\"password\": \"novaSenha456\",
\"password_confirmation\": \"novaSenha456\"
}"
const url = new URL(
"https://backend.valuor.com.br/api/auth/profile"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "João Silva",
"email": "[email protected]",
"password_atual": "senhaAtual123",
"password": "novaSenha456",
"password_confirmation": "novaSenha456"
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"user": {
"id": 1,
"name": "João Silva",
"email": "[email protected]"
}
}
Example response (422):
{
"message": "The given data was invalid.",
"errors": {
"password_atual": [
"Senha atual incorreta."
]
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Notificações
GET api/notificacoes
Example request:
curl --request GET \
--get "https://backend.valuor.com.br/api/notificacoes" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/notificacoes"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Não autenticado."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/notificacoes/count
Example request:
curl --request GET \
--get "https://backend.valuor.com.br/api/notificacoes/count" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/notificacoes/count"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Não autenticado."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
PATCH api/notificacoes/marcar-todas
Example request:
curl --request PATCH \
"https://backend.valuor.com.br/api/notificacoes/marcar-todas" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/notificacoes/marcar-todas"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "PATCH",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Não autenticado."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
PATCH api/notificacoes/{id}/lida
Example request:
curl --request PATCH \
"https://backend.valuor.com.br/api/notificacoes/repudiandae/lida" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/notificacoes/repudiandae/lida"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "PATCH",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Não autenticado."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Sistema
POST api/errors/report
Example request:
curl --request POST \
"https://backend.valuor.com.br/api/errors/report" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"source\": \"xojzbgmeosdlbhxsupudd\",
\"message\": \"mhln\",
\"context\": \"fp\",
\"url\": \"http:\\/\\/www.lebsack.net\\/\"
}"
const url = new URL(
"https://backend.valuor.com.br/api/errors/report"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"source": "xojzbgmeosdlbhxsupudd",
"message": "mhln",
"context": "fp",
"url": "http:\/\/www.lebsack.net\/"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Não autenticado."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Admin Central — Empresas
Painel de controle global. Exclusivo para super_admin.
GET api/admin/stats
Example request:
curl --request GET \
--get "https://backend.valuor.com.br/api/admin/stats" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/admin/stats"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Não autenticado."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Estatísticas globais
Retorna KPIs consolidados de todas as empresas.
Example request:
curl --request GET \
--get "https://backend.valuor.com.br/api/admin/server-health" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/admin/server-health"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"data": {
"empresas": {
"total": 12,
"ativas": 10,
"por_plano": {
"profissional": 7,
"basico": 3
}
},
"usuarios": {
"total": 48,
"ativos": 45
},
"vendas_mes": {
"total": 342,
"faturamento": 158000
}
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/admin/containers/{name}/logs
Example request:
curl --request GET \
--get "https://backend.valuor.com.br/api/admin/containers/ut/logs" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/admin/containers/ut/logs"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Não autenticado."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Limpa recursos Docker não utilizados (imagens, containers parados, volumes, networks)
Example request:
curl --request POST \
"https://backend.valuor.com.br/api/admin/docker-prune" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/admin/docker-prune"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Não autenticado."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Reconstruir / redeployar o sistema (super_admin).
Aciona o serviço de webhook interno (o mesmo usado pelo GitHub), que roda
git pull origin main + docker compose up --build. Fire-and-forget: o
rebuild reinicia este próprio backend, então a conexão pode cair antes da
resposta do webhook — isso é esperado e o deploy continua no container do webhook.
Example request:
curl --request POST \
"https://backend.valuor.com.br/api/admin/rebuild" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"service\": \"magnam\"
}"
const url = new URL(
"https://backend.valuor.com.br/api/admin/rebuild"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"service": "magnam"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Não autenticado."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Listar todas as empresas (admin)
Inclui contagem de usuários e data da última venda.
Example request:
curl --request GET \
--get "https://backend.valuor.com.br/api/admin/empresas?search=Tech&ativo=1&plano=profissional&per_page=20" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/admin/empresas"
);
const params = {
"search": "Tech",
"ativo": "1",
"plano": "profissional",
"per_page": "20",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Não autenticado."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Criar empresa
Cria uma nova empresa e opcionalmente o primeiro usuário admin.
Example request:
curl --request POST \
"https://backend.valuor.com.br/api/admin/empresas" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"nome\": \"Tech Soluções Ltda\",
\"subdominio\": \"tsm\",
\"provisionar_dns\": true,
\"cnpj\": \"12345678000100\",
\"email\": \"[email protected]\",
\"telefone\": \"11999990000\",
\"plano\": \"profissional\",
\"logradouro\": \"vero\",
\"numero\": \"nunb\",
\"bairro\": \"sit\",
\"cidade\": \"eveniet\",
\"uf\": \"rd\",
\"cep\": \"sz\",
\"admin_nome\": \"Administrador\",
\"admin_email\": \"[email protected]\",
\"admin_password\": \"senha12345\"
}"
const url = new URL(
"https://backend.valuor.com.br/api/admin/empresas"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"nome": "Tech Soluções Ltda",
"subdominio": "tsm",
"provisionar_dns": true,
"cnpj": "12345678000100",
"email": "[email protected]",
"telefone": "11999990000",
"plano": "profissional",
"logradouro": "vero",
"numero": "nunb",
"bairro": "sit",
"cidade": "eveniet",
"uf": "rd",
"cep": "sz",
"admin_nome": "Administrador",
"admin_email": "[email protected]",
"admin_password": "senha12345"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (201):
{
"data": {
"id": 5,
"nome": "Tech Soluções Ltda",
"ativo": true
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Atualizar empresa (admin)
Example request:
curl --request PUT \
"https://backend.valuor.com.br/api/admin/empresas/15" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"nome\": \"kzviaicxxbmbwalwrh\",
\"nome_fantasia\": \"caimwwghsekoxwixd\",
\"subdominio\": \"vepefaqxpfonkf\",
\"cnpj\": \"vjnniygsuspynl\",
\"ie\": \"kktcc\",
\"im\": \"ylqvgfznrbfuykjbjh\",
\"email\": \"[email protected]\",
\"telefone\": \"nl\",
\"plano\": \"profissional\",
\"ativo\": true,
\"logradouro\": \"dignissimos\",
\"numero\": \"birlh\",
\"complemento\": \"nobis\",
\"bairro\": \"et\",
\"cidade\": \"omnis\",
\"uf\": \"ol\",
\"cep\": \"ovz\",
\"codigo_municipio_ibge\": \"adan\"
}"
const url = new URL(
"https://backend.valuor.com.br/api/admin/empresas/15"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"nome": "kzviaicxxbmbwalwrh",
"nome_fantasia": "caimwwghsekoxwixd",
"subdominio": "vepefaqxpfonkf",
"cnpj": "vjnniygsuspynl",
"ie": "kktcc",
"im": "ylqvgfznrbfuykjbjh",
"email": "[email protected]",
"telefone": "nl",
"plano": "profissional",
"ativo": true,
"logradouro": "dignissimos",
"numero": "birlh",
"complemento": "nobis",
"bairro": "et",
"cidade": "omnis",
"uf": "ol",
"cep": "ovz",
"codigo_municipio_ibge": "adan"
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"data": {
"id": 1,
"nome": "Empresa Atualizada"
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Ativar empresa
Example request:
curl --request POST \
"https://backend.valuor.com.br/api/admin/empresas/13/ativar" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/admin/empresas/13/ativar"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Example response (200):
{
"data": {
"id": 1,
"nome": "Empresa X",
"ativo": true
}
}
Example response (422):
{
"message": "Empresa já está ativa."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Suspender empresa
Example request:
curl --request POST \
"https://backend.valuor.com.br/api/admin/empresas/18/suspender" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/admin/empresas/18/suspender"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Example response (200):
{
"data": {
"id": 1,
"nome": "Empresa X",
"ativo": false
}
}
Example response (422):
{
"message": "Empresa já está suspensa."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Impersonar empresa
Gera um token temporário (4h) como admin_empresa da empresa selecionada.
Use este token para navegar no sistema como se fosse aquela empresa.
O token expira automaticamente em 4 horas.
Example request:
curl --request POST \
"https://backend.valuor.com.br/api/admin/empresas/18/impersonate" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/admin/empresas/18/impersonate"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Example response (200):
{
"token": "5|xK8zQm...",
"user": {
"id": 3,
"name": "Admin Empresa",
"role": "admin_empresa",
"empresa": {
"id": 2,
"nome": "Empresa X"
}
}
}
Example response (422):
{
"message": "Empresa não possui usuários cadastrados."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Provisionar DNS (Cloudflare) para a empresa
Example request:
curl --request POST \
"https://backend.valuor.com.br/api/admin/empresas/1/provisionar" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/admin/empresas/1/provisionar"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Não autenticado."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Remover DNS (Cloudflare) para a empresa
Example request:
curl --request DELETE \
"https://backend.valuor.com.br/api/admin/empresas/20/provisionar" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/admin/empresas/20/provisionar"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Não autenticado."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Criar e migrar o banco de dados do tenant
Example request:
curl --request POST \
"https://backend.valuor.com.br/api/admin/empresas/7/banco" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/admin/empresas/7/banco"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Não autenticado."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Executar migrations pendentes no banco do tenant (idempotente) Útil para tenants existentes após novas migrations de tenant serem adicionadas.
Example request:
curl --request POST \
"https://backend.valuor.com.br/api/admin/empresas/4/migrar" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/admin/empresas/4/migrar"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Não autenticado."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Saúde de migração de TODOS os tenants ativos. Visão consolidada para o painel admin saber quais bancos precisam de `tenants:migrate`.
Example request:
curl --request GET \
--get "https://backend.valuor.com.br/api/admin/migration-health" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/admin/migration-health"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"data": [
{
"id": 1,
"nome": "...",
"up_to_date": true,
"pending_count": 0
}
],
"resumo": {
"total": 5,
"desatualizados": 1,
"sem_banco": 0
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Saúde de migração de UM tenant: compara as migrations já aplicadas (tabela `migrations` do banco do tenant) com os arquivos em database/migrations/tenant.
Retorna as pendentes — útil para detectar tenants desatualizados que quebrariam ao acessar rotas (ex.: a tela de login com tabela ausente).
Example request:
curl --request GET \
--get "https://backend.valuor.com.br/api/admin/empresas/7/migration-status" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/admin/empresas/7/migration-status"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"data": {
"up_to_date": false,
"pending_count": 3,
"pending": [
"..."
],
"ran_count": 87,
"total": 90
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Executa migrations pendentes em TODOS os tenants ativos (equivale a `php artisan tenants:migrate`). Idempotente. Use após adicionar novas migrations de tenant para atualizar a base inteira de uma vez.
Example request:
curl --request POST \
"https://backend.valuor.com.br/api/admin/migrar-todos" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/admin/migrar-todos"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Example response (200):
{
"message": "...",
"migrados": 5,
"falhas": []
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Gerenciar licença / validade do tenant
Example request:
curl --request PATCH \
"https://backend.valuor.com.br/api/admin/empresas/12/licenca" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"subscription_ends_at\": \"2026-06-05T15:55:39\",
\"trial_ends_at\": \"2026-06-05T15:55:39\",
\"grace_period_ends_at\": \"2026-06-05T15:55:39\"
}"
const url = new URL(
"https://backend.valuor.com.br/api/admin/empresas/12/licenca"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"subscription_ends_at": "2026-06-05T15:55:39",
"trial_ends_at": "2026-06-05T15:55:39",
"grace_period_ends_at": "2026-06-05T15:55:39"
};
fetch(url, {
method: "PATCH",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Não autenticado."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Excluir empresa: remove DNS/Tunnel, dropa banco e faz soft-delete
Example request:
curl --request DELETE \
"https://backend.valuor.com.br/api/admin/empresas/6" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/admin/empresas/6"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Não autenticado."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Backup do banco de dados do tenant via pg_dump
Gera um arquivo SQL com dump completo do banco de dados do tenant.
Requer pg_dump instalado no servidor.
Example request:
curl --request GET \
--get "https://backend.valuor.com.br/api/admin/empresas/12/backup" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/admin/empresas/12/backup"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Não autenticado."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Ações em lote sobre múltiplas empresas
Example request:
curl --request POST \
"https://backend.valuor.com.br/api/admin/empresas/bulk" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"action\": \"ativar\",
\"ids\": [
1,
2,
3
]
}"
const url = new URL(
"https://backend.valuor.com.br/api/admin/empresas/bulk"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"action": "ativar",
"ids": [
1,
2,
3
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Não autenticado."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Histórico de auditoria (geral ou por empresa)
Example request:
curl --request GET \
--get "https://backend.valuor.com.br/api/admin/audit-log?empresa_id=5&per_page=50" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/admin/audit-log"
);
const params = {
"empresa_id": "5",
"per_page": "50",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Não autenticado."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/admin/empresas/{empresa_id}/usuarios
Example request:
curl --request GET \
--get "https://backend.valuor.com.br/api/admin/empresas/19/usuarios" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/admin/empresas/19/usuarios"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Não autenticado."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/admin/empresas/{empresa_id}/usuarios
Example request:
curl --request POST \
"https://backend.valuor.com.br/api/admin/empresas/11/usuarios" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"rmsvrjiloigestumcxoqt\",
\"email\": \"[email protected]\",
\"password\": \"facilis\",
\"role\": \"earum\",
\"ativo\": false
}"
const url = new URL(
"https://backend.valuor.com.br/api/admin/empresas/11/usuarios"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "rmsvrjiloigestumcxoqt",
"email": "[email protected]",
"password": "facilis",
"role": "earum",
"ativo": false
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Não autenticado."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
PUT api/admin/empresas/{empresa_id}/usuarios/{userId}
Example request:
curl --request PUT \
"https://backend.valuor.com.br/api/admin/empresas/18/usuarios/in" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"nurwmuortltdvbezixox\",
\"email\": \"[email protected]\",
\"password\": \"G[9\\\"Liil\\/z\'bmOHo[Ym,\",
\"ativo\": true
}"
const url = new URL(
"https://backend.valuor.com.br/api/admin/empresas/18/usuarios/in"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "nurwmuortltdvbezixox",
"email": "[email protected]",
"password": "G[9\"Liil\/z'bmOHo[Ym,",
"ativo": true
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Não autenticado."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
DELETE api/admin/empresas/{empresa_id}/usuarios/{userId}
Example request:
curl --request DELETE \
"https://backend.valuor.com.br/api/admin/empresas/16/usuarios/sed" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/admin/empresas/16/usuarios/sed"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Não autenticado."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Admin Central — Planos
GET api/admin/planos
Example request:
curl --request GET \
--get "https://backend.valuor.com.br/api/admin/planos" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/admin/planos"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Não autenticado."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/admin/planos
Example request:
curl --request POST \
"https://backend.valuor.com.br/api/admin/planos" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"nome\": \"zdjwrtuy\",
\"slug\": \"zdkisdmkzav\",
\"descricao\": \"quos\",
\"preco_mensal\": 54,
\"preco_anual\": 9,
\"trial_dias\": 35,
\"limite_usuarios\": 39,
\"limite_produtos\": 73,
\"limite_clientes\": 24,
\"ativo\": true,
\"publico\": false,
\"ordem\": 15
}"
const url = new URL(
"https://backend.valuor.com.br/api/admin/planos"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"nome": "zdjwrtuy",
"slug": "zdkisdmkzav",
"descricao": "quos",
"preco_mensal": 54,
"preco_anual": 9,
"trial_dias": 35,
"limite_usuarios": 39,
"limite_produtos": 73,
"limite_clientes": 24,
"ativo": true,
"publico": false,
"ordem": 15
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Não autenticado."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/admin/planos/{id}
Example request:
curl --request GET \
--get "https://backend.valuor.com.br/api/admin/planos/1" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/admin/planos/1"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Não autenticado."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
PUT api/admin/planos/{id}
Example request:
curl --request PUT \
"https://backend.valuor.com.br/api/admin/planos/1" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"nome\": \"gjtfcvkyaazrkdfhb\",
\"descricao\": \"nihil\",
\"preco_mensal\": 14,
\"preco_anual\": 84,
\"trial_dias\": 85,
\"limite_usuarios\": 29,
\"limite_produtos\": 58,
\"limite_clientes\": 55,
\"ativo\": false,
\"publico\": true,
\"ordem\": 75
}"
const url = new URL(
"https://backend.valuor.com.br/api/admin/planos/1"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"nome": "gjtfcvkyaazrkdfhb",
"descricao": "nihil",
"preco_mensal": 14,
"preco_anual": 84,
"trial_dias": 85,
"limite_usuarios": 29,
"limite_produtos": 58,
"limite_clientes": 55,
"ativo": false,
"publico": true,
"ordem": 75
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Não autenticado."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
DELETE api/admin/planos/{id}
Example request:
curl --request DELETE \
"https://backend.valuor.com.br/api/admin/planos/1" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/admin/planos/1"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Não autenticado."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Admin Central — Assinaturas
GET api/admin/assinaturas
Example request:
curl --request GET \
--get "https://backend.valuor.com.br/api/admin/assinaturas" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/admin/assinaturas"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Não autenticado."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/admin/assinaturas
Example request:
curl --request POST \
"https://backend.valuor.com.br/api/admin/assinaturas" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"empresa_id\": \"omnis\",
\"plano_id\": \"voluptates\",
\"ciclo\": \"anual\",
\"desconto_percent\": 18,
\"gateway\": \"stripe\",
\"notas\": \"et\"
}"
const url = new URL(
"https://backend.valuor.com.br/api/admin/assinaturas"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"empresa_id": "omnis",
"plano_id": "voluptates",
"ciclo": "anual",
"desconto_percent": 18,
"gateway": "stripe",
"notas": "et"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Não autenticado."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/admin/assinaturas/{assinatura_id}
Example request:
curl --request GET \
--get "https://backend.valuor.com.br/api/admin/assinaturas/9" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/admin/assinaturas/9"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Não autenticado."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
PUT api/admin/assinaturas/{assinatura_id}
Example request:
curl --request PUT \
"https://backend.valuor.com.br/api/admin/assinaturas/14" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"ciclo\": \"mensal\",
\"desconto_percent\": 10,
\"data_proximo_vencimento\": \"2026-06-05T15:55:40\",
\"notas\": \"repudiandae\"
}"
const url = new URL(
"https://backend.valuor.com.br/api/admin/assinaturas/14"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"ciclo": "mensal",
"desconto_percent": 10,
"data_proximo_vencimento": "2026-06-05T15:55:40",
"notas": "repudiandae"
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Não autenticado."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/admin/assinaturas/{assinatura_id}/cancelar
Example request:
curl --request POST \
"https://backend.valuor.com.br/api/admin/assinaturas/1/cancelar" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/admin/assinaturas/1/cancelar"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Não autenticado."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/admin/assinaturas/{assinatura_id}/suspender
Example request:
curl --request POST \
"https://backend.valuor.com.br/api/admin/assinaturas/18/suspender" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/admin/assinaturas/18/suspender"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Não autenticado."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/admin/assinaturas/{assinatura_id}/reativar
Example request:
curl --request POST \
"https://backend.valuor.com.br/api/admin/assinaturas/16/reativar" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/admin/assinaturas/16/reativar"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Não autenticado."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/admin/assinaturas/{assinatura_id}/gerar-fatura
Example request:
curl --request POST \
"https://backend.valuor.com.br/api/admin/assinaturas/14/gerar-fatura" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"valor\": 9,
\"desconto\": 17,
\"data_vencimento\": \"2026-06-05T15:55:40\",
\"descricao\": \"molestiae\",
\"notas\": \"iure\"
}"
const url = new URL(
"https://backend.valuor.com.br/api/admin/assinaturas/14/gerar-fatura"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"valor": 9,
"desconto": 17,
"data_vencimento": "2026-06-05T15:55:40",
"descricao": "molestiae",
"notas": "iure"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Não autenticado."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Admin Central — Faturas
GET api/admin/faturas
Example request:
curl --request GET \
--get "https://backend.valuor.com.br/api/admin/faturas" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/admin/faturas"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Não autenticado."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/admin/faturas/{fatura_id}
Example request:
curl --request GET \
--get "https://backend.valuor.com.br/api/admin/faturas/14" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/admin/faturas/14"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Não autenticado."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/admin/faturas/{fatura_id}/baixar
Example request:
curl --request POST \
"https://backend.valuor.com.br/api/admin/faturas/20/baixar" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"data_pagamento\": \"2026-06-05T15:55:40\",
\"forma_pagamento\": \"njqcqtvkvxnaptpbkmfst\",
\"notas\": \"non\"
}"
const url = new URL(
"https://backend.valuor.com.br/api/admin/faturas/20/baixar"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"data_pagamento": "2026-06-05T15:55:40",
"forma_pagamento": "njqcqtvkvxnaptpbkmfst",
"notas": "non"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Não autenticado."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/admin/faturas/{fatura_id}/cancelar
Example request:
curl --request POST \
"https://backend.valuor.com.br/api/admin/faturas/7/cancelar" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/admin/faturas/7/cancelar"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Não autenticado."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/admin/faturas/{fatura_id}/gerar-pix
Example request:
curl --request POST \
"https://backend.valuor.com.br/api/admin/faturas/9/gerar-pix" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/admin/faturas/9/gerar-pix"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Não autenticado."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
DELETE api/admin/faturas/{fatura_id}
Example request:
curl --request DELETE \
"https://backend.valuor.com.br/api/admin/faturas/3" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/admin/faturas/3"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Não autenticado."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Admin Central — Gateways
GET api/admin/gateways
Example request:
curl --request GET \
--get "https://backend.valuor.com.br/api/admin/gateways" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/admin/gateways"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Não autenticado."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
PUT api/admin/gateways/{provider}
Example request:
curl --request PUT \
"https://backend.valuor.com.br/api/admin/gateways/dolorem" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"ativo\": false,
\"sandbox\": true,
\"api_key\": \"ihojizqtcusrmmyrz\",
\"webhook_secret\": \"qgr\",
\"webhook_url\": \"https:\\/\\/www.hahn.com\\/veniam-impedit-ratione-sequi-velit-repellat-provident-quidem\"
}"
const url = new URL(
"https://backend.valuor.com.br/api/admin/gateways/dolorem"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"ativo": false,
"sandbox": true,
"api_key": "ihojizqtcusrmmyrz",
"webhook_secret": "qgr",
"webhook_url": "https:\/\/www.hahn.com\/veniam-impedit-ratione-sequi-velit-repellat-provident-quidem"
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Não autenticado."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/admin/gateways/{provider}/testar
Example request:
curl --request POST \
"https://backend.valuor.com.br/api/admin/gateways/harum/testar" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/admin/gateways/harum/testar"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Não autenticado."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Tenant — Usuários
Gerenciamento de usuários da empresa. Requer roles super_admin ou admin_empresa.
Roles disponíveis: super_admin, admin_empresa, gerente, financeiro, vendedor, operador_pdv, contador.
Permissões granulares do usuário (matriz tela × ação) — complementam o perfil.
Example request:
curl --request GET \
--get "https://backend.valuor.com.br/api/usuarios/1/permissoes" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/usuarios/1/permissoes"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Salva os overrides de permissão do usuário.
Example request:
curl --request PUT \
"https://backend.valuor.com.br/api/usuarios/1/permissoes" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"permissoes\": [
{
\"ver\": true,
\"incluir\": false,
\"editar\": false,
\"excluir\": true
}
]
}"
const url = new URL(
"https://backend.valuor.com.br/api/usuarios/1/permissoes"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"permissoes": [
{
"ver": true,
"incluir": false,
"editar": false,
"excluir": true
}
]
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Listar usuários
Example request:
curl --request GET \
--get "https://backend.valuor.com.br/api/usuarios?search=Maria&role=vendedor&ativo=1&per_page=20" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/usuarios"
);
const params = {
"search": "Maria",
"role": "vendedor",
"ativo": "1",
"per_page": "20",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/usuarios
Example request:
curl --request POST \
"https://backend.valuor.com.br/api/usuarios" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"yihvneptiljlmorkszda\",
\"email\": \"[email protected]\",
\"cpf\": \"dnlkwp\",
\"telefone\": \"kz\",
\"login\": \"zpbpgohnvcvhovur\",
\"senha_app\": \"ocdmijmlljfahpjiidauh\",
\"role\": \"financeiro\",
\"supervisor\": true,
\"estoquista\": true,
\"caixa\": false,
\"vendedor_padrao_id\": 19,
\"percentual_comissao\": 9,
\"percentual_comissao_avista\": 10,
\"percentual_comissao_aprazo\": 15,
\"desconto_maximo_percentual\": 5
}"
const url = new URL(
"https://backend.valuor.com.br/api/usuarios"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "yihvneptiljlmorkszda",
"email": "[email protected]",
"cpf": "dnlkwp",
"telefone": "kz",
"login": "zpbpgohnvcvhovur",
"senha_app": "ocdmijmlljfahpjiidauh",
"role": "financeiro",
"supervisor": true,
"estoquista": true,
"caixa": false,
"vendedor_padrao_id": 19,
"percentual_comissao": 9,
"percentual_comissao_avista": 10,
"percentual_comissao_aprazo": 15,
"desconto_maximo_percentual": 5
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/usuarios/{user_id}
Example request:
curl --request GET \
--get "https://backend.valuor.com.br/api/usuarios/1" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/usuarios/1"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
PUT api/usuarios/{user_id}
Example request:
curl --request PUT \
"https://backend.valuor.com.br/api/usuarios/1" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"vgdsdpop\",
\"email\": \"[email protected]\",
\"cpf\": \"qjsbywspkja\",
\"telefone\": \"ceotetfeuuc\",
\"login\": \"axlgfskldnrtvcmzqsttsuqhz\",
\"senha_app\": \"atlvandkb\",
\"supervisor\": true,
\"estoquista\": false,
\"caixa\": false,
\"vendedor_padrao_id\": 7,
\"ativo\": false,
\"percentual_comissao\": 13,
\"percentual_comissao_avista\": 6,
\"percentual_comissao_aprazo\": 24,
\"desconto_maximo_percentual\": 3
}"
const url = new URL(
"https://backend.valuor.com.br/api/usuarios/1"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "vgdsdpop",
"email": "[email protected]",
"cpf": "qjsbywspkja",
"telefone": "ceotetfeuuc",
"login": "axlgfskldnrtvcmzqsttsuqhz",
"senha_app": "atlvandkb",
"supervisor": true,
"estoquista": false,
"caixa": false,
"vendedor_padrao_id": 7,
"ativo": false,
"percentual_comissao": 13,
"percentual_comissao_avista": 6,
"percentual_comissao_aprazo": 24,
"desconto_maximo_percentual": 3
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
DELETE api/usuarios/{user_id}
Example request:
curl --request DELETE \
"https://backend.valuor.com.br/api/usuarios/1" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/usuarios/1"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Registrar token FCM
Salva ou atualiza o token Firebase Cloud Messaging do dispositivo do usuário autenticado. Chamado automaticamente pelo app mobile/PDV após login e inicialização do Firebase.
Example request:
curl --request POST \
"https://backend.valuor.com.br/api/usuarios/fcm-token" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"token\": \"fJKnQ...abc123\"
}"
const url = new URL(
"https://backend.valuor.com.br/api/usuarios/fcm-token"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"token": "fJKnQ...abc123"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Tenant — Clientes
Cadastro e consulta de clientes (pessoa física ou jurídica).
Exportar lista de clientes em CSV (UTF-8 com BOM para Excel).
Respeita os mesmos filtros de index e usa cursor para não estourar memória.
Example request:
curl --request GET \
--get "https://backend.valuor.com.br/api/clientes/exportar" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/clientes/exportar"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Aplica tags em lote — adiciona (modo append) ou substitui (modo sync).
Anonimização LGPD em lote. Exige confirmação explícita no body.
Example request:
curl --request POST \
"https://backend.valuor.com.br/api/clientes/lote/anonimizar" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"ids\": [
\"magnam\"
],
\"confirmar\": false
}"
const url = new URL(
"https://backend.valuor.com.br/api/clientes/lote/anonimizar"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"ids": [
"magnam"
],
"confirmar": false
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Listar clientes
Retorna lista paginada. Use search para buscar por nome, CPF/CNPJ ou email.
Example request:
curl --request GET \
--get "https://backend.valuor.com.br/api/clientes?search=Jo%C3%A3o&ativo=1&per_page=20&page=1" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/clientes"
);
const params = {
"search": "João",
"ativo": "1",
"per_page": "20",
"page": "1",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Criar cliente
Example request:
curl --request POST \
"https://backend.valuor.com.br/api/clientes" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"tipo\": \"pf\",
\"nome\": \"zurucqhslgnysqwsjctjpbxlr\",
\"limite_credito\": 71,
\"apelido\": \"izjoovalibjbbealjgkzv\",
\"cpf_cnpj\": \"lxvyqunag\",
\"rg_ie\": \"bz\",
\"dt_nascimento\": \"2026-06-05T15:39:13\",
\"sexo\": \"I\",
\"estado_civil\": \"viuvo\",
\"email\": \"[email protected]\",
\"telefone\": \"jg\",
\"celular\": \"wkdnpptqsmaujgkhigsr\",
\"tel_residencial\": \"nhztlaxzizen\",
\"tel_comercial\": \"jqfobehqewas\",
\"tel_celular_comp\": \"krebngngyginax\",
\"whatsapp\": \"rr\",
\"cep\": \"d\",
\"logradouro\": \"ovwsswdabwjuklmheuhqrhbwj\",
\"numero\": \"ayxad\",
\"complemento\": \"uvqyiforudmoffnrdzmoxzzx\",
\"bairro\": \"svavnjduoxnfxfneeirfufby\",
\"cidade\": \"juwaoill\",
\"estado\": \"bb\",
\"codigo_municipio_ibge\": \"kcahxvb\",
\"regime_tributario\": \"rzneezowzkowthw\",
\"tipo_contribuinte\": \"mfzdnmfdyrbqrvwvolitsmuaj\",
\"tipo_recebimento\": \"ruralucykieilqbrce\",
\"observacoes\": \"inventore\",
\"informacoes_complementares\": \"et\",
\"ativo\": true,
\"tabela_preco_id\": 13,
\"is_cliente\": false,
\"is_fornecedor\": true,
\"is_funcionario\": true,
\"is_administradora\": false,
\"is_parceiro\": true,
\"is_ccf_spc\": true,
\"is_tecnico\": false,
\"is_atendente\": false,
\"is_cidadao\": false
}"
const url = new URL(
"https://backend.valuor.com.br/api/clientes"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"tipo": "pf",
"nome": "zurucqhslgnysqwsjctjpbxlr",
"limite_credito": 71,
"apelido": "izjoovalibjbbealjgkzv",
"cpf_cnpj": "lxvyqunag",
"rg_ie": "bz",
"dt_nascimento": "2026-06-05T15:39:13",
"sexo": "I",
"estado_civil": "viuvo",
"email": "[email protected]",
"telefone": "jg",
"celular": "wkdnpptqsmaujgkhigsr",
"tel_residencial": "nhztlaxzizen",
"tel_comercial": "jqfobehqewas",
"tel_celular_comp": "krebngngyginax",
"whatsapp": "rr",
"cep": "d",
"logradouro": "ovwsswdabwjuklmheuhqrhbwj",
"numero": "ayxad",
"complemento": "uvqyiforudmoffnrdzmoxzzx",
"bairro": "svavnjduoxnfxfneeirfufby",
"cidade": "juwaoill",
"estado": "bb",
"codigo_municipio_ibge": "kcahxvb",
"regime_tributario": "rzneezowzkowthw",
"tipo_contribuinte": "mfzdnmfdyrbqrvwvolitsmuaj",
"tipo_recebimento": "ruralucykieilqbrce",
"observacoes": "inventore",
"informacoes_complementares": "et",
"ativo": true,
"tabela_preco_id": 13,
"is_cliente": false,
"is_fornecedor": true,
"is_funcionario": true,
"is_administradora": false,
"is_parceiro": true,
"is_ccf_spc": true,
"is_tecnico": false,
"is_atendente": false,
"is_cidadao": false
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (201, Criado):
{
"data": {
"id": 1,
"nome": "Maria Silva",
"tipo": "pf",
"cpf_cnpj": "12345678900",
"email": "[email protected]",
"ativo": true
}
}
Example response (422, Validação):
{
"message": "The nome field is required.",
"errors": {
"nome": [
"The nome field is required."
]
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Buscar cliente por ID
Example request:
curl --request GET \
--get "https://backend.valuor.com.br/api/clientes/8" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/clientes/8"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Atualizar cliente
Example request:
curl --request PUT \
"https://backend.valuor.com.br/api/clientes/17" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"tipo\": \"pj\",
\"nome\": \"zrxlkeseozbziisa\",
\"limite_credito\": 23,
\"apelido\": \"clybhqc\",
\"cpf_cnpj\": \"epnxrq\",
\"rg_ie\": \"clj\",
\"dt_nascimento\": \"2026-06-05T15:39:16\",
\"sexo\": \"F\",
\"estado_civil\": \"divorciado\",
\"email\": \"[email protected]\",
\"telefone\": \"gulfznyhbidmfsqxrhtv\",
\"celular\": \"qjgibngxquzup\",
\"tel_residencial\": \"pqrtbmku\",
\"tel_comercial\": \"wx\",
\"tel_celular_comp\": \"nn\",
\"whatsapp\": \"gdkikrzt\",
\"cep\": \"m\",
\"logradouro\": \"kypvqkjxeslk\",
\"numero\": \"jx\",
\"complemento\": \"ruajkcntvrqbmaqfhtuor\",
\"bairro\": \"pu\",
\"cidade\": \"vdmgaxabaq\",
\"estado\": \"fw\",
\"codigo_municipio_ibge\": \"pl\",
\"regime_tributario\": \"opxdiiaupmuktudgxftlbnqon\",
\"tipo_contribuinte\": \"ahqvkwrurzre\",
\"tipo_recebimento\": \"fmqgbgobbellamlfeswaoj\",
\"observacoes\": \"est\",
\"informacoes_complementares\": \"repellendus\",
\"ativo\": false,
\"tabela_preco_id\": 14,
\"is_cliente\": true,
\"is_fornecedor\": false,
\"is_funcionario\": false,
\"is_administradora\": false,
\"is_parceiro\": true,
\"is_ccf_spc\": false,
\"is_tecnico\": false,
\"is_atendente\": false,
\"is_cidadao\": false
}"
const url = new URL(
"https://backend.valuor.com.br/api/clientes/17"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"tipo": "pj",
"nome": "zrxlkeseozbziisa",
"limite_credito": 23,
"apelido": "clybhqc",
"cpf_cnpj": "epnxrq",
"rg_ie": "clj",
"dt_nascimento": "2026-06-05T15:39:16",
"sexo": "F",
"estado_civil": "divorciado",
"email": "[email protected]",
"telefone": "gulfznyhbidmfsqxrhtv",
"celular": "qjgibngxquzup",
"tel_residencial": "pqrtbmku",
"tel_comercial": "wx",
"tel_celular_comp": "nn",
"whatsapp": "gdkikrzt",
"cep": "m",
"logradouro": "kypvqkjxeslk",
"numero": "jx",
"complemento": "ruajkcntvrqbmaqfhtuor",
"bairro": "pu",
"cidade": "vdmgaxabaq",
"estado": "fw",
"codigo_municipio_ibge": "pl",
"regime_tributario": "opxdiiaupmuktudgxftlbnqon",
"tipo_contribuinte": "ahqvkwrurzre",
"tipo_recebimento": "fmqgbgobbellamlfeswaoj",
"observacoes": "est",
"informacoes_complementares": "repellendus",
"ativo": false,
"tabela_preco_id": 14,
"is_cliente": true,
"is_fornecedor": false,
"is_funcionario": false,
"is_administradora": false,
"is_parceiro": true,
"is_ccf_spc": false,
"is_tecnico": false,
"is_atendente": false,
"is_cidadao": false
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Excluir cliente (soft delete)
Example request:
curl --request DELETE \
"https://backend.valuor.com.br/api/clientes/8" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/clientes/8"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Sincronizar tags do cliente.
Situação de crédito (fiado): limite, saldo devedor e disponível.
Example request:
curl --request GET \
--get "https://backend.valuor.com.br/api/clientes/13/credito" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/clientes/13/credito"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Anonimizar dados pessoais (LGPD — direito ao esquecimento)
Example request:
curl --request POST \
"https://backend.valuor.com.br/api/clientes/5/anonimizar" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/clientes/5/anonimizar"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Tenant — Fornecedores
Cadastro de fornecedores (pessoa física ou jurídica).
Listar fornecedores
Example request:
curl --request GET \
--get "https://backend.valuor.com.br/api/fornecedores?search=Distribuidora&ativo=1&per_page=20" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/fornecedores"
);
const params = {
"search": "Distribuidora",
"ativo": "1",
"per_page": "20",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/fornecedores/{fornecedor_id}
Example request:
curl --request GET \
--get "https://backend.valuor.com.br/api/fornecedores/16" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/fornecedores/16"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/fornecedores
Example request:
curl --request POST \
"https://backend.valuor.com.br/api/fornecedores" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"tipo\": \"pf\",
\"nome\": \"obcmkftppdwkwpch\",
\"cpf_cnpj\": \"yi\",
\"ie\": \"xntiwcnwhdeobvuhfwz\",
\"email\": \"[email protected]\",
\"telefone\": \"eqnqzxkcraopk\",
\"contato\": \"qa\",
\"cep\": \"zmgstr\",
\"logradouro\": \"jsliiccnyphtolvtxd\",
\"numero\": \"kofwhshljtfmcc\",
\"complemento\": \"mlrvtuvrsfpl\",
\"bairro\": \"fbfzehtkkdvopqc\",
\"cidade\": \"m\",
\"estado\": \"zo\",
\"observacoes\": \"libero\",
\"ativo\": false,
\"lead_time_dias\": 59
}"
const url = new URL(
"https://backend.valuor.com.br/api/fornecedores"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"tipo": "pf",
"nome": "obcmkftppdwkwpch",
"cpf_cnpj": "yi",
"ie": "xntiwcnwhdeobvuhfwz",
"email": "[email protected]",
"telefone": "eqnqzxkcraopk",
"contato": "qa",
"cep": "zmgstr",
"logradouro": "jsliiccnyphtolvtxd",
"numero": "kofwhshljtfmcc",
"complemento": "mlrvtuvrsfpl",
"bairro": "fbfzehtkkdvopqc",
"cidade": "m",
"estado": "zo",
"observacoes": "libero",
"ativo": false,
"lead_time_dias": 59
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
PUT api/fornecedores/{fornecedor_id}
Example request:
curl --request PUT \
"https://backend.valuor.com.br/api/fornecedores/8" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"tipo\": \"pj\",
\"nome\": \"wfrxtcwufoiyolywqlb\",
\"cpf_cnpj\": \"imeakv\",
\"ie\": \"uvgmnhnpguwbszxdy\",
\"email\": \"[email protected]\",
\"telefone\": \"gxlewgteeguvbrkt\",
\"contato\": \"ykyuxkwo\",
\"cep\": \"pquewozlw\",
\"logradouro\": \"cpcopoyeeuqzmtdvnhmj\",
\"numero\": \"dvtaeoxwxeioeefjbj\",
\"complemento\": \"teoyhyoxehlxadgnfhiz\",
\"bairro\": \"gkcxepyopymnduidxetf\",
\"cidade\": \"brvllwm\",
\"estado\": \"sc\",
\"observacoes\": \"voluptatem\",
\"ativo\": true,
\"lead_time_dias\": 79
}"
const url = new URL(
"https://backend.valuor.com.br/api/fornecedores/8"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"tipo": "pj",
"nome": "wfrxtcwufoiyolywqlb",
"cpf_cnpj": "imeakv",
"ie": "uvgmnhnpguwbszxdy",
"email": "[email protected]",
"telefone": "gxlewgteeguvbrkt",
"contato": "ykyuxkwo",
"cep": "pquewozlw",
"logradouro": "cpcopoyeeuqzmtdvnhmj",
"numero": "dvtaeoxwxeioeefjbj",
"complemento": "teoyhyoxehlxadgnfhiz",
"bairro": "gkcxepyopymnduidxetf",
"cidade": "brvllwm",
"estado": "sc",
"observacoes": "voluptatem",
"ativo": true,
"lead_time_dias": 79
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
PATCH api/fornecedores/{fornecedor_id}
Example request:
curl --request PATCH \
"https://backend.valuor.com.br/api/fornecedores/9" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"tipo\": \"pj\",
\"nome\": \"jydyiyunvmj\",
\"cpf_cnpj\": \"gyjxl\",
\"ie\": \"inqifgepmodtjcznbwzhhaeb\",
\"email\": \"[email protected]\",
\"telefone\": \"tx\",
\"contato\": \"nheegp\",
\"cep\": \"pagjlri\",
\"logradouro\": \"ti\",
\"numero\": \"dkjjbhuyvqmfn\",
\"complemento\": \"n\",
\"bairro\": \"aojxqyeabirsyyhmtvzljv\",
\"cidade\": \"g\",
\"estado\": \"hr\",
\"observacoes\": \"sit\",
\"ativo\": false,
\"lead_time_dias\": 87
}"
const url = new URL(
"https://backend.valuor.com.br/api/fornecedores/9"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"tipo": "pj",
"nome": "jydyiyunvmj",
"cpf_cnpj": "gyjxl",
"ie": "inqifgepmodtjcznbwzhhaeb",
"email": "[email protected]",
"telefone": "tx",
"contato": "nheegp",
"cep": "pagjlri",
"logradouro": "ti",
"numero": "dkjjbhuyvqmfn",
"complemento": "n",
"bairro": "aojxqyeabirsyyhmtvzljv",
"cidade": "g",
"estado": "hr",
"observacoes": "sit",
"ativo": false,
"lead_time_dias": 87
};
fetch(url, {
method: "PATCH",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
DELETE api/fornecedores/{fornecedor_id}
Example request:
curl --request DELETE \
"https://backend.valuor.com.br/api/fornecedores/10" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/fornecedores/10"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Tenant — Catálogo
Categorias de produtos com suporte a subcategorias (2 níveis).
Listar categorias
Example request:
curl --request GET \
--get "https://backend.valuor.com.br/api/categorias?raiz=1&ativo=1&per_page=100" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/categorias"
);
const params = {
"raiz": "1",
"ativo": "1",
"per_page": "100",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/categorias
Example request:
curl --request POST \
"https://backend.valuor.com.br/api/categorias" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"nome\": \"odjupknuoahm\",
\"descricao\": \"ixhlvjdkazvpoy\",
\"ativo\": true
}"
const url = new URL(
"https://backend.valuor.com.br/api/categorias"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"nome": "odjupknuoahm",
"descricao": "ixhlvjdkazvpoy",
"ativo": true
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/categorias/{id}
Example request:
curl --request GET \
--get "https://backend.valuor.com.br/api/categorias/3" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/categorias/3"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
PUT api/categorias/{id}
Example request:
curl --request PUT \
"https://backend.valuor.com.br/api/categorias/4" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"nome\": \"utbaimkmyreibzgnojvvmtms\",
\"descricao\": \"qgyfsnmtqwbqcnenrkerswyu\",
\"ativo\": true
}"
const url = new URL(
"https://backend.valuor.com.br/api/categorias/4"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"nome": "utbaimkmyreibzgnojvvmtms",
"descricao": "qgyfsnmtqwbqcnenrkerswyu",
"ativo": true
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
DELETE api/categorias/{id}
Example request:
curl --request DELETE \
"https://backend.valuor.com.br/api/categorias/7" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/categorias/7"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Listar marcas
Example request:
curl --request GET \
--get "https://backend.valuor.com.br/api/marcas?search=Nike&ativo=1&per_page=50" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/marcas"
);
const params = {
"search": "Nike",
"ativo": "1",
"per_page": "50",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/marcas
Example request:
curl --request POST \
"https://backend.valuor.com.br/api/marcas" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"nome\": \"rbmryfizuyezgtc\",
\"ativo\": false
}"
const url = new URL(
"https://backend.valuor.com.br/api/marcas"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"nome": "rbmryfizuyezgtc",
"ativo": false
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/marcas/{id}
Example request:
curl --request GET \
--get "https://backend.valuor.com.br/api/marcas/6" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/marcas/6"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
PUT api/marcas/{id}
Example request:
curl --request PUT \
"https://backend.valuor.com.br/api/marcas/15" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"nome\": \"vsgltudglkshupjzkqutsqv\",
\"ativo\": true
}"
const url = new URL(
"https://backend.valuor.com.br/api/marcas/15"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"nome": "vsgltudglkshupjzkqutsqv",
"ativo": true
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
DELETE api/marcas/{id}
Example request:
curl --request DELETE \
"https://backend.valuor.com.br/api/marcas/16" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/marcas/16"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Listar fabricantes
Example request:
curl --request GET \
--get "https://backend.valuor.com.br/api/fabricantes?search=Nestl%C3%A9&ativo=1&per_page=50" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/fabricantes"
);
const params = {
"search": "Nestlé",
"ativo": "1",
"per_page": "50",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/fabricantes
Example request:
curl --request POST \
"https://backend.valuor.com.br/api/fabricantes" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"nome\": \"lyngo\",
\"ativo\": false
}"
const url = new URL(
"https://backend.valuor.com.br/api/fabricantes"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"nome": "lyngo",
"ativo": false
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/fabricantes/{id}
Example request:
curl --request GET \
--get "https://backend.valuor.com.br/api/fabricantes/15" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/fabricantes/15"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
PUT api/fabricantes/{id}
Example request:
curl --request PUT \
"https://backend.valuor.com.br/api/fabricantes/18" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"nome\": \"auzflihcymr\",
\"ativo\": false
}"
const url = new URL(
"https://backend.valuor.com.br/api/fabricantes/18"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"nome": "auzflihcymr",
"ativo": false
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
DELETE api/fabricantes/{id}
Example request:
curl --request DELETE \
"https://backend.valuor.com.br/api/fabricantes/7" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/fabricantes/7"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Tenant — Produtos
Cadastro de produtos e serviços com controle de estoque.
tipo: produto | servico. Preços retornam como strings decimais — converta com double.parse() no Dart.
Catálogo para Mobile (sincronização offline)
Retorna lista simplificada de produtos ativos para cache local no app mobile.
Inclui apenas campos necessários para exibição e registro de pedidos offline.
Suporta filtro por updated_since para sincronização incremental.
Example request:
curl --request GET \
--get "https://backend.valuor.com.br/api/produtos/catalogo?updated_since=2026-05-20T00%3A00%3A00Z&per_page=200" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/produtos/catalogo"
);
const params = {
"updated_since": "2026-05-20T00:00:00Z",
"per_page": "200",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Listar produtos
Example request:
curl --request GET \
--get "https://backend.valuor.com.br/api/produtos?search=Caneta&tipo=produto&categoria_id=3&ativo=1&estoque_critico=1&per_page=20" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/produtos"
);
const params = {
"search": "Caneta",
"tipo": "produto",
"categoria_id": "3",
"ativo": "1",
"estoque_critico": "1",
"per_page": "20",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/produtos
Example request:
curl --request POST \
"https://backend.valuor.com.br/api/produtos" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"codigo\": \"bhtucpsapvrlf\",
\"codigo_barras\": \"jsntyxaijebjktwasjpjyo\",
\"nome\": \"itnnnhmvuisqebyeqjojmt\",
\"descricao\": \"ipsam\",
\"unidade_medida\": \"rgmgrdbhqa\",
\"tipo\": \"servico\",
\"preco_custo\": 37,
\"preco_venda\": 90,
\"margem_lucro\": 66,
\"estoque_atual\": 0,
\"estoque_minimo\": 86,
\"ponto_pedido\": 31,
\"multiplo_compra\": 80,
\"compra_minima\": 60,
\"ncm\": \"wh\",
\"cst\": \"vjnv\",
\"origem_mercadoria\": \"t\",
\"tipo_item\": \"rt\",
\"cfop\": \"qyfq\",
\"csosn\": \"vw\",
\"cst_pis\": \"kf\",
\"cst_cofins\": \"h\",
\"cst_ipi\": \"h\",
\"aliquota_icms\": 7,
\"mva_st\": 11,
\"aliquota_pis\": 23,
\"aliquota_cofins\": 4,
\"aliquota_ipi\": 20,
\"cst_ibscbs\": \"id\",
\"cclass_trib\": \"baf\",
\"aliquota_ibs_uf\": 11,
\"aliquota_ibs_mun\": 20,
\"aliquota_cbs\": 1,
\"cst_is\": \"p\",
\"cclass_trib_is\": \"pb\",
\"aliquota_is\": 7,
\"monofasico\": true,
\"tipo_monofasico\": \"qevqmmdfybzga\",
\"adrem_ibs\": 3,
\"adrem_cbs\": 20,
\"credito_presumido_percentual\": 6,
\"cred_presumido_codigo\": \"ah\",
\"controla_estoque\": true,
\"controla_lote\": true,
\"controla_validade\": true,
\"registro_anvisa\": \"zdkoitrmgkkauxwamiclqarip\",
\"principio_ativo\": \"obsgikdlrwmklwzn\",
\"usa_grade\": true,
\"usa_balanca\": false,
\"balanca_tipo\": \"peso\",
\"codigo_balanca_prefixo\": \"d\",
\"controla_numero_serie\": true,
\"garantia_meses\": 17,
\"ativo\": true,
\"disponivel_todas_empresas\": true,
\"empresa_ids\": [
17
]
}"
const url = new URL(
"https://backend.valuor.com.br/api/produtos"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"codigo": "bhtucpsapvrlf",
"codigo_barras": "jsntyxaijebjktwasjpjyo",
"nome": "itnnnhmvuisqebyeqjojmt",
"descricao": "ipsam",
"unidade_medida": "rgmgrdbhqa",
"tipo": "servico",
"preco_custo": 37,
"preco_venda": 90,
"margem_lucro": 66,
"estoque_atual": 0,
"estoque_minimo": 86,
"ponto_pedido": 31,
"multiplo_compra": 80,
"compra_minima": 60,
"ncm": "wh",
"cst": "vjnv",
"origem_mercadoria": "t",
"tipo_item": "rt",
"cfop": "qyfq",
"csosn": "vw",
"cst_pis": "kf",
"cst_cofins": "h",
"cst_ipi": "h",
"aliquota_icms": 7,
"mva_st": 11,
"aliquota_pis": 23,
"aliquota_cofins": 4,
"aliquota_ipi": 20,
"cst_ibscbs": "id",
"cclass_trib": "baf",
"aliquota_ibs_uf": 11,
"aliquota_ibs_mun": 20,
"aliquota_cbs": 1,
"cst_is": "p",
"cclass_trib_is": "pb",
"aliquota_is": 7,
"monofasico": true,
"tipo_monofasico": "qevqmmdfybzga",
"adrem_ibs": 3,
"adrem_cbs": 20,
"credito_presumido_percentual": 6,
"cred_presumido_codigo": "ah",
"controla_estoque": true,
"controla_lote": true,
"controla_validade": true,
"registro_anvisa": "zdkoitrmgkkauxwamiclqarip",
"principio_ativo": "obsgikdlrwmklwzn",
"usa_grade": true,
"usa_balanca": false,
"balanca_tipo": "peso",
"codigo_balanca_prefixo": "d",
"controla_numero_serie": true,
"garantia_meses": 17,
"ativo": true,
"disponivel_todas_empresas": true,
"empresa_ids": [
17
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/produtos/{id}
Example request:
curl --request GET \
--get "https://backend.valuor.com.br/api/produtos/2" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/produtos/2"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
PUT api/produtos/{id}
Example request:
curl --request PUT \
"https://backend.valuor.com.br/api/produtos/19" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"codigo\": \"vqsmlujgmdhmoh\",
\"codigo_barras\": \"mbggktjhcjtgpecmgtj\",
\"nome\": \"xdfblb\",
\"descricao\": \"voluptatem\",
\"unidade_medida\": \"jkmjq\",
\"tipo\": \"produto\",
\"preco_custo\": 90,
\"preco_venda\": 67,
\"margem_lucro\": 69,
\"estoque_minimo\": 85,
\"ponto_pedido\": 79,
\"multiplo_compra\": 7,
\"compra_minima\": 8,
\"ncm\": \"muwdc\",
\"cst\": \"ft\",
\"origem_mercadoria\": \"g\",
\"tipo_item\": \"m\",
\"cfop\": \"wn\",
\"csosn\": \"xa\",
\"cst_pis\": \"xs\",
\"cst_cofins\": \"ev\",
\"cst_ipi\": \"vg\",
\"aliquota_icms\": 9,
\"mva_st\": 17,
\"aliquota_pis\": 14,
\"aliquota_cofins\": 1,
\"aliquota_ipi\": 2,
\"cst_ibscbs\": \"in\",
\"cclass_trib\": \"k\",
\"aliquota_ibs_uf\": 6,
\"aliquota_ibs_mun\": 3,
\"aliquota_cbs\": 20,
\"cst_is\": \"qq\",
\"cclass_trib_is\": \"a\",
\"aliquota_is\": 16,
\"monofasico\": false,
\"tipo_monofasico\": \"avrqithxx\",
\"adrem_ibs\": 15,
\"adrem_cbs\": 10,
\"credito_presumido_percentual\": 14,
\"cred_presumido_codigo\": \"n\",
\"controla_estoque\": true,
\"controla_lote\": false,
\"controla_validade\": false,
\"registro_anvisa\": \"el\",
\"principio_ativo\": \"iyizxjvzjqdpfaziuvxfwyggl\",
\"usa_grade\": true,
\"usa_balanca\": true,
\"balanca_tipo\": \"preco\",
\"codigo_balanca_prefixo\": \"zq\",
\"controla_numero_serie\": false,
\"garantia_meses\": 4,
\"ativo\": false,
\"disponivel_todas_empresas\": true,
\"empresa_ids\": [
15
]
}"
const url = new URL(
"https://backend.valuor.com.br/api/produtos/19"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"codigo": "vqsmlujgmdhmoh",
"codigo_barras": "mbggktjhcjtgpecmgtj",
"nome": "xdfblb",
"descricao": "voluptatem",
"unidade_medida": "jkmjq",
"tipo": "produto",
"preco_custo": 90,
"preco_venda": 67,
"margem_lucro": 69,
"estoque_minimo": 85,
"ponto_pedido": 79,
"multiplo_compra": 7,
"compra_minima": 8,
"ncm": "muwdc",
"cst": "ft",
"origem_mercadoria": "g",
"tipo_item": "m",
"cfop": "wn",
"csosn": "xa",
"cst_pis": "xs",
"cst_cofins": "ev",
"cst_ipi": "vg",
"aliquota_icms": 9,
"mva_st": 17,
"aliquota_pis": 14,
"aliquota_cofins": 1,
"aliquota_ipi": 2,
"cst_ibscbs": "in",
"cclass_trib": "k",
"aliquota_ibs_uf": 6,
"aliquota_ibs_mun": 3,
"aliquota_cbs": 20,
"cst_is": "qq",
"cclass_trib_is": "a",
"aliquota_is": 16,
"monofasico": false,
"tipo_monofasico": "avrqithxx",
"adrem_ibs": 15,
"adrem_cbs": 10,
"credito_presumido_percentual": 14,
"cred_presumido_codigo": "n",
"controla_estoque": true,
"controla_lote": false,
"controla_validade": false,
"registro_anvisa": "el",
"principio_ativo": "iyizxjvzjqdpfaziuvxfwyggl",
"usa_grade": true,
"usa_balanca": true,
"balanca_tipo": "preco",
"codigo_balanca_prefixo": "zq",
"controla_numero_serie": false,
"garantia_meses": 4,
"ativo": false,
"disponivel_todas_empresas": true,
"empresa_ids": [
15
]
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
DELETE api/produtos/{id}
Example request:
curl --request DELETE \
"https://backend.valuor.com.br/api/produtos/2" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/produtos/2"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/produtos/{produto_id}/movimentacoes
Example request:
curl --request GET \
--get "https://backend.valuor.com.br/api/produtos/5/movimentacoes" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/produtos/5/movimentacoes"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/produtos/{produto_id}/ajuste-estoque
Example request:
curl --request POST \
"https://backend.valuor.com.br/api/produtos/7/ajuste-estoque" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"quantidade\": 52,
\"motivo\": \"lpmpdwlneefejdo\",
\"deposito_id\": 11
}"
const url = new URL(
"https://backend.valuor.com.br/api/produtos/7/ajuste-estoque"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"quantidade": 52,
"motivo": "lpmpdwlneefejdo",
"deposito_id": 11
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Upload da foto do produto (disco público). Retorna a URL salva.
Example request:
curl --request POST \
"https://backend.valuor.com.br/api/produtos/17/imagem" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--form "imagem=@/tmp/phpHLLeBa" const url = new URL(
"https://backend.valuor.com.br/api/produtos/17/imagem"
);
const headers = {
"Content-Type": "multipart/form-data",
"Accept": "application/json",
};
const body = new FormData();
body.append('imagem', document.querySelector('input[name="imagem"]').files[0]);
fetch(url, {
method: "POST",
headers,
body,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Remove a foto do produto.
Example request:
curl --request DELETE \
"https://backend.valuor.com.br/api/produtos/11/imagem" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/produtos/11/imagem"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Tenant — Estoque
GET api/grades
Example request:
curl --request GET \
--get "https://backend.valuor.com.br/api/grades" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/grades"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/grades
Example request:
curl --request POST \
"https://backend.valuor.com.br/api/grades" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"nome\": \"fi\",
\"descricao\": \"non\",
\"ativo\": true,
\"atributos\": [
{
\"nome\": \"behgscrlh\",
\"opcoes\": [
\"yp\"
]
}
]
}"
const url = new URL(
"https://backend.valuor.com.br/api/grades"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"nome": "fi",
"descricao": "non",
"ativo": true,
"atributos": [
{
"nome": "behgscrlh",
"opcoes": [
"yp"
]
}
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/grades/{id}
Example request:
curl --request GET \
--get "https://backend.valuor.com.br/api/grades/14" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/grades/14"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
PUT api/grades/{id}
Example request:
curl --request PUT \
"https://backend.valuor.com.br/api/grades/13" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"nome\": \"aaomhmfltvvtgnqosxkhvix\",
\"descricao\": \"saepe\",
\"ativo\": false,
\"atributos\": [
{
\"nome\": \"zucd\",
\"opcoes\": [
\"ufhf\"
]
}
]
}"
const url = new URL(
"https://backend.valuor.com.br/api/grades/13"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"nome": "aaomhmfltvvtgnqosxkhvix",
"descricao": "saepe",
"ativo": false,
"atributos": [
{
"nome": "zucd",
"opcoes": [
"ufhf"
]
}
]
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
DELETE api/grades/{id}
Example request:
curl --request DELETE \
"https://backend.valuor.com.br/api/grades/15" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/grades/15"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Controle de validade (FEFO): lotes vencidos e a vencer dentro de N dias, com saldo > 0, ordenados pela validade mais próxima.
Example request:
curl --request GET \
--get "https://backend.valuor.com.br/api/lotes/validade?dias=30" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/lotes/validade"
);
const params = {
"dias": "30",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Lote vigente de um produto = o que o FEFO consumirá primeiro (ativo, saldo > 0, menor validade). Usado pelo PDV para alertar validade.
Example request:
curl --request GET \
--get "https://backend.valuor.com.br/api/lotes/vigente/at" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/lotes/vigente/at"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/lotes
Example request:
curl --request GET \
--get "https://backend.valuor.com.br/api/lotes" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/lotes"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/lotes
Example request:
curl --request POST \
"https://backend.valuor.com.br/api/lotes" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"produto_id\": \"non\",
\"numero_lote\": \"smqsfsiclplc\",
\"data_fabricacao\": \"2026-06-05T15:42:57\",
\"data_validade\": \"2026-06-05T15:42:57\",
\"quantidade_inicial\": 82,
\"custo_unitario\": 38,
\"observacoes\": \"officiis\",
\"ativo\": true
}"
const url = new URL(
"https://backend.valuor.com.br/api/lotes"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"produto_id": "non",
"numero_lote": "smqsfsiclplc",
"data_fabricacao": "2026-06-05T15:42:57",
"data_validade": "2026-06-05T15:42:57",
"quantidade_inicial": 82,
"custo_unitario": 38,
"observacoes": "officiis",
"ativo": true
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/lotes/{id}
Example request:
curl --request GET \
--get "https://backend.valuor.com.br/api/lotes/7" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/lotes/7"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
PUT api/lotes/{id}
Example request:
curl --request PUT \
"https://backend.valuor.com.br/api/lotes/10" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"numero_lote\": \"hdxyczhyfblvmjcjamejnq\",
\"data_fabricacao\": \"2026-06-05T15:43:03\",
\"data_validade\": \"2026-06-05T15:43:03\",
\"quantidade_atual\": 10,
\"custo_unitario\": 23,
\"observacoes\": \"nemo\",
\"ativo\": true
}"
const url = new URL(
"https://backend.valuor.com.br/api/lotes/10"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"numero_lote": "hdxyczhyfblvmjcjamejnq",
"data_fabricacao": "2026-06-05T15:43:03",
"data_validade": "2026-06-05T15:43:03",
"quantidade_atual": 10,
"custo_unitario": 23,
"observacoes": "nemo",
"ativo": true
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
DELETE api/lotes/{id}
Example request:
curl --request DELETE \
"https://backend.valuor.com.br/api/lotes/19" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/lotes/19"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/importacao/template/{tipo}
Example request:
curl --request GET \
--get "https://backend.valuor.com.br/api/importacao/template/ducimus" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/importacao/template/ducimus"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/importacao/clientes
Example request:
curl --request POST \
"https://backend.valuor.com.br/api/importacao/clientes" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--form "arquivo=@/tmp/phpobpbKP" const url = new URL(
"https://backend.valuor.com.br/api/importacao/clientes"
);
const headers = {
"Content-Type": "multipart/form-data",
"Accept": "application/json",
};
const body = new FormData();
body.append('arquivo', document.querySelector('input[name="arquivo"]').files[0]);
fetch(url, {
method: "POST",
headers,
body,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/importacao/fornecedores
Example request:
curl --request POST \
"https://backend.valuor.com.br/api/importacao/fornecedores" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--form "arquivo=@/tmp/phpCOJnAB" const url = new URL(
"https://backend.valuor.com.br/api/importacao/fornecedores"
);
const headers = {
"Content-Type": "multipart/form-data",
"Accept": "application/json",
};
const body = new FormData();
body.append('arquivo', document.querySelector('input[name="arquivo"]').files[0]);
fetch(url, {
method: "POST",
headers,
body,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/importacao/produtos
Example request:
curl --request POST \
"https://backend.valuor.com.br/api/importacao/produtos" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--form "arquivo=@/tmp/phpIKDKIE" const url = new URL(
"https://backend.valuor.com.br/api/importacao/produtos"
);
const headers = {
"Content-Type": "multipart/form-data",
"Accept": "application/json",
};
const body = new FormData();
body.append('arquivo', document.querySelector('input[name="arquivo"]').files[0]);
fetch(url, {
method: "POST",
headers,
body,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/importacao/financeiro
Example request:
curl --request POST \
"https://backend.valuor.com.br/api/importacao/financeiro" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--form "arquivo=@/tmp/phpcJngDn" const url = new URL(
"https://backend.valuor.com.br/api/importacao/financeiro"
);
const headers = {
"Content-Type": "multipart/form-data",
"Accept": "application/json",
};
const body = new FormData();
body.append('arquivo', document.querySelector('input[name="arquivo"]').files[0]);
fetch(url, {
method: "POST",
headers,
body,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Tenant — Compras
GET api/compras
Example request:
curl --request GET \
--get "https://backend.valuor.com.br/api/compras" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/compras"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/compras
Example request:
curl --request POST \
"https://backend.valuor.com.br/api/compras" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"status\": \"confirmada\",
\"numero_nota\": \"ewmvkidpratrxqsgyovxrzpr\",
\"serie\": \"wxfmx\",
\"chave_nfe\": \"qselznouujjbypjaqfyaoypfxbnvkyxxdpejiotmlsni\",
\"data_compra\": \"2026-06-05T15:43:50\",
\"data_entrega\": \"2026-06-05T15:43:50\",
\"desconto\": 53,
\"acrescimo\": 33,
\"observacoes\": \"voluptatem\",
\"itens\": [
{
\"produto_id\": \"saepe\",
\"quantidade\": 7,
\"custo_unitario\": 24,
\"desconto\": 29,
\"numero_lote\": \"dnxfwzxbltsdzvns\",
\"data_validade\": \"2026-06-05T15:43:50\"
}
],
\"pagamentos\": [
{
\"forma_pagamento\": \"ab\",
\"valor\": 76,
\"data_vencimento\": \"2026-06-05T15:43:50\"
}
]
}"
const url = new URL(
"https://backend.valuor.com.br/api/compras"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"status": "confirmada",
"numero_nota": "ewmvkidpratrxqsgyovxrzpr",
"serie": "wxfmx",
"chave_nfe": "qselznouujjbypjaqfyaoypfxbnvkyxxdpejiotmlsni",
"data_compra": "2026-06-05T15:43:50",
"data_entrega": "2026-06-05T15:43:50",
"desconto": 53,
"acrescimo": 33,
"observacoes": "voluptatem",
"itens": [
{
"produto_id": "saepe",
"quantidade": 7,
"custo_unitario": 24,
"desconto": 29,
"numero_lote": "dnxfwzxbltsdzvns",
"data_validade": "2026-06-05T15:43:50"
}
],
"pagamentos": [
{
"forma_pagamento": "ab",
"valor": 76,
"data_vencimento": "2026-06-05T15:43:50"
}
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/compras/{id}
Example request:
curl --request GET \
--get "https://backend.valuor.com.br/api/compras/14" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/compras/14"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
DELETE api/compras/{id}
Example request:
curl --request DELETE \
"https://backend.valuor.com.br/api/compras/3" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/compras/3"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/compras/{compra_id}/enviar-aprovacao
Example request:
curl --request POST \
"https://backend.valuor.com.br/api/compras/15/enviar-aprovacao" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/compras/15/enviar-aprovacao"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/compras/{compra_id}/confirmar
Example request:
curl --request POST \
"https://backend.valuor.com.br/api/compras/14/confirmar" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/compras/14/confirmar"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/compras/{compra_id}/cancelar
Example request:
curl --request POST \
"https://backend.valuor.com.br/api/compras/2/cancelar" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/compras/2/cancelar"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/compras/{compra_id}/aprovar
Example request:
curl --request POST \
"https://backend.valuor.com.br/api/compras/6/aprovar" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/compras/6/aprovar"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/compras/{compra_id}/rejeitar
Example request:
curl --request POST \
"https://backend.valuor.com.br/api/compras/5/rejeitar" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"motivo\": \"knzcxlthfyqudnifmis\"
}"
const url = new URL(
"https://backend.valuor.com.br/api/compras/5/rejeitar"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"motivo": "knzcxlthfyqudnifmis"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Tenant — Vendas
Gerenciamento de vendas e orçamentos.
Status possíveis: orcamento, confirmada, faturada, cancelada.
Origens possíveis: web, pdv, mobile.
Listar vendas
Example request:
curl --request GET \
--get "https://backend.valuor.com.br/api/vendas?status=confirmada&cliente_id=1&data_inicio=2026-05-01&data_fim=2026-05-31&per_page=20" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/vendas"
);
const params = {
"status": "confirmada",
"cliente_id": "1",
"data_inicio": "2026-05-01",
"data_fim": "2026-05-31",
"per_page": "20",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Criar venda
Cria uma venda transacionalmente: valida estoque, gera número sequencial, reduz estoque e cria pagamentos automaticamente.
Example request:
curl --request POST \
"https://backend.valuor.com.br/api/vendas" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"cliente_id\": 1,
\"status\": \"confirmada\",
\"origem\": \"balcao\",
\"desconto\": 10,
\"acrescimo\": 0,
\"observacoes\": \"Cliente preferencial\",
\"data_venda\": \"2026-06-05T15:44:16\",
\"itens\": [
{
\"produto_id\": 5,
\"quantidade\": 2,
\"preco_unitario\": 49.9,
\"desconto\": 77,
\"variacao_id\": 10,
\"variacao_descricao\": \"ri\"
}
],
\"pagamentos\": [
{
\"forma_pagamento\": \"pix\",
\"valor\": 89.8,
\"data_vencimento\": \"2026-05-22\",
\"data_pagamento\": \"2026-06-05T15:44:16\"
}
]
}"
const url = new URL(
"https://backend.valuor.com.br/api/vendas"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"cliente_id": 1,
"status": "confirmada",
"origem": "balcao",
"desconto": 10,
"acrescimo": 0,
"observacoes": "Cliente preferencial",
"data_venda": "2026-06-05T15:44:16",
"itens": [
{
"produto_id": 5,
"quantidade": 2,
"preco_unitario": 49.9,
"desconto": 77,
"variacao_id": 10,
"variacao_descricao": "ri"
}
],
"pagamentos": [
{
"forma_pagamento": "pix",
"valor": 89.8,
"data_vencimento": "2026-05-22",
"data_pagamento": "2026-06-05T15:44:16"
}
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (201):
{
"data": {
"id": 1,
"numero": "00000001",
"status": "confirmada",
"total": "89.80"
}
}
Example response (422):
{
"message": "Estoque insuficiente para Produto X."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Buscar venda (com itens e pagamentos)
Example request:
curl --request GET \
--get "https://backend.valuor.com.br/api/vendas/18" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/vendas/18"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Atualizar / retomar venda pendente (orçamento ou pré-venda).
Permite editar itens, converter orçamento↔pré-venda e CONCLUIR (status
confirmada), quando os pagamentos informados geram os recebíveis.
Example request:
curl --request PUT \
"https://backend.valuor.com.br/api/vendas/7" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"status\": \"confirmada\",
\"origem\": \"pdv\",
\"desconto\": 88,
\"acrescimo\": 3,
\"observacoes\": \"veritatis\",
\"data_venda\": \"2026-06-05T15:44:17\",
\"itens\": [
{
\"produto_id\": \"totam\",
\"quantidade\": 32,
\"preco_unitario\": 33,
\"desconto\": 7,
\"variacao_id\": 6,
\"variacao_descricao\": \"afyxaltfvfbbtsqtdotccakjn\"
}
],
\"pagamentos\": [
{
\"forma_pagamento\": \"cartao_credito\",
\"valor\": 75,
\"data_vencimento\": \"2026-06-05T15:44:17\",
\"data_pagamento\": \"2026-06-05T15:44:17\"
}
]
}"
const url = new URL(
"https://backend.valuor.com.br/api/vendas/7"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"status": "confirmada",
"origem": "pdv",
"desconto": 88,
"acrescimo": 3,
"observacoes": "veritatis",
"data_venda": "2026-06-05T15:44:17",
"itens": [
{
"produto_id": "totam",
"quantidade": 32,
"preco_unitario": 33,
"desconto": 7,
"variacao_id": 6,
"variacao_descricao": "afyxaltfvfbbtsqtdotccakjn"
}
],
"pagamentos": [
{
"forma_pagamento": "cartao_credito",
"valor": 75,
"data_vencimento": "2026-06-05T15:44:17",
"data_pagamento": "2026-06-05T15:44:17"
}
]
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
DELETE api/vendas/{venda_id}
Example request:
curl --request DELETE \
"https://backend.valuor.com.br/api/vendas/9" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/vendas/9"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Confirmar orçamento
Confirma um orçamento, alterando seu status para confirmada.
Example request:
curl --request POST \
"https://backend.valuor.com.br/api/vendas/20/confirmar" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/vendas/20/confirmar"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Example response (200):
{
"data": {
"id": 1,
"status": "confirmada"
}
}
Example response (422):
{
"message": "Apenas orçamentos podem ser confirmados."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Cancelar venda
Cancela a venda, reverte o estoque dos itens e cancela pagamentos pendentes.
Example request:
curl --request POST \
"https://backend.valuor.com.br/api/vendas/16/cancelar" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/vendas/16/cancelar"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Example response (200):
{
"data": {
"id": 1,
"status": "cancelada"
}
}
Example response (422):
{
"message": "Venda já está cancelada."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Emitir NF-e a partir de uma venda
Usa NfePayloadBuilder para montar o payload completo no formato da API Fiscal e chama POST /nfe/transmitir (gera + assina + envia para SEFAZ em uma chamada). O resultado é salvo na venda (nfe_chave, nfe_protocolo, nfe_status, etc.).
Example request:
curl --request POST \
"https://backend.valuor.com.br/api/vendas/11/emitir-nfe" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/vendas/11/emitir-nfe"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Documentos fiscais permitidos para a venda (regra do Cliente Consumidor).
Fonte única consumida pelo PDV/web para habilitar/desabilitar NFC-e e NF-e e exibir o motivo do bloqueio (valor acima do limite, operação interestadual).
Example request:
curl --request GET \
--get "https://backend.valuor.com.br/api/vendas/5/documentos-permitidos" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/vendas/5/documentos-permitidos"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"nfce": false,
"nfe": true,
"motivo_nfce_bloqueada": "Não é permitido emitir NFC-e para clientes localizados em outra UF...",
"cliente_identificado": true
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Registra/edita o número de série de um item vendido (TI/eletro).
Example request:
curl --request PUT \
"https://backend.valuor.com.br/api/venda-itens/13/serie" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"numero_serie\": \"muitsyjead\"
}"
const url = new URL(
"https://backend.valuor.com.br/api/venda-itens/13/serie"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"numero_serie": "muitsyjead"
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Tenant — Financeiro
Contas a receber e a pagar.
tipo: receber | pagar. status: pendente | parcial | pago | vencido | cancelado.
GET api/pagamentos
Example request:
curl --request GET \
--get "https://backend.valuor.com.br/api/pagamentos" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/pagamentos"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Resumo (totalizadores) por tipo/período: a vencer, vencido, pago/recebido, em aberto.
Example request:
curl --request GET \
--get "https://backend.valuor.com.br/api/pagamentos/resumo" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/pagamentos/resumo"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Exporta a listagem (com os filtros atuais) em CSV.
Example request:
curl --request GET \
--get "https://backend.valuor.com.br/api/pagamentos/exportar" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/pagamentos/exportar"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/pagamentos
Example request:
curl --request POST \
"https://backend.valuor.com.br/api/pagamentos" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"fornecedor_nome\": \"u\",
\"tipo\": \"pagar\",
\"forma_pagamento\": \"boleto\",
\"valor\": 25,
\"data_vencimento\": \"2026-06-05T15:46:51\",
\"descricao\": \"nxbinesejqgsdlqgfjxzt\",
\"documento\": \"wporuydcjujcjtc\",
\"observacoes\": \"tempora\",
\"total_parcelas\": 21,
\"recorrencia_meses\": 4
}"
const url = new URL(
"https://backend.valuor.com.br/api/pagamentos"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"fornecedor_nome": "u",
"tipo": "pagar",
"forma_pagamento": "boleto",
"valor": 25,
"data_vencimento": "2026-06-05T15:46:51",
"descricao": "nxbinesejqgsdlqgfjxzt",
"documento": "wporuydcjujcjtc",
"observacoes": "tempora",
"total_parcelas": 21,
"recorrencia_meses": 4
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/pagamentos/{pagamento_id}
Example request:
curl --request GET \
--get "https://backend.valuor.com.br/api/pagamentos/5" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/pagamentos/5"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Baixar pagamento (total ou parcial).
Aceita baixa parcial: se valor_pago < saldo, o título fica parcial com o saldo
remanescente. Se uma conta corrente for informada, lança automaticamente no extrato.
Example request:
curl --request POST \
"https://backend.valuor.com.br/api/pagamentos/8/baixar" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"valor_pago\": 27,
\"forma_pagamento\": \"boleto\",
\"data_pagamento\": \"2026-06-05T15:46:59\",
\"juros\": 41,
\"multa\": 86,
\"desconto\": 72,
\"observacoes\": \"dolorem\"
}"
const url = new URL(
"https://backend.valuor.com.br/api/pagamentos/8/baixar"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"valor_pago": 27,
"forma_pagamento": "boleto",
"data_pagamento": "2026-06-05T15:46:59",
"juros": 41,
"multa": 86,
"desconto": 72,
"observacoes": "dolorem"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/pagamentos/{pagamento_id}/cancelar
Example request:
curl --request POST \
"https://backend.valuor.com.br/api/pagamentos/11/cancelar" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/pagamentos/11/cancelar"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
DELETE api/pagamentos/{pagamento_id}
Example request:
curl --request DELETE \
"https://backend.valuor.com.br/api/pagamentos/4" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/pagamentos/4"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/formas-pagamento
Example request:
curl --request GET \
--get "https://backend.valuor.com.br/api/formas-pagamento" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/formas-pagamento"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/formas-pagamento
Example request:
curl --request POST \
"https://backend.valuor.com.br/api/formas-pagamento" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/formas-pagamento"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/formas-pagamento/{forma_pagamento}
Example request:
curl --request GET \
--get "https://backend.valuor.com.br/api/formas-pagamento/2" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/formas-pagamento/2"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
PUT api/formas-pagamento/{forma_pagamento}
Example request:
curl --request PUT \
"https://backend.valuor.com.br/api/formas-pagamento/15" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/formas-pagamento/15"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "PUT",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
DELETE api/formas-pagamento/{forma_pagamento}
Example request:
curl --request DELETE \
"https://backend.valuor.com.br/api/formas-pagamento/19" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/formas-pagamento/19"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/plano-contas
Example request:
curl --request GET \
--get "https://backend.valuor.com.br/api/plano-contas" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/plano-contas"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/plano-contas
Example request:
curl --request POST \
"https://backend.valuor.com.br/api/plano-contas" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/plano-contas"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/plano-contas/{id}
Example request:
curl --request GET \
--get "https://backend.valuor.com.br/api/plano-contas/15" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/plano-contas/15"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
PUT api/plano-contas/{id}
Example request:
curl --request PUT \
"https://backend.valuor.com.br/api/plano-contas/16" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/plano-contas/16"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "PUT",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
DELETE api/plano-contas/{id}
Example request:
curl --request DELETE \
"https://backend.valuor.com.br/api/plano-contas/9" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/plano-contas/9"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Transferência entre contas correntes.
Cria débito na origem e crédito no destino, na mesma transação.
Example request:
curl --request POST \
"https://backend.valuor.com.br/api/contas-correntes/transferir" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"conta_origem_id\": \"perspiciatis\",
\"conta_destino_id\": \"molestiae\",
\"valor\": 70,
\"data\": \"2026-06-05T15:47:36\",
\"descricao\": \"xrzax\"
}"
const url = new URL(
"https://backend.valuor.com.br/api/contas-correntes/transferir"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"conta_origem_id": "perspiciatis",
"conta_destino_id": "molestiae",
"valor": 70,
"data": "2026-06-05T15:47:36",
"descricao": "xrzax"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Resumo consolidado das contas correntes: saldo total, conciliado e a conciliar (uma chamada em vez de N), para KPIs de liquidez.
Example request:
curl --request GET \
--get "https://backend.valuor.com.br/api/contas-correntes/resumo" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/contas-correntes/resumo"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/contas-correntes
Example request:
curl --request GET \
--get "https://backend.valuor.com.br/api/contas-correntes" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/contas-correntes"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/contas-correntes
Example request:
curl --request POST \
"https://backend.valuor.com.br/api/contas-correntes" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"banco\": \"g\",
\"agencia\": \"dijj\",
\"conta\": \"peltkotmjpp\",
\"descricao\": \"nopxjxfsfiwib\",
\"saldo_inicial\": 18072516.2,
\"ativo\": false
}"
const url = new URL(
"https://backend.valuor.com.br/api/contas-correntes"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"banco": "g",
"agencia": "dijj",
"conta": "peltkotmjpp",
"descricao": "nopxjxfsfiwib",
"saldo_inicial": 18072516.2,
"ativo": false
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/contas-correntes/{contaCorrente_id}
Example request:
curl --request GET \
--get "https://backend.valuor.com.br/api/contas-correntes/8" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/contas-correntes/8"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
PUT api/contas-correntes/{contaCorrente_id}
Example request:
curl --request PUT \
"https://backend.valuor.com.br/api/contas-correntes/3" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"banco\": \"nvlaxrvlr\",
\"agencia\": \"pgekjnd\",
\"conta\": \"aofhcnyzxeyqjkzzni\",
\"descricao\": \"nmhpshtra\",
\"saldo_inicial\": 2047.11116,
\"ativo\": true
}"
const url = new URL(
"https://backend.valuor.com.br/api/contas-correntes/3"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"banco": "nvlaxrvlr",
"agencia": "pgekjnd",
"conta": "aofhcnyzxeyqjkzzni",
"descricao": "nmhpshtra",
"saldo_inicial": 2047.11116,
"ativo": true
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
DELETE api/contas-correntes/{contaCorrente_id}
Example request:
curl --request DELETE \
"https://backend.valuor.com.br/api/contas-correntes/18" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/contas-correntes/18"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/contas-correntes/{contaCorrente_id}/extrato
Example request:
curl --request GET \
--get "https://backend.valuor.com.br/api/contas-correntes/2/extrato" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/contas-correntes/2/extrato"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/contas-correntes/{contaCorrente_id}/lancamentos
Example request:
curl --request POST \
"https://backend.valuor.com.br/api/contas-correntes/9/lancamentos" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"data\": \"2026-06-05T15:55:28\",
\"descricao\": \"t\",
\"valor\": 71,
\"tipo\": \"debito\",
\"conciliado\": false
}"
const url = new URL(
"https://backend.valuor.com.br/api/contas-correntes/9/lancamentos"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"data": "2026-06-05T15:55:28",
"descricao": "t",
"valor": 71,
"tipo": "debito",
"conciliado": false
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/contas-correntes/{contaCorrente_id}/importar
Example request:
curl --request POST \
"https://backend.valuor.com.br/api/contas-correntes/19/importar" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"lancamentos\": [
{
\"data\": \"2026-06-05T15:55:30\",
\"descricao\": \"gi\",
\"valor\": 2607007.8516243,
\"tipo\": \"credito\"
}
]
}"
const url = new URL(
"https://backend.valuor.com.br/api/contas-correntes/19/importar"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"lancamentos": [
{
"data": "2026-06-05T15:55:30",
"descricao": "gi",
"valor": 2607007.8516243,
"tipo": "credito"
}
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
PATCH api/extrato-lancamentos/{lancamento_id}/conciliar
Example request:
curl --request PATCH \
"https://backend.valuor.com.br/api/extrato-lancamentos/6/conciliar" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/extrato-lancamentos/6/conciliar"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "PATCH",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Tenant — Caixa
Sessão aberta do operador + resumo corrente (ou null se fechado).
Example request:
curl --request GET \
--get "https://backend.valuor.com.br/api/caixa/sessao" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/caixa/sessao"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Abre o caixa com saldo inicial.
Example request:
curl --request POST \
"https://backend.valuor.com.br/api/caixa/abrir" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"saldo_inicial\": 2,
\"observacao\": \"t\"
}"
const url = new URL(
"https://backend.valuor.com.br/api/caixa/abrir"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"saldo_inicial": 2,
"observacao": "t"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Fecha o caixa (conferência): gera o fechamento e encerra a sessão.
Example request:
curl --request POST \
"https://backend.valuor.com.br/api/caixa/fechar" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"saldo_real\": 45036.862,
\"observacao\": \"zjhabakjcmgrpa\"
}"
const url = new URL(
"https://backend.valuor.com.br/api/caixa/fechar"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"saldo_real": 45036.862,
"observacao": "zjhabakjcmgrpa"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/caixa/movimentacoes
Example request:
curl --request GET \
--get "https://backend.valuor.com.br/api/caixa/movimentacoes" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/caixa/movimentacoes"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/caixa/movimentacoes
Example request:
curl --request POST \
"https://backend.valuor.com.br/api/caixa/movimentacoes" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"tipo\": \"suprimento\",
\"valor\": 17,
\"observacao\": \"jirsxxjdwzcnklpiztpbm\"
}"
const url = new URL(
"https://backend.valuor.com.br/api/caixa/movimentacoes"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"tipo": "suprimento",
"valor": 17,
"observacao": "jirsxxjdwzcnklpiztpbm"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/caixa/fechamentos
Example request:
curl --request GET \
--get "https://backend.valuor.com.br/api/caixa/fechamentos" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/caixa/fechamentos"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/caixa/fechamentos
Example request:
curl --request POST \
"https://backend.valuor.com.br/api/caixa/fechamentos" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"data_abertura\": \"2026-06-05T15:54:33\",
\"data_fechamento\": \"2026-06-05T15:54:33\",
\"valor_abertura\": 28,
\"total_vendas\": 17,
\"total_dinheiro\": 25,
\"total_cartao_credito\": 27,
\"total_cartao_debito\": 39,
\"total_pix\": 64,
\"total_outros\": 37,
\"total_sangrias\": 60,
\"total_suprimentos\": 49,
\"saldo_esperado\": 2.845,
\"saldo_real\": 69212.5328968,
\"diferenca\": 5461.5689,
\"observacao\": \"ipxqpsespmhbeovvhrbmjbb\"
}"
const url = new URL(
"https://backend.valuor.com.br/api/caixa/fechamentos"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"data_abertura": "2026-06-05T15:54:33",
"data_fechamento": "2026-06-05T15:54:33",
"valor_abertura": 28,
"total_vendas": 17,
"total_dinheiro": 25,
"total_cartao_credito": 27,
"total_cartao_debito": 39,
"total_pix": 64,
"total_outros": 37,
"total_sangrias": 60,
"total_suprimentos": 49,
"saldo_esperado": 2.845,
"saldo_real": 69212.5328968,
"diferenca": 5461.5689,
"observacao": "ipxqpsespmhbeovvhrbmjbb"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/caixa/fechamentos/{id}
Example request:
curl --request GET \
--get "https://backend.valuor.com.br/api/caixa/fechamentos/ad" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/caixa/fechamentos/ad"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Tenant — Comissões
GET api/comissoes
Example request:
curl --request GET \
--get "https://backend.valuor.com.br/api/comissoes" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/comissoes"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
PATCH api/comissoes/{comissao_id}/pagar
Example request:
curl --request PATCH \
"https://backend.valuor.com.br/api/comissoes/18/pagar" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"data_pagamento\": \"2026-06-05T15:54:41\"
}"
const url = new URL(
"https://backend.valuor.com.br/api/comissoes/18/pagar"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"data_pagamento": "2026-06-05T15:54:41"
};
fetch(url, {
method: "PATCH",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
PATCH api/comissoes/{comissao_id}/cancelar
Example request:
curl --request PATCH \
"https://backend.valuor.com.br/api/comissoes/19/cancelar" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/comissoes/19/cancelar"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "PATCH",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Tenant — Tabelas de Preço
GET api/tabelas-preco
Example request:
curl --request GET \
--get "https://backend.valuor.com.br/api/tabelas-preco" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/tabelas-preco"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/tabelas-preco
Example request:
curl --request POST \
"https://backend.valuor.com.br/api/tabelas-preco" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"nome\": \"dxxsufyvctkc\",
\"descricao\": \"aut\",
\"ativo\": true,
\"padrao\": true,
\"itens\": [
{
\"produto_id\": \"nemo\",
\"preco\": 24
}
]
}"
const url = new URL(
"https://backend.valuor.com.br/api/tabelas-preco"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"nome": "dxxsufyvctkc",
"descricao": "aut",
"ativo": true,
"padrao": true,
"itens": [
{
"produto_id": "nemo",
"preco": 24
}
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/tabelas-preco/{tabelaPreco_id}
Example request:
curl --request GET \
--get "https://backend.valuor.com.br/api/tabelas-preco/19" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/tabelas-preco/19"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
PUT api/tabelas-preco/{tabelaPreco_id}
Example request:
curl --request PUT \
"https://backend.valuor.com.br/api/tabelas-preco/7" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"nome\": \"cbdesoiccfjrxsforijc\",
\"descricao\": \"qui\",
\"ativo\": false,
\"padrao\": true,
\"itens\": [
{
\"produto_id\": \"voluptates\",
\"preco\": 15
}
]
}"
const url = new URL(
"https://backend.valuor.com.br/api/tabelas-preco/7"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"nome": "cbdesoiccfjrxsforijc",
"descricao": "qui",
"ativo": false,
"padrao": true,
"itens": [
{
"produto_id": "voluptates",
"preco": 15
}
]
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
DELETE api/tabelas-preco/{tabelaPreco_id}
Example request:
curl --request DELETE \
"https://backend.valuor.com.br/api/tabelas-preco/9" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/tabelas-preco/9"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Tenant — Ordens de Serviço
GET api/ordens-servico
Example request:
curl --request GET \
--get "https://backend.valuor.com.br/api/ordens-servico" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/ordens-servico"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/ordens-servico
Example request:
curl --request POST \
"https://backend.valuor.com.br/api/ordens-servico" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"equipamento\": \"yagbklznbwc\",
\"marca_equipamento\": \"sumwmghmstgvaznerdopy\",
\"modelo_equipamento\": \"pzmfahpheihredgsgsni\",
\"serial\": \"ronpgyosmbmjkghzlb\",
\"descricao_defeito\": \"dolorem\",
\"servico_executado\": \"quod\",
\"status\": \"aberta\",
\"prioridade\": \"alta\",
\"data_abertura\": \"2026-06-05T15:54:59\",
\"data_previsao\": \"2026-06-05T15:54:59\",
\"data_conclusao\": \"2026-06-05T15:54:59\",
\"valor_servico\": 9,
\"desconto\": 27,
\"observacoes\": \"dolores\",
\"itens\": [
{
\"descricao\": \"dahpxizkhxcyef\",
\"quantidade\": 49,
\"preco_unitario\": 83
}
]
}"
const url = new URL(
"https://backend.valuor.com.br/api/ordens-servico"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"equipamento": "yagbklznbwc",
"marca_equipamento": "sumwmghmstgvaznerdopy",
"modelo_equipamento": "pzmfahpheihredgsgsni",
"serial": "ronpgyosmbmjkghzlb",
"descricao_defeito": "dolorem",
"servico_executado": "quod",
"status": "aberta",
"prioridade": "alta",
"data_abertura": "2026-06-05T15:54:59",
"data_previsao": "2026-06-05T15:54:59",
"data_conclusao": "2026-06-05T15:54:59",
"valor_servico": 9,
"desconto": 27,
"observacoes": "dolores",
"itens": [
{
"descricao": "dahpxizkhxcyef",
"quantidade": 49,
"preco_unitario": 83
}
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/ordens-servico/{ordemServico_id}
Example request:
curl --request GET \
--get "https://backend.valuor.com.br/api/ordens-servico/16" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/ordens-servico/16"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
PUT api/ordens-servico/{ordemServico_id}
Example request:
curl --request PUT \
"https://backend.valuor.com.br/api/ordens-servico/14" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"equipamento\": \"emvoultgfuhbuk\",
\"marca_equipamento\": \"mqmlrhixwqiuruiaporpi\",
\"modelo_equipamento\": \"plunkzrwedexlemjx\",
\"serial\": \"rl\",
\"descricao_defeito\": \"nisi\",
\"servico_executado\": \"non\",
\"status\": \"aberta\",
\"prioridade\": \"alta\",
\"data_abertura\": \"2026-06-05T15:55:08\",
\"data_previsao\": \"2026-06-05T15:55:08\",
\"data_conclusao\": \"2026-06-05T15:55:08\",
\"valor_servico\": 58,
\"desconto\": 85,
\"observacoes\": \"at\",
\"itens\": [
{
\"descricao\": \"my\",
\"quantidade\": 29,
\"preco_unitario\": 78
}
]
}"
const url = new URL(
"https://backend.valuor.com.br/api/ordens-servico/14"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"equipamento": "emvoultgfuhbuk",
"marca_equipamento": "mqmlrhixwqiuruiaporpi",
"modelo_equipamento": "plunkzrwedexlemjx",
"serial": "rl",
"descricao_defeito": "nisi",
"servico_executado": "non",
"status": "aberta",
"prioridade": "alta",
"data_abertura": "2026-06-05T15:55:08",
"data_previsao": "2026-06-05T15:55:08",
"data_conclusao": "2026-06-05T15:55:08",
"valor_servico": 58,
"desconto": 85,
"observacoes": "at",
"itens": [
{
"descricao": "my",
"quantidade": 29,
"preco_unitario": 78
}
]
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
DELETE api/ordens-servico/{ordemServico_id}
Example request:
curl --request DELETE \
"https://backend.valuor.com.br/api/ordens-servico/19" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/ordens-servico/19"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Tenant — NFC-e
Emissão de Nota Fiscal de Consumidor Eletrônica. Suporta emissão online (via provider configurado) e contingência offline.
Configure o provider via .env:
NFCE_PROVIDER=focus_nfe|enotas|mock
NFCE_TOKEN=
Listar NFC-e emitidas (vendas com nfce_chave).
Example request:
curl --request GET \
--get "https://backend.valuor.com.br/api/nfce" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/nfce"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Ambiente da emissão fiscal: 1=produção (valor fiscal real) / 2=homologação (teste). `simulado` só é true em caso de configuração inválida (provider mock fora dos testes) — não é um modo de operação.
Example request:
curl --request GET \
--get "https://backend.valuor.com.br/api/nfce/emissor-status" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/nfce/emissor-status"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/nfce
Example request:
curl --request POST \
"https://backend.valuor.com.br/api/nfce" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"venda_id\": 12,
\"venda_local_id\": 15,
\"valor_total\": 42,
\"data_emissao\": \"2026-06-05T15:49:50\",
\"origem\": \"pdv\",
\"contingencia\": false,
\"justificativa\": \"xvlmvmnzajgrrqmsljqnv\",
\"itens\": [
{
\"nome\": \"swaawajuwbltmyfpwml\",
\"qtde\": 7,
\"valor\": 4
}
]
}"
const url = new URL(
"https://backend.valuor.com.br/api/nfce"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"venda_id": 12,
"venda_local_id": 15,
"valor_total": 42,
"data_emissao": "2026-06-05T15:49:50",
"origem": "pdv",
"contingencia": false,
"justificativa": "xvlmvmnzajgrrqmsljqnv",
"itens": [
{
"nome": "swaawajuwbltmyfpwml",
"qtde": 7,
"valor": 4
}
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Re-emitir NFC-e em contingência
Tenta re-transmitir uma NFC-e previamente emitida em contingência. Passar a chave de contingência gerada localmente no PDV/Mobile.
Example request:
curl --request POST \
"https://backend.valuor.com.br/api/nfce/reemitir" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"chave_contingencia\": \"35260522000000000000000000000000000000000042\",
\"venda_local_id\": 42,
\"valor_total\": 129.9,
\"data_emissao\": \"2026-05-22T14:00:00-03:00\"
}"
const url = new URL(
"https://backend.valuor.com.br/api/nfce/reemitir"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"chave_contingencia": "35260522000000000000000000000000000000000042",
"venda_local_id": 42,
"valor_total": 129.9,
"data_emissao": "2026-05-22T14:00:00-03:00"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Cancelar NFC-e
Cancela a NFC-e autorizada vinculada à venda (evento de cancelamento na SEFAZ).
Example request:
curl --request POST \
"https://backend.valuor.com.br/api/nfce/cancelar" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"venda_id\": 42,
\"justificativa\": \"Cliente desistiu da compra\"
}"
const url = new URL(
"https://backend.valuor.com.br/api/nfce/cancelar"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"venda_id": 42,
"justificativa": "Cliente desistiu da compra"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Consultar NFC-e
Consulta a situação atual da NFC-e da venda na SEFAZ (pela chave de acesso).
Example request:
curl --request POST \
"https://backend.valuor.com.br/api/nfce/consultar" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"venda_id\": 42
}"
const url = new URL(
"https://backend.valuor.com.br/api/nfce/consultar"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"venda_id": 42
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Exportar XML(s) autorizado(s) de NFC-e.
Critérios (ao menos um):
chaves[]— exporta apenas as NFC-e selecionadas (por chave de acesso);data_inicio+data_fim— exporta todas as NFC-e do período (ex.: o mês).
1 nota → devolve o .xml direto; 2+ → devolve um .zip.
Example request:
curl --request POST \
"https://backend.valuor.com.br/api/nfce/exportar-xml" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"chaves\": [
\"35260522...\"
],
\"data_inicio\": \"similique\",
\"data_fim\": \"omnis\"
}"
const url = new URL(
"https://backend.valuor.com.br/api/nfce/exportar-xml"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"chaves": [
"35260522..."
],
"data_inicio": "similique",
"data_fim": "omnis"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Imprimir DANFCe
Faz proxy do PDF do cupom (DANFCe) gerado pela API Fiscal, para o navegador autenticado (que não tem a X-Api-Key da API Fiscal).
Example request:
curl --request GET \
--get "https://backend.valuor.com.br/api/nfce/6/danfce" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/nfce/6/danfce"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Tenant — NF-e
GET api/nfe
Example request:
curl --request GET \
--get "https://backend.valuor.com.br/api/nfe" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/nfe"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Ambiente de emissão (produção × homologação) para o alerta da tela.
O ambiente fiscal é global do tenant (nfce_ambiente vale para NF-e/CT-e/MDF-e).
Example request:
curl --request GET \
--get "https://backend.valuor.com.br/api/nfe/emissor-status" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/nfe/emissor-status"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Emitir NF-e a partir de uma venda (by venda_id) ou de payload bruto.
Quando venda_id é fornecido, usa NfePayloadBuilder para montar o payload completo e envia diretamente ao /nfe/transmitir da API Fiscal.
Example request:
curl --request POST \
"https://backend.valuor.com.br/api/nfe" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"venda_id\": 48,
\"simplificado\": true
}"
const url = new URL(
"https://backend.valuor.com.br/api/nfe"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"venda_id": 48,
"simplificado": true
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Emissão MANUAL de NF-e (tela de emissão): monta o payload a partir de cliente + itens informados e transmite via API Fiscal.
Example request:
curl --request POST \
"https://backend.valuor.com.br/api/nfe/manual" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"cliente_id\": 17,
\"natureza_operacao\": \"glckssyqmupoqzbgvolyerlzr\",
\"finalidade\": \"2\",
\"consumidor_final\": false,
\"forma_pagamento\": \"kifuupyjlkifsmyjuxwtdx\",
\"info_complementar\": \"xqdtqvlzbdc\",
\"itens\": [
{
\"produto_id\": 6,
\"quantidade\": 33,
\"preco_unitario\": 15,
\"cfop\": \"jx\",
\"nome_produto\": \"okaymooccw\",
\"codigo_produto\": \"vtpuzvdpqqt\",
\"ncm\": \"diyi\",
\"cst_csosn\": \"hag\",
\"cod_barras\": \"vmur\"
}
],
\"transporte\": {
\"modalidade_frete\": \"l\"
}
}"
const url = new URL(
"https://backend.valuor.com.br/api/nfe/manual"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"cliente_id": 17,
"natureza_operacao": "glckssyqmupoqzbgvolyerlzr",
"finalidade": "2",
"consumidor_final": false,
"forma_pagamento": "kifuupyjlkifsmyjuxwtdx",
"info_complementar": "xqdtqvlzbdc",
"itens": [
{
"produto_id": 6,
"quantidade": 33,
"preco_unitario": 15,
"cfop": "jx",
"nome_produto": "okaymooccw",
"codigo_produto": "vtpuzvdpqqt",
"ncm": "diyi",
"cst_csosn": "hag",
"cod_barras": "vmur"
}
],
"transporte": {
"modalidade_frete": "l"
}
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Baixa o PDF do DANFE pela chave.
Example request:
curl --request GET \
--get "https://backend.valuor.com.br/api/nfe/danfe" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"chave\": \"qeucccijfuwscsemmcbllbvweyvnivflutzingmcbayj\"
}"
const url = new URL(
"https://backend.valuor.com.br/api/nfe/danfe"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"chave": "qeucccijfuwscsemmcbllbvweyvnivflutzingmcbayj"
};
fetch(url, {
method: "GET",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/nfe/consultar
Example request:
curl --request POST \
"https://backend.valuor.com.br/api/nfe/consultar" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"chave\": \"iqjkmtlfkkawppjwgerssthyfyvgtxpopeyftkepjeov\"
}"
const url = new URL(
"https://backend.valuor.com.br/api/nfe/consultar"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"chave": "iqjkmtlfkkawppjwgerssthyfyvgtxpopeyftkepjeov"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/nfe/cancelar
Example request:
curl --request POST \
"https://backend.valuor.com.br/api/nfe/cancelar" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"chave\": \"luzkfwbzmwaltjfnuyodfxnkkctnlgkhctjjarioawsn\",
\"justificativa\": \"xgictssnmduwtbzxt\"
}"
const url = new URL(
"https://backend.valuor.com.br/api/nfe/cancelar"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"chave": "luzkfwbzmwaltjfnuyodfxnkkctnlgkhctjjarioawsn",
"justificativa": "xgictssnmduwtbzxt"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Exportar XML(s) autorizado(s) de NF-e por chave(s).
1 nota → .xml direto; 2+ → .zip. Chaves vêm da seleção (ou de todas as linhas filtradas) na tela — a listagem de NF-e vem da API Fiscal.
Example request:
curl --request POST \
"https://backend.valuor.com.br/api/nfe/exportar-xml" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"chaves\": [
\"bjddqyuarbhomsfoktobtwllmyipoqcmoiwzlpqfupzd\"
]
}"
const url = new URL(
"https://backend.valuor.com.br/api/nfe/exportar-xml"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"chaves": [
"bjddqyuarbhomsfoktobtwllmyipoqcmoiwzlpqfupzd"
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/fiscal/certificados
Example request:
curl --request GET \
--get "https://backend.valuor.com.br/api/fiscal/certificados" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/fiscal/certificados"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/fiscal/certificados
Example request:
curl --request POST \
"https://backend.valuor.com.br/api/fiscal/certificados" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--form "senha=vabspsupsepmazxlqlmmpy"\
--form "cnpj=14743617704283"\
--form "arquivo=@/tmp/phpiFEEKc" const url = new URL(
"https://backend.valuor.com.br/api/fiscal/certificados"
);
const headers = {
"Content-Type": "multipart/form-data",
"Accept": "application/json",
};
const body = new FormData();
body.append('senha', 'vabspsupsepmazxlqlmmpy');
body.append('cnpj', '14743617704283');
body.append('arquivo', document.querySelector('input[name="arquivo"]').files[0]);
fetch(url, {
method: "POST",
headers,
body,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
DELETE api/fiscal/certificados/{id}
Example request:
curl --request DELETE \
"https://backend.valuor.com.br/api/fiscal/certificados/rerum" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/fiscal/certificados/rerum"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Tenant — Fiscal
Verifica a saúde do fiscal: API Fiscal online, certificado, CSC e a conectividade com a SEFAZ (Status do Serviço) para NF-e (55) e NFC-e (65).
GET /fiscal/diagnostico — estado geral (API Fiscal, certificado, CSC).
Example request:
curl --request GET \
--get "https://backend.valuor.com.br/api/fiscal/diagnostico" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/fiscal/diagnostico"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST /fiscal/status-sefaz — testa o Status do Serviço da SEFAZ.
Example request:
curl --request POST \
"https://backend.valuor.com.br/api/fiscal/status-sefaz" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"modelo\": \"65\"
}"
const url = new URL(
"https://backend.valuor.com.br/api/fiscal/status-sefaz"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"modelo": "65"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/fiscal/prontidao
Example request:
curl --request GET \
--get "https://backend.valuor.com.br/api/fiscal/prontidao" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/fiscal/prontidao"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Tenant — Dashboard
KPIs e dados para o painel principal. Todos os valores são filtrados pela empresa do usuário autenticado.
GET api/dashboard/kpis
Example request:
curl --request GET \
--get "https://backend.valuor.com.br/api/dashboard/kpis" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/dashboard/kpis"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/dashboard/kpis-vendedor
Example request:
curl --request GET \
--get "https://backend.valuor.com.br/api/dashboard/kpis-vendedor" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/dashboard/kpis-vendedor"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/dashboard/vendas-por-dia
Example request:
curl --request GET \
--get "https://backend.valuor.com.br/api/dashboard/vendas-por-dia" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/dashboard/vendas-por-dia"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/dashboard/top-produtos
Example request:
curl --request GET \
--get "https://backend.valuor.com.br/api/dashboard/top-produtos" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/dashboard/top-produtos"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Insights analíticos do período: formas de pagamento, top clientes e top vendedores.
Example request:
curl --request GET \
--get "https://backend.valuor.com.br/api/dashboard/insights" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/dashboard/insights"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Fluxo de caixa projetado — recebíveis vs. pagáveis em aberto, por semana (mais um bloco "em atraso"), com saldo do período e saldo acumulado.
Example request:
curl --request GET \
--get "https://backend.valuor.com.br/api/dashboard/fluxo-caixa" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/dashboard/fluxo-caixa"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Comparativo entre empresas (matriz/filiais) no período.
Example request:
curl --request GET \
--get "https://backend.valuor.com.br/api/dashboard/comparativo-empresas" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/dashboard/comparativo-empresas"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/dashboard/proximos-vencimentos
Example request:
curl --request GET \
--get "https://backend.valuor.com.br/api/dashboard/proximos-vencimentos" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/dashboard/proximos-vencimentos"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Tenant — Relatórios
GET api/relatorios/vendas
Example request:
curl --request GET \
--get "https://backend.valuor.com.br/api/relatorios/vendas" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"data_inicio\": \"2026-06-05T15:49:24\",
\"data_fim\": \"2084-01-28\",
\"agrupar_por\": \"produto\",
\"status\": \"confirmada\"
}"
const url = new URL(
"https://backend.valuor.com.br/api/relatorios/vendas"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"data_inicio": "2026-06-05T15:49:24",
"data_fim": "2084-01-28",
"agrupar_por": "produto",
"status": "confirmada"
};
fetch(url, {
method: "GET",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/relatorios/fluxo-caixa
Example request:
curl --request GET \
--get "https://backend.valuor.com.br/api/relatorios/fluxo-caixa" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"data_inicio\": \"2026-06-05T15:49:26\",
\"data_fim\": \"2069-12-30\"
}"
const url = new URL(
"https://backend.valuor.com.br/api/relatorios/fluxo-caixa"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"data_inicio": "2026-06-05T15:49:26",
"data_fim": "2069-12-30"
};
fetch(url, {
method: "GET",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/relatorios/estoque
Example request:
curl --request GET \
--get "https://backend.valuor.com.br/api/relatorios/estoque" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/relatorios/estoque"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Giro/rotação de estoque no período: identifica capital imobilizado (produtos parados) vs. produtos de alta rotação. giro_anual = consumo anualizado / estoque; dias_cobertura = estoque / consumo diário.
Example request:
curl --request GET \
--get "https://backend.valuor.com.br/api/relatorios/giro-estoque" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/relatorios/giro-estoque"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/relatorios/contas-receber
Example request:
curl --request GET \
--get "https://backend.valuor.com.br/api/relatorios/contas-receber" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/relatorios/contas-receber"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/relatorios/contas-pagar
Example request:
curl --request GET \
--get "https://backend.valuor.com.br/api/relatorios/contas-pagar" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/relatorios/contas-pagar"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
DRE gerencial (regime de competência) em cascata: Receita Bruta de Vendas − Descontos = Receita Líquida − CMV (custo dos produtos vendidos) = Lucro Bruto − Despesas Operacionais + Outras Receitas = Resultado Líquido
Vendas: por data_venda (confirmada/faturada). Despesas e outras receitas: por data_vencimento, excluindo canceladas (despesa reconhecida no período).
Example request:
curl --request GET \
--get "https://backend.valuor.com.br/api/relatorios/dre" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"data_inicio\": \"2026-06-05T15:49:42\",
\"data_fim\": \"2109-05-26\"
}"
const url = new URL(
"https://backend.valuor.com.br/api/relatorios/dre"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"data_inicio": "2026-06-05T15:49:42",
"data_fim": "2109-05-26"
};
fetch(url, {
method: "GET",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Tenant — Inteligência
GET api/produtos/{produto_id}/previsao-estoque
Example request:
curl --request GET \
--get "https://backend.valuor.com.br/api/produtos/10/previsao-estoque" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/produtos/10/previsao-estoque"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/inteligencia/resumo
Example request:
curl --request GET \
--get "https://backend.valuor.com.br/api/inteligencia/resumo" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/inteligencia/resumo"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/inteligencia/previsao-estoque
Example request:
curl --request GET \
--get "https://backend.valuor.com.br/api/inteligencia/previsao-estoque" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/inteligencia/previsao-estoque"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/compras/importar-xml
Example request:
curl --request POST \
"https://backend.valuor.com.br/api/compras/importar-xml" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--form "xml=@/tmp/phpBOAoGG" const url = new URL(
"https://backend.valuor.com.br/api/compras/importar-xml"
);
const headers = {
"Content-Type": "multipart/form-data",
"Accept": "application/json",
};
const body = new FormData();
body.append('xml', document.querySelector('input[name="xml"]').files[0]);
fetch(url, {
method: "POST",
headers,
body,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST /api/compras/{compra}/itens/{item}/vincular Vincula um item importado a um produto e grava o de-para do fornecedor (para reconhecer o item automaticamente em importações futuras).
Example request:
curl --request POST \
"https://backend.valuor.com.br/api/compras/11/itens/13/vincular" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"produto_id\": \"aspernatur\"
}"
const url = new URL(
"https://backend.valuor.com.br/api/compras/11/itens/13/vincular"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"produto_id": "aspernatur"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Autenticação — 2FA (TOTP)
Fluxo: setup (gera segredo) → confirm (valida 1º código, ativa e devolve os
códigos de recuperação) → disable. O segredo e os códigos ficam cifrados (cast
encrypted no model User).
Status do 2FA do usuário autenticado.
Example request:
curl --request GET \
--get "https://backend.valuor.com.br/api/auth/2fa/status" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/auth/2fa/status"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Gera um segredo (ainda não ativa) e retorna o otpauth:// para QR Code.
Example request:
curl --request POST \
"https://backend.valuor.com.br/api/auth/2fa/setup" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/auth/2fa/setup"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Valida o primeiro código, ativa o 2FA e devolve os códigos de recuperação (uma vez).
Example request:
curl --request POST \
"https://backend.valuor.com.br/api/auth/2fa/confirm" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"code\": \"aut\"
}"
const url = new URL(
"https://backend.valuor.com.br/api/auth/2fa/confirm"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"code": "aut"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Desativa o 2FA (exige código TOTP/recuperação OU a senha).
Example request:
curl --request POST \
"https://backend.valuor.com.br/api/auth/2fa/disable" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"code\": \"quam\",
\"password\": \"}f%7>v7nTVYG|y#cUD(\"
}"
const url = new URL(
"https://backend.valuor.com.br/api/auth/2fa/disable"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"code": "quam",
"password": "}f%7>v7nTVYG|y#cUD("
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Outros
Lista as variações de um produto.
Example request:
curl --request GET \
--get "https://backend.valuor.com.br/api/produtos/10/variacoes" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/produtos/10/variacoes"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Gera as variações a partir da grade do produto (produto cartesiano das opções). Cria apenas as combinações que ainda não existem.
Example request:
curl --request POST \
"https://backend.valuor.com.br/api/produtos/6/variacoes/gerar" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/produtos/6/variacoes/gerar"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Atualiza uma variação (SKU, EAN, preço, estoque, ativo).
Example request:
curl --request PUT \
"https://backend.valuor.com.br/api/variacoes/3" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"codigo\": \"efigfefpsrnger\",
\"codigo_barras\": \"dmcuvbwctbmvujmfudfpy\",
\"preco\": 81,
\"estoque\": 24,
\"ativo\": true
}"
const url = new URL(
"https://backend.valuor.com.br/api/variacoes/3"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"codigo": "efigfefpsrnger",
"codigo_barras": "dmcuvbwctbmvujmfudfpy",
"preco": 81,
"estoque": 24,
"ativo": true
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
DELETE api/variacoes/{variacao_id}
Example request:
curl --request DELETE \
"https://backend.valuor.com.br/api/variacoes/11" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/variacoes/11"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Ficha técnica: insumos do produto composto.
Example request:
curl --request GET \
--get "https://backend.valuor.com.br/api/produtos/20/insumos" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/produtos/20/insumos"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/produtos/{produto_id}/insumos
Example request:
curl --request POST \
"https://backend.valuor.com.br/api/produtos/3/insumos" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"insumo_id\": 1,
\"quantidade\": 26
}"
const url = new URL(
"https://backend.valuor.com.br/api/produtos/3/insumos"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"insumo_id": 1,
"quantidade": 26
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
DELETE api/produto-insumos/{insumo_id}
Example request:
curl --request DELETE \
"https://backend.valuor.com.br/api/produto-insumos/17" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/produto-insumos/17"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/mesas
Example request:
curl --request GET \
--get "https://backend.valuor.com.br/api/mesas" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/mesas"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/mesas
Example request:
curl --request POST \
"https://backend.valuor.com.br/api/mesas" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"nome\": \"hbncnkpckjxsdfgi\",
\"capacidade\": 35,
\"ativo\": true
}"
const url = new URL(
"https://backend.valuor.com.br/api/mesas"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"nome": "hbncnkpckjxsdfgi",
"capacidade": 35,
"ativo": true
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
PUT api/mesas/{id}
Example request:
curl --request PUT \
"https://backend.valuor.com.br/api/mesas/14" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"nome\": \"sncoyiqmxshxj\",
\"capacidade\": 50,
\"status\": \"livre\",
\"ativo\": false
}"
const url = new URL(
"https://backend.valuor.com.br/api/mesas/14"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"nome": "sncoyiqmxshxj",
"capacidade": 50,
"status": "livre",
"ativo": false
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
DELETE api/mesas/{id}
Example request:
curl --request DELETE \
"https://backend.valuor.com.br/api/mesas/12" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/mesas/12"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Comandas abertas (painel do salão).
Example request:
curl --request GET \
--get "https://backend.valuor.com.br/api/comandas" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/comandas"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
KDS — itens em produção das comandas abertas (não entregues).
Example request:
curl --request GET \
--get "https://backend.valuor.com.br/api/comandas/kds" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/comandas/kds"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Avança o status de preparo de um item (KDS).
Example request:
curl --request PUT \
"https://backend.valuor.com.br/api/comanda-itens/16/status" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"status\": \"pendente\"
}"
const url = new URL(
"https://backend.valuor.com.br/api/comanda-itens/16/status"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"status": "pendente"
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/comandas/{comanda_id}
Example request:
curl --request GET \
--get "https://backend.valuor.com.br/api/comandas/3" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/comandas/3"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Abre uma comanda (em mesa ou avulsa/balcão).
Example request:
curl --request POST \
"https://backend.valuor.com.br/api/comandas" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"mesa_id\": 2,
\"cliente_id\": 14
}"
const url = new URL(
"https://backend.valuor.com.br/api/comandas"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"mesa_id": 2,
"cliente_id": 14
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Adiciona um item à comanda.
Example request:
curl --request POST \
"https://backend.valuor.com.br/api/comandas/14/itens" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"produto_id\": 5,
\"quantidade\": 78,
\"observacao\": \"huprhaiclnwknvmccjr\"
}"
const url = new URL(
"https://backend.valuor.com.br/api/comandas/14/itens"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"produto_id": 5,
"quantidade": 78,
"observacao": "huprhaiclnwknvmccjr"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
DELETE api/comandas/{comanda_id}/itens/{itemId}
Example request:
curl --request DELETE \
"https://backend.valuor.com.br/api/comandas/9/itens/vero" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/comandas/9/itens/vero"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Fecha a comanda gerando uma venda (baixa estoque + financeiro).
Example request:
curl --request POST \
"https://backend.valuor.com.br/api/comandas/18/fechar" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"desconto\": 33,
\"pagamentos\": [
{
\"forma_pagamento\": \"omnis\",
\"valor\": 39
}
]
}"
const url = new URL(
"https://backend.valuor.com.br/api/comandas/18/fechar"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"desconto": 33,
"pagamentos": [
{
"forma_pagamento": "omnis",
"valor": 39
}
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/comandas/{comanda_id}/cancelar
Example request:
curl --request POST \
"https://backend.valuor.com.br/api/comandas/13/cancelar" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/comandas/13/cancelar"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Lista as devoluções (mais recentes primeiro).
Example request:
curl --request GET \
--get "https://backend.valuor.com.br/api/devolucoes" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/devolucoes"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Cria uma devolução a partir de uma venda (total ou parcial).
Dá entrada no estoque e estorna o financeiro.
Example request:
curl --request POST \
"https://backend.valuor.com.br/api/devolucoes" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"venda_id\": 17,
\"motivo\": \"maildpsgvmmhcorqap\",
\"observacoes\": \"fyjk\",
\"itens\": [
{
\"venda_item_id\": 19,
\"quantidade\": 47
}
]
}"
const url = new URL(
"https://backend.valuor.com.br/api/devolucoes"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"venda_id": 17,
"motivo": "maildpsgvmmhcorqap",
"observacoes": "fyjk",
"itens": [
{
"venda_item_id": 19,
"quantidade": 47
}
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Detalhe da devolução (com itens).
Example request:
curl --request GET \
--get "https://backend.valuor.com.br/api/devolucoes/2" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/devolucoes/2"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Emite a NF-e de devolução (finNFe=4) referenciando a nota original.
Example request:
curl --request POST \
"https://backend.valuor.com.br/api/devolucoes/12/emitir-nfe" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/devolucoes/12/emitir-nfe"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Cancela a devolução, revertendo estoque e financeiro.
Example request:
curl --request POST \
"https://backend.valuor.com.br/api/devolucoes/10/cancelar" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/devolucoes/10/cancelar"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/devolucoes-compra
Example request:
curl --request GET \
--get "https://backend.valuor.com.br/api/devolucoes-compra" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/devolucoes-compra"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/devolucoes-compra/{devolucaoCompra_id}
Example request:
curl --request GET \
--get "https://backend.valuor.com.br/api/devolucoes-compra/20" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/devolucoes-compra/20"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/devolucoes-compra
Example request:
curl --request POST \
"https://backend.valuor.com.br/api/devolucoes-compra" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"compra_id\": 19,
\"motivo\": \"spzbrpsmkzkqlownjkyx\",
\"observacoes\": \"tr\",
\"itens\": [
{
\"compra_item_id\": 3,
\"quantidade\": 16
}
]
}"
const url = new URL(
"https://backend.valuor.com.br/api/devolucoes-compra"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"compra_id": 19,
"motivo": "spzbrpsmkzkqlownjkyx",
"observacoes": "tr",
"itens": [
{
"compra_item_id": 3,
"quantidade": 16
}
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Emite a NF-e de devolução de compra (saída, finNFe=4) ao fornecedor.
Example request:
curl --request POST \
"https://backend.valuor.com.br/api/devolucoes-compra/20/emitir-nfe" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/devolucoes-compra/20/emitir-nfe"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/devolucoes-compra/{devolucaoCompra_id}/cancelar
Example request:
curl --request POST \
"https://backend.valuor.com.br/api/devolucoes-compra/2/cancelar" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/devolucoes-compra/2/cancelar"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Sugere a tributação (CST/CSOSN, CFOP, alíquotas) para um NCM/origem, a partir das regras cadastradas ou do regime + alíquota da UF.
Example request:
curl --request GET \
--get "https://backend.valuor.com.br/api/imposto/sugerir-tributacao" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"ncm\": \"be\",
\"origem\": 3
}"
const url = new URL(
"https://backend.valuor.com.br/api/imposto/sugerir-tributacao"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"ncm": "be",
"origem": 3
};
fetch(url, {
method: "GET",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/imposto/ncm/importar
Example request:
curl --request POST \
"https://backend.valuor.com.br/api/imposto/ncm/importar" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/imposto/ncm/importar"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/imposto/ibpt/consultar/{ncm}
Example request:
curl --request GET \
--get "https://backend.valuor.com.br/api/imposto/ibpt/consultar/quis" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/imposto/ibpt/consultar/quis"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/fiscal/classificacoes-tributarias
Example request:
curl --request GET \
--get "https://backend.valuor.com.br/api/fiscal/classificacoes-tributarias" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/fiscal/classificacoes-tributarias"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/health
Example request:
curl --request GET \
--get "https://backend.valuor.com.br/api/health" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/health"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"status": "ok",
"db": true,
"version": "dev",
"timestamp": "2026-06-05T15:55:39-03:00"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/broadcasting/auth
Example request:
curl --request POST \
"https://backend.valuor.com.br/api/broadcasting/auth" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/broadcasting/auth"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Não autenticado."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/webhooks/stripe
Example request:
curl --request POST \
"https://backend.valuor.com.br/api/webhooks/stripe" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/webhooks/stripe"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Example response (200):
Show headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 60
x-ratelimit-remaining: 59
vary: Origin
OK
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/webhooks/efipay
Example request:
curl --request POST \
"https://backend.valuor.com.br/api/webhooks/efipay" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/webhooks/efipay"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Example response (400):
Show headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 60
x-ratelimit-remaining: 59
vary: Origin
Invalid payload
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/admin/backup/status
Example request:
curl --request GET \
--get "https://backend.valuor.com.br/api/admin/backup/status" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/admin/backup/status"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Não autenticado."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/admin/backup/executar
Example request:
curl --request POST \
"https://backend.valuor.com.br/api/admin/backup/executar" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/admin/backup/executar"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Não autenticado."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/admin/backup/tenant/{tenant_id}
Example request:
curl --request POST \
"https://backend.valuor.com.br/api/admin/backup/tenant/4" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/admin/backup/tenant/4"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Não autenticado."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/admin/config
Example request:
curl --request GET \
--get "https://backend.valuor.com.br/api/admin/config" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/admin/config"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Não autenticado."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
PUT api/admin/config
Example request:
curl --request PUT \
"https://backend.valuor.com.br/api/admin/config" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/admin/config"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "PUT",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Não autenticado."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/admin/config/test-smtp
Example request:
curl --request POST \
"https://backend.valuor.com.br/api/admin/config/test-smtp" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/admin/config/test-smtp"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Não autenticado."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/admin/config/test-cloudflare
Example request:
curl --request POST \
"https://backend.valuor.com.br/api/admin/config/test-cloudflare" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/admin/config/test-cloudflare"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Não autenticado."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/admin/config/test-tunnel
Example request:
curl --request POST \
"https://backend.valuor.com.br/api/admin/config/test-tunnel" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/admin/config/test-tunnel"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Não autenticado."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/admin/config/test-stripe
Example request:
curl --request POST \
"https://backend.valuor.com.br/api/admin/config/test-stripe" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/admin/config/test-stripe"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Não autenticado."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/admin/config/test-efipay
Example request:
curl --request POST \
"https://backend.valuor.com.br/api/admin/config/test-efipay" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/admin/config/test-efipay"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Não autenticado."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/admin/config/test-telegram
Example request:
curl --request POST \
"https://backend.valuor.com.br/api/admin/config/test-telegram" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/admin/config/test-telegram"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Não autenticado."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/admin/config/test-aapanel
Example request:
curl --request POST \
"https://backend.valuor.com.br/api/admin/config/test-aapanel" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/admin/config/test-aapanel"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Não autenticado."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/admin/config/limpar-cache
Example request:
curl --request POST \
"https://backend.valuor.com.br/api/admin/config/limpar-cache" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/admin/config/limpar-cache"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Não autenticado."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Tenant — Auditoria
Trilha de auditoria: criações, alterações e exclusões dos registros sensíveis (produtos, clientes, fornecedores, vendas, compras, pagamentos).
GET api/auditoria
Example request:
curl --request GET \
--get "https://backend.valuor.com.br/api/auditoria" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/auditoria"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Tipos de registro disponíveis na trilha (para o filtro).
Example request:
curl --request GET \
--get "https://backend.valuor.com.br/api/auditoria/tipos" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/auditoria/tipos"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Tenant — CRM Notas
GET api/cliente-notas
Example request:
curl --request GET \
--get "https://backend.valuor.com.br/api/cliente-notas" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/cliente-notas"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/cliente-notas
Example request:
curl --request POST \
"https://backend.valuor.com.br/api/cliente-notas" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/cliente-notas"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/cliente-notas/{clienteNota_id}
Example request:
curl --request GET \
--get "https://backend.valuor.com.br/api/cliente-notas/5" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/cliente-notas/5"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
PUT api/cliente-notas/{clienteNota_id}
Example request:
curl --request PUT \
"https://backend.valuor.com.br/api/cliente-notas/6" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/cliente-notas/6"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "PUT",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
DELETE api/cliente-notas/{clienteNota_id}
Example request:
curl --request DELETE \
"https://backend.valuor.com.br/api/cliente-notas/6" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/cliente-notas/6"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/cliente-notas/{clienteNota_id}/fixar
Example request:
curl --request POST \
"https://backend.valuor.com.br/api/cliente-notas/11/fixar" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/cliente-notas/11/fixar"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Tenant — CRM Oportunidades
CRUD + funil + forecast de oportunidades comerciais (CRM Fase 2).
GET /oportunidades/funil — agregado por estágio (forecast).
Example request:
curl --request GET \
--get "https://backend.valuor.com.br/api/oportunidades/funil" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/oportunidades/funil"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Listar com filtros: ?cliente_id, ?estagio, ?owner_user_id, ?empresa_id, ?vencendo_em_dias, ?abertas=1, ?search.
Example request:
curl --request GET \
--get "https://backend.valuor.com.br/api/oportunidades" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/oportunidades"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/oportunidades
Example request:
curl --request POST \
"https://backend.valuor.com.br/api/oportunidades" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"empresa_id\": 6,
\"cliente_id\": 7,
\"owner_user_id\": 14,
\"titulo\": \"lxrmzwxklezi\",
\"descricao\": \"fugit\",
\"estagio\": \"negociacao\",
\"valor_estimado\": 64,
\"probabilidade\": 8,
\"fechamento_previsto\": \"2026-06-05T15:40:33\",
\"origem\": \"kpknhpnbzdvnagdrq\"
}"
const url = new URL(
"https://backend.valuor.com.br/api/oportunidades"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"empresa_id": 6,
"cliente_id": 7,
"owner_user_id": 14,
"titulo": "lxrmzwxklezi",
"descricao": "fugit",
"estagio": "negociacao",
"valor_estimado": 64,
"probabilidade": 8,
"fechamento_previsto": "2026-06-05T15:40:33",
"origem": "kpknhpnbzdvnagdrq"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/oportunidades/{id}
Example request:
curl --request GET \
--get "https://backend.valuor.com.br/api/oportunidades/18" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/oportunidades/18"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
PUT api/oportunidades/{id}
Example request:
curl --request PUT \
"https://backend.valuor.com.br/api/oportunidades/10" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"owner_user_id\": 12,
\"titulo\": \"gmsdzekedydeyb\",
\"descricao\": \"at\",
\"valor_estimado\": 28,
\"probabilidade\": 15,
\"fechamento_previsto\": \"2026-06-05T15:40:39\",
\"origem\": \"iwragirn\",
\"motivo_perda\": \"y\"
}"
const url = new URL(
"https://backend.valuor.com.br/api/oportunidades/10"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"owner_user_id": 12,
"titulo": "gmsdzekedydeyb",
"descricao": "at",
"valor_estimado": 28,
"probabilidade": 15,
"fechamento_previsto": "2026-06-05T15:40:39",
"origem": "iwragirn",
"motivo_perda": "y"
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
DELETE api/oportunidades/{id}
Example request:
curl --request DELETE \
"https://backend.valuor.com.br/api/oportunidades/2" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/oportunidades/2"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Mudar de estágio. Em ganha/perdida fecha automático e atualiza prob.
Example request:
curl --request POST \
"https://backend.valuor.com.br/api/oportunidades/14/estagio" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"estagio\": \"molestias\",
\"motivo_perda\": \"vel\",
\"venda_id\": 19
}"
const url = new URL(
"https://backend.valuor.com.br/api/oportunidades/14/estagio"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"estagio": "molestias",
"motivo_perda": "vel",
"venda_id": 19
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Tenant — CRM Tarefas
GET api/cliente-tarefas
Example request:
curl --request GET \
--get "https://backend.valuor.com.br/api/cliente-tarefas" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/cliente-tarefas"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/cliente-tarefas
Example request:
curl --request POST \
"https://backend.valuor.com.br/api/cliente-tarefas" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/cliente-tarefas"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/cliente-tarefas/{clienteTarefa_id}
Example request:
curl --request GET \
--get "https://backend.valuor.com.br/api/cliente-tarefas/3" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/cliente-tarefas/3"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
PUT api/cliente-tarefas/{clienteTarefa_id}
Example request:
curl --request PUT \
"https://backend.valuor.com.br/api/cliente-tarefas/16" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/cliente-tarefas/16"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "PUT",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
DELETE api/cliente-tarefas/{clienteTarefa_id}
Example request:
curl --request DELETE \
"https://backend.valuor.com.br/api/cliente-tarefas/7" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/cliente-tarefas/7"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/cliente-tarefas/{clienteTarefa_id}/concluir
Example request:
curl --request POST \
"https://backend.valuor.com.br/api/cliente-tarefas/18/concluir" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/cliente-tarefas/18/concluir"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/cliente-tarefas/{clienteTarefa_id}/reabrir
Example request:
curl --request POST \
"https://backend.valuor.com.br/api/cliente-tarefas/20/reabrir" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/cliente-tarefas/20/reabrir"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Tenant — CT-e
Emissão de Conhecimento de Transporte Eletrônico (modelo 57) via API Fiscal, reaproveitando os cadastros de Transportadora (remetente/destinatário).
Lista os CT-e emitidos/rascunho do tenant.
Example request:
curl --request GET \
--get "https://backend.valuor.com.br/api/cte" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/cte"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Emite o CT-e: monta payload, transmite e persiste o resultado.
Example request:
curl --request POST \
"https://backend.valuor.com.br/api/cte" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"natureza_operacao\": \"ozfutberamff\",
\"cfop\": \"ai\",
\"tomador_papel\": \"3\",
\"remetente_id\": 9,
\"destinatario_id\": 5,
\"cst\": \"lvw\",
\"perc_icms\": 77.93,
\"data_prevista_entrega\": \"2026-06-05T15:52:23\",
\"valor_transporte\": 8,
\"valor_receber\": 8414.58900933,
\"valor_carga\": 74,
\"produto_predominante\": \"dkw\",
\"rntrc\": \"dgedfrxetlr\",
\"cod_mun_fim\": \"e\",
\"nome_mun_fim\": \"fnymgjobwxajghdvebaczjyqn\",
\"uf_fim\": \"ow\",
\"quantidade_carga\": 173706996.70492,
\"chaves_nfe\": [
\"sed\"
]
}"
const url = new URL(
"https://backend.valuor.com.br/api/cte"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"natureza_operacao": "ozfutberamff",
"cfop": "ai",
"tomador_papel": "3",
"remetente_id": 9,
"destinatario_id": 5,
"cst": "lvw",
"perc_icms": 77.93,
"data_prevista_entrega": "2026-06-05T15:52:23",
"valor_transporte": 8,
"valor_receber": 8414.58900933,
"valor_carga": 74,
"produto_predominante": "dkw",
"rntrc": "dgedfrxetlr",
"cod_mun_fim": "e",
"nome_mun_fim": "fnymgjobwxajghdvebaczjyqn",
"uf_fim": "ow",
"quantidade_carga": 173706996.70492,
"chaves_nfe": [
"sed"
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/cte/{cte_id}/consultar
Example request:
curl --request GET \
--get "https://backend.valuor.com.br/api/cte/18/consultar" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/cte/18/consultar"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/cte/{cte_id}/cancelar
Example request:
curl --request POST \
"https://backend.valuor.com.br/api/cte/2/cancelar" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"justificativa\": \"sgshfjctypodoxoqcufi\"
}"
const url = new URL(
"https://backend.valuor.com.br/api/cte/2/cancelar"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"justificativa": "sgshfjctypodoxoqcufi"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Baixa o DACTE (PDF) pela chave.
Example request:
curl --request GET \
--get "https://backend.valuor.com.br/api/cte/16/dacte" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/cte/16/dacte"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Tenant — Clientes (CRM)
Endpoints de agregação para o perfil 360° do cliente. Todos aceitam ?empresa_id= para escopar matriz/filial (omitir = todas).
GET api/clientes/{cliente_id}/perfil
Example request:
curl --request GET \
--get "https://backend.valuor.com.br/api/clientes/8/perfil" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/clientes/8/perfil"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/clientes/{cliente_id}/timeline
Example request:
curl --request GET \
--get "https://backend.valuor.com.br/api/clientes/9/timeline" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/clientes/9/timeline"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/clientes/{cliente_id}/financeiro
Example request:
curl --request GET \
--get "https://backend.valuor.com.br/api/clientes/8/financeiro" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/clientes/8/financeiro"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/clientes/{cliente_id}/pontos
Example request:
curl --request GET \
--get "https://backend.valuor.com.br/api/clientes/4/pontos" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/clientes/4/pontos"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/clientes/{cliente_id}/os
Example request:
curl --request GET \
--get "https://backend.valuor.com.br/api/clientes/3/os" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/clientes/3/os"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Tenant — Cobrança (régua/dunning)
Histórico de lembretes de cobrança enviados e disparo manual por pagamento.
Dispara cobrança manual de um recebível.
Example request:
curl --request POST \
"https://backend.valuor.com.br/api/pagamentos/1/cobrar" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/pagamentos/1/cobrar"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/cobrancas
Example request:
curl --request GET \
--get "https://backend.valuor.com.br/api/cobrancas" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/cobrancas"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Tenant — Conta
Dados da CONTA (tenant) vistos/editados pelo próprio tenant. Nada fiscal aqui — o fiscal vive nas Empresas (matriz/filial) do tenant.
GET api/configuracoes/empresa
Example request:
curl --request GET \
--get "https://backend.valuor.com.br/api/configuracoes/empresa" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/configuracoes/empresa"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
PUT api/configuracoes/empresa
Example request:
curl --request PUT \
"https://backend.valuor.com.br/api/configuracoes/empresa" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"nome\": \"nmsguydsvaawfiyuktvo\",
\"cnpj\": \"oeihvajidbmsxq\",
\"email\": \"[email protected]\",
\"telefone\": \"tf\",
\"logradouro\": \"ut\",
\"numero\": \"ko\",
\"complemento\": \"ullam\",
\"bairro\": \"vel\",
\"cidade\": \"voluptatem\",
\"uf\": \"bd\",
\"cep\": \"yamm\"
}"
const url = new URL(
"https://backend.valuor.com.br/api/configuracoes/empresa"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"nome": "nmsguydsvaawfiyuktvo",
"cnpj": "oeihvajidbmsxq",
"email": "[email protected]",
"telefone": "tf",
"logradouro": "ut",
"numero": "ko",
"complemento": "ullam",
"bairro": "vel",
"cidade": "voluptatem",
"uf": "bd",
"cep": "yamm"
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Tenant — Empresas (matriz/filial)
CRUD das empresas/estabelecimentos do tenant. Cada empresa é um CNPJ emitente, com sua própria identidade fiscal (IE, CSC, séries, numeração) usada na emissão de NFC-e/NF-e.
Lista enxuta das empresas ativas do tenant para o SELECT da tela de login.
Pública (sem auth) — o tenant já está resolvido pelo domínio e só expõe id/nome (nenhum dado fiscal sensível), para o usuário escolher em qual empresa (matriz/filial) deseja operar antes de autenticar.
Example request:
curl --request GET \
--get "https://backend.valuor.com.br/api/empresas-publicas" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/empresas-publicas"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/empresas
Example request:
curl --request GET \
--get "https://backend.valuor.com.br/api/empresas" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/empresas"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/empresas
Example request:
curl --request POST \
"https://backend.valuor.com.br/api/empresas" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/empresas"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/empresas/{empresa_id}
Example request:
curl --request GET \
--get "https://backend.valuor.com.br/api/empresas/17" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/empresas/17"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
PUT api/empresas/{empresa_id}
Example request:
curl --request PUT \
"https://backend.valuor.com.br/api/empresas/10" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/empresas/10"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "PUT",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
DELETE api/empresas/{empresa_id}
Example request:
curl --request DELETE \
"https://backend.valuor.com.br/api/empresas/7" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/empresas/7"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/empresas/{empresa_id}/logo
Example request:
curl --request POST \
"https://backend.valuor.com.br/api/empresas/12/logo" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--form "logo=@/tmp/phpJpeCCk" const url = new URL(
"https://backend.valuor.com.br/api/empresas/12/logo"
);
const headers = {
"Content-Type": "multipart/form-data",
"Accept": "application/json",
};
const body = new FormData();
body.append('logo', document.querySelector('input[name="logo"]').files[0]);
fetch(url, {
method: "POST",
headers,
body,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Tenant — Estoque (Depósitos)
Depósitos/almoxarifados por empresa. O saldo é mantido por (produto × depósito)
e o estoque_atual do produto reflete a soma de todos os depósitos.
Saldos dos produtos neste depósito. Sinaliza itens críticos (saldo no depósito ≤ estoque mínimo do produto) — um depósito pode estar zerado mesmo com saldo total positivo em outro.
Example request:
curl --request GET \
--get "https://backend.valuor.com.br/api/depositos/18/saldos" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/depositos/18/saldos"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/depositos
Example request:
curl --request GET \
--get "https://backend.valuor.com.br/api/depositos" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/depositos"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/depositos
Example request:
curl --request POST \
"https://backend.valuor.com.br/api/depositos" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/depositos"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/depositos/{id}
Example request:
curl --request GET \
--get "https://backend.valuor.com.br/api/depositos/11" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/depositos/11"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
PUT api/depositos/{id}
Example request:
curl --request PUT \
"https://backend.valuor.com.br/api/depositos/20" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/depositos/20"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "PUT",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
DELETE api/depositos/{id}
Example request:
curl --request DELETE \
"https://backend.valuor.com.br/api/depositos/4" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/depositos/4"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Tenant — Estoque (Transferências)
Transferência de produtos entre depósitos (saída no origem + entrada no
destino). O total do produto (estoque_atual) permanece inalterado.
GET api/transferencias
Example request:
curl --request GET \
--get "https://backend.valuor.com.br/api/transferencias" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/transferencias"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/transferencias
Example request:
curl --request POST \
"https://backend.valuor.com.br/api/transferencias" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"deposito_origem_id\": 8,
\"deposito_destino_id\": 20,
\"observacoes\": \"dolore\",
\"itens\": [
{
\"produto_id\": 13,
\"quantidade\": 5184
}
]
}"
const url = new URL(
"https://backend.valuor.com.br/api/transferencias"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"deposito_origem_id": 8,
"deposito_destino_id": 20,
"observacoes": "dolore",
"itens": [
{
"produto_id": 13,
"quantidade": 5184
}
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/transferencias/{transferencia_id}
Example request:
curl --request GET \
--get "https://backend.valuor.com.br/api/transferencias/12" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/transferencias/12"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Tenant — Fidelidade (pontos)
A CONFIGURAÇÃO fica em empresas.configuracoes.fidelidade (editada no modal da empresa).
Config efetiva (lida da empresa) — usada pelo PDV.
Example request:
curl --request GET \
--get "https://backend.valuor.com.br/api/fidelidade/config" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/fidelidade/config"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Saldo e extrato de pontos de um cliente.
Example request:
curl --request GET \
--get "https://backend.valuor.com.br/api/fidelidade/clientes/5" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/fidelidade/clientes/5"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Resgata pontos e devolve o valor de desconto.
Example request:
curl --request POST \
"https://backend.valuor.com.br/api/fidelidade/resgatar" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"cliente_id\": 8,
\"pontos\": 83
}"
const url = new URL(
"https://backend.valuor.com.br/api/fidelidade/resgatar"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"cliente_id": 8,
"pontos": 83
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Tenant — Financeiro / Boleto
Configuração do convênio bancário para emissão de boletos (registro único).
GET api/boleto/config
Example request:
curl --request GET \
--get "https://backend.valuor.com.br/api/boleto/config" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/boleto/config"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
PUT api/boleto/config
Example request:
curl --request PUT \
"https://backend.valuor.com.br/api/boleto/config" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"banco\": \"rmkuinhjbuhltjm\",
\"agencia\": \"aecljrilonzukv\",
\"agencia_dv\": \"o\",
\"conta\": \"mw\",
\"conta_dv\": \"u\",
\"carteira\": \"hwtsyidc\",
\"convenio\": \"zchjoybf\",
\"cedente_nome\": \"xtkjztwiinorvajmhuqbvrzrz\",
\"cedente_documento\": \"yzundayxag\",
\"nosso_numero_atual\": 9,
\"juros_dia\": 15,
\"multa\": 18,
\"dias_protesto\": 18,
\"instrucoes\": \"rhrlwuzkvxosucaeoq\",
\"ativo\": false
}"
const url = new URL(
"https://backend.valuor.com.br/api/boleto/config"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"banco": "rmkuinhjbuhltjm",
"agencia": "aecljrilonzukv",
"agencia_dv": "o",
"conta": "mw",
"conta_dv": "u",
"carteira": "hwtsyidc",
"convenio": "zchjoybf",
"cedente_nome": "xtkjztwiinorvajmhuqbvrzrz",
"cedente_documento": "yzundayxag",
"nosso_numero_atual": 9,
"juros_dia": 15,
"multa": 18,
"dias_protesto": 18,
"instrucoes": "rhrlwuzkvxosucaeoq",
"ativo": false
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Tenant — Financeiro / Boleto CNAB
Geração de remessa e leitura de retorno de cobrança bancária (CNAB 240). Confira sempre as posições no manual do seu banco e valide no portal antes de usar em produção.
Lista as contas a receber elegíveis para remessa (pendentes, a receber).
Example request:
curl --request GET \
--get "https://backend.valuor.com.br/api/boleto/remessa/titulos" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/boleto/remessa/titulos"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Gera o arquivo de remessa CNAB 240 e atualiza o nosso número.
Example request:
curl --request POST \
"https://backend.valuor.com.br/api/boleto/remessa" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"titulos\": [
10
]
}"
const url = new URL(
"https://backend.valuor.com.br/api/boleto/remessa"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"titulos": [
10
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Lê um arquivo de retorno CNAB 240 enviado e devolve as ocorrências.
Example request:
curl --request POST \
"https://backend.valuor.com.br/api/boleto/retorno" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--form "arquivo=@/tmp/phpnEnnmb" const url = new URL(
"https://backend.valuor.com.br/api/boleto/retorno"
);
const headers = {
"Content-Type": "multipart/form-data",
"Accept": "application/json",
};
const body = new FormData();
body.append('arquivo', document.querySelector('input[name="arquivo"]').files[0]);
fetch(url, {
method: "POST",
headers,
body,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Tenant — Fiscal / Imposto
GET api/imposto/cfop
Example request:
curl --request GET \
--get "https://backend.valuor.com.br/api/imposto/cfop" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/imposto/cfop"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/imposto/cfop
Example request:
curl --request POST \
"https://backend.valuor.com.br/api/imposto/cfop" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/imposto/cfop"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
PUT api/imposto/cfop/{tabela_cfop}
Example request:
curl --request PUT \
"https://backend.valuor.com.br/api/imposto/cfop/16" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/imposto/cfop/16"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "PUT",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
DELETE api/imposto/cfop/{tabela_cfop}
Example request:
curl --request DELETE \
"https://backend.valuor.com.br/api/imposto/cfop/11" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/imposto/cfop/11"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/imposto/ncm
Example request:
curl --request GET \
--get "https://backend.valuor.com.br/api/imposto/ncm" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/imposto/ncm"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/imposto/ncm
Example request:
curl --request POST \
"https://backend.valuor.com.br/api/imposto/ncm" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/imposto/ncm"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
PUT api/imposto/ncm/{tabela_ncm}
Example request:
curl --request PUT \
"https://backend.valuor.com.br/api/imposto/ncm/8" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/imposto/ncm/8"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "PUT",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
DELETE api/imposto/ncm/{tabela_ncm}
Example request:
curl --request DELETE \
"https://backend.valuor.com.br/api/imposto/ncm/12" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/imposto/ncm/12"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/imposto/icms
Example request:
curl --request GET \
--get "https://backend.valuor.com.br/api/imposto/icms" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/imposto/icms"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/imposto/icms
Example request:
curl --request POST \
"https://backend.valuor.com.br/api/imposto/icms" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/imposto/icms"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
PUT api/imposto/icms/{tabela_icm}
Example request:
curl --request PUT \
"https://backend.valuor.com.br/api/imposto/icms/5" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/imposto/icms/5"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "PUT",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
DELETE api/imposto/icms/{tabela_icm}
Example request:
curl --request DELETE \
"https://backend.valuor.com.br/api/imposto/icms/14" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/imposto/icms/14"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Importa o arquivo oficial do IBPT (De Olho no Imposto), CSV separado por ';' baixado por UF no site do IBPT. Substitui a tabela vigente (dado oficial, trimestral). Cabeçalho esperado: codigo;ex;tipo;descricao;nacionalfederal;importadosfederal;estadual;municipal;vigenciainicio;vigenciafim;chave;versao;fonte
Example request:
curl --request POST \
"https://backend.valuor.com.br/api/imposto/ibpt/importar" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--form "arquivo=@/tmp/phpmBcJHA" const url = new URL(
"https://backend.valuor.com.br/api/imposto/ibpt/importar"
);
const headers = {
"Content-Type": "multipart/form-data",
"Accept": "application/json",
};
const body = new FormData();
body.append('arquivo', document.querySelector('input[name="arquivo"]').files[0]);
fetch(url, {
method: "POST",
headers,
body,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/imposto/ibpt
Example request:
curl --request GET \
--get "https://backend.valuor.com.br/api/imposto/ibpt" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/imposto/ibpt"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/imposto/ibpt
Example request:
curl --request POST \
"https://backend.valuor.com.br/api/imposto/ibpt" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/imposto/ibpt"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
PUT api/imposto/ibpt/{tabela_ibpt}
Example request:
curl --request PUT \
"https://backend.valuor.com.br/api/imposto/ibpt/4" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/imposto/ibpt/4"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "PUT",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
DELETE api/imposto/ibpt/{tabela_ibpt}
Example request:
curl --request DELETE \
"https://backend.valuor.com.br/api/imposto/ibpt/17" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/imposto/ibpt/17"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/imposto/regra
Example request:
curl --request GET \
--get "https://backend.valuor.com.br/api/imposto/regra" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/imposto/regra"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/imposto/regra
Example request:
curl --request POST \
"https://backend.valuor.com.br/api/imposto/regra" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/imposto/regra"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
PUT api/imposto/regra/{regra_imposto}
Example request:
curl --request PUT \
"https://backend.valuor.com.br/api/imposto/regra/7" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/imposto/regra/7"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "PUT",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
DELETE api/imposto/regra/{regra_imposto}
Example request:
curl --request DELETE \
"https://backend.valuor.com.br/api/imposto/regra/14" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/imposto/regra/14"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Tenant — Fiscal / Inventário
Inventário fiscal de estoque (base do Bloco H do SPED Fiscal), agrupado por CSOSN, CST, origem da mercadoria ou NCM. Calcula valor pelo custo: estoque_atual × preco_custo.
GET api/fiscal/inventario
Example request:
curl --request GET \
--get "https://backend.valuor.com.br/api/fiscal/inventario" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"data\": \"2026-06-05T15:51:59\",
\"search\": \"dwyoei\"
}"
const url = new URL(
"https://backend.valuor.com.br/api/fiscal/inventario"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"data": "2026-06-05T15:51:59",
"search": "dwyoei"
};
fetch(url, {
method: "GET",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Tenant — Fiscal / Lote XML
Empacota em ZIP os XMLs dos documentos fiscais de um período.
- nfce : NFC-e emitidas (modelo 65) — vendas com nfce_chave
- nfe-venda : NF-e emitidas (modelo 55) — vendas com nfe_chave
- nfe-compra : NF-e destinadas (manifesto) — XML via API Fiscal
Quantidade de documentos disponíveis no período (pré-visualização).
Example request:
curl --request GET \
--get "https://backend.valuor.com.br/api/fiscal/lote-xml/previa" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/fiscal/lote-xml/previa"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Gera e baixa o ZIP com os XMLs do período.
Example request:
curl --request GET \
--get "https://backend.valuor.com.br/api/fiscal/lote-xml/baixar" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/fiscal/lote-xml/baixar"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Tenant — Fiscal / SPED
Geração do arquivo SPED Fiscal (EFD ICMS/IPI) a partir dos dados do tenant. Sempre valide o arquivo gerado no PVA da Receita antes de transmitir.
Pré-visualização: estatísticas do período (sem baixar o arquivo).
Example request:
curl --request GET \
--get "https://backend.valuor.com.br/api/fiscal/sped/previa" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/fiscal/sped/previa"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Gera e baixa o arquivo .txt do SPED Fiscal.
Example request:
curl --request GET \
--get "https://backend.valuor.com.br/api/fiscal/sped/fiscal" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/fiscal/sped/fiscal"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Gera e baixa o arquivo .txt da EFD-Contribuições (PIS/COFINS).
Example request:
curl --request GET \
--get "https://backend.valuor.com.br/api/fiscal/sped/contribuicoes" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/fiscal/sped/contribuicoes"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Gera e baixa o arquivo .txt do Sintegra (Convênio ICMS 57/95).
Example request:
curl --request GET \
--get "https://backend.valuor.com.br/api/fiscal/sped/sintegra" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/fiscal/sped/sintegra"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Tenant — Fiscal Eventos
Eventos pós-emissão fiscal: Carta de Correção (CC-e), Inutilização de numeração e EPEC (Evento Prévio em Contingência). Cancelamento continua nos controllers específicos (NfeController/NfceController) por conveniência.
Listar eventos (com filtros por tipo, modelo, chave).
Example request:
curl --request GET \
--get "https://backend.valuor.com.br/api/fiscal/eventos" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/fiscal/eventos"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Carta de Correção (CC-e) — apenas NF-e (modelo 55). NFC-e não suporta.
Example request:
curl --request POST \
"https://backend.valuor.com.br/api/fiscal/eventos/cce" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"chave\": \"repellat\",
\"correcao\": \"voluptatem\"
}"
const url = new URL(
"https://backend.valuor.com.br/api/fiscal/eventos/cce"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"chave": "repellat",
"correcao": "voluptatem"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Inutilização de range numérico.
Example request:
curl --request POST \
"https://backend.valuor.com.br/api/fiscal/eventos/inutilizar" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"modelo\": 1,
\"serie\": 12,
\"numero_inicial\": 4,
\"numero_final\": 20,
\"justificativa\": \"et\"
}"
const url = new URL(
"https://backend.valuor.com.br/api/fiscal/eventos/inutilizar"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"modelo": 1,
"serie": 12,
"numero_inicial": 4,
"numero_final": 20,
"justificativa": "et"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
EPEC — Evento Prévio de Emissão em Contingência (NF-e modelo 55).
Dispara quando SEFAZ está fora; a NF-e completa é transmitida depois e amarrada ao protocolo do EPEC.
Example request:
curl --request POST \
"https://backend.valuor.com.br/api/fiscal/eventos/epec" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"venda_id\": 12
}"
const url = new URL(
"https://backend.valuor.com.br/api/fiscal/eventos/epec"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"venda_id": 12
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Tenant — Fiscal Painel
Painel operacional do fiscal: vendas pendentes/em contingência/rejeitadas, reprocessamento em lote, alertas (certificado expirando, SEFAZ off).
GET /fiscal/painel — KPI consolidado do dia + listas operacionais.
Example request:
curl --request GET \
--get "https://backend.valuor.com.br/api/fiscal/painel?dias=7&empresa_id=1" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/fiscal/painel"
);
const params = {
"dias": "7",
"empresa_id": "1",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET /fiscal/painel/alertas — apenas os alertas (versão enxuta para o header).
Example request:
curl --request GET \
--get "https://backend.valuor.com.br/api/fiscal/painel/alertas" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/fiscal/painel/alertas"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST /fiscal/painel/reprocessar — reprocessa em lote vendas pendentes.
Example request:
curl --request POST \
"https://backend.valuor.com.br/api/fiscal/painel/reprocessar" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"venda_ids\": [
\"quia\"
]
}"
const url = new URL(
"https://backend.valuor.com.br/api/fiscal/painel/reprocessar"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"venda_ids": [
"quia"
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Tenant — Importação (sistema legado)
Recebe lotes do migrador (Delphi) e faz upsert idempotente por codigo_legado.
Multiloja: cada lote informa empresa_id (loja destino). Importação não dispara
efeitos de negócio (estoque/fiscal/fidelidade) — é gravação de histórico.
POST api/import/clientes
Example request:
curl --request POST \
"https://backend.valuor.com.br/api/import/clientes" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/import/clientes"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/import/produtos
Example request:
curl --request POST \
"https://backend.valuor.com.br/api/import/produtos" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/import/produtos"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/import/financeiro
Example request:
curl --request POST \
"https://backend.valuor.com.br/api/import/financeiro" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/import/financeiro"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/import/vendas
Example request:
curl --request POST \
"https://backend.valuor.com.br/api/import/vendas" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/import/vendas"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/import/notas
Example request:
curl --request POST \
"https://backend.valuor.com.br/api/import/notas" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/import/notas"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Baixa o XML arquivado de uma nota importada.
Example request:
curl --request GET \
--get "https://backend.valuor.com.br/api/import/notas/15/xml" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/import/notas/15/xml"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Empresas (lojas) do tenant — o migrador casa as lojas do legado por CNPJ.
Example request:
curl --request GET \
--get "https://backend.valuor.com.br/api/import/empresas" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/import/empresas"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Contagens já importadas (o migrador confere o que entrou).
Example request:
curl --request GET \
--get "https://backend.valuor.com.br/api/import/resumo" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"empresa_id\": 2
}"
const url = new URL(
"https://backend.valuor.com.br/api/import/resumo"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"empresa_id": 2
};
fetch(url, {
method: "GET",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Lista os tokens do migrador do usuário logado.
Example request:
curl --request GET \
--get "https://backend.valuor.com.br/api/import/tokens" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/import/tokens"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Gera um novo token (mostrado uma única vez) para o migrador.
Example request:
curl --request POST \
"https://backend.valuor.com.br/api/import/tokens" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"nome\": \"pgfnciiqhchykpdlhe\"
}"
const url = new URL(
"https://backend.valuor.com.br/api/import/tokens"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"nome": "pgfnciiqhchykpdlhe"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Revoga um token do migrador.
Example request:
curl --request DELETE \
"https://backend.valuor.com.br/api/import/tokens/suscipit" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/import/tokens/suscipit"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Tenant — Integrações (canais de venda)
Configuração de canais externos (e-commerce/marketplace). Credenciais são armazenadas criptografadas. A ingestão de pedidos externos vira Venda.
GET api/integracoes
Example request:
curl --request GET \
--get "https://backend.valuor.com.br/api/integracoes" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/integracoes"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/integracoes
Example request:
curl --request POST \
"https://backend.valuor.com.br/api/integracoes" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/integracoes"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
PUT api/integracoes/{integracao_id}
Example request:
curl --request PUT \
"https://backend.valuor.com.br/api/integracoes/5" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/integracoes/5"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "PUT",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
DELETE api/integracoes/{integracao_id}
Example request:
curl --request DELETE \
"https://backend.valuor.com.br/api/integracoes/16" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/integracoes/16"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/integracoes/{integracao_id}/regenerar-token
Example request:
curl --request POST \
"https://backend.valuor.com.br/api/integracoes/8/regenerar-token" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/integracoes/8/regenerar-token"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Ingestão de um pedido normalizado do canal → cria a Venda.
Example request:
curl --request POST \
"https://backend.valuor.com.br/api/integracoes/8/pedido" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"itens\": [
{
\"sku\": \"libero\",
\"codigo\": \"ea\",
\"quantidade\": 316425.0124,
\"preco_unitario\": 73
}
],
\"observacoes\": \"optio\"
}"
const url = new URL(
"https://backend.valuor.com.br/api/integracoes/8/pedido"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"itens": [
{
"sku": "libero",
"codigo": "ea",
"quantidade": 316425.0124,
"preco_unitario": 73
}
],
"observacoes": "optio"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Tenant — MDF-e
Emissão de Manifesto Eletrônico de Documentos Fiscais (modelo 58) via API Fiscal, reaproveitando o cadastro de Veículos da Transportadora.
GET api/mdfe
Example request:
curl --request GET \
--get "https://backend.valuor.com.br/api/mdfe" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/mdfe"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/mdfe
Example request:
curl --request POST \
"https://backend.valuor.com.br/api/mdfe" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"uf_fim\": \"co\",
\"data_inicio_viagem\": \"2026-06-05T15:52:34\",
\"condutor_nome\": \"tlvajjydomtfvkj\",
\"condutor_cpf\": \"dkognohd\",
\"valor_carga\": 38,
\"quantidade_carga\": 68,
\"tipo_emitente\": \"1\",
\"tipo_transporte\": \"3\",
\"veiculo_ids\": [
11
],
\"nome_mun_descarregamento\": \"uhjzomsgivwhcvymhgbo\",
\"cod_mun_descarregamento\": \"rxsrm\",
\"lacre_rodoviario\": \"vyibnk\",
\"info_complementar\": \"b\",
\"chaves_nfe\": [
\"aut\"
],
\"chaves_cte\": [
\"similique\"
]
}"
const url = new URL(
"https://backend.valuor.com.br/api/mdfe"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"uf_fim": "co",
"data_inicio_viagem": "2026-06-05T15:52:34",
"condutor_nome": "tlvajjydomtfvkj",
"condutor_cpf": "dkognohd",
"valor_carga": 38,
"quantidade_carga": 68,
"tipo_emitente": "1",
"tipo_transporte": "3",
"veiculo_ids": [
11
],
"nome_mun_descarregamento": "uhjzomsgivwhcvymhgbo",
"cod_mun_descarregamento": "rxsrm",
"lacre_rodoviario": "vyibnk",
"info_complementar": "b",
"chaves_nfe": [
"aut"
],
"chaves_cte": [
"similique"
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/mdfe/{mdfe_id}/consultar
Example request:
curl --request GET \
--get "https://backend.valuor.com.br/api/mdfe/7/consultar" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/mdfe/7/consultar"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/mdfe/{mdfe_id}/cancelar
Example request:
curl --request POST \
"https://backend.valuor.com.br/api/mdfe/8/cancelar" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"justificativa\": \"knebgnclq\"
}"
const url = new URL(
"https://backend.valuor.com.br/api/mdfe/8/cancelar"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"justificativa": "knebgnclq"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/mdfe/{mdfe_id}/encerrar
Example request:
curl --request POST \
"https://backend.valuor.com.br/api/mdfe/15/encerrar" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/mdfe/15/encerrar"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/mdfe/{mdfe_id}/damdfe
Example request:
curl --request GET \
--get "https://backend.valuor.com.br/api/mdfe/6/damdfe" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/mdfe/6/damdfe"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Tenant — Metas de Vendas
Metas mensais por vendedor (ou gerais da empresa) com acompanhamento do realizado, percentual de atingimento e projeção linear até o fim do mês.
GET api/metas
Example request:
curl --request GET \
--get "https://backend.valuor.com.br/api/metas" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/metas"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Resumo consolidado do mês corrente (para o painel).
Example request:
curl --request GET \
--get "https://backend.valuor.com.br/api/metas/resumo" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/metas/resumo"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/metas
Example request:
curl --request POST \
"https://backend.valuor.com.br/api/metas" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"empresa_id\": 11,
\"vendedor_id\": 11,
\"ano\": 18,
\"mes\": 11,
\"valor_meta\": 58
}"
const url = new URL(
"https://backend.valuor.com.br/api/metas"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"empresa_id": 11,
"vendedor_id": 11,
"ano": 18,
"mes": 11,
"valor_meta": 58
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
PUT api/metas/{meta_id}
Example request:
curl --request PUT \
"https://backend.valuor.com.br/api/metas/19" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"valor_meta\": 53
}"
const url = new URL(
"https://backend.valuor.com.br/api/metas/19"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"valor_meta": 53
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
DELETE api/metas/{meta_id}
Example request:
curl --request DELETE \
"https://backend.valuor.com.br/api/metas/17" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/metas/17"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Tenant — NF Destinadas (Manifesto do Destinatário)
Consulta notas fiscais emitidas CONTRA o CNPJ do tenant (compras), manifesta ciência/confirmação e permite dar entrada no estoque.
GET /nfe-destinadas — lista as notas destinadas já baixadas.
Example request:
curl --request GET \
--get "https://backend.valuor.com.br/api/nfe-destinadas" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/nfe-destinadas"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST /nfe-destinadas/buscar — consulta SEFAZ por novos documentos.
Example request:
curl --request POST \
"https://backend.valuor.com.br/api/nfe-destinadas/buscar" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/nfe-destinadas/buscar"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST /nfe-destinadas/manifestar — manifesta um documento.
Example request:
curl --request POST \
"https://backend.valuor.com.br/api/nfe-destinadas/manifestar" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"chave\": \"bftxpbjlhzkiovxrslbhugtqrpiimaahhwzjabgshcvc\",
\"evento\": \"3\",
\"justificativa\": \"ukkkztcrohgwzppcj\"
}"
const url = new URL(
"https://backend.valuor.com.br/api/nfe-destinadas/manifestar"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"chave": "bftxpbjlhzkiovxrslbhugtqrpiimaahhwzjabgshcvc",
"evento": "3",
"justificativa": "ukkkztcrohgwzppcj"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET /nfe-destinadas/{chave}/xml — baixa o XML do documento.
Example request:
curl --request GET \
--get "https://backend.valuor.com.br/api/nfe-destinadas/sed/xml" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/nfe-destinadas/sed/xml"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Tenant — PDV
Autoriza um desconto acima do limite do operador, mediante senha de um supervisor/gerente/admin (ou usuário com limite suficiente). Não troca a sessão.
Example request:
curl --request POST \
"https://backend.valuor.com.br/api/pdv/autorizar-desconto" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"identificador\": \"totam\",
\"senha\": \"sit\",
\"percentual\": 1
}"
const url = new URL(
"https://backend.valuor.com.br/api/pdv/autorizar-desconto"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"identificador": "totam",
"senha": "sit",
"percentual": 1
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Imprime o cupom de uma venda em impressora térmica ESC/POS via rede.
A impressora (IP/porta) vem das configurações da empresa (configuracoes.pdv_impressora_ip / pdv_impressora_porta).
Retorna { printed: false } (200) quando não há impressora configurada, para o PDV cair no cupom do navegador.
Example request:
curl --request POST \
"https://backend.valuor.com.br/api/pdv/imprimir-rede" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"venda_id\": 2
}"
const url = new URL(
"https://backend.valuor.com.br/api/pdv/imprimir-rede"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"venda_id": 2
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Retorna os bytes ESC/POS do cupom em base64, para impressão no navegador via QZ Tray (cenário nuvem → impressora na rede local).
Example request:
curl --request POST \
"https://backend.valuor.com.br/api/pdv/cupom-escpos" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"venda_id\": 32
}"
const url = new URL(
"https://backend.valuor.com.br/api/pdv/cupom-escpos"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"venda_id": 32
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Tenant — PIX (recebimento)
Webhook do provedor (sem auth; tenant resolvido pelo domínio).
Example request:
curl --request POST \
"https://backend.valuor.com.br/api/pix/webhook/est" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/pix/webhook/est"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Configuração atual do PIX (admin).
Example request:
curl --request GET \
--get "https://backend.valuor.com.br/api/pix/config" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/pix/config"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Salva a configuração do PIX.
Example request:
curl --request PUT \
"https://backend.valuor.com.br/api/pix/config" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"provedor\": \"autem\",
\"ativo\": false,
\"sandbox\": false,
\"chave_pix\": \"svrzbppmmdcihc\",
\"expira_segundos\": 20
}"
const url = new URL(
"https://backend.valuor.com.br/api/pix/config"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"provedor": "autem",
"ativo": false,
"sandbox": false,
"chave_pix": "svrzbppmmdcihc",
"expira_segundos": 20
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Cria uma cobrança PIX (QR dinâmico).
Example request:
curl --request POST \
"https://backend.valuor.com.br/api/pix/cobrancas" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"valor\": 50,
\"venda_id\": 12,
\"descricao\": \"rdubrmlxy\"
}"
const url = new URL(
"https://backend.valuor.com.br/api/pix/cobrancas"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"valor": 50,
"venda_id": 12,
"descricao": "rdubrmlxy"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Consulta/atualiza o status de uma cobrança (polling do PDV).
Example request:
curl --request GET \
--get "https://backend.valuor.com.br/api/pix/cobrancas/11" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/pix/cobrancas/11"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Tenant — Produtos (Perfil 360°)
Endpoints de agregação para o perfil 360° do produto: entradas (compras), saídas (vendas), documentos fiscais (NF-e/NFC-e) e indicadores consolidados. Todos aceitam ?empresa_id= para escopar as saídas por empresa (omitir = todas).
Curva ABC — classificação de produtos por faturamento.
A = até 80% do faturamento acumulado · B = 80–95% · C = 95–100%.
Example request:
curl --request GET \
--get "https://backend.valuor.com.br/api/produtos/curva-abc?meses=12&empresa_id=1" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/produtos/curva-abc"
);
const params = {
"meses": "12",
"empresa_id": "1",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Alerta de reposição — cruza classe ABC × cobertura de estoque.
Para cada produto com saída no período calcula o consumo diário, os dias de cobertura do estoque atual e uma sugestão de compra para atingir a cobertura-alvo (definida por classe: A mais dias, C menos). Prioriza A com baixa cobertura.
Example request:
curl --request GET \
--get "https://backend.valuor.com.br/api/produtos/reposicao?meses=6&empresa_id=1&classe=A&status=critico&apenas_alerta=1" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/produtos/reposicao"
);
const params = {
"meses": "6",
"empresa_id": "1",
"classe": "A",
"status": "critico",
"apenas_alerta": "1",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/produtos/{produto_id}/perfil
Example request:
curl --request GET \
--get "https://backend.valuor.com.br/api/produtos/9/perfil" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/produtos/9/perfil"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Saldo do produto por depósito.
Example request:
curl --request GET \
--get "https://backend.valuor.com.br/api/produtos/1/saldos" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/produtos/1/saldos"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Saídas — itens de venda deste produto.
Example request:
curl --request GET \
--get "https://backend.valuor.com.br/api/produtos/17/vendas" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/produtos/17/vendas"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Entradas — itens de compra deste produto.
Example request:
curl --request GET \
--get "https://backend.valuor.com.br/api/produtos/9/compras" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/produtos/9/compras"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Documentos fiscais (NF-e e NFC-e) que contêm o produto.
Example request:
curl --request GET \
--get "https://backend.valuor.com.br/api/produtos/17/fiscal" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/produtos/17/fiscal"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Tenant — Quick Search
Busca global em paralelo nas entidades mais consultadas. Usada pelo Cmd+K da interface — devolve até 5 resultados por entidade, com URL de destino.
GET /quick-search?q=texto&limit=5
Example request:
curl --request GET \
--get "https://backend.valuor.com.br/api/quick-search" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/quick-search"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Tenant — Relatórios (exportação)
Exporta os relatórios existentes em CSV (Excel) ou PDF, reaproveitando a mesma lógica/filtros do RelatorioController. Ex.: GET /relatorios/vendas/export?formato=csv
GET api/relatorios/{tipo}/export
Example request:
curl --request GET \
--get "https://backend.valuor.com.br/api/relatorios/incidunt/export" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/relatorios/incidunt/export"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Tenant — Tags (clientes)
GET api/tags
POST api/tags
GET api/tags/{id}
PUT api/tags/{id}
DELETE api/tags/{id}
Tenant — Transportadora
Parceiros de transporte: tomador de serviço, destinatário e remetente.
Filtrados/segmentados pelo campo papel.
GET api/transportadores
Example request:
curl --request GET \
--get "https://backend.valuor.com.br/api/transportadores" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/transportadores"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/transportadores
Example request:
curl --request POST \
"https://backend.valuor.com.br/api/transportadores" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/transportadores"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
PUT api/transportadores/{transportador_id}
Example request:
curl --request PUT \
"https://backend.valuor.com.br/api/transportadores/13" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/transportadores/13"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "PUT",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
DELETE api/transportadores/{transportador_id}
Example request:
curl --request DELETE \
"https://backend.valuor.com.br/api/transportadores/4" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/transportadores/4"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/veiculos
Example request:
curl --request GET \
--get "https://backend.valuor.com.br/api/veiculos" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/veiculos"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/veiculos
Example request:
curl --request POST \
"https://backend.valuor.com.br/api/veiculos" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/veiculos"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
PUT api/veiculos/{id}
Example request:
curl --request PUT \
"https://backend.valuor.com.br/api/veiculos/3" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/veiculos/3"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "PUT",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
DELETE api/veiculos/{id}
Example request:
curl --request DELETE \
"https://backend.valuor.com.br/api/veiculos/3" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/veiculos/3"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/parceiros-transporte
Example request:
curl --request GET \
--get "https://backend.valuor.com.br/api/parceiros-transporte" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/parceiros-transporte"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/parceiros-transporte
Example request:
curl --request POST \
"https://backend.valuor.com.br/api/parceiros-transporte" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/parceiros-transporte"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
PUT api/parceiros-transporte/{parceiro_id}
Example request:
curl --request PUT \
"https://backend.valuor.com.br/api/parceiros-transporte/19" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/parceiros-transporte/19"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "PUT",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
DELETE api/parceiros-transporte/{parceiro_id}
Example request:
curl --request DELETE \
"https://backend.valuor.com.br/api/parceiros-transporte/20" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/parceiros-transporte/20"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Tenant — Valuor Shopping
Carrinho do cliente (scan & go): cria sessão ao ler o QR da loja, adiciona/ remove itens escaneados, finaliza e importa no caixa (gera Venda).
Obs.: enquanto o app do consumidor não existe, estes endpoints rodam sob a autenticação do tenant. Quando o app for criado, a criação de sessão/itens ganhará um guard de cliente-consumidor próprio.
POST api/shopping/app/sessao
Example request:
curl --request POST \
"https://backend.valuor.com.br/api/shopping/app/sessao" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"empresa_id\": 8,
\"cliente_id\": 8,
\"origem\": \"app\"
}"
const url = new URL(
"https://backend.valuor.com.br/api/shopping/app/sessao"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"empresa_id": 8,
"cliente_id": 8,
"origem": "app"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/shopping/app/{token}
Example request:
curl --request GET \
--get "https://backend.valuor.com.br/api/shopping/app/recusandae" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/shopping/app/recusandae"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/shopping/app/{token}/itens
Example request:
curl --request POST \
"https://backend.valuor.com.br/api/shopping/app/veniam/itens" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"produto_id\": 15,
\"codigo_barras\": \"kctulrte\",
\"quantidade\": 21
}"
const url = new URL(
"https://backend.valuor.com.br/api/shopping/app/veniam/itens"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"produto_id": 15,
"codigo_barras": "kctulrte",
"quantidade": 21
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
DELETE api/shopping/app/{token}/itens/{item}
Example request:
curl --request DELETE \
"https://backend.valuor.com.br/api/shopping/app/aut/itens/voluptatibus" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/shopping/app/aut/itens/voluptatibus"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Identificação do consumidor por CPF (F3). Vincula/cria o cliente e o associa ao carrinho — habilita pontos de fidelidade na venda gerada.
Example request:
curl --request POST \
"https://backend.valuor.com.br/api/shopping/app/hic/identificar" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"cpf\": \"lukzlgoglztuuy\",
\"nome\": \"wzlkxmmjktfmlcf\"
}"
const url = new URL(
"https://backend.valuor.com.br/api/shopping/app/hic/identificar"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"cpf": "lukzlgoglztuuy",
"nome": "wzlkxmmjktfmlcf"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Histórico de compras do consumidor identificado no carrinho (F3).
Atrelado a uma sessão ativa (token) para evitar enumeração por CPF.
Example request:
curl --request GET \
--get "https://backend.valuor.com.br/api/shopping/app/quibusdam/historico" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/shopping/app/quibusdam/historico"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Lista os favoritos do consumidor identificado (F4).
Example request:
curl --request GET \
--get "https://backend.valuor.com.br/api/shopping/app/distinctio/favoritos" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/shopping/app/distinctio/favoritos"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Liga/desliga um produto dos favoritos do consumidor (F4).
Example request:
curl --request POST \
"https://backend.valuor.com.br/api/shopping/app/molestiae/favoritos" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"produto_id\": 19
}"
const url = new URL(
"https://backend.valuor.com.br/api/shopping/app/molestiae/favoritos"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"produto_id": 19
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Catálogo da loja (F4): lista produtos disponíveis para navegar/buscar sem escanear. Paginado e com filtro `busca` (nome ou código de barras).
Example request:
curl --request GET \
--get "https://backend.valuor.com.br/api/shopping/app/ut/catalogo" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"busca\": \"ohorg\",
\"page\": 23
}"
const url = new URL(
"https://backend.valuor.com.br/api/shopping/app/ut/catalogo"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"busca": "ohorg",
"page": 23
};
fetch(url, {
method: "GET",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Ficha do produto (F4) — campos gated pela config `exibir` da empresa.
Example request:
curl --request GET \
--get "https://backend.valuor.com.br/api/shopping/app/voluptatem/produto/nesciunt" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/shopping/app/voluptatem/produto/nesciunt"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Define os pontos de cashback a resgatar nesta compra (F4). `pontos=0` cancela.
A baixa dos pontos ocorre só na importação no caixa.
Example request:
curl --request POST \
"https://backend.valuor.com.br/api/shopping/app/aut/resgatar" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"pontos\": 69
}"
const url = new URL(
"https://backend.valuor.com.br/api/shopping/app/aut/resgatar"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"pontos": 69
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/shopping/app/{token}/finalizar
Example request:
curl --request POST \
"https://backend.valuor.com.br/api/shopping/app/consequatur/finalizar" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/shopping/app/consequatur/finalizar"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Parâmetros do Valuor Shopping da empresa (para a tela de gestão).
Example request:
curl --request GET \
--get "https://backend.valuor.com.br/api/shopping/config/delectus" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/shopping/config/delectus"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Atualiza (merge) os parâmetros do Shopping em configuracoes['shopping'].
Example request:
curl --request PUT \
"https://backend.valuor.com.br/api/shopping/config/nisi" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"expiracao_minutos\": 1,
\"divergencia\": \"autorizar\"
}"
const url = new URL(
"https://backend.valuor.com.br/api/shopping/config/nisi"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"expiracao_minutos": 1,
"divergencia": "autorizar"
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/shopping/promocoes
Example request:
curl --request GET \
--get "https://backend.valuor.com.br/api/shopping/promocoes" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/shopping/promocoes"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/shopping/promocoes
Example request:
curl --request POST \
"https://backend.valuor.com.br/api/shopping/promocoes" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/shopping/promocoes"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
PUT api/shopping/promocoes/{promocao_id}
Example request:
curl --request PUT \
"https://backend.valuor.com.br/api/shopping/promocoes/11" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/shopping/promocoes/11"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "PUT",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
DELETE api/shopping/promocoes/{promocao_id}
Example request:
curl --request DELETE \
"https://backend.valuor.com.br/api/shopping/promocoes/8" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/shopping/promocoes/8"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Monitor de carrinhos da loja (gestão/caixa).
Example request:
curl --request GET \
--get "https://backend.valuor.com.br/api/shopping/carrinhos" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"empresa_id\": 19,
\"status\": \"psybocp\"
}"
const url = new URL(
"https://backend.valuor.com.br/api/shopping/carrinhos"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"empresa_id": 19,
"status": "psybocp"
};
fetch(url, {
method: "GET",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Métricas de gestão da loja (Valuor Shopping): conversão, faturamento, ticket médio e carrinhos ativos agora. Período em dias (padrão: hoje).
Example request:
curl --request GET \
--get "https://backend.valuor.com.br/api/shopping/metricas" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"empresa_id\": 4,
\"dias\": 2
}"
const url = new URL(
"https://backend.valuor.com.br/api/shopping/metricas"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"empresa_id": 4,
"dias": 2
};
fetch(url, {
method: "GET",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Payload do QR da loja — exibido/impresso pela loja; o app do consumidor lê para iniciar a sessão de carrinho. A "loja" é a empresa (matriz/filial).
Example request:
curl --request GET \
--get "https://backend.valuor.com.br/api/shopping/loja-qr/sit" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/shopping/loja-qr/sit"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/shopping/sessao
Example request:
curl --request POST \
"https://backend.valuor.com.br/api/shopping/sessao" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"empresa_id\": 8,
\"cliente_id\": 19,
\"origem\": \"app\"
}"
const url = new URL(
"https://backend.valuor.com.br/api/shopping/sessao"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"empresa_id": 8,
"cliente_id": 19,
"origem": "app"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/shopping/sessao/{token}
Example request:
curl --request GET \
--get "https://backend.valuor.com.br/api/shopping/sessao/nihil" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/shopping/sessao/nihil"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/shopping/sessao/{token}/itens
Example request:
curl --request POST \
"https://backend.valuor.com.br/api/shopping/sessao/quasi/itens" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"produto_id\": 18,
\"codigo_barras\": \"eqpydrc\",
\"quantidade\": 46
}"
const url = new URL(
"https://backend.valuor.com.br/api/shopping/sessao/quasi/itens"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"produto_id": 18,
"codigo_barras": "eqpydrc",
"quantidade": 46
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
DELETE api/shopping/sessao/{token}/itens/{item}
Example request:
curl --request DELETE \
"https://backend.valuor.com.br/api/shopping/sessao/mollitia/itens/officia" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/shopping/sessao/mollitia/itens/officia"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/shopping/sessao/{token}/itens/{item}/pesar
Example request:
curl --request POST \
"https://backend.valuor.com.br/api/shopping/sessao/a/itens/veritatis/pesar" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"quantidade\": 68
}"
const url = new URL(
"https://backend.valuor.com.br/api/shopping/sessao/a/itens/veritatis/pesar"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"quantidade": 68
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/shopping/sessao/{token}/conferir
Example request:
curl --request POST \
"https://backend.valuor.com.br/api/shopping/sessao/illo/conferir" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"itens\": [
{
\"produto_id\": 13,
\"codigo_barras\": \"wuswxpjjvpgwvieacxu\",
\"quantidade\": 83
}
]
}"
const url = new URL(
"https://backend.valuor.com.br/api/shopping/sessao/illo/conferir"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"itens": [
{
"produto_id": 13,
"codigo_barras": "wuswxpjjvpgwvieacxu",
"quantidade": 83
}
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/shopping/sessao/{token}/finalizar
Example request:
curl --request POST \
"https://backend.valuor.com.br/api/shopping/sessao/omnis/finalizar" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/shopping/sessao/omnis/finalizar"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/shopping/sessao/{token}/cancelar
Example request:
curl --request POST \
"https://backend.valuor.com.br/api/shopping/sessao/sed/cancelar" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/shopping/sessao/sed/cancelar"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/shopping/sessao/{token}/importar
Example request:
curl --request POST \
"https://backend.valuor.com.br/api/shopping/sessao/dolores/importar" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://backend.valuor.com.br/api/shopping/sessao/dolores/importar"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.