# Connect Gorgias to Loop Returns and automate your tasks

## Why integrate Gorgias with Loop Returns
The Gorgias to Loop Returns integration helps you sync data, automate manual tasks, and keep your stack aligned — without writing code.

### Give your support team full Shopify context on every ticket
When a customer reaches out in Gorgias, MESA pulls their Shopify order history, tags, and customer details into the ticket automatically. Your team responds with the full picture without switching between tools to find it.

### Create and update Shopify customer records from Gorgias ticket activity
When a key detail is captured or a resolution is logged in Gorgias, MESA writes it to the corresponding Shopify customer record. Your store and your support platform stay in sync without anyone reconciling them manually after every interaction.

### Trigger Gorgias tickets from Shopify order and fulfillment events
When an order ships, a delivery is delayed, or a return is filed in Shopify, MESA opens or updates the right Gorgias ticket automatically. Your support team gets ahead of customer questions before they arrive rather than reacting after a complaint is filed.

### Update Shopify customer records when a return is initiated
When a customer starts a return in Loop, MESA updates their Shopify record with the relevant details — return reason, product, order value. Your team and connected tools have the full picture before the return is even completed.

### Trigger retention workflows the moment a return is filed
When a customer initiates a return in Loop, MESA kicks off the right response — a Klaviyo win-back flow, a Slack alert to the right team member, a loyalty point adjustment in Rivo. You act on the signal while the customer relationship is still recoverable.

### Route high-value return events to your team before they escalate
When a VIP customer, a large-order return, or a repeat returner is flagged in Loop, MESA notifies the right person through Slack or email with the order context already attached. Your team responds before the situation becomes a churn event.

## Build any Gorgias and Loop Returns 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.

###### Label Created or Updated
Starts when a label is created or modified.
- Topic  
- Trigger  
- Return ID  
- Order ID  
- Provider Order ID  
- Carrier  
- Tracking Number  
- Label Status  
- Label Updated At

###### Restock Requested
Starts when a restock is requested.
- Topic  
- Trigger  
- ID  
- Order ID  
- Provider Order ID  
- Restock Items

###### Return Created or Updated
Starts when a return is created or modified.
- Topic  
- Trigger  
- ID  
- State  
- Created At  
- Order ID  
- Order Name  
- Provider Order ID  
- Order Number  
- Customer  
- Currency  
- Return Product Total  
- Return Discount Total  
- Return Tax Total  
- Return Total  
- Return Credit Total  
- Exchange Product Total  
- Exchange Discount Total  
- Exchange Tax Total  
- Exchange Total  
- Exchange Credit Total  
- Gift Card  
- Handling Fee  
- Refund  
- Upsell  
- Line Items  
- Exchanges  
- Carrier  
- Tracking Number  
- Label Status  
- Label Updated At

###### Customer Created
Starts when a customer is created.
- ID  
- Channels  
- Created Datetime  
- Data  
- Email  
- External ID  
- Firstname  
- Integrations  
- Language  
- Lastname  
- Name  
- Timezone  
- Updated Datetime

###### Customer Updated
Starts when a customer is updated.
- ID  
- Channels  
- Created Datetime  
- Data  
- Email  
- External ID  
- Firstname  
- Integrations  
- Language  
- Lastname  
- Name  
- Timezone  
- Updated Datetime

###### Ticket Created
Starts when a ticket is created.
- ID  
- Assignee User  
- Channel  
- Closed Datetime  
- Created Datetime  
- Customer  
- Events  
- External ID  
- From Agent  
- Is Unread  
- Language  
- Last Message Datetime  
- Last Received Message Datetime  
- Messages  
- Meta  
- Opened Datetime  
- Reply Options  
- Satisfaction Survey  
- Snooze Datetime  
- Spam  
- Status  
- Subject  
- Tags  
- Trashed Datetime  
- Updated Datetime  
- Via  
- Uri

