← QuickBooks + Xero Accounting integrations

Create or Update Contact with Xero Accounting API on New Employee Updated from QuickBooks API

Pipedream makes it easy to connect APIs for Xero Accounting, QuickBooks and 2,800+ other apps remarkably fast.

Trigger workflow on
New Employee Updated from the QuickBooks API
Next, do this
Create or Update Contact with the Xero Accounting API
No credit card required
Intro to Pipedream
Watch us build a workflow
Watch us build a workflow
8 min
Watch now ➜

Trusted by 1,000,000+ developers from startups to Fortune 500 companies

Adyen logo
Appcues logo
Bandwidth logo
Checkr logo
ChartMogul logo
Dataminr logo
Gopuff logo
Gorgias logo
LinkedIn logo
Logitech logo
Replicated logo
Rudderstack logo
SAS logo
Scale AI logo
Webflow logo
Warner Bros. logo
Adyen logo
Appcues logo
Bandwidth logo
Checkr logo
ChartMogul logo
Dataminr logo
Gopuff logo
Gorgias logo
LinkedIn logo
Logitech logo
Replicated logo
Rudderstack logo
SAS logo
Scale AI logo
Webflow logo
Warner Bros. logo

Developers Pipedream

Getting Started

This integration creates a workflow with a QuickBooks trigger and Xero Accounting action. When you configure and deploy the workflow, it will run on Pipedream's servers 24x7 for free.

  1. Select this integration
  2. Configure the New Employee Updated trigger
    1. Connect your QuickBooks account
    2. Configure timer
  3. Configure the Create or Update Contact action
    1. Connect your Xero Accounting account
    2. Select a Tenant ID
    3. Optional- Configure Name
    4. Optional- Configure Contact ID
    5. Optional- Configure Contact Number
    6. Optional- Configure Account Number
    7. Optional- Select a Contact Status
    8. Optional- Configure First Name
    9. Optional- Configure Last Name
    10. Optional- Configure Email Address
    11. Optional- Configure Skype User Name
    12. Optional- Configure Contact Persons
    13. Optional- Configure Bank Account Details
    14. Optional- Configure Tax Number
    15. Optional- Configure Account Receivable Tax Type
    16. Optional- Configure Account Payable Type
    17. Optional- Configure Addresses
    18. Optional- Configure Phones
    19. Optional- Configure Is Supplier
    20. Optional- Configure Is Customer
    21. Optional- Configure Default Currency
    22. Optional- Configure Xero Network Key
    23. Optional- Configure Sales Default Account Code
    24. Optional- Configure Purchases Default Account Code
    25. Optional- Configure Sales Tracking Categories
    26. Optional- Configure Purchases Tracking Categories
    27. Optional- Configure Tracking Category Name
    28. Optional- Configure Tracking Option Name
    29. Optional- Configure Payment Terms Bill Day
    30. Optional- Select a Payment Terms Bill Type
  4. Deploy the workflow
  5. Send a test event to validate your setup
  6. Turn on the trigger

Details

This integration uses pre-built, source-available components from Pipedream's GitHub repo. These components are developed by Pipedream and the community, and verified and maintained by Pipedream.

To contribute an update to an existing component or create a new component, create a PR on GitHub. If you're new to Pipedream component development, you can start with quickstarts for trigger span and action development, and then review the component API reference.

Trigger

Description:Emit new event when an employee is updated.
Version:0.0.6
Key:quickbooks-new-employee-updated

QuickBooks Overview

The QuickBooks API allows for streamlined financial management within Pipedream's ecosystem, enabling automated accounting and data syncing across various platforms. With this API, you can manipulate invoices, manage sales receipts, handle expenses, and synchronize customer data. It's a robust tool for financial oversight and automation that can save time and reduce errors for businesses of all sizes.

Trigger Code

import common from "../common/base.mjs";
import sampleEmit from "./test-event.mjs";

