Actions68
- Account Actions
- Bank Account Actions
- Code List Actions
- Contact Actions
- Event Actions
- Invoice Actions
- Ledger Actions
- Order Actions
- Tax Report Actions
- Tax Report Setting Actions
- Transport Actions
- Web Hook Actions
Invoice → Import from File
AI-generatedSummary
Import an invoice file (e.g., XML, PDF) by uploading the binary file to the B2Brouter API for the selected account and environment.
Inputs
- Environment (required) — Select either the Test (Staging) or Live (Production) B2Brouter API environment where the invoice file will be imported.
- Binary Property (required) — Specify the name of the binary property from the input data containing the invoice file to import.
- Import Options — Options to control import behavior: 'Send After Import' to automatically send the invoice after importing, and 'Acknowledge' to mark the invoice as acknowledged.
Output shape
a single record representing the imported invoice object
Returns the imported invoice data as a JSON object. If the response contains an 'invoice' key, that object is returned; otherwise, the whole response is returned. Errors are thrown if the binary file is missing or invalid.