Shopify just rolled out a subtle but powerful change to the shop update webhook. Starting today, every shop update payload now carries a market‑driven shipping status, letting you see at a glance whether a merchant’s default shipping configuration is set to “fulfilled”, “unfulfilled”, or “partially fulfilled” based on the shopper’s location. For developers building custom logistics, inventory sync, or analytics solutions, this extra field eliminates a round‑trip to the Orders API and speeds up decision‑making.
What’s New
The shop/update webhook payload now includes a top‑level field called shipping_status. This field reflects the market‑driven shipping behavior that Shopify applies when a customer checks out in a specific region. Possible values are "fulfilled", "unfulfilled", and "partially_fulfilled". The value is derived from the merchant’s shipping settings, carrier service rules, and any location‑specific overrides. If the store has not configured market‑driven shipping, the field defaults to null, preserving backward compatibility.
Who Is Affected
The change primarily impacts developers who have registered a listener for the shop/update webhook – especially those building checkout extensions, shipping rate calculators, or fulfillment dashboards. Merchants indirectly feel the impact because any third‑party app that relies on real‑time shipping configuration will now receive more accurate data without extra API calls. Existing webhook consumers will continue to work, but they will start seeing the new shipping_status field in their payloads.
Why It Matters
Having shipping status in the webhook cuts latency and API costs. Instead of pulling the shop’s shipping settings via the REST or GraphQL Admin API after each shop update, your app can react instantly – for example, toggling a “ready‑to‑ship” badge in a custom dashboard or adjusting carrier‑service eligibility on the fly. It also standardises the data model across markets, so developers no longer need custom logic to infer shipping behaviour from multiple endpoints.
How to Update Your Webhook Handlers
Add a simple check for the new field in your webhook processing code. Below is a Node.js example using Express that validates the payload and logs the shipping status. If the field is missing (e.g., for older stores), fall back to your existing logic.
javascript
app.post('/webhooks/shop-update', async (req, res) => {
const payload = req.body;
const shippingStatus = payload.shipping_status || 'unknown';
console.log(Shop ${payload.id} shipping status: ${shippingStatus});
// Your existing handling …
res.sendStatus(200);
});
If you prefer GraphQL, the schema now includes:
graphql
type ShopUpdatePayload {
id: ID!
shipping_status: ShippingStatusEnum
// other fields …
}
enum ShippingStatusEnum {
FULFILLED
UNFULFILLED
PARTIALLY_FULFILLED
}
Testing the New Payload
From the Shopify admin, navigate to Settings → Notifications → Webhooks, locate your shop/update subscription, and click “Send test webhook”. The test payload will now include the shipping_status field populated based on the store’s current shipping configuration. Verify that your endpoint parses the field without errors and that any downstream logic reacts as expected.
Best Practices & Gotchas
• Guard against null: Some stores may not have market‑driven shipping enabled, so payload.shipping_status can be null. Treat this as “unknown” and retain your previous fallback.
• Versioning: If you’re using a custom GraphQL schema, bump the version number to avoid breaking older clients.
• Logging: Add a log entry the first time you see a non‑null shipping_status for a store – this helps you audit which merchants are benefiting from the new data.
• Rate limits: The webhook itself does not increase rate‑limit usage, but remember that any extra API calls you make in response still count toward your limit.
Next Steps
Update your webhook listener as shown above, monitor your logs for the new field, and run a few manual tests on sandbox stores. If you haven’t already, consider adding shipping_status to any analytics dashboards or fulfillment automations you provide. Need help? Join the Shopify Developers Slack or post a question on the forums – the community is ready to share implementation tips. Stay ahead of future updates by subscribing to the Shopify Developer Changelog.