export default {
  ...common,
  key: "quickbooks-new-employee-updated",
  name: "New Employee Updated",
  description: "Emit new event when an employee is updated.",
  version: "0.0.6",
  type: "source",
  dedupe: "unique",
  methods: {
    ...common.methods,
    getQuery(lastDate) {
      return `select * from Employee Where Metadata.LastUpdatedTime >= '${lastDate}' orderby Metadata.LastUpdatedTime desc`;
    },
    getFieldList() {
      return "Employee";
    },
    getFieldDate() {
      return "LastUpdatedTime";
    },
    getSummary(item) {
      return `Employee Updated: ${item.Id}`;
    },
  },
  sampleEmit,
};

Trigger Configuration

This component may be configured based on the props defined in the component code. Pipedream automatically prompts for input values in the UI and CLI.
LabelPropTypeDescription
QuickBooksquickbooksappThis component uses the QuickBooks app.
N/Adb$.service.dbThis component uses $.service.db to maintain state between executions.
timer$.interface.timer

Trigger Authentication

QuickBooks uses OAuth authentication. When you connect your QuickBooks account, Pipedream will open a popup window where you can sign into QuickBooks and grant Pipedream permission to connect to your account. Pipedream securely stores and automatically refreshes the OAuth tokens so you can easily authenticate any QuickBooks API.

Pipedream requests the following authorization scopes when you connect your account:

com.intuit.quickbooks.accountingopenidprofileemail

About QuickBooks

QuickBooks Online is designed to help you manage your business finances with ease.

Action

Description:Creates a new contact or updates if the contact exists.
Version:0.1.3
Key:xero_accounting_api-xero-accounting-create-or-update-contact

Xero Accounting Overview

The Xero Accounting API offers a powerful gateway to access and manipulate financial data within Xero. Leveraging Pipedream's capabilities, developers can build custom workflows that streamline accounting processes, sync financial data with external systems, and trigger actions based on financial events. This API allows for the automation of tasks such as invoicing, bank reconciliation, bill payments, and reporting, which can lead to significant time savings and enhanced data accuracy.

Action Code

import { parseObject } from "../../common/util.mjs";
import xeroAccountingApi from "../../xero_accounting_api.app.mjs";

