This endpoint imports a customer invoice from a PDF file and asynchronously converts it
into a Factur-X e-invoice (PDF/A-3) by embedding a structured XML into the provided PDF.
The invoice is returned immediately in the response; the conversion happens in the
background shortly after. Amounts are stored exactly as provided. Pennylane does not
recalculate or round them.
Requirements:
file_attachment_idmust reference a PDF file.- The PDF must not already embed a Factur-X (or ZUGFeRD) XML. Import those files with
/customer_invoices/e_invoices/importsinstead. - The customer must be a company and not a public administration.
- The three mandatory French legal notices ("Late payment penalties", "Fixed recovery
cost for late payment", and "Early payment discount") are required. Either provide
them inlegal_notices, or configure them in the footer of the default invoice
template of your Pennylane account. Without either, the request returns a 422 error.
Factur-X amount compliance (BR-CO-14/BR-CO-15): The Factur-X XML standard
requires the sum of line-level currency_tax values to equal the invoice-level
currency_tax exactly, and currency_amount_before_tax + currency_tax to equal
currency_amount exactly. A difference of even a few cents produces a
non-compliant XML. Ensure your amounts are fully consistent before sending.
This endpoint requires the following scope:
customer_invoices:all
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||

