create
This block is part of the twinfield group and was last modified in core v14.0.1.
create v12.0.1 Updated v14.0.1generates a new invoice in the twinfield classic invoicing.
- flow
flow - connection required
twinfieldconnection - type required
valueThe invoice type (code), e.g.
MEMO. - number
valueThe number of his invoice, e.g.
202100001. As this 'number' can be padded with zeros, we can only accept it as value. Twinfield will auto-fill is none is given. - customer
valueThe number of the customer this invoice is directed to, e.g.
0004. As this 'number' can be padded with zeros, we can only accept it as value. - ledger required
valueThe revenue ledger this invoice total should be booked against, e.g.
1300 - status required
valueThe status of this invoice, e.g.
concept. Should befinalafter testing. - lines required
arrayLines to be shown on this invoice,
@idis auto-filled, See Twinfield Docs for a full description. - total incl required
numberThe invoice total incl. VAT
- currency
valueThe currency to be used, e.g.
EUR. - date
dateThe date shown on the invoice, auto-filled with current date if not given.
- flow
flow - success
condition - invoice
object - number
value - due_date
date - lines
arrayFull output of the created lines in twinfield.
- error
value - Connection
twinfieldconnection
A typical wiring for create: a function trigger starts the flow; get all feeds the connection pin; value feeds the code pin; value feeds the ledger pin; value feeds the status pin; with values feeds the lines pin; number feeds the total_incl pin; the flow out pin feeds debug.

Version history
Introduced in v12.0.1.
Last modified in v14.0.1.
Service documentation
External API reference This block wraps a third-party service. Click here for the service's own documentation of the underlying endpoint.Back to
twinfield Return to the main group to view all sub-groups Back to invoices Return to the group to view all blocks within this group