export default {
  key: "xero_accounting_api-xero-accounting-create-or-update-contact",
  name: "Create or Update Contact",
  description: "Creates a new contact or updates if the contact exists.",
  version: "0.1.3",
  annotations: {
    destructiveHint: true,
    openWorldHint: true,
    readOnlyHint: false,
  },
  type: "action",
  props: {
    xeroAccountingApi,
    tenantId: {
      propDefinition: [
        xeroAccountingApi,
        "tenantId",
      ],
    },
    name: {
      label: "Name",
      type: "string",
      description: "Full name of contact/organisation (max length = 255). The following is required to create a contact.",
      optional: true,
    },
    contactId: {
      label: "Contact ID",
      type: "string",
      description: "Xero identifier.",
      optional: true,
    },
    contactNumber: {
      label: "Contact Number",
      type: "string",
      description: "This can be updated via the API only i.e. This field is read only on the Xero contact screen, used to identify contacts in external systems (max length = 50). If the Contact Number is used, this is displayed as Contact Code in the Contacts UI in Xero.",
      optional: true,
    },
    accountNumber: {
      label: "Account Number",
      type: "string",
      description: "A user defined account number. This can be updated via the API and the [Xero UI](https://help.xero.com/ContactsAccountNumber) (max length = 50).",
      optional: true,
    },
    contactStatus: {
      label: "Contact Status",
      type: "string",
      description: "Current status of a contact - see contact status [types](https://developer.xero.com/documentation/api/types#ContactStatuses)",
      optional: true,
      options: [
        "ACTIVE",
        "ARCHIVED",
        "GDPRREQUEST",
      ],
    },
    firstName: {
      label: "First Name",
      type: "string",
      description: "First name of contact person (max length = 255).",
      optional: true,
    },
    lastName: {
      label: "Last Name",
      type: "string",
      description: "Last name of contact person (max length = 255)",
      optional: true,
    },
    emailAddress: {
      label: "Email Address",
      type: "string",
      description: "Email address of contact person (umlauts not supported) (max length = 255)",
      optional: true,
    },
    skypeUserName: {
      label: "Skype User Name",
      type: "string",
      description: "Skype user name of contact.",
      optional: true,
    },
    contactPersons: {
      label: "Contact Persons",
      type: "any",
      description: "See [contact persons](https://developer.xero.com/documentation/api/contacts#contact-persons).",
      optional: true,
    },
    bankAccountDetails: {
      label: "Bank Account Details",
      type: "string",
      description: "Bank account number of contact",
      optional: true,
    },
    taxNumber: {
      label: "Tax Number",
      type: "string",
      description: "Tax number of contact - this is also known as the ABN (Australia), GST Number (New Zealand), VAT Number (UK) or Tax ID Number (US and global) in the Xero UI depending on which regionalized version of Xero you are using (max length = 50)",
      optional: true,
    },
    accountReceivableTaxType: {
      label: "Account Receivable Tax Type",
      type: "string",
      description: "Default tax type used for contact on AP invoices",
      optional: true,
    },
    accountPayableType: {
      label: "Account Payable Type",
      type: "string",
      description: "Store certain address types for a contact - see address types",
      optional: true,
    },
    addresses: {
      label: "Addresses",
      type: "any",
      description: "Store certain address types for a contact - see address types",
      optional: true,
    },
    phones: {
      label: "Phones",
      type: "any",
      description: "Store certain phone types for a contact - see phone types.",
      optional: true,
    },
    isSupplier: {
      label: "Is Supplier",
      type: "boolean",
      description: "true or false – Boolean that describes if a contact that has any AP invoices entered against them. Cannot be set via PUT or POST - it is automatically set when an accounts payable invoice is generated against this contact.",
      optional: true,
    },
    isCustomer: {
      label: "Is Customer",
      type: "boolean",
      description: "true or false – Boolean that describes if a contact has any AR invoices entered against them. Cannot be set via PUT or POST - it is automatically set when an accounts receivable invoice is generated against this contact.",
      optional: true,
    },
    defaultCurrency: {
      label: "Default Currency",
      type: "string",
      description: "Default currency for raising invoices against contact",
      optional: true,
    },
    xeroNetworkKey: {
      label: "Xero Network Key",
      type: "string",
      description: "Store XeroNetworkKey for contacts.",
      optional: true,
    },
    salesDefaultAccountCode: {
      label: "Sales Default Account Code",
      type: "string",
      description: "The default sales [account code](https://developer.xero.com/documentation/api/accounts) for contacts",
      optional: true,
    },
    puchasesDefaultAccountCode: {
      label: "Purchases Default Account Code",
      type: "string",
      description: "The default purchases [account code](https://developer.xero.com/documentation/api/accounts) for contacts",
      optional: true,
    },
    salesTrackingCategories: {
      label: "Sales Tracking Categories",
      type: "string",
      description: "The default sales [tracking categories](https://developer.xero.com/documentation/api/tracking-categories/) for contacts",
      optional: true,
    },
    puechasesTrackingCategories: {
      label: "Purchases Tracking Categories",
      type: "string",
      description: "The default purchases [tracking categories](https://developer.xero.com/documentation/api/tracking-categories/) for contacts",
      optional: true,
    },
    trackingCategoryName: {
      label: "Tracking Category Name",
      type: "string",
      description: "The name of the Tracking Category assigned to the contact under SalesTrackingCategories and PurchasesTrackingCategories",
      optional: true,
    },
    trackingOptionName: {
      label: "Tracking Option Name",
      type: "string",
      description: "The name of the Tracking Option assigned to the contact under SalesTrackingCategories and PurchasesTrackingCategories",
      optional: true,
    },
    paymentTermsBillDay: {
      label: "Payment Terms Bill Day",
      type: "integer",
      description: "The default payment terms bill day",
      optional: true,
    },
    paymentTermsBillType: {
      type: "string",
      label: "Payment Terms Bill Type",
      description: "The default payment terms bill type",
      optional: true,
      options: [
        {
          "label": "day(s) after bill date",
          "value": "DAYSAFTERBILLDATE",
        },
        {
          "label": "day(s) after bill month",
          "value": "DAYSAFTERBILLMONTH",
        },
        {
          "label": "of the current month",
          "value": "OFCURRENTMONTH",
        },
        {
          "label": "of the following month",
          "value": "OFFOLLOWINGMONTH",
        },
      ],
    },
  },
  async run({ $ }) {
    const response = await this.xeroAccountingApi.createOrUpdateContact({
      $,
      tenantId: this.tenantId,
      data: {
        Name: this.name,
        ContactID: this.contactId,
        ContactNumber: this.contactNumber,
        AccountNumber: this.accountNumber,
        ContactStatus: this.contactStatus,
        FirstName: this.firstName,
        LastName: this.lastName,
        EmailAddress: this.emailAddress,
        SkypeUserName: this.skypeUserName,
        ContactPersons: parseObject(this.contactPersons),
        BankAccountDetails: this.bankAccountDetails,
        TaxNumber: this.taxNumber,
        AccountsReceivableTaxType: this.accountReceivableTaxType,
        AccountsPayableTaxType: this.accountPayableType,
        Addresses: parseObject(this.addresses),
        Phones: parseObject(this.phones),
        IsSupplier: this.isSupplier,
        IsCustomer: this.isCustomer,
        DefaultCurrency: this.defaultCurrency,
        XeroNetworkKey: this.xeroNetworkKey,
        SalesDefaultAccountCode: this.salesDefaultAccountCode,
        PurchasesDefaultAccountCode: this.puchasesDefaultAccountCode,
        SalesTrackingCategories: this.salesTrackingCategories,
        PurchasesTrackingCategories: this.puechasesTrackingCategories,
        TrackingCategoryName: this.trackingCategoryName,
        TrackingOptionName: this.trackingOptionName,
        PaymentTerms: {
          Bills: {
            Day: this.paymentTermsBillDay,
            Type: this.paymentTermsBillType,
          },
        },
      },
    });

    $.export("$summary", `Successfully created or updated contact with ID: ${this.contactId}`);
    return response;
  },
};

