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. Peppol BIS 3.0 binds to UBL 2.1.
Full invoice data in structured UBL JSON format (header, seller, buyer, items, totals, etc.).
Additional metadata such as delivery details, error info, or processing history.
Delivery network used: peppol, ksef, or email.
UUID of the business entity (seller identity) used for this invoice.
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.
API key lacks the required invoice:create scope.
Empty request body or API key not associated with a company.
Failed to parse or import the UBL XML.