Articles on: Yanet Returns & Exchanges

How to Automate Return Requests with Shopify Flow

Overview

Yanet Returns & Exchanges integrates with Shopify Flow, allowing you to automate actions when a return or exchange request is created or its status changes.
With this integration, you can:

  • Add internal notes to return or exchange requests.
  • Automatically add tags to the orders associated with requests.
  • Automatically reject return or exchange requests based on your workflow conditions.
  • Use request data in Shopify Flow to support reporting, data storage, email notifications, and other automated workflows.


1. Access Yanet Returns & Exchanges in Shopify Flow

To get started:

  1. From your Shopify admin, open Apps > Shopify Flow.
  2. Click Create workflow to start a new workflow.
  3. In the trigger selection panel, search for Yanet Returns & Exchanges.
  4. Select one of the available triggers:
    • Return request created: Starts the workflow when a new return or exchange request is created.
    • Return request status changed: Starts the workflow whenever the status of a return or exchange request changes.


2. Configure a Workflow Trigger

Choose the trigger that matches the automation you want to create.

Return request created

Use this trigger when you want to perform an action immediately after a customer submits a return or exchange request.
For example, you can create a workflow to automatically add an order tag whenever a new exchange request is submitted.

Return request status changed

Use this trigger when you want to automate actions based on changes to a request's status.
For example, you can:

  • Add a tag to the order when a request is approved.
  • Add an internal note when a request is received.
  • Send a notification when a request is rejected.

You can also add a Condition step to check request information before proceeding with an action. For example, check whether the request type is Exchange before adding a specific order tag.


3. Choose an Action

After selecting a trigger, click the + button to add an action. Search for Yanet Returns & Exchanges to view the available actions.
The integration currently supports the following actions:

Add note to return request

Adds an internal note to the selected return or exchange request.
Use this action to record additional information or instructions for your support team.

Add order tag

Adds a tag to the Shopify order associated with the request.
Configure the following fields:

  • Request ID: Enter the ID of the request whose associated order you want to tag. You can use the requestId variable from the trigger.
  • Tag: Enter the tag text you want to apply.
Important:
  • The tag text must not contain commas.
  • The app automatically adds the Yanet: prefix to the tag.
  • The new Yanet tag replaces any other existing Yanet tag on the order.
  • The tag must not exceed 40 characters in total, including the prefix.



Reject return request

Automatically rejects the specified return or exchange request.
You can use this action together with conditions to define when a request should be rejected. For example, you can configure a workflow to reject exchange requests that meet specific criteria.


4. Use Return Request Data in Shopify Flow

When the Return request status changed trigger is selected, Yanet provides request information that can be used as variables in subsequent workflow steps.
This allows you to use request details in conditions, notifications, data storage, and other supported Shopify Flow actions.
The available data includes:

Field

Description

shop

Store information, including the Shopify domain

status

Current request status

previousStatus

Previous request status

requestId

Unique ID of the request

requestNumber

Request number

requestType

Request type, such as Return or Exchange

orderName

Associated Shopify order number

customerName

Customer's name

customerEmail

Customer's email address

customerNote

Note submitted by the customer

returnItems

Items included in the return request

exchangeItems

Items selected for exchange

refundMethod

Selected refund method

refundAmount

Refund amount

refundTaxAmount

Refund tax amount

refundFee

Refund fee

discountCode

Discount code, if applicable

giftCardCode

Gift card code, if applicable

storeCreditAmount

Store credit amount

creditExpirationDate

Store credit expiration date

returnMethod

Selected return method

returnLocation

Selected return location

pickupAddress

Pickup address, if applicable

trackingNumber

Return tracking number

trackingUrl

Tracking URL

shippingLabelUrl

Return shipping label URL

packingSlipUrl

Packing slip URL

productStatus

Current product status

previousProductStatus

Previous product status

declineReason

Reason for declining the request

currency

Currency used for the request

requestAdminUrl

Link to the request in the Yanet admin

Some fields may be empty depending on the request type, selected return method, or actions performed on the request.


5. Examples of Workflows

Here are a few ways you can use the integration:
Example 1: Automatically tag exchange orders

  1. Select Return request created as the trigger.
  2. Add a Condition to check whether the request type is Exchange.
  3. Under the True branch, select Add order tag.
  4. Enter the request ID using the requestId variable and specify the tag text.

Example 2: Record a note when a request is approved

  1. Select Return request status changed as the trigger.
  2. Add a Condition to check whether the current status is Approved.
  3. Under the True branch, select Add note to return request.
  4. Configure the note you want to add.

Example 3: Automatically reject requests that meet specific criteria

  1. Select Return request status changed as the trigger.
  2. Add the necessary conditions to identify the requests you want to reject.
  3. Under the matching branch, select Reject return request.


6. Turn On Your Workflow

Once you have configured the trigger, conditions, and actions:

  1. Review your workflow to make sure each step is configured correctly.
  2. Use Shopify Flow's testing feature to check the workflow with a test event, if available.
  3. Click Turn on workflow to activate the automation.

Your workflow will now run automatically when the selected trigger occurs and its conditions are met.

Updated on: 23/11/2026

Was this article helpful?

Share your feedback

Cancel

Thank you!