###### Ticket Updated
Starts when a ticket is updated.
- ID  
- Assignee User  
- Channel  
- Closed Datetime  
- Created Datetime  
- Customer  
- Events  
- External ID  
- From Agent  
- Is Unread  
- Language  
- Last Message Datetime  
- Last Received Message Datetime  
- Messages  
- Meta  
- Opened Datetime  
- Reply Options  
- Satisfaction Survey  
- Snooze Datetime  
- Spam  
- Status  
- Subject  
- Tags  
- Trashed Datetime  
- Updated Datetime  
- Via  
- Uri

###### Cancel Return
Cancel a return.

###### Close Return
Close a return.

###### Create Blacklist
Create a blacklist.
- Type  
- Value  
- Secondary Value

###### Create Order Link
Generate an order link that will take the user directly to their order.
- Designation  
- Name  
- Zip

###### Create Whitelist
Create a whitelist.
- Type  
- Value  
- Secondary Value

###### Delete Blacklist
Remove a blacklist.

###### Delete Whitelist
Remove a whitelist.

###### Flag Return
Mark a return.

###### List Blacklist
Obtain a list of blacklists.
- Current Page  
- Data  
- From  
- Last Page  
- Next Page URL  
- Path  
- Per Page  
- Prev Page URL  
- To  
- Total

###### List Details of Return
Obtain a list of return details.
- ID  
- Created At  
- Order ID  
- Order Name  
- Order Number  
- State  
- Currency  
- Refund  
- Gift Card  
- Exchange  
- Return Total  
- Line Items  
- Customer Email  
- Carrier  
- Label Status  
- Label Updated At  
- Tracking Number

###### List Packages Return
Obtain a list of all packages by tracking statuses or timeframe.
- ID  
- Created At  
- Updated At  
- Return Line Item ID  
- Order ID  
- Order Name  
- State  
- Customer Email  
- Title  
- Sku  
- Carrier  
- Label Status  
- Label Updated At  
- Tracking Number

###### List Returns Return
Obtain a list of returns that were created within a given timeframe.
- ID  
- State  
- Created At  
- Updated At  
- Order ID  
- Order Name  
- Provider Order ID  
- Order Number  
- Customer  
- Currency  
- Return Product Total  
- Return Discount Total  
- Return Tax Total  
- Return Total  
- Return Credit Total  
- Exchange Product Total  
- Exchange Discount Total  
- Exchange Tax Total  
- Exchange Total  
- Exchange Credit Total  
- Gift Card  
- Handling Fee  
- Refund  
- Upsell  
- Line Items  
- Exchanges  
- Carrier  
- Tracking Number  
- Label Status  
- Label Updated At

###### List Whitelist
Obtain a list of whitelists.
- Current Page  
- Data  
- From  
- Last Page  
- Next Page URL  
- Path  
- Per Page  
- Prev Page URL  
- To  
- Total

###### Process Return
Return the funds to the customer.

###### Retrieve Blacklist
Grab all details about the blacklist.
- ID  
- Created At  
- Type  
- Value  
- Secondary Value

###### Retrieve Whitelist
Grab all details about the whitelist.
- ID  
- Created At  
- Type  
- Value  
- Secondary Value

###### Create Customer
Create a customer.
- Channels  
- Data  
- Email  
- External ID  
- Language  
- Name  
- Timezone

###### Create Job
Schedule the execution of a job to run.
- Meta  
- Params  
- Scheduled Datetime  
- Type

###### Create Satisfaction Survey
Create a new satisfaction survey.
- Body Text  
- Created Datetime  
- Customer ID  
- Meta  
- Score  
- Scored Datetime  
- Sent Datetime  
- Should Send Datetime  
- Ticket ID

###### Create Tag
Create a tag.
- Decoration  
- Description  
- Name

###### Create Ticket
Create a ticket.
- Assignee Team  
- Assignee User  
- Channel  
- Closed Datetime  
- Created Datetime  
- Customer  
- External ID  
- From Agent  
- Language  
- Last Message Datetime  
- Last Received Message Datetime  
- Messages  
- Meta  
- Opened Datetime  
- Snooze Datetime  
- Spam  
- Status  
- Subject  
- Tags  
- Trashed Datetime  
- Updated Datetime  
- Via

