Connecting Shopify to action builder
Before you can include external actions in your action flows, you must connect the action builder to the external system.
- All external actions performed by an action flow are attributed to the user who connected the external system. Therefore, it is a best practice to use a dedicated service account rather than personal credentials when connecting to each external system.
- All integrations request access to necessary scopes. However, it's important that you review and validate the scopes before authorizing the connection to the external system.
- When managing credentials for API key-based tools, such as OpenAI, it's best to store keys in a secure vault or credential manager.
- In Admin Center, click
Apps and integrations in the sidebar, then select Actions > Action flows. - Create or edit an action flow.
- Open the step sidebar.
- Under External actions, click Shopify.
- Click Connect.
- Use the Shopify OAuth system to authenticate the account.Note: All external actions performed by an action flow are attributed to the user who connected the external system. Therefore, it is a best practice to use a dedicated service account rather than personal credentials when connecting to each external system.
After you've connected to the system, you'll see an indicator that it's connected and details about the instance you're connected to, as well as the actions available for Shopify.
Using Shopify actions in action flows
Shopify action steps make it possible to automatically populate customer information and order details when handling tickets, cancel tickets, and issue refunds without leaving Zendesk.
Searching for an order
Use the Search order action to retrieve details of a Shopify order using an email address, order ID, or order date.
This action has the following inputs and outputs:
| Variables | |
|---|---|
| Inputs | query |
| Output | orders |
Canceling an order
Use the Cancel order action to cancel the order in Shopify. When canceling an order, you can configure the action to also issue a refund, restock items, and notify the customer.
This action has the following inputs and outputs:
| Variables | |
|---|---|
| Inputs |
order_id, reason,
refund
|
| Output | none |
Creating a refund
Use the Create refund action to initiate a full refund process in Shopify. You can choose whether to notify customers.
This action has the following inputs and outputs:
| Variables | |
|---|---|
| Inputs |
order_id, notify_customer,
notes
|
| Output |
amount, id
|