Create
Gera um relatório com os parâmetros indicados.
Gerar Relatório
POST https://api.cloudinvoice.net/reports/csv/:code/new/
Path Parameters
Name
Type
Description
Request Body
Os valores de input são variáveis, consoante o código do relatório pedido.
Fazer um pedido ao endpoint pretendido em GET fornece instruções dos campos e valores que poderá utilizar em cada caso.
curl -X POST https://api.cloudinvoice.net/reports/csv/monthly_invoicing_totals/new/
-d '{
"year": "2026"
}'{
"id": 200102,
"code": "monthly_invoicing_totals",
"title": "Facturação Mensal",
"report_title": "Relatorio De Faturação Mensal",
"fields": {
"location_id": {
"label": "Localização",
"help_text": "",
"required": false,
"disabled": false,
"initial": null,
"choices": [
{
"value": 1,
"text": "Localização 1"
}
]
},
"year": {
"label": "Ano",
"help_text": "",
"required": true,
"disabled": false,
"initial": "2026",
"choices": [
{
"value": 2024,
"text": "2024"
},
{
"value": 2025,
"text": "2025"
},
{
"value": 2026,
"text": "2026"
}
]
},
"document_serie_id": {
"label": "Série de Documentos",
"help_text": "",
"required": false,
"disabled": false,
"initial": null,
"choices": [
{
"value": 1,
"text": "A01 - Série A01"
}
]
}
}
}Para ver exemplos de pedidos nas várias linguagens, consulte a página Exemplos de Pedidos.
Last updated