Sync Shopify App Subscription Plans to Xero Contacts

7 min setup
No coding required
Runs automatically

Simplify contact management by auto-creating or updating records in Xero with each new plan subscription. Utilize Mantle to capture events instantly, syncing details for precise records. Save time, cut manual entries, and maintain organized accounting effortlessly.

Mantle logo icon
Customer Subscribed
Retrieve Customer
Get Contact By Email
Path - No Existing Contact
Create Contact
Path - Has Existing Contact
xero logo icon
Update Contact

You're in good company

"MESA has been a game changer for us. And, if you ever get stuck, their support team is always super helpful."

  • Ico star
  • Ico star
  • Ico star
  • Ico star
  • Ico star
PetFriendly

"It's like Zapier but exactly designed for Shopify. I have been able to complete all the workflows that I've needed."

  • Ico star
  • Ico star
  • Ico star
  • Ico star
  • Ico star
Zailys

"The MESA team has been amazing at helping us set up our automations. We would highly recommend this app!"

  • Ico star
  • Ico star
  • Ico star
  • Ico star
  • Ico star
Rothy's

How it works

7 steps to start syncing Mantle plan subscribers to Xero contacts automatically

Mantle logo icon

Customer Subscribed

App connector: Mantle • Time to complete: 0 minutes (Auto-configured)
Why this matters: This trigger monitors your Mantle account and kicks off the workflow whenever someone subscribes to a plan, catching new subscribers in real-time so your accounting records stay current without manual data entry.

This trigger watches for new plan subscriptions in Mantle and captures the customer ID when a subscription occurs. It runs continuously in real-time, so there's no delay between someone subscribing and their information flowing into Xero. The trigger passes the customer ID to the next step which retrieves the complete customer profile.

Retrieve Customer

App connector: Mantle • Time to complete: 0 minutes (Auto-configured)
Why this matters: The subscription trigger only provides the customer ID, so this step fetches all the detailed information about the subscriber including their name, email, and location needed to create or update the Xero contact.

This step queries Mantle using the customer ID from the trigger and retrieves the complete customer record including their name, email address, city, and country code. All of this information gets passed forward to later steps—the email is used to search Xero for existing contacts, while the name and location details populate the contact record in Xero.

Get Contact By Email

App connector: Xero • Time to complete: 0 minutes (Auto-configured)
Why this matters: Before creating a new contact, you need to know if this customer already exists in Xero—this search prevents duplicate contact records and determines whether to create or update.

This step searches your Xero contacts using the email address retrieved from Mantle. If a matching contact exists, it returns the Xero Contact ID which gets used in the update path. If no match is found, the search returns empty and triggers the creation of a new contact instead. The search happens automatically using the email from the previous step.

Path - No Existing Contact

App connector: Paths • Time to complete: 0 minutes (Auto-configured)
Why this matters: This rule checks whether the Xero search came back empty—if no contact was found, you need to create a brand new contact record rather than update an existing one.

This rule examines whether the Xero contact search returned any results by checking if the Contact ID is empty. If no contact was found in the previous search step, this path activates and sends the workflow to the Create Contact step. The check happens automatically using the search results from the Get Contact By Email step.

Create Contact

App connector: Xero • Time to complete: 1 minute
Why this matters: New Mantle subscribers need corresponding contact records in Xero so you can track their subscription revenue, send invoices, and maintain accurate accounting records.

This step sends a request to Xero to create a new contact using the customer ID, name, email, city, and country code from Mantle. You can customize which fields get included by editing the body configuration—for example, you might add phone numbers or additional address fields if those exist in your Mantle customer data. The contact appears immediately in Xero once created and is ready for invoicing.

Path - Has Existing Contact

App connector: Paths • Time to complete: 0 minutes (Auto-configured)
Why this matters: This rule handles the opposite scenario—when a contact already exists in Xero, triggering an update to their record instead of creating a duplicate.

This rule checks whether the Xero contact search returned a Contact ID, meaning the customer already exists in your accounting system. If a matching contact was found in the search step, this path activates and routes to the Update Contact step. The logic runs automatically based on the search results.

xero logo icon

Update Contact

App connector: Xero • Time to complete: 1 minute
Why this matters: When a Mantle subscriber already exists in Xero, you need to update their information with the latest subscription details rather than creating a duplicate contact record.

This step sends updated information to Xero and overwrites the existing contact's name, email, city, and country with the current values from Mantle. You can add or remove fields to sync by editing the body configuration—for example, you might add company name or tax information if those fields exist in both systems. The Contact ID from the search step tells Xero exactly which contact record to update.

Ready to set this up? It only takes 7 minutes.

Our support team will even help you personalize this workflow for free.

Get started →

Make it your own!

Customize this workflow even further:

Add subscription plan details to contact notes
Use a Transform step before creating or updating the contact to include which Mantle plan the customer subscribed to in the Xero contact notes field, helping you track which customers are on which plans.
Sync additional customer fields
Expand the data sync by adding phone numbers, company names, physical addresses, or any custom fields you track in Mantle—just map them to the corresponding Xero contact fields in the Create and Update steps.
Send Slack notifications for high-value subscriptions
Add a Filter step after retrieving the customer to check the subscription value, then send a Slack message to your team when someone subscribes to premium or enterprise plans.
Store sync history in MESA Tables
Add a Table step after the Paths End to log each sync with a timestamp, customer email, and whether a contact was created or updated—perfect for auditing and troubleshooting.

Common questions

What happens if a customer unsubscribes and then resubscribes later?

Can I sync subscription plan details or pricing information to Xero?

Will this overwrite custom fields I've manually added to Xero contacts?

Ready to start syncing Mantle plan subscribers to Xero contacts automatically?

7-day free trial • 7 min setup • Cancel anytime

Need help? Our automation experts will help you personalize this workflow for free. Contact support