Import UBL XML
POST /invoices/import-xml
Import an invoice from a raw UBL XML document. Send the XML as the raw request body with Content-Type: application/xml. The UBL version (2.0, 2.1, or BIS 3.0) is auto-detected. The invoice is created in draft state. Requires the invoice:create scope.
Authorizations
Section titled “Authorizations ”Responses
Section titled “ Responses ”Invoice imported successfully.
object
object
Unique invoice identifier (UUID).
UUID of the company that owns this invoice.
UUID of the user who created the invoice, if applicable.
Current workflow state: draft, approved, sending, sent, delivered, failed, or cancelled.
Invoice direction: outgoing (sent by company) or incoming (received).
Invoice total amount in cents.
ISO 4217 currency code (e.g. EUR, USD).
UBL specification version used (2.1, 2.2, or 2.3).
Full invoice data in structured UBL JSON format (header, seller, buyer, items, totals, etc.).
Delivery network used: peppol, ksef, or email.
UUID of the business entity (seller identity) used for this invoice.
UUID of the address book contact this invoice was issued to, if any.
UUID of the branding profile used for the PDF; null means the company default profile.
Public invoice metadata, e.g. the delivery method. Always a JSON object.
object
Delivery method selected when sending: auto, peppol, email, etc.
Final Peppol access-point response for the send attempt.
Timestamp the Message Level Response was forwarded, if any.
Outbound Message Level Response verdict from the recipient’s access point:
- verdict: received_ap (delivered) | received_ab (delivered with note) | received_re (rejected)
- received_at: ISO 8601 timestamp the MLR was processed by the AP
- error_details: rejection reason if verdict is received_re Null until the recipient AP returns an MLR or 72h elapses.
object
object
ISO 8601 timestamp when the invoice was created.
ISO 8601 timestamp when the invoice was last updated.
ISO 8601 timestamp when the invoice was soft-deleted, or null.
ISO 8601 timestamp when the public (signed-URL) link was revoked, or null if active.
API key lacks the required invoice:create scope.
object
Empty request body or API key not associated with a company.
Failed to parse or import the UBL XML.