shopify flow
End a campaign from Shopify Flow
Learn how to end a campaign from Shopify Flow with a safe Juniper & Trail example, shopper impact, options, and recovery checks. The end action invokes the normal campaign end path and its full configured revert. Use it when workflow logic should stop a campaign without the special direct-price consequence of Early revert.
Before you begin
- A compatible Badgy plan entitlement
- Shopify Flow installed and permission to edit workflows
- A stable campaign identifier and safe test campaign
Confirm the shop, current status, and intended consequence before changing anything. Use read-only status, preview, or history evidence first.
Step-by-step setup

Search campaign sessions and filter their lifecycle or attention status.
Select the campaign session created or changed by the automation.
Verify the selected session state and recorded campaign action.
Inspect product change records when confirming completion or early revert.
- Open Shopify Flow → Badgy End campaign action for the intended shop and confirm the current record and status.
- Set Campaign ID for an ACTIVE campaign; already completed/reverted delivery is a safe 200 no-op, and Draft/Scheduled/other invalid state is 4xx.
- Read the inline summary, warning, or preflight before submitting; do not repeat a command while background work is running.
- Monitor the queued normal end and confirm full revert rather than treating the Flow step alone as completion.
- Confirm the resulting status and History/audit evidence, then spot-check Shopify or the storefront when the action has external effects.
The end action invokes the normal campaign end path and its full configured revert. Use it when workflow logic should stop a campaign without the special direct-price consequence of Early revert.
Juniper & Trail example
Juniper & Trail tests end a campaign from shopify flow against a controlled campaign, then confirms both the Flow run and Badgy audit trail before enabling the workflow. The documentation fixture uses realistic products, inventory states, variants, collections, and protected exclusions so the preview exercises the same decisions as a merchant catalog.
What shoppers will see
Flow changes when Badgy receives a command, but the same background activation and revert phases still determine storefront timing. Check the relevant result from product through cart where applicable. For shopper-facing work, compare desktop and mobile and verify both an eligible and an ineligible item.
Common mistakes and troubleshooting
- Acting on the wrong shop. Confirm the Shopify store and campaign before following End a campaign from Shopify Flow.
- Trusting a stale preview. Refresh after catalog, schedule, discount, theme, locale, or market changes.
- Repeating a background command. Read status and History first; retry only when Badgy presents a recoverable failure.
- Skipping the consequence check. Confirm what changes for shoppers and what the end or restore path will do.
If the status reports revoked authorization, reconnect Shopify before retrying. If the result still differs from the preview, preserve the campaign ID and approximate time, then open support from this identified shop. Never send customer data, access tokens, or full catalog exports in feedback.
Related guides
Options reference
| Option | Use it when | Consequence | | --- | --- | --- | | ACTIVE | Valid end input | Queues normal end | | Completed/Reverted | Duplicate delivery | 200 no-op | | Draft/Scheduled | Cannot end | 4xx permanent | | Transient failure | Infrastructure issue | 5xx retry |
Badgy behavior in this guide is reviewed against the repository's shipped UI, service rules, and feature design documents. Shopify-owned theme, Markets, Flow, billing, and discount behavior can also depend on the store's Shopify configuration; consult the Shopify Help Center for that platform configuration.