MENU navbar-image

INTRODUÇÃO

API para integração de dados com o sistema ERP Prodesys

This documentation aims to provide all the information you need to work with our API.

Base URL

https://api.prodesys.com.br

1. Ping

GET api/ping

Example request:
curl --request GET \
    --get "https://api.prodesys.com.br/api/ping" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.prodesys.com.br/api/ping"
);

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
x-ratelimit-limit: 60
x-ratelimit-remaining: 59
access-control-allow-origin: *
 

{
    "pong": true
}
 

Request      

GET api/ping

2. Autenticação

POST api/login

Example request:
curl --request POST \
    "https://api.prodesys.com.br/api/login" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"email\": \"numquam\",
    \"password\": \"non\"
}"
const url = new URL(
    "https://api.prodesys.com.br/api/login"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "email": "numquam",
    "password": "non"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (200, Operation successful):


{
    "token": "2|AYocaOcQ1jFcEkVfj0mMRuG25E0eXtGM1QtmtnCb"
}
 

Request      

POST api/login

Body Parameters

email  string  

password  string  

Quando concluído com sucesso o login irá retornar um token de acesso. Este token deverá ser informado para os métodos que requerem autenticação

Logout do Usuario

Example request:
curl --request POST \
    "https://api.prodesys.com.br/api/logout" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.prodesys.com.br/api/logout"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());

Request      

POST api/logout

3. Produtos

GET api/produtos

requires authentication

Example request:
curl --request GET \
    --get "https://api.prodesys.com.br/api/produtos" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.prodesys.com.br/api/produtos"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200, Operation successful):


[
    {
        "id": 1,
        "codigo": "1001.100.001",
        "descricao": "TUBO BASE",
        "un": "UN",
        "grupo": "PECA PRODUCAO INTERNA",
        "subgrupo": "TUBOS",
        "familia": "PULVERIZADOR",
        "percentual_ipi": "0.000",
        "ncm": 0,
        "created_at": "2022-08-22T17:34:10.000000Z",
        "updated_at": "2022-08-22T17:34:10.000000Z"
    },
    {
        "id": 2,
        "codigo": "1001.100.002",
        "descricao": "TUBO BASE 2 CM",
        "un": "UN",
        "grupo": "PECA PRODUCAO INTERNA",
        "subgrupo": "TUBOS",
        "familia": "PULVERIZADOR",
        "percentual_ipi": "0.000",
        "ncm": 0,
        "created_at": "2022-08-22T17:34:10.000000Z",
        "updated_at": "2022-08-22T17:34:10.000000Z"
    }
]
 

Example response (401, Invalid Token):


{
    "message": "Usuario nao esta logado"
}
 

Request      

GET api/produtos

GET api/produtos/{id}

requires authentication

Example request:
curl --request GET \
    --get "https://api.prodesys.com.br/api/produtos/20" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.prodesys.com.br/api/produtos/20"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200, Operation successful):


{
    "id": 51,
    "codigo": "1001.100.015",
    "descricao": "TUBO BASE",
    "un": "UN",
    "grupo": "PECA PRODUCAO INTERNA",
    "subgrupo": "TUBOS",
    "familia": "PULVERIZADOR",
    "percentual_ipi": "0.000",
    "ncm": 0,
    "created_at": "2022-08-22T17:34:10.000000Z",
    "updated_at": "2022-08-22T17:34:10.000000Z"
}
 

Request      

GET api/produtos/{id}

URL Parameters

id  integer  

The ID of the produto.

GET api/produtos/search/{name}

requires authentication

Example request:
curl --request GET \
    --get "https://api.prodesys.com.br/api/produtos/search/libero" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.prodesys.com.br/api/produtos/search/libero"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200, Operation successful):


{
    "id": 51,
    "codigo": "1001.100.015",
    "descricao": "TUBO BASE",
    "un": "UN",
    "grupo": "PECA PRODUCAO INTERNA",
    "subgrupo": "TUBOS",
    "familia": "PULVERIZADOR",
    "percentual_ipi": "0.000",
    "ncm": 0,
    "created_at": "2022-08-22T17:34:10.000000Z",
    "updated_at": "2022-08-22T17:34:10.000000Z"
}
 

Request      

GET api/produtos/search/{name}

URL Parameters

name  string  

GET api/produtos/searchcodigo/{codigo}

requires authentication

Example request:
curl --request GET \
    --get "https://api.prodesys.com.br/api/produtos/searchcodigo/odit" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.prodesys.com.br/api/produtos/searchcodigo/odit"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200, Operation successful):


{
    "id": 51,
    "codigo": "1001.100.015",
    "descricao": "TUBO BASE",
    "un": "UN",
    "grupo": "PECA PRODUCAO INTERNA",
    "subgrupo": "TUBOS",
    "familia": "PULVERIZADOR",
    "percentual_ipi": "0.000",
    "ncm": 0,
    "created_at": "2022-08-22T17:34:10.000000Z",
    "updated_at": "2022-08-22T17:34:10.000000Z"
}
 

Request      

GET api/produtos/searchcodigo/{codigo}

URL Parameters

codigo  string  

4. Representantes

GET api/representantes

requires authentication

Example request:
curl --request GET \
    --get "https://api.prodesys.com.br/api/representantes" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.prodesys.com.br/api/representantes"
);

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
access-control-allow-origin: *
 