###### Create Ticket Message
Create a message in a ticket.
- Attachments  
- Body HTML  
- Body Text  
- Channel  
- Created Datetime  
- External ID  
- Failed Datetime  
- From Agent  
- Message ID  
- Receiver  
- Sender  
- Sent Datetime  
- Source  
- Subject  
- Via

###### Create User
Create a new user.
- Bio  
- Email  
- External ID  
- Meta  
- Name  
- Roles

###### Delete Customer
Remove an existing customer.

###### Delete Job
Cancel a job at any time but keep in mind that actions that have been executed will not be reverted.

###### Delete Tag
Remove a tag.

###### Delete Ticket
Remove a ticket.

###### Delete Ticket's Message
Remove a message from a ticket.

###### Delete User
Remove an user.

###### Get List of Customers
Obtain a list of customers.
- ID  
- Created Datetime  
- Data  
- Email  
- External ID  
- Firstname  
- Language  
- Lastname  
- Name  
- Timezone  
- Updated Datetime

###### Get List of Events
Obtain a list of events.
- ID  
- Context  
- Created Datetime  
- Data  
- Object ID  
- Object Type  
- Type  
- User ID  
- Uri

###### Get List of Jobs
Obtain a list of jobs.
- ID  
- Cancel Requested Datetime  
- Cancelled Datetime  
- Created Datetime  
- Ended Datetime  
- Failed Datetime  
- Info  
- Locked Datetime  
- Meta  
- Params  
- Scheduled Datetime  
- Started Datetime  
- Status  
- Type  
- User ID  
- Uri

###### Get List of Satisfaction Surveys
Obtain a list of satisfaction surveys.
- ID  
- Body Text  
- Created Datetime  
- Customer ID  
- Meta  
- Score  
- Scored Datetime  
- Sent Datetime  
- Should Send Datetime  
- Ticket ID  
- Uri

###### Get List of Tags
Obtain a list of tags.
- ID  
- Created Datetime  
- Decoration  
- Deleted Datetime  
- Description  
- Name  
- Usage  
- Uri

###### Get List of Ticket's Messages
Obtain a list of all messages of a ticket.
- ID  
- Attachments  
- Body HTML  
- Body Text  
- Channel  
- Created Datetime  
- External ID  
- Failed Datetime  
- From Agent  
- Integration ID  
- Last Sending Error  
- Message ID  
- Receiver  
- Rule ID  
- Sender  
- Sent Datetime  
- Source  
- Stripped HTML  
- Stripped Text  
- Subject  
- Ticket ID  
- Via  
- Uri

###### Get List of Tickets
Obtain a list of tickets.
- ID  
- Assignee User  
- Channel  
- Closed Datetime  
- Created Datetime  
- Customer  
- Excerpt  
- External ID  
- From Agent  
- Integrations  
- Is Unread  
- Language  
- Last Message Datetime  
- Last Received Message Datetime  
- Messages Count  
- Meta  
- Opened Datetime  
- Requester  
- Snooze Datetime  
- Status  
- Subject  
- Tags  
- Updated Datetime  
- Via  
- Uri

###### Get List of Users
Obtain a list of users.
- ID  
- Active  
- Bio  
- Created Datetime  
- Deactivated Datetime  
- Email  
- External ID  
- Firstname  
- Lastname  
- Meta  
- Name  
- Roles  
- Updated Datetime

###### Merge Tags
Merge one or more tags into another tag. Source tags will be merged into the destination tag and then deleted.
- ID  
- Created Datetime  
- Decoration  
- Deleted Datetime  
- Description  
- Name  
- Usage  
- Uri

###### Retrieve Account
Grab your account details.
- Created Datetime  
- Deactivated Datetime  
- Domain  
- Settings  
- Status

###### Retrieve Customer
Grab all details about a customer.
- ID  
- Channels  
- Created Datetime  
- Data  
- Email  
- External ID  
- Firstname  
- Integrations  
- Language  
- Lastname  
- Name  
- Timezone  
- Updated Datetime

