English
B2Brouter
Issues and sends an e-invoice through an approved platform, follows its status, fetches the legal file of a received invoice.
The B2Brouter node issues and sends e-invoices through an approved platform for the 2026 French reform (Peppol network), follows their status, and fetches the legal file of received invoices into the run.
See B2Brouter to create the connection.
At a glance
- Type:
b2brouter.api· version 1 - Category: Data
- Kind: Step — one stage of a run
- Effect: Writes outside (
external_write) — writes outside Loop & Roll; described instead of performed during a test run - Needs a carrier email: No
- Connection: B2Brouter
- Inputs:
main - Outputs:
main
Connection
This node needs a B2Brouter connection.
Parameters
connection
B2Brouter connection — The B2Brouter connection to use. Create it once in Connections; its key never appears in the workflow.
- Type: Connection (
credential) - Required: Yes
- Default:
""(empty)
action
Action
- Type: One choice (
options) - Required: Yes
- Default:
invoice.create - Options:
contact.find— Find a contact: By name, address or VAT number, among customers or suppliers.contact.create— Create a contact: A customer or a supplier, with its company identifier.invoice.create— Issue an e-invoice: One line; sent right away or kept for review.invoice.send— Send an invoice: An issued, reviewed invoice goes out through the platform.invoice.get— Get an invoice: Its status, amounts and lines.invoice.list— Search invoices: Issued or received, by status and date.invoice.download— Fetch an invoice file: The archived legal document, or the file received from the issuer, attached to the run.invoice.import— Import an invoice file: A file attached to an email (Factur-X or another accepted format) becomes a B2Brouter invoice, received or issued.
selection
Attachments to use
- Type: One choice (
options) - Required: Yes
- Default:
all - Options:
all— All attachments: Those of the triggering email, then the files added by earlier steps (a fetched deed, a signed PDF), in that order.first— The first one only: The first attachment, when only one matters.byMime— By file type: By MIME type:application/pdf, or a whole family withimage/*.byName— By file name: By name pattern:*.pdf,invoice-*.
- Shown when:
actionisinvoice.import
mime
File type — Exact MIME type (application/pdf) or a whole family (image/*). Left empty, no attachment is kept.
- Type: Text (
string) - Required: No
- Default:
""(empty) - 200 characters at most
- Example:
application/pdf - Shown when:
actionisinvoice.importandselectionisbyMime - Expressions:
{{ }}accepted
namePattern
File name — Simple pattern: * matches anything, ? one character (*.pdf, invoice-*). Case is ignored.
- Type: Text (
string) - Required: No
- Default:
""(empty) - 200 characters at most
- Example:
*.pdf - Shown when:
actionisinvoice.importandselectionisbyName - Expressions:
{{ }}accepted
importIssued
Invoice nature
- Type: One choice (
options) - Required: No
- Default:
received - Options:
received— Received from a supplierissued— Issued by you
- Shown when:
actionisinvoice.import
sendAfterImport
Send after import — Issued invoice only: queues it for sending through the platform.
- Type: Yes / no (
boolean) - Required: No
- Default:
false - Shown when:
actionisinvoice.importandimportIssuedisissued
account
Issuing account
- Type: Remote resource (
resourceLocator) - Required: Yes
- Ways to choose: pick from a list, type an ID (
b2brouter.account) - Listed with the connection in:
connection - Shown when:
actionis one ofinvoice.import,contact.find,contact.create,invoice.create,invoice.list
search
Name, address or VAT number
- Type: Text (
string) - Required: No
- Default:
""(empty) - 200 characters at most
- Shown when:
actioniscontact.find - Expressions:
{{ }}accepted
contactKind
Contact type
- Type: One choice (
options) - Required: No
- Default:
client - Options:
client— Customerprovider— Supplier
- Shown when:
actionis one ofcontact.find,contact.create
name
Company name
- Type: Text (
string) - Required: Yes
- Default:
""(empty) - 250 characters at most
- Shown when:
actioniscontact.create - Expressions:
{{ }}accepted
email
Billing email address
- Type: Text (
string) - Required: No
- Default:
""(empty) - 320 characters at most
- Shown when:
actioniscontact.create - Expressions:
{{ }}accepted
country
Country (two-letter code)
- Type: Text (
string) - Required: No
- Default:
fr - 2 characters at most
- Shown when:
actioniscontact.create - Expressions:
{{ }}accepted
tinScheme
Identifier scheme — The scheme code of the company identifier, as B2Brouter’s scheme list gives it.
- Type: Text (
string) - Required: No
- Default:
""(empty) - 10 characters at most
- Shown when:
actioniscontact.create - Expressions:
{{ }}accepted
tinValue
Company identifier (VAT…)
- Type: Text (
string) - Required: No
- Default:
""(empty) - 40 characters at most
- Shown when:
actioniscontact.create - Expressions:
{{ }}accepted
contactId
Customer (id) — The id returned by “Find a contact”: {{ data.<step>.id }}.
- Type: Text (
string) - Required: Yes
- Default:
""(empty) - 20 characters at most
- Shown when:
actionisinvoice.create - Expressions:
{{ }}accepted
number
Invoice number — Required to issue; the start of a number is enough to search.
- Type: Text (
string) - Required: No
- Default:
""(empty) - 60 characters at most
- Shown when:
actionis one ofinvoice.create,invoice.list - Expressions:
{{ }}accepted
date
Invoice date
- Type: Text (
string) - Required: Yes
- Default:
""(empty) - 40 characters at most
- Shown when:
actionisinvoice.create - Expressions:
{{ }}accepted
dueDate
Due date
- Type: Text (
string) - Required: No
- Default:
""(empty) - 40 characters at most
- Shown when:
actionisinvoice.create - Expressions:
{{ }}accepted
lineDescription
Line description
- Type: Text (
string) - Required: Yes
- Default:
""(empty) - 500 characters at most
- Shown when:
actionisinvoice.create - Expressions:
{{ }}accepted
quantity
Quantity
- Type: Text (
string) - Required: No
- Default:
1 - 20 characters at most
- Shown when:
actionisinvoice.create - Expressions:
{{ }}accepted
price
Unit price before tax
- Type: Text (
string) - Required: Yes
- Default:
""(empty) - 40 characters at most
- Shown when:
actionisinvoice.create - Expressions:
{{ }}accepted
vatPercent
VAT rate (%)
- Type: Text (
string) - Required: No
- Default:
20 - 10 characters at most
- Shown when:
actionisinvoice.create - Expressions:
{{ }}accepted
sendNow
Send right away — Off: the invoice waits for review in B2Brouter, and “Send an invoice” sends it.
- Type: Yes / no (
boolean) - Required: No
- Default:
false - Shown when:
actionisinvoice.create
invoiceId
Invoice (id)
- Type: Text (
string) - Required: Yes
- Default:
""(empty) - 20 characters at most
- Example:
{{ data.b2brouter.id }} - Shown when:
actionis one ofinvoice.send,invoice.get,invoice.download - Expressions:
{{ }}accepted
file
File
- Type: One choice (
options) - Required: No
- Default:
legal - Options:
legal— Archived legal documentoriginal— File received from the issuer
- Shown when:
actionisinvoice.download
fileName
File name — Optional: B2Brouter’s own otherwise.
- Type: Text (
string) - Required: No
- Default:
""(empty) - 200 characters at most
- Shown when:
actionisinvoice.download - Expressions:
{{ }}accepted
invoiceType
Invoices
- Type: One choice (
options) - Required: No
- Default:
IssuedInvoice - Options:
IssuedInvoice— IssuedReceivedInvoice— Received
- Shown when:
actionisinvoice.list
state
Status
- Type: One choice (
options) - Required: No
- Default:
any - Options:
any— Anynew— Newsent— Senterror— In erroraccepted— Acceptedrefused— Refusedpaid— Paidreceived— Received
- Shown when:
actionisinvoice.list
dateFrom
Issued from
- Type: Text (
string) - Required: No
- Default:
""(empty) - 40 characters at most
- Shown when:
actionisinvoice.list - Expressions:
{{ }}accepted
limit
Maximum count
- Type: Number (
number) - Required: No
- Default:
20 - Whole number, from 1 to 500
- Shown when:
actionis one ofinvoice.list,contact.find
Outputs
main— Taken once the call to B2Brouter succeeds, whatever the action. An error response from B2Brouter fails the step instead.
Data produced
What this node adds to the run data, and how to read it in an expression. <step> stands for the step key: the node name turned into an identifier (see Data and expressions).
{{ data.<step>.id }}—string. The B2Brouter id of the object created, read or found first.{{ data.<step>.state }}—string. Invoices: the status (new,sent,accepted,refused,paid…).{{ data.<step>.invoices }}—array of { id, number, date, state, total, contactName }. Search invoices only.{{ data.<step>.attachmentPosition }}—number. Fetch the file: the position of the file added to the run, to quote in Compose.{{ data.<step>.simulated }}—boolean. true when the action was described instead of done: in a test run, creations and changes are not sent; reads always go out for real.{{ data.<step>.summary }}—string. The one-line summary in the member’s language (withsummaryKeyandsummaryParams).
Operations
The node has a single Action parameter (action). Each action calls the B2Brouter API with the connection’s key.
- Find a contact and Create a contact (
contact.find,contact.create), customer or supplier, on the chosen Issuing account. - Issue an e-invoice (
invoice.create, the default) with one line and a required number; Send right away is off by default. Send an invoice (invoice.send) sends it after review. - Get an invoice and Search invoices issued or received, by status (
invoice.get,invoice.list). - Fetch an invoice file (
invoice.download): the archived legal document or the file received from the issuer, attached to the run (attachmentPosition).
Example
A supplier e-invoice is received (trigger below). The file node fetches its legal document, then Compose sends it to the accounting firm:
text
action invoice.download
invoiceId {{ data.b2brouter.id }}
file legalTips
- Test runs. Reads go out for real in a test run; creations and changes are only described (
simulatedis true). - Amounts and dates. Amounts accept
1234.50as well as1 234,50 €; dates2026-11-15as well as15/11/2026. An unreadable value is never guessed. - The number is the safeguard. B2Brouter documents no idempotency key: an issued invoice carries a unique number, always fill it in.
- Errors.
integration.unauthorized: the key was refused or revoked, replace it in the connection.integration.rejected: B2Brouter refused the request (missing field, invalid value), fix the settings.integration.rate_limitedandintegration.unavailableare retried automatically. An empty required parameter or an unreadable amount fails the step withnode_invalid_param, before any call. See Error handling.