{
    "message": "Unauthenticated."
}
 

Request      

GET api/representantes

GET api/representantes/{id}

requires authentication

Example request:
curl --request GET \
    --get "https://api.prodesys.com.br/api/representantes/6" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.prodesys.com.br/api/representantes/6"
);

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
access-control-allow-origin: *
 

{
    "message": "Unauthenticated."
}
 

Request      

GET api/representantes/{id}

URL Parameters

id  integer  

The ID of the representante.

GET api/representantes/search/{name}

requires authentication

Example request:
curl --request GET \
    --get "https://api.prodesys.com.br/api/representantes/search/quis" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.prodesys.com.br/api/representantes/search/quis"
);

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
access-control-allow-origin: *
 

{
    "message": "Unauthenticated."
}
 

Request      

GET api/representantes/search/{name}

URL Parameters

name  string  

5. Clientes

GET api/clientes

requires authentication

Example request:
curl --request GET \
    --get "https://api.prodesys.com.br/api/clientes" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.prodesys.com.br/api/clientes"
);

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
access-control-allow-origin: *
 

{
    "message": "Unauthenticated."
}
 

Request      

GET api/clientes

GET api/clientes/{id}

requires authentication

Example request:
curl --request GET \
    --get "https://api.prodesys.com.br/api/clientes/4" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.prodesys.com.br/api/clientes/4"
);

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
access-control-allow-origin: *
 

{
    "message": "Unauthenticated."
}
 

Request      

GET api/clientes/{id}

URL Parameters

id  integer  

The ID of the cliente.

GET api/clientes/search/{name}

requires authentication

Example request:
curl --request GET \
    --get "https://api.prodesys.com.br/api/clientes/search/explicabo" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.prodesys.com.br/api/clientes/search/explicabo"
);

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
access-control-allow-origin: *
 

{
    "message": "Unauthenticated."
}
 

Request      

GET api/clientes/search/{name}

URL Parameters

name  string  

POST api/clientes

requires authentication

