← Sendloop + Xero Accounting integrations

Create or Update Contact with Xero Accounting API on New Email Opened from Sendloop API

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

Trigger workflow on
New Email Opened from the Sendloop 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 Sendloop 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 Email Opened trigger
    1. Connect your Sendloop account
    2. Configure timer
    3. Select a Campaign ID
  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 a subscriber opens an email.
Version:0.0.1
Key:sendloop-new-email-opened

Sendloop Overview

Sendloop is a robust email marketing platform designed to help businesses engage with their audience. With Sendloop's API on Pipedream, you can automate email campaigns, manage subscribers, and track the performance of your emails. Pipedream's serverless platform enables you to connect Sendloop with hundreds of other apps, creating powerful workflows that save time and enhance productivity.

Trigger Code

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

export default {
  ...common,
  key: "sendloop-new-email-opened",
  name: "New Email Opened",
  description: "Emit new event when a subscriber opens an email.",
  version: "0.0.1",
  type: "source",
  dedupe: "unique",
  props: {
    ...common.props,
    campaignId: {
      propDefinition: [
        common.props.sendloop,
        "campaignId",
      ],
    },
  },
  methods: {
    ...common.methods,
    getResourceFn() {
      return this.sendloop.listEmailOpens;
    },
    getResourceType() {
      return "Data";
    },
    getData() {
      return {
        CampaignID: this.campaignId,
      };
    },
    generateMeta(data) {
      return {
        id: data.SubscriberID,
        summary: `New Email Open: ${data.SubscriberID}`,
        ts: Date.parse(data.OpenDate),
      };
    },
  },
  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
SendloopsendloopappThis component uses the Sendloop app.
timer$.interface.timer
Campaign IDcampaignIdstringSelect a value from the drop down menu.

Trigger Authentication

Sendloop uses API keys for authentication. When you connect your Sendloop account, Pipedream securely stores the keys so you can easily authenticate to Sendloop APIs in both code and no-code steps.

About Sendloop

Sendloop is a full-featured, easy-to-use email marketing service. You create, send and track your email marketing campaigns without any stress.

Action

Description:Creates a new contact or updates if the contact exists.
Version:0.1.2
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.2",
  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 + Sendloop

Add Subscriber with Sendloop API on New or updated contact from Xero Accounting API
Xero Accounting + Sendloop
 
Try it
Add Subscriber with Sendloop API on New or updated invoice from Xero Accounting API
Xero Accounting + Sendloop
 
Try it
Remove Subscriber with Sendloop API on New or updated contact from Xero Accounting API
Xero Accounting + Sendloop
 
Try it
Remove Subscriber with Sendloop API on New or updated invoice from Xero Accounting API
Xero Accounting + Sendloop
 
Try it
Add Subscriber with Sendloop API on Webhook Event Received (Instant) from Xero Accounting API
Xero Accounting + Sendloop
 
Try it
New Email Opened from the Sendloop API

Emit new event when a subscriber opens an email.

 
Try it
New Hard Bounce from the Sendloop API

Emit new event when a subscriber's status changes to 'hard bounce'.

 
Try it
New Subscriber Added from the Sendloop API

Emit new event when a new subscriber is added to the list.

 
Try it
New or updated contact from the Xero Accounting API

Emit new notifications when you create a new or update existing contact

 
Try it
New or updated invoice from the Xero Accounting API

Emit new notifications when you create a new or update existing invoice

 
Try it
Add Subscriber with the Sendloop API

Adds a new subscriber to a specified list.

 
Try it
Remove Subscriber with the Sendloop API

Unsubscribe an email address from your lists.

 
Try it
Add Items to Existing Sales Invoice with the Xero Accounting API

Adds line items to an existing sales invoice. See the docs here

 
Try it
Bank Statements Report with the Xero Accounting API

Gets bank statements for the specified bank account.

 
Try it
Create Bank Transaction with the Xero Accounting API

Create a new bank transaction See the documentation

 
Try it

Explore Other Apps

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

HTTP / Webhook
HTTP / Webhook
Get a unique URL where you can send HTTP or webhook requests
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.
Schedule
Schedule
Trigger workflows on an interval or cron schedule.
Pipedream Utils
Pipedream Utils
Utility functions to use within your Pipedream 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.
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.
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
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.
Microsoft Teams
Microsoft Teams
Microsoft Teams has communities, events, chats, channels, meetings, storage, tasks, and calendars in one place.