Added

Automatically send to PA on customer e-invoice import

You can now send a customer e-invoice to the PA in a single API call, without waiting for Schematron validation to complete.

What's new

The endpoint now accepts an optional send_to_pa boolean parameter. When set to true, the invoice is automatically sent to the PA after parsing completes.

You can combine it with invoice_options to pre-fill the customer and line-level data in the same call:

file=<factur_x.pdf>
send_to_pa=true
invoice_options={"customer_id": 123}

If send_to_pa is omitted or false, the invoice is imported as usual and no automatic send is triggered.

Important: send happens before Schematron validation

The send is triggered as soon as parsing completes. Schematron validation runs asynchronously after parsing, the invoice may be found invalid after it has already been submitted to the PA, in which case the PA will reject it.

You can monitor both statuses on the invoice after import:

  • e_invoicing.status : tracks the PA submission outcome (e.g. sent, rejected)
  • schematron_validation_status : tracks the Schematron validation result (pending, valid, invalid). Poll this after import to know whether the invoice passed structural validation.