Qargo Use case / E-invoicing API
Required api role: not applicable Purpose: This interface allows an external party to send e-invoices in a structured format. A [webhook](/docs/use-case-e-invoicing/e-invoicing-webhook) can be used to send e-invoices to Qargo. The e-invoice can either be a **purchase invoice** or a **purchase credit note**. ### Supported formats | Format | Content-Type | Notes | |--------|-------------|-------| | JSON | `application/json` | Qargo's own purchase invoice/credit note schema | | XML (UBL) | `application/xml` | Peppol-compliant UBL documents | | Multipart | `multipart/form-data` | JSON invoice data + supporting document files (PDF, XML, etc.) | ### Attachments Attachments (e.g. invoice PDF, CMR, proof of delivery) can be included in two ways: - **In JSON payloads**: Use the `attachments` array, where each item contains a `document` object with `base64`, `content_type`, `document_type`, and `filename` fields. - **In multipart uploads**: Send the JSON invoice data as the first part, followed by file attachments as additional parts. See the [e-invoicing webhook endpoint](/docs/use-case-e-invoicing/e-invoicing-webhook) for detailed examples of all formats and attachment handling.