Reference
Invoice sources
GET/api/v1/invoice-sourcesList invoice sources
What can be invoiced now: for an order, or every active order, the contract charges that are due (each with the key create_invoice_draft takes) and the issued service reports not yet invoiced. finance.manage only.scope invoices
Query
| order | stringAn order's id or number, e.g. "AB-2026-0007". Omit for every active order. |
Response 200
| items[] | object[] |
| items[].order | object |
| items[].order.id | string |
| items[].order.number | string |
| items[].order.customer | string |
| items[].due[] | object[] |
| items[].due[].key | string |
| items[].due[].name | string |
| items[].due[].period_from | string |
| items[].due[].period_to | string |
| items[].due[].quantity | string |
| items[].due[].unit | string |
| items[].due[].net_cents | integer |
| items[].problemoptional | string | null |
| items[].service_reports[] | object[] |
| items[].service_reports[].id | string |
| items[].service_reports[].number | string |
| items[].service_reports[].period_from | string |
| items[].service_reports[].period_to | string |
| items[].service_reports[].amount_cents | integer |
| date | string |
Schema
{
"type": "object",
"properties": {
"items": {
"type": "array",
"items": {
"type": "object",
"properties": {
"order": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"number": {
"type": "string"
},
"customer": {
"type": "string"
}
},
"required": [
"id",
"number",
"customer"
],
"additionalProperties": false
},
"due": {
"type": "array",
"items": {
"type": "object",
"properties": {
"key": {
"type": "string"
},
"name": {
"type": "string"
},
"period_from": {
"type": "string"
},
"period_to": {
"type": "string"
},
"quantity": {
"type": "string"
},
"unit": {
"type": "string"
},
"net_cents": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
}
},
"required": [
"key",
"name",
"period_from",
"period_to",
"quantity",
"unit",
"net_cents"
],
"additionalProperties": false
}
},
"problem": {
"type": [
"string",
"null"
]
},
"service_reports": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"number": {
"type": "string"
},
"period_from": {
"type": "string"
},
"period_to": {
"type": "string"
},
"amount_cents": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
}
},
"required": [
"id",
"number",
"period_from",
"period_to",
"amount_cents"
],
"additionalProperties": false
}
}
},
"required": [
"order",
"due",
"service_reports"
],
"additionalProperties": false
}
},
"date": {
"type": "string"
}
},
"required": [
"items",
"date"
],
"additionalProperties": false
}Refusals are problems with a code — see Errors.