English
VosFactures
Finds or creates a contact, creates an invoice or a quote, gets a document and adds its PDF, sends a document by email from VosFactures.
The VosFactures node connects the mailbox to VosFactures invoicing: it finds or creates a contact, creates a one-line invoice, quote or proforma invoice, gets a document and adds its PDF to the run, and has VosFactures send a document by email.
See VosFactures to create the connection.
At a glance
- Type:
vosfactures.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: VosFactures
- Inputs:
main - Outputs:
main
Connection
This node needs a VosFactures connection.
Parameters
connection
VosFactures connection — The VosFactures 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:
client.find - Options:
client.find— Find a contactclient.create— Create a contactinvoice.create— Create an invoice or a quoteinvoice.get— Get a document and its PDFinvoice.send— Send a document by email
email
Email address
- Type: Text (
string) - Required: No
- Default:
""(empty) - 320 characters at most
- Example:
{{ email.from.email }} - Shown when:
actionis one ofclient.find,client.create,invoice.send - Expressions:
{{ }}accepted
name
Name — The contact name (or the buyer name when no contact is chosen).
- Type: Text (
string) - Required: No
- Default:
""(empty) - 200 characters at most
- Shown when:
actionis one ofclient.find,client.create,invoice.create - Expressions:
{{ }}accepted
company
Business — Unticked: an individual.
- Type: Yes / no (
boolean) - Required: No
- Default:
true - Shown when:
actionisclient.create
taxNumber
Tax number (VAT, SIREN)
- Type: Text (
string) - Required: No
- Default:
""(empty) - 40 characters at most
- Shown when:
actionisclient.create - Expressions:
{{ }}accepted
street
Street address
- Type: Text (
string) - Required: No
- Default:
""(empty) - 200 characters at most
- Shown when:
actionisclient.create - Expressions:
{{ }}accepted
postCode
Postcode
- Type: Text (
string) - Required: No
- Default:
""(empty) - 20 characters at most
- Shown when:
actionisclient.create - Expressions:
{{ }}accepted
city
City
- Type: Text (
string) - Required: No
- Default:
""(empty) - 100 characters at most
- Shown when:
actionisclient.create - Expressions:
{{ }}accepted
kind
Document type
- Type: One choice (
options) - Required: No
- Default:
vat - Options:
vat— Invoiceestimate— Quoteproforma— Proforma invoice
- Shown when:
actionisinvoice.create
clientId
Contact (ID) — Empty: the contact is matched (or created) from the name.
- Type: Text (
string) - Required: No
- Default:
""(empty) - 20 characters at most
- Example:
{{ data.<step>.clientId }} - Shown when:
actionisinvoice.create - Expressions:
{{ }}accepted
lineLabel
Line label
- 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
totalGross
Line total including tax
- Type: Text (
string) - Required: Yes
- Default:
""(empty) - 30 characters at most
- Shown when:
actionisinvoice.create - Expressions:
{{ }}accepted
taxRate
VAT rate (%)
- Type: Text (
string) - Required: No
- Default:
20 - 10 characters at most
- Shown when:
actionisinvoice.create - Expressions:
{{ }}accepted
test
Test document — Creates a document marked “test” (separate numbering).
- Type: Yes / no (
boolean) - Required: No
- Default:
false - Shown when:
actionisinvoice.create
invoiceId
Document (ID)
- Type: Text (
string) - Required: Yes
- Default:
""(empty) - 20 characters at most
- Example:
{{ data.vosfactures.id }} - Shown when:
actionis one ofinvoice.get,invoice.send - Expressions:
{{ }}accepted
attachPdf
Fetch the PDF — Adds the PDF to the run, so an email can attach it.
- Type: Yes / no (
boolean) - Required: No
- Default:
true - Shown when:
actionisinvoice.get
Outputs
main— Taken once the call to VosFactures succeeds, whatever the action. An error response from VosFactures 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>.found }}—boolean. Find a contact: true when at least one contact matches.{{ data.<step>.client }}—{ id, name, email, taxNumber, city }. Find a contact: the first one found (null otherwise). Create a contact: the contact created.{{ data.<step>.clientId }}—string. Find or create a contact: its ID, to pass to Create an invoice. Empty when nothing is found.{{ data.<step>.clients }}—array of { id, name, email, taxNumber, city }. Find a contact: the contacts found, ten at most.{{ data.<step>.invoice }}—{ id, number, kind, status, issueDate, paymentTo, buyerName, buyerEmail, priceNet, priceGross, paid, currency, clientId, createdAt, updatedAt }. Create an invoice or a quote, Get a document: the document.{{ data.<step>.invoiceId }}—string. Create an invoice or a quote, Get a document: its ID.{{ data.<step>.attachmentPosition }}—number. Get a document with Fetch the PDF: the PDF position in the run, to cite in Compose. null otherwise.{{ data.<step>.simulated }}—boolean. Creations and sending: true when the write was described instead of done (test run).{{ 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 API of the connection’s VosFactures account.
- Find a contact (
client.find, the default) by Email address or, failing that, by Name; ten results at most. - Create a contact (
client.create): Name required; Business ticked by default (unticked: an individual); email address, tax number (VAT, SIREN), street address, postcode, city. - Create an invoice or a quote (
invoice.create): Document type invoice (default), quote or proforma invoice; Contact (ID), or failing that the Name as buyer; one line with Line label, Quantity (1 by default), Line total including tax and VAT rate (20% by default; empty, no VAT). Test document creates a document marked “test”, with separate numbering. - Get a document and its PDF (
invoice.get): Fetch the PDF is ticked by default. - Send a document by email (
invoice.send) from VosFactures; the Email address is optional.
Example
A customer asks for a copy of their invoice. A read step extracted its ID; an invoice node gets the document with its PDF, then Compose replies attaching {{ data.invoice.attachmentPosition }}:
text
action invoice.get
invoiceId {{ data.read.invoice_id }}
attachPdf trueTips
- Testing. Reads go out for real in a test run; creations and sending by email are only described (
simulatedis true). - Amounts. The total and the quantity accept
1234.50as well as1 234,50; an unreadable total fails the step before any call. - Search before creating. Retrying the step after a successful creation can create a duplicate.
- Errors.
integration.unauthorized: the code was refused or revoked, replace it in the connection.integration.rejected: VosFactures refused the request (missing field, invalid value), fix the settings.integration.rate_limitedandintegration.unavailableare retried automatically. An empty required parameter or an ID that is not a whole number fails the step withnode_invalid_param, before any call. See Error handling.