AutomationFlowsFinance › Xero:contact:create Get Getall Update:invoice:create Get Getall Update

Xero:contact:create Get Getall Update:invoice:create Get Getall Update

Xero:Contact:create get getAll update:Invoice:create get getAll update. Uses start, xero. Manual trigger; 9 nodes.

Manual trigger★★★★☆ complexity9 nodesStartXero
Finance Trigger: Manual Nodes: 9 Complexity: ★★★★☆ Added:

The workflow JSON

Copy or download the full n8n JSON below. Paste it into a new n8n workflow, add your credentials, activate. Full import guide →

Download .json
{
  "createdAt": "2021-04-19T09:55:16.357Z",
  "updatedAt": "2021-05-25T13:38:12.376Z",
  "id": "170",
  "name": "Xero:Contact:create get getAll update:Invoice:create get getAll update",
  "active": false,
  "nodes": [
    {
      "parameters": {},
      "name": "Start",
      "type": "n8n-nodes-base.start",
      "typeVersion": 1,
      "position": [
        250,
        300
      ],
      "id": "f0c45c75-abab-4369-b823-165926299d4d"
    },
    {
      "parameters": {
        "resource": "contact",
        "organizationId": "90ee722a-8780-44f6-8788-e1d6b0bd2aa4",
        "name": "=Contact{{Date.now()}}",
        "additionalFields": {
          "firstName": "=FirstName{{Date.now()}}"
        }
      },
      "name": "Xero",
      "type": "n8n-nodes-base.xero",
      "typeVersion": 1,
      "position": [
        500,
        200
      ],
      "credentials": {
        "xeroOAuth2Api": {
          "name": "<your credential>"
        }
      },
      "id": "bef8a1fb-6608-4881-843a-3f1a0bf6d0df"
    },
    {
      "parameters": {
        "resource": "contact",
        "operation": "get",
        "organizationId": "90ee722a-8780-44f6-8788-e1d6b0bd2aa4",
        "contactId": "={{$node[\"Xero\"].json[\"ContactID\"]}}"
      },
      "name": "Xero1",
      "type": "n8n-nodes-base.xero",
      "typeVersion": 1,
      "position": [
        650,
        200
      ],
      "credentials": {
        "xeroOAuth2Api": {
          "name": "<your credential>"
        }
      },
      "id": "04550831-0f26-471a-ac9d-4acd8d25e905"
    },
    {
      "parameters": {
        "resource": "contact",
        "operation": "getAll",
        "organizationId": "90ee722a-8780-44f6-8788-e1d6b0bd2aa4",
        "limit": 1,
        "options": {
          "orderBy": "UpdatedDateUTC",
          "sortOrder": "ASC"
        }
      },
      "name": "Xero2",
      "type": "n8n-nodes-base.xero",
      "typeVersion": 1,
      "position": [
        800,
        200
      ],
      "credentials": {
        "xeroOAuth2Api": {
          "name": "<your credential>"
        }
      },
      "id": "db15691c-4eb1-4ada-81c0-deb62b1ad238"
    },
    {
      "parameters": {
        "resource": "contact",
        "operation": "update",
        "organizationId": "90ee722a-8780-44f6-8788-e1d6b0bd2aa4",
        "contactId": "={{$node[\"Xero\"].json[\"ContactID\"]}}",
        "updateFields": {
          "firstName": "=Updated{{$node[\"Xero1\"].json[\"FirstName\"]}}"
        }
      },
      "name": "Xero3",
      "type": "n8n-nodes-base.xero",
      "typeVersion": 1,
      "position": [
        950,
        200
      ],
      "credentials": {
        "xeroOAuth2Api": {
          "name": "<your credential>"
        }
      },
      "id": "8ca6dfd8-8429-4ae8-809e-7f2167350cf2"
    },
    {
      "parameters": {
        "organizationId": "90ee722a-8780-44f6-8788-e1d6b0bd2aa4",
        "type": "ACCPAY",
        "contactId": "={{$node[\"Xero1\"].json[\"ContactID\"]}}",
        "lineItemsUi": {
          "lineItemsValues": [
            {
              "description": "Test",
              "quantity": 3,
              "unitAmount": "10",
              "itemCode": "BOOK",
              "accountCode": "300",
              "taxType": "INPUT",
              "taxAmount": "10"
            }
          ]
        },
        "additionalFields": {}
      },
      "name": "Xero4",
      "type": "n8n-nodes-base.xero",
      "typeVersion": 1,
      "position": [
        800,
        350
      ],
      "credentials": {
        "xeroOAuth2Api": {
          "name": "<your credential>"
        }
      },
      "id": "fd0adcca-b10b-4ae1-9a24-d088339623f7"
    },
    {
      "parameters": {
        "operation": "get",
        "organizationId": "90ee722a-8780-44f6-8788-e1d6b0bd2aa4",
        "invoiceId": "={{$node[\"Xero4\"].json[\"InvoiceID\"]}}"
      },
      "name": "Xero5",
      "type": "n8n-nodes-base.xero",
      "typeVersion": 1,
      "position": [
        950,
        350
      ],
      "credentials": {
        "xeroOAuth2Api": {
          "name": "<your credential>"
        }
      },
      "id": "576e9017-aabf-4651-b653-fa13d56de323"
    },
    {
      "parameters": {
        "operation": "getAll",
        "organizationId": "90ee722a-8780-44f6-8788-e1d6b0bd2aa4",
        "limit": 1,
        "options": {}
      },
      "name": "Xero6",
      "type": "n8n-nodes-base.xero",
      "typeVersion": 1,
      "position": [
        1100,
        350
      ],
      "credentials": {
        "xeroOAuth2Api": {
          "name": "<your credential>"
        }
      },
      "id": "fe2004ce-131e-448a-90c5-8c326a30b2dd"
    },
    {
      "parameters": {
        "operation": "update",
        "organizationId": "90ee722a-8780-44f6-8788-e1d6b0bd2aa4",
        "invoiceId": "={{$node[\"Xero4\"].json[\"InvoiceID\"]}}",
        "updateFields": {
          "dueDate": "2021-04-29T22:00:00.000Z",
          "status": "SUBMITTED"
        }
      },
      "name": "Xero7",
      "type": "n8n-nodes-base.xero",
      "typeVersion": 1,
      "position": [
        1250,
        350
      ],
      "credentials": {
        "xeroOAuth2Api": {
          "name": "<your credential>"
        }
      },
      "id": "1e653ae8-8157-4d05-9dd2-2446a64385d1"
    }
  ],
  "connections": {
    "Xero": {
      "main": [
        [
          {
            "node": "Xero1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Xero1": {
      "main": [
        [
          {
            "node": "Xero2",
            "type": "main",
            "index": 0
          },
          {
            "node": "Xero4",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Xero2": {
      "main": [
        [
          {
            "node": "Xero3",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Xero4": {
      "main": [
        [
          {
            "node": "Xero5",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Xero5": {
      "main": [
        [
          {
            "node": "Xero6",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Xero6": {
      "main": [
        [
          {
            "node": "Xero7",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Start": {
      "main": [
        [
          {
            "node": "Xero",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "settings": {},
  "staticData": null,
  "meta": null,
  "versionId": null,
  "triggerCount": 0,
  "tags": []
}

Credentials you'll need

Each integration node will prompt for credentials when you import. We strip credential IDs before publishing — you'll add your own.

Pro

For the full experience including quality scoring and batch install features for each workflow upgrade to Pro

About this workflow

Xero:Contact:create get getAll update:Invoice:create get getAll update. Uses start, xero. Manual trigger; 9 nodes.

Source: https://github.com/n8n-io/test-workflows/blob/c1d376431a818f81f44e9ce645b8fb4878805419/workflows/170.json — original creator credit. Request a take-down →

More Finance workflows → · Browse all categories →

Related workflows

Workflows that share integrations, category, or trigger type with this one. All free to copy and import.

Finance

Harvest:Client:create update getAll get delete:Invoice:create update getAll get delete:Contact:create update get getAll delete:Company:get. Uses start, harvest. Manual trigger; 17 nodes.

Start, Harvest
Finance

How It Works Trigger: Watches for new emails in Gmail with PDF/image attachments. OCR: Sends the attachment to OCR.space API (https://ocr.space/OCRAPI) to extract invoice text. Parsing: Extracts key f

Gmail Trigger, Google Sheets, Slack +3
Finance

This workflow automates the full invoicing and payment process using n8n and Xero. It allows businesses to generate invoices, track payments, send WhatsApp notifications, and keep records synced autom

Xero, Google Calendar, Twilio +1
Finance

Small business owners, finance teams, accountants, and bookkeepers who use Xero for invoicing and want to improve cash flow by automating payment reminders. If you're spending time manually following

Xero, HTTP Request, Microsoft Outlook
Finance

This workflows allows you to create a customer and an invoice and send the invoice to the customer.

QuickBooks