Action Configuration

This component may be configured based on the props defined in the component code. Pipedream automatically prompts for input values in the UI.

LabelPropTypeDescription
Xero AccountingxeroAccountingApiappThis component uses the Xero Accounting app.
Tenant IDtenantIdstringSelect a value from the drop down menu.
Namenamestring

Full name of contact/organisation (max length = 255). The following is required to create a contact.

Contact IDcontactIdstring

Xero identifier.

Contact NumbercontactNumberstring

This can be updated via the API only i.e. This field is read only on the Xero contact screen, used to identify contacts in external systems (max length = 50). If the Contact Number is used, this is displayed as Contact Code in the Contacts UI in Xero.

Account NumberaccountNumberstring

A user defined account number. This can be updated via the API and the Xero UI (max length = 50).

Contact StatuscontactStatusstringSelect a value from the drop down menu:ACTIVEARCHIVEDGDPRREQUEST
First NamefirstNamestring

First name of contact person (max length = 255).

Last NamelastNamestring

Last name of contact person (max length = 255)

Email AddressemailAddressstring

Email address of contact person (umlauts not supported) (max length = 255)

Skype User NameskypeUserNamestring

Skype user name of contact.

Contact PersonscontactPersonsany
Bank Account DetailsbankAccountDetailsstring

Bank account number of contact

Tax NumbertaxNumberstring

