{"id":111,"date":"2026-09-20T09:00:00","date_gmt":"2026-09-20T07:00:00","guid":{"rendered":"https:\/\/yindle.com\/?p=111"},"modified":"2026-09-21T22:01:44","modified_gmt":"2026-09-21T20:01:44","slug":"late-webhook-nieuwste-order-versie","status":"publish","type":"post","link":"https:\/\/yindle.com\/en\/handle-late-webhooks-and-order-versions\/","title":{"rendered":"Which order version wins when a webhook arrives late?"},"content":{"rendered":"<p>When a webhook arrives late, the last payload received must not automatically win: the demonstrably newest order version should. Treat the webhook as a trigger, retrieve the current order from the source and compare modification times with the version already processed locally. This prevents delayed message delivery from reversing a newer payment status, address correction or note.<\/p>\n<h2>Arrival order is not modification order<\/h2>\n<p>Networks, retries and plugins do not guarantee that webhooks arrive in the order in which the customer or online store made the changes. Message B can arrive before message A even though A is older. <a href=\"\/en\/handle-order-webhook-bursts\/\">A queue preserves only arrival order<\/a>. Anyone blindly storing every payload as the new truth turns a transport delay into a business error.<\/p>\n<p>Record at least three moments: when the source says the order changed, when the message arrived, and which source version has already been processed locally. Modification time determines the content; arrival time remains important for monitoring. If timing information is missing or unreliable, retrieving the order again is safer than guessing.<\/p>\n<h2>Freshness rules for order processing<\/h2>\n<ul>\n<li>Use the store plus order ID as the identity, never just the visible order number.<\/li>\n<li>Retrieve the current source order after a grouping window if the API is available.<\/li>\n<li>Ignore content that is demonstrably older than the last source change processed.<\/li>\n<li>Keep the ignored event as an audit entry with the reason \u201coutdated source version\u201d.<\/li>\n<li>Do not automatically repeat all side effects when the modification time is unchanged.<\/li>\n<li>Send conflicting versions without a reliable clock for a controlled comparison.<\/li>\n<\/ul>\n<p>These rules are more specific than general synchronisation. They belong at the order intake of an <a href=\"\/en\/woocommerce-afas-integration-guide\/\">WooCommerce\u2013AFAS integration<\/a>, before transformation into a debtor, sales order or invoice.<\/p>\n<h2>Fictional example: the old address arrives last<\/h2>\n<p>Fictional example: at 14:20, customer Sara corrects her house number in order 6208. The update is processed immediately and the current order receives source modification time 14:20. Because of a retry, a webhook payload arrives at 14:24 that was created at 14:18 and contains the old house number.<\/p>\n<p>The integration records the late message but sees that its source modification predates 14:20. It retrieves order 6208 again, confirms the new number and does not initiate an address change to AFAS or route planning. The order timeline states: \u201cmessage received at 14:24; content skipped because the source version was older\u201d. The employee can therefore explain why nothing happened. This fictional example also shows why \u201clast received\u201d alone is a dangerous definition of up to date.<\/p>\n<h2>Test the difficult edge cases<\/h2>\n<figure class=\"wp-block-table\">\n<table>\n<thead>\n<tr>\n<th>Scenario<\/th>\n<th>Desired decision<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>Older modification time, received later<\/td>\n<td>Keep an audit record; do not apply the content<\/td>\n<\/tr>\n<tr>\n<td>New modification time, same order<\/td>\n<td>Retrieve the current order and process it with checks<\/td>\n<\/tr>\n<tr>\n<td>Same time, identical content<\/td>\n<td>No duplicate external actions<\/td>\n<\/tr>\n<tr>\n<td>Clocks disagree<\/td>\n<td>Read the source again or request manual attention<\/td>\n<\/tr>\n<tr>\n<td>Source temporarily unavailable<\/td>\n<td>Retry the read step; do not write a payload that may be outdated<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/figure>\n<p>Show in <a href=\"\/en\/desk\/\">Desk<\/a> both the selected version and the reason another was skipped. This lets operations investigate an incident without raw logs. Meanwhile, the technical workflow in <a href=\"\/en\/connect\/\">Connect<\/a> remains repeatable: reading again is allowed, while a financial or logistical side effect starts only if the relevant state actually changed.<\/p>\n<p>Pay attention to normalisation when comparing times. Online stores and external plugins may supply local time, UTC or text without a time zone. Convert values to one format on arrival and retain the original value for investigation. Do not substitute processing time for a missing modification time; that masks precisely the sequencing error you want to prevent. For critical fields, consider maintaining a monotonically increasing version or content hash. This lets you demonstrate that the address, payment status or line items actually changed. Test around daylight saving changes, network retries and a manual correction shortly after checkout. The acceptance test is not \u201cthe newest webhook won\u201d, but \u201cthe data ultimately applied matches the latest valid state at the source\u201d.<\/p>\n<p>Always include both timelines in incident reports: the sequence of business changes and the technical order of arrival. This reveals whether the problem arose at the source, in transport or in processing. Without this distinction, a slow webhook can easily look like a mistake by the employee who entered the later correction.<\/p>\n<p>Are delayed messages making your orders appear to revert? <a href=\"\/en\/contact\/\">Ask Yindle to review the freshness rules in your order workflow<\/a>.<\/p>","protected":false},"excerpt":{"rendered":"<p>The last message received is not always the latest change. Separate source order from arrival order and explain skipped events.<\/p>","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-111","post","type-post","status-publish","format-standard","hentry","category-integraties"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.5 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Late webhook? Zo kies je de nieuwste orderversie<\/title>\n<meta name=\"description\" content=\"Gebruik wijzigingstijd en een actuele bronlezing om te voorkomen dat een vertraagde webhook nieuwe betaal-, adres- of ordergegevens terugdraait.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/yindle.com\/en\/handle-late-webhooks-and-order-versions\/\" \/>\n<meta property=\"og:locale\" content=\"en_GB\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Late webhook? Zo kies je de nieuwste orderversie\" \/>\n<meta property=\"og:description\" content=\"Gebruik wijzigingstijd en een actuele bronlezing om te voorkomen dat een vertraagde webhook nieuwe betaal-, adres- of ordergegevens terugdraait.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/yindle.com\/en\/handle-late-webhooks-and-order-versions\/\" \/>\n<meta property=\"og:site_name\" content=\"Yindle\" \/>\n<meta property=\"article:published_time\" content=\"2026-09-20T07:00:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-09-21T20:01:44+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/yindle.com\/wp-content\/themes\/yindle\/assets\/images\/yindle-social-share.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"630\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Yindle\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Yindle\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/yindle.com\\\/en\\\/handle-late-webhooks-and-order-versions\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/yindle.com\\\/en\\\/handle-late-webhooks-and-order-versions\\\/\"},\"author\":{\"@id\":\"https:\\\/\\\/yindle.com\\\/en\\\/#organization\"},\"headline\":\"Welke orderversie wint als een webhook te laat komt?\",\"datePublished\":\"2026-09-20T07:00:00+00:00\",\"dateModified\":\"2026-09-21T20:01:44+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/yindle.com\\\/en\\\/handle-late-webhooks-and-order-versions\\\/\"},\"wordCount\":657,\"publisher\":{\"@id\":\"https:\\\/\\\/yindle.com\\\/en\\\/#organization\"},\"articleSection\":[\"Integraties\"],\"inLanguage\":\"en-GB\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/yindle.com\\\/en\\\/handle-late-webhooks-and-order-versions\\\/\",\"url\":\"https:\\\/\\\/yindle.com\\\/en\\\/handle-late-webhooks-and-order-versions\\\/\",\"name\":\"Late webhook? Zo kies je de nieuwste orderversie\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/yindle.com\\\/en\\\/#website\"},\"datePublished\":\"2026-09-20T07:00:00+00:00\",\"dateModified\":\"2026-09-21T20:01:44+00:00\",\"description\":\"Gebruik wijzigingstijd en een actuele bronlezing om te voorkomen dat een vertraagde webhook nieuwe betaal-, adres- of ordergegevens terugdraait.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/yindle.com\\\/en\\\/handle-late-webhooks-and-order-versions\\\/#breadcrumb\"},\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/yindle.com\\\/en\\\/handle-late-webhooks-and-order-versions\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/yindle.com\\\/en\\\/handle-late-webhooks-and-order-versions\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/yindle.com\\\/en\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Welke orderversie wint als een webhook te laat komt?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/yindle.com\\\/en\\\/#website\",\"url\":\"https:\\\/\\\/yindle.com\\\/en\\\/\",\"name\":\"Yindle\",\"description\":\"Software voor e-commerce en klantprocessen\",\"publisher\":{\"@id\":\"https:\\\/\\\/yindle.com\\\/en\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/yindle.com\\\/en\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-GB\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/yindle.com\\\/en\\\/#organization\",\"name\":\"Yindle B.V.\",\"url\":\"https:\\\/\\\/yindle.com\\\/en\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\\\/\\\/yindle.com\\\/en\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/yindle.com\\\/wp-content\\\/uploads\\\/2026\\\/09\\\/yindle-site-icon.png\",\"contentUrl\":\"https:\\\/\\\/yindle.com\\\/wp-content\\\/uploads\\\/2026\\\/09\\\/yindle-site-icon.png\",\"width\":512,\"height\":512,\"caption\":\"Yindle B.V.\"},\"image\":{\"@id\":\"https:\\\/\\\/yindle.com\\\/en\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"legalName\":\"Yindle B.V.\",\"address\":{\"@type\":\"PostalAddress\",\"streetAddress\":\"Markt 43\",\"postalCode\":\"5554 CA\",\"addressLocality\":\"Valkenswaard\",\"addressCountry\":\"NL\"},\"identifier\":{\"@type\":\"PropertyValue\",\"propertyID\":\"KvK\",\"value\":\"99695367\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Late webhook? How to choose the latest order version","description":"Use modification times and a fresh source read to prevent a delayed webhook from reversing new payment, address or order data.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/yindle.com\/en\/handle-late-webhooks-and-order-versions\/","og_locale":"en_GB","og_type":"article","og_title":"Late webhook? Zo kies je de nieuwste orderversie","og_description":"Gebruik wijzigingstijd en een actuele bronlezing om te voorkomen dat een vertraagde webhook nieuwe betaal-, adres- of ordergegevens terugdraait.","og_url":"https:\/\/yindle.com\/en\/handle-late-webhooks-and-order-versions\/","og_site_name":"Yindle","article_published_time":"2026-09-20T07:00:00+00:00","article_modified_time":"2026-09-21T20:01:44+00:00","og_image":[{"width":1200,"height":630,"url":"https:\/\/yindle.com\/wp-content\/themes\/yindle\/assets\/images\/yindle-social-share.png","type":"image\/png"}],"author":"Yindle","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Yindle","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/yindle.com\/en\/handle-late-webhooks-and-order-versions\/#article","isPartOf":{"@id":"https:\/\/yindle.com\/en\/handle-late-webhooks-and-order-versions\/"},"author":{"@id":"https:\/\/yindle.com\/en\/#organization"},"headline":"Welke orderversie wint als een webhook te laat komt?","datePublished":"2026-09-20T07:00:00+00:00","dateModified":"2026-09-21T20:01:44+00:00","mainEntityOfPage":{"@id":"https:\/\/yindle.com\/en\/handle-late-webhooks-and-order-versions\/"},"wordCount":657,"publisher":{"@id":"https:\/\/yindle.com\/en\/#organization"},"articleSection":["Integraties"],"inLanguage":"en-GB"},{"@type":"WebPage","@id":"https:\/\/yindle.com\/en\/handle-late-webhooks-and-order-versions\/","url":"https:\/\/yindle.com\/en\/handle-late-webhooks-and-order-versions\/","name":"Late webhook? How to choose the latest order version","isPartOf":{"@id":"https:\/\/yindle.com\/en\/#website"},"datePublished":"2026-09-20T07:00:00+00:00","dateModified":"2026-09-21T20:01:44+00:00","description":"Use modification times and a fresh source read to prevent a delayed webhook from reversing new payment, address or order data.","breadcrumb":{"@id":"https:\/\/yindle.com\/en\/handle-late-webhooks-and-order-versions\/#breadcrumb"},"inLanguage":"en-GB","potentialAction":[{"@type":"ReadAction","target":["https:\/\/yindle.com\/en\/handle-late-webhooks-and-order-versions\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/yindle.com\/en\/handle-late-webhooks-and-order-versions\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/yindle.com\/en\/"},{"@type":"ListItem","position":2,"name":"Welke orderversie wint als een webhook te laat komt?"}]},{"@type":"WebSite","@id":"https:\/\/yindle.com\/en\/#website","url":"https:\/\/yindle.com\/en\/","name":"Yindle","description":"Software for e-commerce and customer processes","publisher":{"@id":"https:\/\/yindle.com\/en\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/yindle.com\/en\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-GB"},{"@type":"Organization","@id":"https:\/\/yindle.com\/en\/#organization","name":"Yindle B.V.","url":"https:\/\/yindle.com\/en\/","logo":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/yindle.com\/en\/#\/schema\/logo\/image\/","url":"https:\/\/yindle.com\/wp-content\/uploads\/2026\/09\/yindle-site-icon.png","contentUrl":"https:\/\/yindle.com\/wp-content\/uploads\/2026\/09\/yindle-site-icon.png","width":512,"height":512,"caption":"Yindle B.V."},"image":{"@id":"https:\/\/yindle.com\/en\/#\/schema\/logo\/image\/"},"legalName":"Yindle B.V.","address":{"@type":"PostalAddress","streetAddress":"Markt 43","postalCode":"5554 CA","addressLocality":"Valkenswaard","addressCountry":"NL"},"identifier":{"@type":"PropertyValue","propertyID":"KvK","value":"99695367"}}]}},"_links":{"self":[{"href":"https:\/\/yindle.com\/en\/wp-json\/wp\/v2\/posts\/111","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/yindle.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/yindle.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/yindle.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/yindle.com\/en\/wp-json\/wp\/v2\/comments?post=111"}],"version-history":[{"count":2,"href":"https:\/\/yindle.com\/en\/wp-json\/wp\/v2\/posts\/111\/revisions"}],"predecessor-version":[{"id":779,"href":"https:\/\/yindle.com\/en\/wp-json\/wp\/v2\/posts\/111\/revisions\/779"}],"wp:attachment":[{"href":"https:\/\/yindle.com\/en\/wp-json\/wp\/v2\/media?parent=111"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/yindle.com\/en\/wp-json\/wp\/v2\/categories?post=111"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/yindle.com\/en\/wp-json\/wp\/v2\/tags?post=111"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}