Code to Mantle Integration | MESA

Connect Code to Mantle and automate your tasks

Why integrate Code with Mantle

The Code to Mantle integration helps you sync data, automate manual tasks, and keep your stack aligned — without writing code.

Connect any API your workflow needs

When a workflow needs to reach a service MESA doesn't natively support, Custom Code makes the connection. Write an HTTP request, parse the response, and pass the data to the next step — all in one workflow.

Apply pricing or discount rules unique to your store

Custom Code runs JavaScript against live order data, letting you calculate custom pricing tiers, apply business-specific discounts, or validate order details before anything processes downstream.

Encode business logic no built-in tool can match

Every operation has edge cases that standard tools can't anticipate. Custom Code lets you write the exact logic your business needs and slot it into any workflow step — validations, lookups, or calculations.

Sync Shopify customer data with Mantle subscription records

When a customer's order history, tags, or profile changes in Shopify, MESA updates the corresponding Mantle record. Your subscription analytics and billing data reflect the full picture of each customer, not just their subscription activity.

Trigger retention workflows when subscription health drops

When Mantle flags a churn risk, a failed payment, or a usage signal, MESA kicks off the right response — a Klaviyo flow, a Slack alert, a Shopify tag update. You act on subscription health signals before they become cancellations.

Update Shopify customer records when subscription plans change

When a customer upgrades, downgrades, or pauses their plan in Mantle, MESA updates their Shopify tags, fields, and connected tools in real time. Every system reflects the current relationship without manual updates.

Build any Code and Mantle automation

MESA helps you connect apps to automate repetitive tasks. A trigger is an event that starts a workflow, and actions are the steps that occur when it's running.

Customer Account Deactivated
Customer Account Reactivated
Customer Activated One Time Charge
Customer Approaching Capped Limit
Customer Downgraded
Customer Exceeded Capped Amount
Customer Exceeded Usage Charge Limit
Customer First Identify
Customer Installed
Customer Refunded
Customer Reinstalled
Customer Resubscribed
Customer Subscribed
Customer Trial Expired
Customer Uninstalled
Customer Unsubscribed
Customer Updated
Customer Upgraded
Customer Usage Event Created
Customer's Subscription Frozen
Customer's Subscription Unfrozen
Review Received
Add Customer Tags

Adds tags to a customer.

Archive Plan

Archive a plan. Archived plans cannot be mutated.

Create App Feature

Creates a new app feature.

Create App Usage Metric

Create an app metric for usage.

Create Company

Create a company.

Create Contact

Create a contact.

Create Custom Field

Create a custom field.

Create Customer

Create a new customer.

Create Plan

Create an app plan.

Create Usage Event

Create a new usage event.

Delete App Feature

Remove an app feature within an organization.

Delete App Usage Metric

Remove an app's usage metric.

Delete Company

Remove a company.

Delete Contact

Remove a contact.

Delete Custom Field

Remove a custom field.

Get List of App Events

Obtain a list of all app events for a specific app.

Get List of App Features

Obtain a list of an app's features.

Get List of App Usage Metrics

Obtain a list of all app's usage metrics.

Get List of App's Plans

Obtain a list of app's plans.

Get List of Apps

Obtain a list of all apps that the authenticated user has permission to access.

Get List of Charges

Obtain a list of all charges for a specific organization.

Get List of Companies

Obtain a list of companies.

Get List of Contacts

Obtain a list of all contacts.

Get List of Custom Fields

Obtain a list of custom fields.

Get List of Customer Segments

Obtain a list of all customer segments for the authenticated organization. Only public segments are returned.

Get List of Customers

Obtain a list of all customers.

Get List of Subscriptions

Obtain a list of subscriptions across all apps and customers.

Get List of Transactions

Obtain a list of all transactions.

Get List of Usage Events

Obtain a list of usage events.

Get List of Users

Obtain a list of all users in an organization.

Remove Customer Tags

Remove tags from a customer.

Retrieve App

Grab all details about an app.

Retrieve App Event

Grab details for a single app event for a specific app.

Retrieve App Feature

Grab all details about an app feature within an organization.

Retrieve App Usage Metric

Grab all details about an app's usage metric.

Retrieve Company

Grab all details about a company.

Retrieve Contact

Grab all details about a contact.

Retrieve Custom Field

Grab all details about a custom field.

Retrieve Customer

Grab all details about a customer.

Retrieve Customer Segment

Grab all details about a customer segment.

Retrieve Organization

Grab all details about an organization.

Retrieve Subscription

Grab all details about a single subscription.

Retrieve Transaction

Grab all details about a transaction with the current organization.

Retrieve User

Grab all details about a user.

Unarchive Plan

Mark a plan as no longer deprecated. It can be mutated after being unarchived.

Update App Feature

Modify an app feature within an organization.

Update App Usage Metric

Modify an existing app's usage metric.

Update Company

Modify an existing company.

Update Contact

Modify an existing contact.

Update Custom Field

Modify an existing custom field.

Update Customer

Modify an existing customer.

Update Plan

Modify an existing plan. Certain properties like amount, interval, and currency code cannot be updated.

Custom Code

Run custom code at this step.