Skip to content

Get Invoice

Required scope: invoice:read

Returns the invoice drafted for one order revision on a given accounting integration. integrationId identifies a connected accounting integration and expectedOrderVersion is the order revision the invoice was drafted for. Line amounts are integer minor currency units.

Generated Reference
POST /public-api/publicapi.v1.Invoice/GetInvoice

Returns the provider draft for an immutable order revision. Keyed by order and integration, not by invoice ID.

Request GetInvoiceRequest
Response GetInvoiceResponse

GetInvoiceRequest

Field Type Description
order_id string Order whose invoice to fetch.
integration_id string Accounting integration that owns the invoice.
expected_order_version int32 Order revision the invoice was drafted for.

GetInvoiceResponse

Field Type Description
invoice Invoice The requested invoice.
{
"orderId": "<order-id>",
"integrationId": "<accounting-integration-id>",
"expectedOrderVersion": 2
}
{
"invoice": {
"id": "<invoice-id>",
"orderId": "<order-id>",
"status": "PUBLIC_INVOICE_STATUS_DRAFT",
"currency": "EUR",
"invoiceDate": "1737936000",
"dueDate": "1740528000",
"lines": [
{ "description": "Solar panel", "quantity": 8, "unitPriceMinor": "18900", "vatRate": 0.21 }
]
}
}