Example request:
curl --request POST \
    "https://api.prodesys.com.br/api/clientes" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"nome\": \"EMPRESA 123\",
    \"pfj\": \"F (pessoa fisica) ou J (pessoa juridica)\",
    \"cnpj\": \"12.123.456\\/0001-01\",
    \"representante_id\": 5,
    \"uf\": \"RS\",
    \"endereco\": \"AV BRASIL 900\",
    \"bairro\": \"CENTRO\",
    \"ie\": \"091\\/1234578\",
    \"cep\": 99010220,
    \"municipio\": \"PASSO FUNDO\",
    \"pais\": \"BRASIL\",
    \"email\": \"empresa123@teste.com.br\",
    \"fone\": \"54 3300-000\",
    \"celular\": \"54 99999-9999\"
}"
const url = new URL(
    "https://api.prodesys.com.br/api/clientes"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "nome": "EMPRESA 123",
    "pfj": "F (pessoa fisica) ou J (pessoa juridica)",
    "cnpj": "12.123.456\/0001-01",
    "representante_id": 5,
    "uf": "RS",
    "endereco": "AV BRASIL 900",
    "bairro": "CENTRO",
    "ie": "091\/1234578",
    "cep": 99010220,
    "municipio": "PASSO FUNDO",
    "pais": "BRASIL",
    "email": "empresa123@teste.com.br",
    "fone": "54 3300-000",
    "celular": "54 99999-9999"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (200, Operation successful):


{
    "nome": "EMPRESA 123 LTDA",
    "pfj": "J",
    "cnpj": "90.123.456/0001-01",
    "email": "empresa123@teste.com.br",
    "endereco": "AV BRASIL 900",
    "bairro": "CENTRO",
    "uf": "RS",
    "pais": "BRASIL",
    "cep": "99010220",
    "fone": "54 3300-000",
    "celular": "54 99999-9999",
    "updated_at": "2022-09-02T19:15:27.000000Z",
    "created_at": "2022-09-02T19:15:27.000000Z",
    "id": 6613
}
 

Example response (422, Validation Error):


{
    "message": "The given data was invalid.",
    "errors": {
        "nome": [
            "The nome field is required."
        ]
    }
}
 

Request      

POST api/clientes

Body Parameters

codigo  string optional  

nome  string  

pfj  string  

cnpj  string  

representante_id  integer optional  

uf  string optional  

endereco  string optional  

bairro  string optional  

ie  string optional  

cep  integer optional  

municipio  string optional  

pais  string optional  

email  string optional  

fone  string optional  

celular  string optional  

GET api/clientes/searchcnpj/{cnpj}

requires authentication

Example request:
curl --request GET \
    --get "https://api.prodesys.com.br/api/clientes/searchcnpj/velit" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.prodesys.com.br/api/clientes/searchcnpj/velit"
);

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
access-control-allow-origin: *
 

{
    "message": "Unauthenticated."
}
 

Request      

GET api/clientes/searchcnpj/{cnpj}

URL Parameters

cnpj  string  

6. Condições de Pagamento

GET api/cond_pagamentos

requires authentication

Example request:
curl --request GET \
    --get "https://api.prodesys.com.br/api/cond_pagamentos" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.prodesys.com.br/api/cond_pagamentos"
);

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
access-control-allow-origin: *
 

{
    "message": "Unauthenticated."
}
 

Request      

GET api/cond_pagamentos

GET api/cond_pagamentos/{id}

requires authentication

Example request:
curl --request GET \
    --get "https://api.prodesys.com.br/api/cond_pagamentos/20" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.prodesys.com.br/api/cond_pagamentos/20"
);

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
access-control-allow-origin: *
 

{
    "message": "Unauthenticated."
}
 

Request      

GET api/cond_pagamentos/{id}

URL Parameters

id  integer  

The ID of the cond pagamento.

GET api/cond_pagamentos/search/{name}

requires authentication

Example request:
curl --request GET \
    --get "https://api.prodesys.com.br/api/cond_pagamentos/search/aspernatur" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.prodesys.com.br/api/cond_pagamentos/search/aspernatur"
);

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
access-control-allow-origin: *
 

{
    "message": "Unauthenticated."
}
 

Request      

GET api/cond_pagamentos/search/{name}

URL Parameters

name  string  

7. Pedidos

GET api/pedidos

requires authentication

Example request:
curl --request GET \
    --get "https://api.prodesys.com.br/api/pedidos" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.prodesys.com.br/api/pedidos"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200, Operation successful):


[
    {
        "id": 1,
        "data_emissao": "2022-08-17",
        "status": "LIBERADO",
        "cliente_id": 100,
        "representante_id": 1,
        "cond_pagamento_id": 3,
        "observacao": "observacao do novo pedido 3",
        "mensagem_importacao": null,
        "itens_pedido": [
            {
                "id": 1,
                "pedido_id": 1,
                "produto_id": 1,
                "codigo_produto": "0110.000.003",
                "quantidade": 2,
                "preco": "18.25"
            }
        ]
    }
]
 

