MESA Docs
MESA Homepage
  • Welcome to MESA
    • Installing MESA
    • Dashboard
    • Core Concepts
    • Getting Help
  • Templates
    • Template Library
    • Installing & Editing
  • Workflow Builder
    • Triggers
    • Actions
    • Fields
      • Variables
      • Formatting Variables
      • Liquid Templating
    • Testing
  • Workflow Activity
    • Tasks
      • Troubleshooting
      • Replay
    • Logs
    • Time Travel
  • Best Practices
    • Set Titles & Descriptions
    • Track Time Saved
    • Enable Failure Notifications
    • Avoid Infinite Loops
  • Going Further
    • Plans & Billing
    • Notifications
    • Credentials
    • Understanding the Queue
    • Export & Import Workflows
    • Platform Thresholds & Limits
  • Built-in Tools
    • Activity Log
    • AI
    • API
    • Approval
    • MCP
    • Custom Code
      • Libraries
        • MESA SDK
        • Filter
        • Loop
        • Transform
        • oAuth
        • Shopify
        • ShopifyGraphql
      • FAQ
    • Data
    • Delay
    • Email
    • Filter
    • Form
      • Configure
      • Going Further
      • Technical Notes
    • FTP
    • Image
    • Loop
    • Package Tracking
    • Paths
    • Schedule
    • Scraper
    • SMS
    • Transform
    • Virtual Output
    • Weather
    • Web Request
    • Webhook
  • Apps
    • Airtable
    • Amazon S3
    • Asana
    • Blog Studio
    • ChannelApe
    • Claude
    • ChatGPT
    • Dall-E 2
    • Delighted
    • Digital Humani
    • Discord
    • DocuSign
    • Dropbox
    • Etsy
    • Facebook
    • Fera.ai
    • Gatsby
    • Gmail
      • Send Email
    • Google Analytics 4
    • Google Analytics UA
    • Google Calendar
    • Google Drive
    • Google Forms
    • Google Sheets
      • Add Row
      • Query Rows
      • Update Row
      • Row Created
      • Row Updated (Advanced)
      • Creating New Spreadsheets
      • Technical Notes
    • Gorgias
    • Govalo
    • Help Scout
    • Hubspot
    • Infinite Options
    • Intercom
    • IPDetective
    • Judge.me
    • Katana
    • Klaviyo
      • API Deprecation
    • Loop Returns
    • Loyalty Lion
    • Mailchimp
    • Mailgun
    • Mandrill
    • Mantle
    • Notion
    • Odoo
    • Omnisend
    • Page Studio
    • Pinterest
    • Printful
    • PrintNode
    • QuickBooks
    • Rebuy
    • Recharge
    • Remove.bg
    • Returnly
    • Rivo
    • Salesforce
    • Segment
    • Sendlane
    • Shippo
    • ShipStation
    • Shopify
      • Technical Notes
        • Configuring Your Payload
        • Modifying and Filtering Get Lists
        • Parameters
        • Error Codes
        • Accuracy of orders_count Variable
        • Accuracy of Count Products Action
        • Using the Gift Cards API
        • How to Find a Specific Record in the Testing Interface
        • Order, Customer, and Product Updated Trigger Frequency
    • Shopify Flow
    • Shopify Plus
    • Shopify Retail POS
    • Skio Subscriptions
    • Slack
    • Smartrr
    • Smile.io
    • Square
      • Updating Inventory
      • Frequently Asked Questions
    • Stamped.io
    • Stripe
    • Thanks.io
    • TikTok
    • Tracktor
    • Twilio
    • Uploadery
    • Wonderment
    • Xero
    • Yotpo
    • Yotpo Loyalty
  • For developers
    • Admin API
    • Command Line Interface
    • Embedding templates
  • Frequently asked questions
    • Why isn't the log search returning logs with the search I entered?
    • Is it possible to handle errors or retry steps?
    • How do I handle a failed task?
    • Does MESA auto-save workflows?
    • Can I Use Apps That Don't Have a MESA Connector?
    • Why is my workflow action adding the same data each time it occurs?
    • How do I cancel automations that are already in progress?
    • How do I cancel my MESA subscription or 7-day trial?
    • Can you import code from npm in custom code?
    • Do you have a Slack Community?
