---
title: "Work With Shopify Actions"
slug: "work-with-shopify-actions"
description: "If you’re using Gladly’s integration with Shopify, Agents can now cancel orders, initiate order refunds, and issue discounts in Gladly."
updated: 2025-02-12T20:58:36Z
published: 2025-02-12T20:58:36Z
---

> ## Documentation Index
> Fetch the complete documentation index at: https://help.gladly.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Work With Shopify Actions

Give your Support heroes a true command center for getting work done without jumping back and forth between Shopify and Gladly. If you’re using Gladly’s [integration](https://help.gladly.com/docs/set-up-shopify-integration) with Shopify, Agents can cancel orders, edit order notes, initiate order refunds, issue discounts, and more in Gladly.

## **Actions overview**

1. **Actions** must be activated on the [Shopify configuration](https://help.gladly.com/docs/set-up-shopify-integration) page.
2. A Customer's Profile in Gladly is linked to the Shopify Profile.
3. Every time an Agent views the Customer's Profile in Gladly, the latest Customer information is automatically retrieved from Shopify, including available Actions.
  - Gladly uses the Customer's email address and/or phone number to match a Customer in Shopify.
  - If automatic sync fails, a [manual lookup](https://help.gladly.com/docs/link-customer-profile-to-an-external-integrated-system/#manually-link-and-unlink-customer-data-from-an-external-system) is available.
4. Gladly displays the Actions as buttons in the Orders card in the Customer's Profile, menu selections within ![](https://cdn.us.document360.io/7047b671-c4f2-4df0-bb0a-b9b511fd2452/Images/Documentation/gladly-plus-icon-green(1).svg) menu, or both.
5. When an Agent selects an Action, Gladly instructs Shopify to perform the Action.
6. When the Action has been completed, the Customer's Profile information and available actions are refreshed.
7. A summary of the Action performed is logged to the Conversation Timeline.

## Activate Shopify Actions

Activate [Actions](https://help.gladly.com/docs/set-up-shopify-integration/?highlight=enable%20actions#edit-an-existing-shopify-connection) in the Shopify configuration page. All existing Shopify Action features like [Edit Notes, Cancel Order, Refund Order](/docs/update-shopify-order-notes), and any future enhancements will not appear if this is not activated.

![Settings for Shopify actions in Gladly, including toggle switch and explanatory text.](https://cdn.us.document360.io/7047b671-c4f2-4df0-bb0a-b9b511fd2452/Images/Documentation/shopify_actions.png)

When **Actions** is activated, proceed to activate/deactivate which Actions your Agents can perform in Gladly without going to Shopify. ![Shopify actions available for agents, including refunding and editing orders.](https://cdn.us.document360.io/7047b671-c4f2-4df0-bb0a-b9b511fd2452/Images/Documentation/shopify_actions_toggle.png)

- [Refund an order](/product-docs/docs/work-with-shopify-actions#refund-an-order) – Refund the full order amount.
- [Create a discount code](/product-docs/docs/work-with-shopify-actions#create-a-discount-code) – Create a one-time discount code.
- [Cancel an order](/product-docs/docs/work-with-shopify-actions#cancel-an-order) – Cancel and refund the full order amount.
- [Edit order tags](https://help.gladly.com/docs/shopify-order-detail-features#edit-tags) – Add and update an order's order category tag.
- [Edit order notes](/docs/update-shopify-order-notes) – Add and edit order notes.

## Work with Actions

### Cancel an order

- Display: “Cancel Order” button with the Orders card
- Availability:
  - |  | Unpaid | Partially Paid | Fully Paid | Partially Refunded | Fully Refunded |
| --- | --- | --- | --- | --- | --- |
| **Unfulfilled** | Cancel & Refund | Cancel & Refund | Cancel & Refund | Cancel & Refund | Cancel |
| **Partially Fulfilled** | Cancel & Refund | Cancel & Refund | Cancel & Refund | Cancel & Refund | Cancel |
| **Fully Fulfilled** | Cancel & Refund | Cancel & Refund | Cancel & Refund | Cancel & Refund | Cancel |
- Input: Cancellation reason (required)
- Outcome: Cancels the entire order, refunds the total amount available to refund, and posts to the Conversation Timeline upon success
- Notes:
  - Will not restock items in Shopify
  - Always refunds the full amount, including shipping fees
  - This Action refunds the remaining balance for partially paid orders
  - Option to notify the Customer

### Refund an order

- Display: “Refund Order” button with the Orders card
- Availability:
  - |  | Unpaid | Partially Paid | Fully Paid | Partially Refunded | Fully Refunded |
| --- | --- | --- | --- | --- | --- |
| **Unfulfilled** | — | Refund | Refund | Refund | — |
| **Partially Fulfilled** | — | Refund | Refund | Refund | — |
| **Fully Fulfilled** | — | Refund | Refund | Refund | — |
- Input: Reason (required)
- Outcome: Refunds the total amount available to refund and posts to the Conversation upon success
- Notes:
  - Will not restock items in Shopify
  - Always refund the full amount, including shipping fees
  - Option to notify the Customer

### Create a discount code

- Display: Menu selection in the Gladly Plus Sign
- Availability: Any Customer that is linked to a Shopify instance
- Input:
  - Discount Code: Code for the Customer to use to apply the discount (required)
  - Type: Fixed amount or percentage (required)
  - Value: Fixed or percentage amount (required)
    - Ex: If "Fixed" is chosen, `30 denotes $30. If "Percent" is chosen, 30 denotes 30%.
  - Applies To: Select a single collection that the discount applies to or select "All Collections" (required)
  - Expiration: 1, 3, 6, or 9 months or "Does not expire" (required)
- Outcome: Creates a discount code and posts to the Customer's Conversation Timeline upon success.
- Notes:
  - Discount codes are for one-time use only.
  - Discount codes apply only to line items, not to shipping costs.
  - Code must be unique.
  - Discount codes cannot be applied to multiple collections. It must be one or all.

## Constraints

- All Agents can perform all Actions.
- Actions are only available for Customers who are linked to Shopify.
- Actions will time out if not completed within 15 seconds.
- Shopify will apply its business rules before executing each Action.
- Gladly will display errors returned by Shopify but not your downstream systems connected to Shopify (e.g., fulfillment and inventory management).
