{"componentChunkName":"component---src-templates-simple-markdown-js","path":"/api/booking-flow/order/webhook/","matchPath":"","result":{"data":{"markdownRemark":{"html":"<h1 style=\"position:relative;\"><a href=\"#order-item-webhook\" aria-label=\"order item webhook permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a><div class=\"hidden-anchor\" id=\"order-item-webhook\"></div>Order item webhook</h1>\n<p>To receive live updates for an order item, we can set up a webhook notification for you. When an order item status changes (for example from <code class=\"language-text\">PENDING</code> to <code class=\"language-text\">OK</code>), details are sent directly to the URL you specify.</p>\n<h2 style=\"position:relative;\"><a href=\"#authentication\" aria-label=\"authentication permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a><div class=\"hidden-anchor\" id=\"authentication\"></div>Authentication</h2>\n<p>For added security, our webhook supports <a href=\"https://en.wikipedia.org/wiki/Basic_access_authentication\">basic access authentication</a>. Provide us with a username and password of your choosing and the webhook will include them in the <code class=\"language-text\">Authorization</code> header of the request.</p>\n<p>If this option is not possible for you, we can provide a list of our IP addresses so that you can set up a whitelist for your endpoint.</p>\n<h2 style=\"position:relative;\"><a href=\"#response\" aria-label=\"response permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a><div class=\"hidden-anchor\" id=\"response\"></div>Response</h2>\n<p>The body of the response is ignored. A 200 status code response confirms the request has been received and will be processed. All other status codes are treated as a failed attempt - another webhook request will be sent later.</p>\n<h2 style=\"position:relative;\"><a href=\"#example\" aria-label=\"example permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a><div class=\"hidden-anchor\" id=\"example\"></div>Example</h2>\n<p>Let's look at an example with our imaginary partner, <em>Acme</em>.</p>\n<p>They've set up a URL for our webhook at <code class=\"language-text\">https://www.acme-partner.com/api/v1/items/musement/webhook</code>. They've added additional authentication:</p>\n<ul>\n<li>\n<strong>Username</strong>\n: JohnSmith\n</li>\n<li>\n<strong>Password</strong>\n: Swordfish\n</li>\n</ul>\n<p>Before submitting the request, the username and password must be base-64 encoded first: <code class=\"language-text\">Sm9oblNtaXRoOlN3b3JkZmlzaA==</code></p>\n<p>The example below shows a typical webhook request along with the partner's URL and encoded authentication:</p>\n<div class=\"code-wrapper\">\n        <div class=\"gatsby-code-button-container\"\n             data-toaster-id=\"73071234788430496000\"\n             data-toaster-duration=\"1500\"\n             onClick=\"copyCodeToClipboard(`curl -X POST 'https://www.acme-partner.com/api/v1/items/musement/webhook' \\\\\n-H 'Authorization: Basic <redacted>' \\\\\n-H 'Content-Type: application/json' \\\\\n--data-raw '{\n\t&quot;order_id&quot;: &quot;13459345&quot;,\n\t&quot;order_uuid&quot;: &quot;8e9e5c6e-ea7d-4934-8753-f00954f30d00&quot;,\n\t&quot;order_created&quot;: &quot;2018-12-10T13:12:40+0000&quot;,\n\t&quot;order_updated&quot;: &quot;2018-12-10T13:12:40+0000&quot;,\n\t&quot;order_version&quot;: &quot;16&quot;,\n\t&quot;order_item_uuid&quot;: &quot;11045e18-e3ca-42e1-acb4-0d5be75036fd&quot;,\n\t&quot;order_item_created&quot;: &quot;2018-12-10T13:12:40+0000&quot;,\n\t&quot;order_item_updated&quot;: &quot;2018-12-10T13:12:40+0000&quot;,\n\t&quot;order_item_version&quot;: &quot;22&quot;,\n\t&quot;order_item_status&quot;: &quot;OK&quot;\n}'`, `73071234788430496000`)\"\n        >\n          <div class=\"gatsby-code-button\" title=\"Copy the code snippet\">Copy</div>\n          <div class=\"done-indicator done-indicator-73071234788430496000\">Copied</div>\n        </div>\n        <div class=\"gatsby-highlight\" data-language=\"bash\"><pre class=\"language-bash\"><code class=\"language-bash\"><span class=\"token function\">curl</span> <span class=\"token parameter variable\">-X</span> POST <span class=\"token string\">'https://www.acme-partner.com/api/v1/items/musement/webhook'</span> <span class=\"token punctuation\">\\</span>\n<span class=\"token parameter variable\">-H</span> <span class=\"token string\">'Authorization: Basic &lt;redacted>'</span> <span class=\"token punctuation\">\\</span>\n<span class=\"token parameter variable\">-H</span> <span class=\"token string\">'Content-Type: application/json'</span> <span class=\"token punctuation\">\\</span>\n--data-raw <span class=\"token string\">'{\n\t\"order_id\": \"13459345\",\n\t\"order_uuid\": \"8e9e5c6e-ea7d-4934-8753-f00954f30d00\",\n\t\"order_created\": \"2018-12-10T13:12:40+0000\",\n\t\"order_updated\": \"2018-12-10T13:12:40+0000\",\n\t\"order_version\": \"16\",\n\t\"order_item_uuid\": \"11045e18-e3ca-42e1-acb4-0d5be75036fd\",\n\t\"order_item_created\": \"2018-12-10T13:12:40+0000\",\n\t\"order_item_updated\": \"2018-12-10T13:12:40+0000\",\n\t\"order_item_version\": \"22\",\n\t\"order_item_status\": \"OK\"\n}'</span></code></pre></div>\n      </div>\n<h2 style=\"position:relative;\"><a href=\"#fallback\" aria-label=\"fallback permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a><div class=\"hidden-anchor\" id=\"fallback\"></div>Fallback</h2>\n<p>Unfortunately, webhook delivery is not guaranteed. It is strongly recommended to set up a fallback, allowing your integration to check an order item's status by calling <code class=\"language-text\">/orders/{orderUuid}</code>.</p>","headings":[{"value":"Order item webhook","depth":1},{"value":"Authentication","depth":2},{"value":"Response","depth":2},{"value":"Example","depth":2},{"value":"Fallback","depth":2}]},"contentItem":{"data":{"lastModified":"2025-12-18T16:31:42.000Z","enableToc":null,"disableLastModified":null,"tocMaxDepth":null,"requestLogin":false}},"siteConfig":{"enableToc":false,"disableLastModified":false,"tocMaxDepth":4}},"pageContext":{"matchPath":"","id":"8811cfd0-b643-5936-9484-3416a57ac147__redocly content/api/booking-flow/order/webhook/","seo":{"title":"Order item webhook","description":"Set up a webhook to receive notifications for changes to order items.","image":"","keywords":null,"jsonLd":null,"lang":null,"siteUrl":null},"pageId":"api/booking-flow/order/webhook.md","pageBaseUrl":"/api/booking-flow/order/webhook","type":"markdown","toc":{"enable":true,"maxDepth":4,"headings":[{"depth":1,"value":"Order item webhook","id":"order-item-webhook"},{"depth":2,"value":"Authentication","id":"authentication"},{"depth":2,"value":"Response","id":"response"},{"depth":2,"value":"Example","id":"example"},{"depth":2,"value":"Fallback","id":"fallback"}]},"data":{"title":"","redirectFrom":["/guide/orders-management/order-item-webhook/","/api/partner/booking-flow/order/order-item-webhook/","/api/partner/booking-flow/order/webhook/"],"seo":{"description":"Set up a webhook to receive notifications for changes to order items."}},"catalogInfo":null,"link":"/api/booking-flow/order/webhook/","sidebarName":"__alternative-sidebar__-data-24763-api-sidebars.yaml","isLanding":false,"showPrevButton":null,"showNextButton":null,"apiVersions":null,"apiVersionId":null,"isDefaultApiVersion":null}},"staticQueryHashes":["1123603147","1302185487","1344209882","1398840060","1520077861","1975142765","2667623876","2950305614","3240152602","3743992808","561138138"]}