{"id":15280,"date":"2023-10-06T10:15:11","date_gmt":"2023-10-06T08:15:11","guid":{"rendered":"https:\/\/guide.itscope.com\/?post_type=kb&#038;p=15280"},"modified":"2026-01-09T14:34:13","modified_gmt":"2026-01-09T12:34:13","slug":"set-up-webhooks","status":"publish","type":"kb","link":"https:\/\/guide.itscope.com\/en\/kb\/set-up-webhooks\/","title":{"rendered":"Set up webhooks"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">What are webhooks?<\/h2>\n\n\n\n<p>A webhook is a non-standard HTTP request that is triggered when something happens in the originating system.<\/p>\n\n\n\n<p>In the case of ITscope, this occurs when new deal or order response documents become available. For example, if a distributor A provides a new delivery note for an order from customer B, a webhook with this information will be sent to the corresponding URL (if everything has been configured correctly).<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Structure<\/h2>\n\n\n\n<p>ITscope&#8217;s webhooks are structured according to the following scheme:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td>eventId<\/td><td>ID of the sent webhook<\/td><\/tr><tr><td>timestamp<\/td><td>Timestamp of when the webhook was sent<\/td><\/tr><tr><td>eventType<\/td><td>Type of document that triggered the webhook. Possible values are ORDER, ORDERRESPONSE, DELIVERY and INVOICE<\/td><\/tr><tr><td>transactionStatus<\/td><td>New status of the order or deal (e.g. ARRIVED or PROCESSING)<\/td><\/tr><tr><td>orderId<\/td><td>ID of the order or deal<\/td><\/tr><tr><td>itscopeOrderId<\/td><td>ID of the order or deal assigned by ITscope<\/td><\/tr><tr><td>documentId<\/td><td>ID of the document that triggered the webhook<\/td><\/tr><tr><td>documentUrl<\/td><td>URL to access the actual document via ITscope API<\/td><\/tr><tr><td>transactionId<\/td><td>ID of the transaction<\/td><\/tr><\/tbody><\/table><figcaption class=\"wp-element-caption\">Structure of ITscope webhooks<\/figcaption><\/figure>\n\n\n\n<p>A webhook for a new dispatch notification could, for example, look like this:<\/p>\n\n\n\n<pre class=\"wp-block-code alignwide\"><code>{\n  \"eventId\": \"e2a6a466-3b62-4bb7-af53-b59aec592b49\",\n  \"timestamp\": \"2023-10-17T11:01:36\",\n  \"eventType\": \"DELIVERY\",\n  \"transactionStatus\": \"ADVISED\",\n  \"orderId\": \"123-SAMPLE-456\",\n  \"itscopeOrderId\": \"SAMPLE-123456-789\",\n  \"documentId\": \"123456789\",\n  \"documentUrl\": \"https:\/\/api.itscope.com\/2.1\/business\/documents\/123456789-1234-5678-9123-12SAMPLE4567\/DISPATCHNOTIFICATION.xml\",\n  \"transactionId\": \"123456789-1234-5678-9123-12SAMPLE4567\"\n}<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Set up<\/h2>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"495\" src=\"https:\/\/guide.itscope.com\/wp-content\/uploads\/2023\/10\/image-1-1024x495.png\" alt=\"\" class=\"wp-image-15275\" srcset=\"https:\/\/guide.itscope.com\/wp-content\/uploads\/2023\/10\/image-1-1024x495.png 1024w, https:\/\/guide.itscope.com\/wp-content\/uploads\/2023\/10\/image-1-300x145.png 300w, https:\/\/guide.itscope.com\/wp-content\/uploads\/2023\/10\/image-1-768x371.png 768w, https:\/\/guide.itscope.com\/wp-content\/uploads\/2023\/10\/image-1-1536x743.png 1536w, https:\/\/guide.itscope.com\/wp-content\/uploads\/2023\/10\/image-1.png 1913w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>The webhook settings can be accessed in the header bar above the <a href=\"https:\/\/www.itscope.com\/red\/app#companies\/account\/-\/webhooks\"><strong>profile picture on the right <\/strong>> <strong>My Account<\/strong> > <strong>Webhooks<\/strong><\/a> tab. This page is visible to all users. Changes can only be made if the executing user is a <strong>company admin<\/strong> and if the necessary modules have been purchased in the company&#8217;s contract<\/p>\n\n\n\n<p>The settings are roughly divided into two areas:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>The access data for the target system can be entered in \u201cBasic Authentication\u201d so that the webhooks can be sent with them if the server of the entered URLs expects such authentication. If a password has already been stored, asterisks are displayed to indicate the length of the password.<\/li>\n\n\n\n<li>The links to which the respective webhooks should be sent can be entered under URLs. To do this, the respective checkbox must be selected and an https URL must be entered. Only when both are fulfilled will the webhooks be sent. A dummy webhook can be sent to the entered URL using the \u201cTest\u201d button.<\/li>\n<\/ol>\n\n\n\n<p>The webhook settings are only saved once the \u201cApply changes\u201d button has been clicked.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>What are webhooks? A webhook is a non-standard HTTP request that is triggered when something happens in the originating system. In the case of ITscope, this occurs when new deal &#8230;<\/p>\n","protected":false},"author":36,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"footnotes":""},"kbtopic":[200],"kbtag":[],"class_list":["post-15280","kb","type-kb","status-publish","hentry","kbtopic-account-en"],"_links":{"self":[{"href":"https:\/\/guide.itscope.com\/en\/wp-json\/wp\/v2\/kb\/15280","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/guide.itscope.com\/en\/wp-json\/wp\/v2\/kb"}],"about":[{"href":"https:\/\/guide.itscope.com\/en\/wp-json\/wp\/v2\/types\/kb"}],"author":[{"embeddable":true,"href":"https:\/\/guide.itscope.com\/en\/wp-json\/wp\/v2\/users\/36"}],"replies":[{"embeddable":true,"href":"https:\/\/guide.itscope.com\/en\/wp-json\/wp\/v2\/comments?post=15280"}],"version-history":[{"count":6,"href":"https:\/\/guide.itscope.com\/en\/wp-json\/wp\/v2\/kb\/15280\/revisions"}],"predecessor-version":[{"id":19881,"href":"https:\/\/guide.itscope.com\/en\/wp-json\/wp\/v2\/kb\/15280\/revisions\/19881"}],"wp:attachment":[{"href":"https:\/\/guide.itscope.com\/en\/wp-json\/wp\/v2\/media?parent=15280"}],"wp:term":[{"taxonomy":"kbtopic","embeddable":true,"href":"https:\/\/guide.itscope.com\/en\/wp-json\/wp\/v2\/kbtopic?post=15280"},{"taxonomy":"kbtag","embeddable":true,"href":"https:\/\/guide.itscope.com\/en\/wp-json\/wp\/v2\/kbtag?post=15280"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}