Read sales invoice
BetaReads data
Reads one Twinfield sales invoice with its lines and totals.
Settings
| Setting | What it is |
|---|---|
| ConnectionRequired | The Twinfield connection the step signs in with. |
| Company code | Leave empty to use the company code on the connection. |
| Invoice typeRequired | The Twinfield sales-invoice type the invoice was made in. |
| Invoice numberRequired | The number Twinfield assigned when the invoice was made. |
Technical details
| Key | Value |
|---|---|
connection | texta connection id from `requires.connections` (provider `twinfield`) |
office | text |
invoiceType | text |
invoiceNumber | text |
Output
| Field | Type |
|---|---|
invoice | object |
invoiceNumber | string |
valueExclTotal excl. VAT | string |
valueIncTotal incl. VAT | string |
Sample output, and the expression for each field
- invoice
- header
- [0]
- invoicenumber
- [0]"1001"
- invoicenumber
- [0]
- result"1"
- header
- invoiceNumber"1001"
- valueExcl"100.00"
- valueInc"121.00"
Errors
When a step of this node stops a run, the run page shows a code. Look it up:
Example step
The step as a flow file holds it. Replace each value in <…>.
{
"config": {
"connection": "<connection id>",
"invoiceNumber": "<invoice number>",
"invoiceType": "<invoice type>",
"office": ""
},
"label": "Read sales invoice",
"type": "twinfield.readSalesInvoice",
"version": 1
}