API para gerenciamento de dados do ERP Conta Azul Pro
API para gerenciamento de dados do ERP Conta Azul Pro
curl -i -X GET \
'https://developers.contaazul.com/_mock/openapi/v1/servico?busca_textual=string&pagina=1&tamanho_pagina=10' \
-H 'Authorization: YOUR_API_KEY_HERE'
{ "itens_totais": 100, "itens": [ { … } ] }
curl -i -X POST \
https://developers.contaazul.com/_mock/openapi/v1/servico \
-H 'Authorization: YOUR_API_KEY_HERE' \
-H 'Content-Type: application/json' \
-d '{
"id": "123e4567-e89b-12d3-a456-426614174000",
"id_servico": 1,
"nome": "Serviço de Consultoria",
"codigo": "CONSULT01",
"descricao": "Serviço de consultoria empresarial",
"preco": 1500,
"custo": 1000,
"status": "DISABLED",
"tipo_servico": "PROVIDED"
}'
{ "id": "123e4567-e89b-12d3-a456-426614174000", "id_servico": 1, "nome": "Serviço de Consultoria", "codigo": "CONSULT01", "descricao": "Serviço de consultoria empresarial", "preco": 1500, "custo": 1000, "status": "DISABLED", "tipo_servico": "PROVIDED" }
curl -i -X GET \
'https://developers.contaazul.com/_mock/openapi/v1/servico/{uuid}' \
-H 'Authorization: YOUR_API_KEY_HERE'
{ "id": "123e4567-e89b-12d3-a456-426614174000", "id_servico": 1, "nome": "Serviço de Consultoria", "codigo": "CONSULT01", "descricao": "Serviço de consultoria empresarial", "preco": 1500, "custo": 1000, "status": "DISABLED", "tipo_servico": "PROVIDED" }
curl -i -X DELETE \
https://developers.contaazul.com/_mock/openapi/v1/servico/exclusao-lote \
-H 'Authorization: YOUR_API_KEY_HERE' \
-H 'Content-Type: application/json' \
-d '[
0
]'