Before Black Friday, test what a Shopify webhook retry sends twice
A customer places one order and gets two confirmation emails. The order record looks fine, but the app handling the notification has treated a second delivery as a second purchase. That was the…
A customer places one order and gets two confirmation emails. The order record looks fine, but the app handling the notification has treated a second delivery as a second purchase. That was the failure Shopify app developer Shahar Albeck asked teams to check on 21 November, ahead of Black Friday.
Test the second delivery
Replay a saved test delivery twice in a development store. Count the resulting fulfilment requests, loyalty credits or emails. Both deliveries can receive a successful response while the customer sees just one action. Check the downstream system as well as the app’s logs.
Shopify’s delivery guide distinguishes two identifiers. The webhook ID identifies a delivery across retries. The event ID can be shared by separate subscriptions listening to the same merchant action. Keying every job solely on the event ID could suppress work intended for a second subscription.
For an email, give the send operation a stable key based on the order and message type. If a worker stops after the mail provider accepts the message, the replacement worker needs a way to establish whether the send already happened. Marking the job complete before the provider accepts it introduces the opposite problem.
Trim traffic without losing the change you need
Developer Mohamed El Ghorfi offered a separate example on 21 November: an app interested only in active products can filter its product updates and request just the fields it uses. Shopify’s filtering guide explains how to narrow the subscription. Test a product that enters the filter and one that leaves it, especially if the receiving system keeps its own catalogue.
Shopify can debounce identical payloads delivered close together. If successive changes matter, its delivery reference recommends including a changing field such as updated_at. A small payload still needs enough information to tell the changes apart.
Shahar Albeck’s warning about duplicate deliveries
More from Shopify
See all →

