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.1

generates a new invoice in the twinfield classic invoicing.

In pins 10 + flow
  • flow
    flow
  • connection required
    twinfieldconnection
  • type required
    value

    The invoice type (code), e.g. MEMO.

  • number
    value

    The 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
    value

    The 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
    value

    The revenue ledger this invoice total should be booked against, e.g. 1300

  • status required
    value

    The status of this invoice, e.g. concept. Should be final after testing.

  • lines required
    array

    Lines to be shown on this invoice, @id is auto-filled, See Twinfield Docs for a full description.

  • total incl required
    number

    The invoice total incl. VAT

  • currency
    value

    The currency to be used, e.g. EUR.

  • date
    date

    The date shown on the invoice, auto-filled with current date if not given.

Out pins 7 + flow
  • flow
    flow
  • success
    condition
  • invoice
    object
  • number
    value
  • due_date
    date
  • lines
    array

    Full 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.

Studio canvas example for the create block: typical wiring for create.

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