Skip to main content
Normally, Bahn invoices the platform, which then invoices its own customer. For platforms enabled by Bahn, invoice_recipient asks Bahn to invoice the end business directly. Bahn staff must enable this arrangement for your platform account. Customers cannot enable it themselves. Contact Bahn support to agree the setup.

Choose the billing arrangement

Include invoice_recipient only when Bahn should invoice the end business. Without it, normal account billing applies, including on enabled platforms. The order stays on your platform’s Bahn account. Omit ordered_for, which assigns it to another Bahn customer. Read Platform ordering for that arrangement. Naming an invoice recipient does not grant order access. Recipients must be VAT-registered businesses established in an EU country, including Finland. Their VAT number and invoice address must identify the same country. Bahn validates VAT registration through VIES in production.

Create the order

Use your ordering-channel credential. Add this object to Create an order. The reference defines every field and includes a complete End-customer invoice (EU reverse charge) request. For a price check, omit both ordered_for and invoice_recipient. Supply invoice_recipient only when creating the order.
business_id is the national company-registration identifier. vat_id is the separate EU VAT number, including its country prefix. German businesses supply their USt-IdNr. The example VAT number is for sandbox testing. Supply the registered company name, responsible contact, postal address, and invoice email. Optional e_invoicing supplies both the Finvoice address and operator code. Bahn creates a separate English invoice for each order. VAT follows the recipient’s country, independently of the platform’s country and tax settings: For a Finnish business, supply its Finnish VAT number (for example, FI12345678) and an invoice address with country_code: "FI". Its national business_id is the Y-tunnus (for example, 1234567-8). Bahn selects the VAT treatment; the request does not contain a tax override.

Read billing progress

Creation and Get an order return invoicing with the accepted recipient and current progress. Normal account billing returns invoicing: null.
  • customer_status: pending: The order is accepted, but the invoice customer’s setup in Netvisor needs a retry.
  • customer_status: ready: The invoice customer is set up. The invoice may still be unexported.
  • invoice_status: not_exported: No invoice export is currently in progress or confirmed.
  • invoice_status: export_pending: An export attempt has started. Bahn must confirm its outcome before retrying.
  • invoice_status: exported: Netvisor accepted the invoice. This does not confirm sending or payment.
invoice_exported_at is null until an export is confirmed. language is EN. vat_treatment reports finnish_vat or eu_reverse_charge as shown above. Accepted details are fixed for that order. Later orders do not redirect earlier invoices. Contact Bahn for corrections.

Recover from a failure

  • 400 validation_error: Correct the named fields, such as VAT syntax or a mismatched country.
  • 422 business_rule_violation: Check the account arrangement, incompatible ordered_for, or VAT registration described in detail.
  • 503 invoicing_validation_unavailable: Retry with backoff, keeping the same idempotency key and request data.
  • Accepted order with customer_status: pending: Retry the original create request with the same key and data. Bahn’s billing process also retries setup.
  • invoice_status: export_pending: Read the order later. Contact Bahn if progress remains pending.
Customer setup or export failure never makes the platform the payer. Do not remove invoice_recipient or use a new key to recover an unknown result. Read Errors and retries for general recovery rules.

Test the arrangement

The sandbox enforces the same permissions and request rules. VAT checks are simulated: valid syntax passes, except all-zero numbers such as DE000000000. Test with and without invoice_recipient, invalid registration, and a retry with the original key. Sandbox billing data stays separate. Simulated VAT checks do not prove production registration.