Powered by GitBook
On this page
  • Authenticate
  • Configuring

Was this helpful?

  1. Apps

Loop Returns

PreviousAPI DeprecationNextLoyalty Lion

Last updated 10 months ago

Was this helpful?

Authenticate

When you're setting up your first workflow with Loop Returns, you'll need to add your API key so that Loop Returns is a connected app within MESA.

You can locate your API key by clicking Settings > Developers on the Loop Returns Dashboard.

You will find the API key under API keys header. Copy and paste that into your workflow and click on Add Credential. Then, you are all set!

Configuring

Loop Returns Triggers (Creating a Webhook)

1. To create a Webhook, you can click on Settings and then Developers on the Loop Returns Dashboard.

2. Click on Create webhook.

3. Under the Add Webhook pop up, you'll see Event, Response and URL fields. Set these per the instructions below.

Event

Add events as follows for each MESA Trigger.

  • Loop Returns Created or Updated Trigger: Select Return created and Return updated. You will need to create 2 webhooks in Loop Returns for both Return created and Return updated and with the same copied URL. If you only create one webhook, MESA will not be able to trigger the workflow appropriately.

  • Loop Returns Label Created or Updated Trigger: Label created and Label updated. You will need to create 2 webhooks in Loop Returns for both Label created and Label updated and with the same copied URL. If you only create one webhook, MESA will not be able to trigger the workflow appropriately.

  • Loop Returns Restock Requested Trigger: Create one webhook for Restock requested.

Response

Response for each MESA Trigger.

  • Loop Returns Created or Updated Trigger: Return

  • Loop Returns Label Created or Updated Trigger: Label

  • Loop Returns Restock Requested Trigger: Restock

URL

From your MESA workflow, copy the Webhook URL seen in the Trigger's field (save the workflow if you do not see an URL in the field and refresh the page). Paste in the URL into the URL Field.

4. Click Add.5. Afterwards, locate your newly created webhook and click on the Event label (e.g. Return created) which is highlighted in blue.

6. Click on Activate to activate the webhook and then click Save.

Great job, you have just created your Loop Returns webhook!

Obtaining information about a specific Whitelist (Allowlist) or Blacklist

In order to retrieve or obtain information about a specific whitelist or blacklist, you will need to locate the blacklist or whitelist ID. This can normally be found via the Loop Returns List Blacklist or Loop Returns List Whitelist action and with some other steps.

Your workflow should look like this now. The steps' titles were edited to make the workflow more detailed and organized.

Create an order in Loop Returns

To create an order in Loop Returns, you will need to fill out all three required fields in the Step Configuration.

  • Name: The Shopify order number (e.g. 1001)

  • Zip: The shipping zip code attached to the order

🗒 Note: In order to create an order, you will need to be on a Loop Plus plan.

When starting a workflow with a Loop Returns Trigger,

In your workflow, add a Loop Returns List Blacklist or Loop Returns List Whitelist action and followed by a . In the Loop, you can select the that represents the Whitelist or Blacklist List Data.

After the , you can add a . In the , you can specify the whitelist or blacklist to obtain data for. In this example, we used the Loop Value which represents the Order or Email of the whitelist.

Lastly, add in a Loop Returns Whitelist Retrieve or Loop Returns Blacklist Retrieve Step and then that represents the ID of the whitelist or blacklist.

Designation: Your store ID. It is a unique Loop ID number associated with your store. You can reach out to Loop Returns' support at to find out what your store ID is.

MESA will require you to create a Webhook before the workflow works successfully.
Loop
provided variable
Loop
Filter
Filter
variable
add the variable from the Loop Step
support@loopreturns.com