Tax number of contact - this is also known as the ABN (Australia), GST Number (New Zealand), VAT Number (UK) or Tax ID Number (US and global) in the Xero UI depending on which regionalized version of Xero you are using (max length = 50)

Account Receivable Tax TypeaccountReceivableTaxTypestring

Default tax type used for contact on AP invoices

Account Payable TypeaccountPayableTypestring

Store certain address types for a contact - see address types

Addressesaddressesany

Store certain address types for a contact - see address types

Phonesphonesany

Store certain phone types for a contact - see phone types.

Is SupplierisSupplierboolean

true or false – Boolean that describes if a contact that has any AP invoices entered against them. Cannot be set via PUT or POST - it is automatically set when an accounts payable invoice is generated against this contact.

Is CustomerisCustomerboolean

true or false – Boolean that describes if a contact has any AR invoices entered against them. Cannot be set via PUT or POST - it is automatically set when an accounts receivable invoice is generated against this contact.

Default CurrencydefaultCurrencystring

Default currency for raising invoices against contact

Xero Network KeyxeroNetworkKeystring

Store XeroNetworkKey for contacts.

Sales Default Account CodesalesDefaultAccountCodestring

The default sales account code for contacts

Purchases Default Account CodepuchasesDefaultAccountCodestring

The default purchases account code for contacts

Sales Tracking CategoriessalesTrackingCategoriesstring

The default sales tracking categories for contacts

Purchases Tracking CategoriespuechasesTrackingCategoriesstring

The default purchases tracking categories for contacts

Tracking Category NametrackingCategoryNamestring

The name of the Tracking Category assigned to the contact under SalesTrackingCategories and PurchasesTrackingCategories

Tracking Option NametrackingOptionNamestring

The name of the Tracking Option assigned to the contact under SalesTrackingCategories and PurchasesTrackingCategories

Payment Terms Bill DaypaymentTermsBillDayinteger

The default payment terms bill day

Payment Terms Bill TypepaymentTermsBillTypestringSelect a value from the drop down menu:{ "label": "day(s) after bill date", "value": "DAYSAFTERBILLDATE" }{ "label": "day(s) after bill month", "value": "DAYSAFTERBILLMONTH" }{ "label": "of the current month", "value": "OFCURRENTMONTH" }{ "label": "of the following month", "value": "OFFOLLOWINGMONTH" }

Action Authentication

Xero Accounting uses OAuth authentication. When you connect your Xero Accounting account, Pipedream will open a popup window where you can sign into Xero Accounting and grant Pipedream permission to connect to your account. Pipedream securely stores and automatically refreshes the OAuth tokens so you can easily authenticate any Xero Accounting API.

Pipedream requests the following authorization scopes when you connect your account:

offline_accessopenidprofileemailaccounting.transactionsaccounting.transactions.readaccounting.reports.readaccounting.settingsaccounting.settings.readaccounting.contactsaccounting.attachmentsaccounting.journals.read

About Xero Accounting

Accounting Software

More Ways to Connect Xero Accounting + QuickBooks

Create Bill with Quickbooks API on New or updated contact from Xero Accounting API
Xero Accounting + QuickBooks
 
Try it
Create Customer with Quickbooks API on New or updated contact from Xero Accounting API
Xero Accounting + QuickBooks
 
Try it
Create Invoice with Quickbooks API on New or updated contact from Xero Accounting API
Xero Accounting + QuickBooks
 
Try it
Get Bill with Quickbooks API on New or updated contact from Xero Accounting API
Xero Accounting + QuickBooks
 
Try it
Get Customer with Quickbooks API on New or updated contact from Xero Accounting API
Xero Accounting + QuickBooks
 
Try it
New Customer Created from the QuickBooks API

Emit new event when a new customer is created.

 
Try it
New Customer Updated from the QuickBooks API

Emit new event when a customer is updated.

 
Try it
New Employee Created from the QuickBooks API

Emit new event when a new employee is created.

 
Try it
New Employee Updated from the QuickBooks API