###### Retrieve Event
Grab all details about an event.
- ID  
- Context  
- Created Datetime  
- Data  
- Object ID  
- Object Type  
- Type  
- User ID  
- Uri

###### Retrieve Job
Grab all details about a job.
- ID  
- Cancel Requested Datetime  
- Cancelled Datetime  
- Created Datetime  
- Ended Datetime  
- Failed Datetime  
- Info  
- Locked Datetime  
- Meta  
- Params  
- Scheduled Datetime  
- Started Datetime  
- Status  
- Type  
- User ID  
- Uri

###### Retrieve Satisfaction Survey
Grab all details about a satisfaction survey.
- ID  
- Body Text  
- Created Datetime  
- Customer ID  
- Meta  
- Score  
- Scored Datetime  
- Sent Datetime  
- Should Send Datetime  
- Ticket ID  
- Uri

###### Retrieve Tag
Grab all details about a tag.
- ID  
- Created Datetime  
- Decoration  
- Deleted Datetime  
- Description  
- Name  
- Usage  
- Uri

###### Retrieve Ticket
Grab all details about a ticket.
- ID  
- Assignee User  
- Channel  
- Closed Datetime  
- Created Datetime  
- Customer  
- Events  
- External ID  
- From Agent  
- Is Unread  
- Language  
- Last Message Datetime  
- Last Received Message Datetime  
- Messages  
- Meta  
- Opened Datetime  
- Reply Options  
- Satisfaction Survey  
- Snooze Datetime  
- Spam  
- Status  
- Subject  
- Tags  
- Trashed Datetime  
- Updated Datetime  
- Via  
- Uri

###### Retrieve Ticket Message
Grab all details about a ticket's message.
- ID  
- Attachments  
- Body HTML  
- Body Text  
- Channel  
- Created Datetime  
- External ID  
- Failed Datetime  
- From Agent  
- Integration ID  
- Last Sending Error  
- Message ID  
- Receiver  
- Rule ID  
- Sender  
- Sent Datetime  
- Source  
- Stripped HTML  
- Stripped Text  
- Subject  
- Ticket ID  
- Via  
- Uri

###### Retrieve User
Grab all details about an user.
- ID  
- Active  
- Bio  
- Created Datetime  
- Deactivated Datetime  
- Email  
- External ID  
- Firstname  
- Lastname  
- Meta  
- Name  
- Roles  
- Updated Datetime

###### Update a Customer
Modify a customer's details
- Channels  
- Data  
- Email  
- External ID  
- Language  
- Name  
- Timezone

###### Update Job
Modify a job.
- Meta  
- Params  
- Scheduled Datetime  
- Status

###### Update Satisfaction Survey
Modify a satisfaction survey's details.
- Body Text  
- Created Datetime  
- Customer ID  
- Meta  
- Score  
- Scored Datetime  
- Sent Datetime  
- Should Send Datetime  
- Ticket ID

###### Update Tag
Modify a tag's details.
- Decoration  
- Description  
- Name

###### Update Ticket
Modify a ticket's details.
- Assignee Team  
- Assignee User  
- Channel  
- Closed Datetime  
- Customer  
- External ID  
- From Agent  
- Is Unread  
- Language  
- Last Message Datetime  
- Last Received Message Datetime  
- Meta  
- Opened Datetime  
- Snooze Datetime  
- Spam  
- Status  
- Subject  
- Tags  
- Trashed Datetime  
- Updated Datetime  
- Via

###### Update Ticket's Message
Modify a message in a ticket.
- Attachments  
- Body HTML  
- Body Text  
- Channel  
- External ID  
- Failed Datetime  
- From Agent  
- Message ID  
- Receiver  
- Sender  
- Sent Datetime  
- Source  
- Subject  
- Via

###### Update User
Modify an user's information
- Bio  
- Email  
- External ID  
- Meta  
- Name  
- New Password  
- Old Password  
- Roles

###### Upload File
Upload a file.
- Size  
- Name  
- Content Type  
- URL

## Integrate Gorgias with Loop Returns today.
Enjoy a 7-day free trial. Get your first workflow in minutes.