Request      

GET api/pedidos

GET api/pedidos/{id}

requires authentication

Example request:
curl --request GET \
    --get "https://api.prodesys.com.br/api/pedidos/20" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.prodesys.com.br/api/pedidos/20"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200, Consultando uma id de pedido que já foi importado pelo ERP):


{
    "id": 2,
    "data_emissao": "2022-08-17",
    "status": "IMPORTADO",
    "cliente_id": 100,
    "representante_id": 1,
    "cond_pagamento_id": 3,
    "observacao": "observacao do novo pedido 3",
    "mensagem_importacao": "Pedido ERP: P -00000111",
    "created_at": "2022-08-18T13:40:16.000000Z",
    "updated_at": "2022-08-18T13:40:17.000000Z",
    "itens_pedido": [
        {
            "id": 3,
            "pedido_id": 2,
            "produto_id": 1,
            "codigo_produto": "0110.000.003",
            "created_at": "2022-08-18T13:40:16.000000Z",
            "updated_at": "2022-08-18T13:40:16.000000Z",
            "quantidade": 2,
            "preco": "18.25"
        },
        {
            "id": 4,
            "pedido_id": 2,
            "produto_id": 2,
            "codigo_produto": "0110.000.004",
            "created_at": "2022-08-18T13:40:16.000000Z",
            "updated_at": "2022-08-18T13:40:16.000000Z",
            "quantidade": 17,
            "preco": "101.93"
        }
    ]
}
 

Request      

GET api/pedidos/{id}

URL Parameters

id  integer  

The ID of the pedido.

POST api/pedidos

requires authentication

