Shopify Flow Now Accepts Relative URLs in Trigger Lifecycle Callbacks

Shopify Flow’s Trigger Lifecycle Callback extensions can now use relative URLs, simplifying local testing and deployment. Learn what changed, who it impacts, and how to update your apps today.

Shopify Flow Now Accepts Relative URLs in Trigger Lifecycle Callbacks
8 sections

Shopify’s latest developer update removes a long‑standing friction point for Flow app creators. Trigger Lifecycle Callback extensions, which previously demanded absolute HTTPS URLs, now accept relative paths. This change streamlines local development, reduces configuration churn, and keeps your codebase cleaner—all without sacrificing security.

What’s New? Relative URLs for Flow Trigger Lifecycle Callbacks

Historically, Flow Trigger Lifecycle Callback extensions required an absolute HTTPS URL (e.g., https://myapp.com/api/flow/callback). That meant developers had to maintain a publicly reachable endpoint even while testing locally, or constantly update the URL whenever a tunneling service like ngrok changed. The new support for relative URLs lets you specify just the endpoint path (e.g., /api/flow/callback) and lets Shopify resolve it against the appropriate base URL in each environment.

Why This Matters for Developers

  • Faster iteration – spin up a local server, run a tunnel, and you’re ready to test without editing configuration files.* Fewer deployment errors – no need to remember to replace a hard‑coded URL when moving from staging to production.* Cleaner code – URLs live alongside other route definitions, making the app manifest easier to read.
  • How It Works: Absolute vs. Relative URLs

    When you run your app in development mode (e.g., using Shopify CLI run), Shopify resolves any relative URL against the temporary tunnel URL generated by the CLI. During a production deployment, the same relative path is resolved against the app’s application_url set in the Partner Dashboard. If you need a fixed endpoint that never changes—perhaps an external service—you can still supply an absolute HTTPS URL. Note that protocol‑relative URLs (//example.com/…) are not supported, and the app must have an HTTPS application_url configured before you can use relative paths.

    Implementation Guide

  • Open your app’s shopify.app.toml (or the JSON manifest if you use the new schema).
  • Locate the trigger_lifecycle_callback section. Replace the absolute URL with just the path you want Flow to hit.
  • {

    "name": "order_fulfilled_callback",

    "trigger": "orders/fulfilled",

    "callback_url": "/api/flow/order_fulfilled"

    }

  • Ensure your development tunnel is active (Shopify CLI automatically starts one with shopify app serve or shopify tunnel start).
  • Deploy the updated manifest. In production, Shopify will prepend the URL you set under Application URL (e.g., https://myapp.myshopify.com) to the relative path, resulting in https://myapp.myshopify.com/api/flow/order_fulfilled.
  • Testing Locally with Tunnels

    Run shopify app serve or shopify tunnel start to spin up a secure HTTPS tunnel (ngrok, Cloudflare, etc.). Your app’s application_url is temporarily set to the tunnel address, so the relative callback resolves correctly. Trigger a Flow event in your test store, and you’ll see the request hit your local endpoint without any URL rewrites.

    Deployment Considerations

  • Verify that the app’s application_url in the Partner Dashboard is a valid HTTPS URL before releasing. If it’s missing or uses HTTP, Shopify will reject the relative path during deployment.* Keep an eye on environments that use multiple domains (e.g., a storefront domain vs. a custom app domain). Relative paths always resolve to the application_url, so they won’t automatically follow a different domain.* If you mix absolute and relative URLs in the same manifest, be consistent—don’t rely on Shopify to guess which base to use.
  • Best Practices

  • Use relative URLs for any endpoint that lives inside the same app codebase. Reserve absolute URLs for external services or webhook proxies.- Keep the path versioned (e.g., /api/v1/flow/callback) to avoid breaking existing flows when you iterate on the API.- Document the expected request shape in your README so other developers on the team know what Flow will send.- Add automated tests that mock Flow’s POST payload against your local tunnel to catch regressions early.
  • Conclusion & Next Steps

    The addition of relative URL support for Flow Trigger Lifecycle Callback extensions is a small but powerful win for Shopify developers. It eliminates the “hard‑coded URL” pain point, speeds up local testing, and makes your deployment pipeline smoother. Update your manifest today, spin up a tunnel, and experience the new workflow firsthand. Need help migrating your existing callbacks? Reach out in the Shopify Community forums or drop a comment below—we’re happy to troubleshoot together.

    Tags
    Sources

    Related Articles

    Flow Gains Real-Time “Updated” Triggers for Orders, Customers, and More

    Flow Gains Real-Time “Updated” Triggers for Orders, Customers, and More

    Shopify Flow now offers eight new “updated” triggers—covering customers, orders, refunds, fulfillments, returns, collections, locations, and inventory items. Learn what changed, who it impacts, and how to implement the new triggers to automate real‑time responses in your store.

    November 20, 20265 min
    Email and Text Receipts Now Mirror Your POS Printed Receipt

    Email and Text Receipts Now Mirror Your POS Printed Receipt

    Shopify POS receipts sent by email or SMS now use the same template as printed receipts, eliminating duplicate templates and simplifying compliance. Learn what changed, who it impacts, and how to update your settings and code.

    November 20, 20264 min
    Server Pixel Mutations Now Enforce App Access: What Developers Need to Know

    Server Pixel Mutations Now Enforce App Access: What Developers Need to Know

    Starting November 20 2026 Shopify’s eventBridgeServerPixelUpdate and pubSubServerPixelUpdate mutations require a user with app access. Learn what changed, who’s impacted, and how to adjust your code to avoid access‑denied errors.

    November 20, 20264 min
    Embedding YouTube & Vimeo Directly via File Reference Metafields in Shopify API 2027-01

    Embedding YouTube & Vimeo Directly via File Reference Metafields in Shopify API 2027-01

    Shopify’s 2027-01 API now lets file reference metafields store YouTube and Vimeo video URLs, unlocking seamless video embeds for merchants and developers. Learn what changed, who it affects, and how to implement the new feature today.

    November 20, 20265 min