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

# Connect AppFox to Shopify Flow for Order Edit Automations

> Trigger custom Shopify Flow automations from AppFox order edit events. Auto-tag orders, notify your warehouse, or reward upsells — no code required.

AppFox integrates natively with Shopify Flow, Shopify's built-in no-code automation builder. Every time a customer submits, approves, or declines an order edit — or accepts a post-purchase upsell — AppFox fires a Flow trigger that you can act on with any Flow action. AppFox also exposes its own Flow actions, so you can drive approval logic from other parts of your automation stack. No code, no webhooks to maintain.

## Available triggers

These AppFox events can start a Flow workflow:

* **Order edit submitted** — a customer submitted an edit request that is waiting for review or auto-processing
* **Order edit approved** — a merchant approved a queued edit request
* **Order edit declined** — a merchant declined a queued edit request
* **Order edit auto-applied** — an edit passed your eligibility rules and was applied instantly without manual review
* **Upsell offer accepted** — a customer accepted a post-purchase upsell offer during the edit flow

## Available actions

You can call these AppFox actions from inside any Flow workflow:

* **Approve a pending edit** — programmatically approve an edit request that is sitting in the approval queue
* **Decline a pending edit** — programmatically decline an edit request

## Example automations

<Accordion title="Auto-tag edited orders">
  **Trigger:** Order edit submitted

  **What it does:** Every time a customer submits an edit request, Flow adds the tag `customer-edited` to the order in Shopify. This makes it easy to filter edited orders in your admin, export them for review, or trigger downstream automations based on that tag.

  **Steps:**

  1. In Flow, create a new workflow with the **AppFox — Order edit submitted** trigger.
  2. Add a **Shopify — Add order tag** action.
  3. Set the tag value to `customer-edited`.
  4. Activate the workflow.
</Accordion>

<Accordion title="Notify warehouse on item removal">
  **Trigger:** Order edit auto-applied (item removed)

  **What it does:** When a customer removes an item and the edit is applied automatically, Flow sends a webhook to your warehouse system so pick lists and packing slips can be updated before the order ships — no manual intervention required.

  **Steps:**

  1. In Flow, create a new workflow with the **AppFox — Order edit auto-applied** trigger.
  2. Add a condition to check that the edit type is an item removal.
  3. Add an **HTTP request** action pointing to your warehouse webhook endpoint.
  4. Pass the order number and updated line items in the request body.
  5. Activate the workflow.
</Accordion>

<Accordion title="Add a gift on upsell acceptance">
  **Trigger:** Upsell offer accepted

  **What it does:** When a customer accepts a post-purchase upsell, Flow automatically adds a complimentary gift product to their order — a thank-you for the extra purchase that requires no manual fulfilment action on your end.

  **Steps:**

  1. In Flow, create a new workflow with the **AppFox — Upsell offer accepted** trigger.
  2. Add an **AppFox — Approve a pending edit** action (if the gift addition requires confirmation), or use a native Shopify action to add the gift line item directly.
  3. Optionally, add a **Shopify — Add order tag** action to tag the order `upsell-gift-added` for fulfilment tracking.
  4. Activate the workflow.
</Accordion>

## Set up the integration

<Steps>
  <Step title="Confirm your plan">
    Make sure your store is on the **Growth** or **Pro** plan. Open the AppFox dashboard and go to **Settings → Plan** to check or upgrade.
  </Step>

  <Step title="Open Shopify Flow">
    In your Shopify admin, go to **Apps → Flow**. If Flow isn't installed, add it from the Shopify App Store — it's free on all Shopify plans.
  </Step>

  <Step title="Create a new workflow">
    Click **Create workflow** and then **Browse triggers**. Search for **AppFox** in the trigger list to see all available AppFox events.
  </Step>

  <Step title="Build your automation">
    Select the trigger that matches your use case, then build out your workflow using Shopify Flow's visual builder. Add conditions and actions as needed — mix AppFox actions with native Shopify actions freely.
  </Step>

  <Step title="Activate the workflow">
    When your workflow is ready, click **Turn on workflow**. AppFox will begin firing the trigger in real time from that point forward.
  </Step>
</Steps>

<Note>
  Shopify Flow is available on all Shopify plans at no extra cost. AppFox Flow triggers and actions require the **Growth** ($19/mo) or **Pro** ($49/mo) plan.
</Note>