Emit new event when an employee is updated.

 
Try it
New Invoice Created from the QuickBooks API

Emit new event when a new invoice is created.

 
Try it
Create AP Aging Detail Report with the QuickBooks API

Creates an AP aging report in Quickbooks Online. See the documentation

 
Try it
Create Bill with the QuickBooks API

Creates a bill. See the documentation

 
Try it
Create Customer with the QuickBooks API

Creates a customer. See the documentation

 
Try it
Create Estimate with the QuickBooks API

Creates an estimate. See the documentation

 
Try it
Create Invoice with the QuickBooks API

Creates an invoice. See the documentation

 
Try it

Explore Other Apps

1
-
24
of
2,800+
apps by most popular

Node
Node
Anything you can do with Node.js, you can do in a Pipedream workflow. This includes using most of npm's 400,000+ packages.
Python
Python
Anything you can do in Python can be done in a Pipedream Workflow. This includes using any of the 350,000+ PyPi packages available in your Python powered workflows.
Notion
Notion
Notion is a new tool that blends your everyday work apps into one. It's the all-in-one workspace for you and your team.
OpenAI (ChatGPT)
OpenAI (ChatGPT)
OpenAI is an AI research and deployment company with the mission to ensure that artificial general intelligence benefits all of humanity. They are the makers of popular models like ChatGPT, DALL-E, and Whisper.
Anthropic (Claude)
Anthropic (Claude)
AI research and products that put safety at the frontier. Introducing Claude, a next-generation AI assistant for your tasks, no matter the scale.
Google Sheets
Google Sheets
Use Google Sheets to create and edit online spreadsheets. Get insights together with secure sharing in real-time and from any device.
Telegram
Telegram
Telegram, is a cloud-based, cross-platform, encrypted instant messaging (IM) service.
Google Drive
Google Drive
Google Drive is a file storage and synchronization service which allows you to create and share your work online, and access your documents from anywhere.
HTTP / Webhook
HTTP / Webhook
Get a unique URL where you can send HTTP or webhook requests
Google Calendar
Google Calendar
With Google Calendar, you can quickly schedule meetings and events and get reminders about upcoming activities, so you always know what’s next.
Schedule
Schedule
Trigger workflows on an interval or cron schedule.
Pipedream Utils
Pipedream Utils
Utility functions to use within your Pipedream workflows
Shopify
Shopify
Shopify is a complete commerce platform that lets anyone start, manage, and grow a business. You can use Shopify to build an online store, manage sales, market to customers, and accept payments in digital and physical locations.
Supabase
Supabase
Supabase is an open source Firebase alternative.
MySQL
MySQL
MySQL is an open-source relational database management system.
PostgreSQL
PostgreSQL
PostgreSQL is a free and open-source relational database management system emphasizing extensibility and SQL compliance.
Premium
AWS
AWS
Amazon Web Services (AWS) offers reliable, scalable, and inexpensive cloud computing services.
Premium
Twilio SendGrid
Twilio SendGrid
Send marketing and transactional email through the Twilio SendGrid platform with the Email API, proprietary mail transfer agent, and infrastructure for scalable delivery.
Amazon SES
Amazon SES
Amazon SES is a cloud-based email service provider that can integrate into any application for high volume email automation
Premium
Klaviyo
Klaviyo
Email Marketing and SMS Marketing Platform
Premium
Zendesk
Zendesk
Zendesk is award-winning customer service software trusted by 200K+ customers. Make customers happy via text, mobile, phone, email, live chat, social media.
Premium
ServiceNow
ServiceNow
The smarter way to workflow
Microsoft Teams
Microsoft Teams
Microsoft Teams has communities, events, chats, channels, meetings, storage, tasks, and calendars in one place.
Slack
Slack
Slack is a channel-based messaging platform. With Slack, people can work together more effectively, connect all their software tools and services, and find the information they need to do their best work — all within a secure, enterprise-grade environment.