Example request:
curl --request POST \
    "https://api.prodesys.com.br/api/pedidos" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"data_emissao\": \"2025\\/06\\/16\",
    \"data_entrega\": \"2025\\/08\\/31\",
    \"status\": \"LIBERADO\",
    \"cliente_id\": 123,
    \"representante_id\": 4,
    \"cond_pagamento_id\": 1,
    \"observacao\": \"lwuwouunyrxrpbyhsezawilluswgytx\",
    \"tipo_frete\": \"et\",
    \"itens\": [
        {
            \"produto_id\": \"facilis\",
            \"quantidade\": 3049.2471958,
            \"preco\": 51483022.125698
        }
    ],
    \"parcelas\": [
        {
            \"valor\": 515
        }
    ],
    \"revenda_id\": 123,
    \"percentual_revenda\": 3.5
}"
const url = new URL(
    "https://api.prodesys.com.br/api/pedidos"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "data_emissao": "2025\/06\/16",
    "data_entrega": "2025\/08\/31",
    "status": "LIBERADO",
    "cliente_id": 123,
    "representante_id": 4,
    "cond_pagamento_id": 1,
    "observacao": "lwuwouunyrxrpbyhsezawilluswgytx",
    "tipo_frete": "et",
    "itens": [
        {
            "produto_id": "facilis",
            "quantidade": 3049.2471958,
            "preco": 51483022.125698
        }
    ],
    "parcelas": [
        {
            "valor": 515
        }
    ],
    "revenda_id": 123,
    "percentual_revenda": 3.5
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (200, Operation successful):


{
    "data_emissao": "2022/08/17",
    "status": "LIBERADO",
    "cliente_id": 100,
    "cond_pagamento_id": 3,
    "representante_id": 1,
    "observacao": "observacao do novo pedido 3",
    "updated_at": "2022-08-18T13:40:16.000000Z",
    "created_at": "2022-08-18T13:40:16.000000Z",
    "id": 2,
    "itens": [
        {
            "id": 3,
            "pedido_id": 2,
            "produto_id": 1,
            "codigo_produto": "0110.000.003",
            "created_at": "2022-08-18T13:40:16.000000Z",
            "updated_at": "2022-08-18T13:40:16.000000Z",
            "quantidade": 2,
            "preco": "18.25"
        },
        {
            "id": 4,
            "pedido_id": 2,
            "produto_id": 2,
            "codigo_produto": "0110.000.004",
            "created_at": "2022-08-18T13:40:16.000000Z",
            "updated_at": "2022-08-18T13:40:16.000000Z",
            "quantidade": 17,
            "preco": "101.93",
            "un": "KG"
        }
    ]
}
 

Example response (422, Validation Error):


{
    "message": "The given data was invalid.",
    "errors": {
        "itens.1.produto_id": [
            "The selected itens.1.produto_id is invalid."
        ]
    }
}
 

Request      

POST api/pedidos

Body Parameters

data_emissao  string  

data_entrega  string  

status  string  

cliente_id  integer  

representante_id  integer  

cond_pagamento_id  integer  

observacao  string optional  

Must not be greater than 500 characters.

tipo_frete  Example: optional  

P

itens  object  

itens[].produto_id  string  

itens[].quantidade  number  

itens[].preco  number  

parcelas  object optional  

parcelas[].valor  number optional  

revenda_id  integer optional  

percentual_revenda  number optional  

GET api/ocorrenciapedidos/pedido/{id}

requires authentication

Example request:
curl --request GET \
    --get "https://api.prodesys.com.br/api/ocorrenciapedidos/pedido/8" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.prodesys.com.br/api/ocorrenciapedidos/pedido/8"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200, Consultando Ocorrencias de um pedido):


{
    "id": 1,
    "pedido_id": 123,
    "data_hora": "2025-04-20T09:15:00",
    "info": "Pedido Faturado - NF 12345",
    "info_situacao": "",
    "info_documento": 12345
}
 

Request      

GET api/ocorrenciapedidos/pedido/{id}

URL Parameters

id  integer  

The ID of the pedido.

GET api/ocorrenciapedidos/data/{data}

requires authentication

Example request:
curl --request GET \
    --get "https://api.prodesys.com.br/api/ocorrenciapedidos/data/tempora" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.prodesys.com.br/api/ocorrenciapedidos/data/tempora"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200, Consultando Ocorrencias em uma data):


[
    {
        "id": 1,
        "pedido_id": 123,
        "data_hora": "2025-04-20T09:15:00",
        "info": "Pedido Faturado - NF 12345",
        "info_situacao": "",
        "info_documento": 12345
    },
    {
        "id": 2,
        "pedido_id": 124,
        "data_hora": "2025-04-20T14:45:00",
        "info": "Data Entrega alterada para 15/06/2025",
        "info_situacao": "",
        "info_documento": 0
    }
]
 

Request      

GET api/ocorrenciapedidos/data/{data}

URL Parameters

data  string  

The data.

8. Lista de Preco

POST api/listaprecos

requires authentication

Example request:
curl --request POST \
    "https://api.prodesys.com.br/api/listaprecos" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"precos\": [
        {
            \"produto_id\": \"ut\",
            \"lista\": 132139.204636502,
            \"preco\": 938.001426854
        }
    ],
    \"lista\": 1,
    \"produto_id\": 123,
    \"preco\": 1250.75
}"
const url = new URL(
    "https://api.prodesys.com.br/api/listaprecos"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "precos": [
        {
            "produto_id": "ut",
            "lista": 132139.204636502,
            "preco": 938.001426854
        }
    ],
    "lista": 1,
    "produto_id": 123,
    "preco": 1250.75
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (200, Operation successful):


{
    "id": 1,
    "lista": 999,
    "produto_id": 1,
    "preco": "251.35120"
}
 

Example response (422, Validation Error):


{
    "message": "The given data was invalid.",
    "errors": {
        "itens.1.produto_id": [
            "The selected itens.1.produto_id is invalid."
        ]
    }
}
 

Request      

POST api/listaprecos

Body Parameters

precos  object[] optional  

precos[].produto_id  string  

precos[].lista  number  

precos[].preco  number  

lista  integer  

produto_id  integer optional  

preco  number  

GET api/listaprecos

requires authentication

Example request:
curl --request GET \
    --get "https://api.prodesys.com.br/api/listaprecos" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.prodesys.com.br/api/listaprecos"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200, Operation successful):


[
    {
        "id": 1,
        "lista": 999,
        "produto_id": 1,
        "produto_erp": "0110.000.003",
        "preco": "251.35120",
        "created_at": "2024-12-06T12:18:13.000000Z",
        "updated_at": "2024-12-06T12:18:13.000000Z"
    }
]
 

Request      

GET api/listaprecos

GET api/listaprecos/{id}

requires authentication

Example request:
curl --request GET \
    --get "https://api.prodesys.com.br/api/listaprecos/8" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.prodesys.com.br/api/listaprecos/8"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200, Consultando uma id de um item da lista que já foi importado pelo ERP):


{
    "lista": 999,
    "produto_id": 1,
    "preco": 251.3512
}
 

Request      

GET api/listaprecos/{id}

URL Parameters

id  integer  

The ID of the listapreco.

9. Nota Fiscal

GET api/notafiscal/{id}

requires authentication

Example request:
curl --request GET \
    --get "https://api.prodesys.com.br/api/notafiscal/2" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.prodesys.com.br/api/notafiscal/2"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200, Operation successful):


{
    "id": 16965,
    "numero": 16965,
    "serie": "1",
    "data_emissao": "2025-01-10",
    "cliente_id": 3811,
    "operacao": "VENDA DE PRODUÇÃO",
    "representante_id": 46,
    "representante2_id": null,
    "observacao": "O EQUIPAMENTO DESCRITO NESTA NOTA FISCAL FOI FINANCIADO.",
    "numero_pedido": 14482,
    "chave_acesso": " ",
    "status": "emitida",
    "valor_total": "23000.00",
    "transportadora_id": 1313,
    "codigo_rastreio": "XX-12345678",
    "created_at": "2025-04-11T13:25:18.000000Z",
    "updated_at": "2025-04-11T13:25:18.000000Z",
    "itens": [
        {
            "id": 16965001,
            "nota_fiscal_id": 16965,
            "produto_id": 15674,
            "descricao": "GUINCHO BAG TRASEIRO 2500",
            "quantidade": "1.00000",
            "unidade": "UN",
            "valor_unitario": "23000.00",
            "valor_total": "23000.00",
            "cfop": "6.101",
            "aliquota_icms": "12.00",
            "valor_icms": "1609.91",
            "aliquota_ipi": "0.00",
            "valor_ipi": "0.00",
            "valor_st": "0.00",
            "desconto": "0.00",
            "created_at": "2025-04-11T13:25:18.000000Z",
            "updated_at": "2025-04-11T13:25:18.000000Z"
        }
    ]
}
 

Request      

GET api/notafiscal/{id}

URL Parameters

id  integer  

The ID of the notafiscal.

GET api/notafiscal/cliente/{id}

requires authentication

Example request:
curl --request GET \
    --get "https://api.prodesys.com.br/api/notafiscal/cliente/15" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.prodesys.com.br/api/notafiscal/cliente/15"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200, Operation successful):


[
    {
        "id": 16965,
        "numero": 16965,
        "serie": "1",
        "data_emissao": "2025-01-10",
        "cliente_id": 3811,
        "operacao": "VENDA DE PRODUÇÃO",
        "representante_id": 46,
        "representante2_id": null,
        "observacao": "O EQUIPAMENTO DESCRITO NESTA NOTA FISCAL FOI FINANCIADO.",
        "numero_pedido": 14482,
        "chave_acesso": " ",
        "status": "emitida",
        "valor_total": "23000.00",
        "transportadora_id": 1313,
        "codigo_rastreio": "XX-12345678",
        "created_at": "2025-04-11T13:25:18.000000Z",
        "updated_at": "2025-04-11T13:25:18.000000Z",
        "itens": [
            {
                "id": 16965001,
                "nota_fiscal_id": 16965,
                "produto_id": 15674,
                "descricao": "GUINCHO BAG TRASEIRO 2500",
                "quantidade": "1.00000",
                "unidade": "UN",
                "valor_unitario": "23000.00",
                "valor_total": "23000.00",
                "cfop": "6.101",
                "aliquota_icms": "12.00",
                "valor_icms": "1609.91",
                "aliquota_ipi": "0.00",
                "valor_ipi": "0.00",
                "valor_st": "0.00",
                "desconto": "0.00",
                "created_at": "2025-04-11T13:25:18.000000Z",
                "updated_at": "2025-04-11T13:25:18.000000Z"
            }
        ]
    }
]
 

Request      

GET api/notafiscal/cliente/{id}

URL Parameters

id  integer  

The ID of the cliente.

10. Faturas

GET api/faturasaberto

requires authentication

Example request:
curl --request GET \
    --get "https://api.prodesys.com.br/api/faturasaberto" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.prodesys.com.br/api/faturasaberto"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200, Consultando Faturas em Aberto):


[
    {
        "id": 11,
        "fatura": "E1016997-01",
        "parcela": 1,
        "cliente_id": 4147,
        "nota_fiscal": 16997,
        "serie": "1",
        "data_emissao": "2025-01-20",
        "data_vencimento": "2025-02-15",
        "data_pagamento": null,
        "observacao": " ",
        "cod_barras_boleto": "00192999300169750000000001905970000001267017",
        "status": "aberto",
        "valor_total": "169750.00",
        "valor_pago": "0.00",
        "created_at": "2025-04-23T17:39:25.000000Z",
        "updated_at": "2025-04-23T17:39:25.000000Z"
    }
]
 

Request      

GET api/faturasaberto

GET api/faturascliente/{id}

requires authentication

Example request:
curl --request GET \
    --get "https://api.prodesys.com.br/api/faturascliente/consequuntur" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.prodesys.com.br/api/faturascliente/consequuntur"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200, Consultando Faturas de um Cliente):


[
    {
        "id": 11,
        "fatura": "E1016997-01",
        "parcela": 1,
        "cliente_id": 4147,
        "nota_fiscal": 16997,
        "serie": "1",
        "data_emissao": "2025-01-20",
        "data_vencimento": "2025-02-15",
        "data_pagamento": null,
        "observacao": " ",
        "cod_barras_boleto": "00192999300169750000000001905970000001267017",
        "status": "aberto",
        "valor_total": "169750.00",
        "valor_pago": "0.00",
        "created_at": "2025-04-23T17:39:25.000000Z",
        "updated_at": "2025-04-23T17:39:25.000000Z"
    }
]
 

Request      

GET api/faturascliente/{id}

URL Parameters

id  string  

The ID of the faturascliente.

GET api/faturasnf/{id}

requires authentication

Example request:
curl --request GET \
    --get "https://api.prodesys.com.br/api/faturasnf/aspernatur" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.prodesys.com.br/api/faturasnf/aspernatur"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200, Consultando Faturas de uma Nota Fiscal):


[
    {
        "id": 11,
        "fatura": "E1016997-01",
        "parcela": 1,
        "cliente_id": 4147,
        "nota_fiscal": 16997,
        "serie": "1",
        "data_emissao": "2025-01-20",
        "data_vencimento": "2025-02-15",
        "data_pagamento": null,
        "observacao": " ",
        "cod_barras_boleto": "00192999300169750000000001905970000001267017",
        "status": "aberto",
        "valor_total": "169750.00",
        "valor_pago": "0.00",
        "created_at": "2025-04-23T17:39:25.000000Z",
        "updated_at": "2025-04-23T17:39:25.000000Z"
    }
]
 

Request      

GET api/faturasnf/{id}

URL Parameters

id  string  

The ID of the faturasnf.

11. Transportadoras

GET api/transportadoras

requires authentication

Example request:
curl --request GET \
    --get "https://api.prodesys.com.br/api/transportadoras" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.prodesys.com.br/api/transportadoras"
);

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
access-control-allow-origin: *
 

{
    "message": "Unauthenticated."
}
 

Request      

GET api/transportadoras