{"id":1293,"date":"2021-06-24T09:23:03","date_gmt":"2021-06-24T09:23:03","guid":{"rendered":"https:\/\/docs.yithemes.com\/yith-woocommerce-subscription\/?p=1293"},"modified":"2021-06-24T09:24:29","modified_gmt":"2021-06-24T09:24:29","slug":"webhook","status":"publish","type":"post","link":"https:\/\/docs.yithemes.com\/yith-woocommerce-subscription\/premium-settings\/webhook\/","title":{"rendered":"Webhook"},"content":{"rendered":"<p><span style=\"font-weight: 400;\">A <\/span><a href=\"http:\/\/en.wikipedia.org\/wiki\/Webhook\" target=\"_blank\" rel=\"noopener\"><b>Webhook<\/b><\/a><span style=\"font-weight: 400;\"> is an event notification sent to an URL of your choice. Users can configure them to trigger events on one site to invoke behavior on another.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Webhooks are useful for integrations with third-party services and other external APIs that support them.<\/span><\/p>\n<h4>How to create webhooks<\/h4>\n<p><span style=\"font-weight: 400;\">To create a new webhook:<\/span><br \/>\n<span style=\"font-weight: 400;\"><strong>1.<\/strong> go to <\/span><b>WooCommerce &gt; Settings &gt; Advanced &gt; Webhooks<\/b><span style=\"font-weight: 400;\">.<\/span><\/p>\n<p><i><span style=\"font-weight: 400;\">Note: Webhooks were formerly found under WooCommerce &gt; Settings &gt; API before WooCommerce 3.4.<\/span><\/i><\/p>\n<p><strong>2.<\/strong> <span style=\"font-weight: 400;\">Select <\/span><b>Create a new webhook<\/b><span style=\"font-weight: 400;\"> (first incident) or <\/span><b>Add webhook<\/b><span style=\"font-weight: 400;\">. The<\/span><b> Webhook Databox<\/b><span style=\"font-weight: 400;\">\u00a0will show.<\/span><\/p>\n<p><a href=\"https:\/\/docs.yithemes.com\/yith-woocommerce-subscription\/wp-content\/uploads\/sites\/325\/2021\/06\/woo-webhooks-e1624525786595.jpg\" data-rel=\"lightbox-image-0\" data-rl_title=\"\" data-rl_caption=\"\" title=\"\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1294\" src=\"https:\/\/docs.yithemes.com\/yith-woocommerce-subscription\/wp-content\/uploads\/sites\/325\/2021\/06\/woo-webhooks-e1624525786595.jpg\" alt=\"WooCommerce webhooks\" width=\"900\" height=\"455\" \/><\/a><\/p>\n<p><strong>3.<\/strong> Set the following:<\/p>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><b>Name<\/b><span style=\"font-weight: 400;\">: The <\/span><b>name<\/b><span style=\"font-weight: 400;\"> is auto-generated as \u201cWebhook created on [date and time of creation]\u201d as a standard to simplify its creation. Change the name to something else.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><b>Status<\/b><span style=\"font-weight: 400;\">: Set to <\/span><b>Active<\/b><span style=\"font-weight: 400;\"> (delivers payload), <\/span><b>Paused<\/b><span style=\"font-weight: 400;\"> (does not deliver), or<\/span><b> Disabled <\/b><span style=\"font-weight: 400;\">(does not deliver due to delivery failures).<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><b>Topic<\/b><span style=\"font-weight: 400;\">: Choose when the webhook should be triggered from<\/span><\/li>\n<\/ul>\n<p><span style=\"font-weight: 400;\">&#8211; subscription created<\/span><br \/>\n<span style=\"font-weight: 400;\">&#8211; subscription updated<\/span><br \/>\n<span style=\"font-weight: 400;\">&#8211; subscription deleted<\/span><br \/>\n<span style=\"font-weight: 400;\">&#8211; subscription restored<\/span><\/p>\n<p><a href=\"https:\/\/docs.yithemes.com\/yith-woocommerce-subscription\/wp-content\/uploads\/sites\/325\/2021\/06\/Webhook-topic.jpg\" data-rel=\"lightbox-image-1\" data-rl_title=\"\" data-rl_caption=\"\" title=\"\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1295\" src=\"https:\/\/docs.yithemes.com\/yith-woocommerce-subscription\/wp-content\/uploads\/sites\/325\/2021\/06\/Webhook-topic.jpg\" alt=\"Webhook topic\" width=\"512\" height=\"219\" srcset=\"https:\/\/docs.yithemes.com\/yith-woocommerce-subscription\/wp-content\/uploads\/sites\/325\/2021\/06\/Webhook-topic.jpg 512w, https:\/\/docs.yithemes.com\/yith-woocommerce-subscription\/wp-content\/uploads\/sites\/325\/2021\/06\/Webhook-topic-300x128.jpg 300w\" sizes=\"auto, (max-width: 512px) 100vw, 512px\" \/><\/a><\/p>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><b>Delivery URL<\/b><span style=\"font-weight: 400;\">: URL where the webhook payload is delivered.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><b>Secret<\/b><span style=\"font-weight: 400;\">: The Secret Key generates a hash of the delivered webhook and is provided in the request headers. This defaults to the current API user\u2019s consumer secret if nothing is entered.<\/span><\/li>\n<\/ul>\n<p><strong>4.<\/strong> Save Webhook.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>A Webhook is an event notification sent to an URL of your choice. Users can configure them to trigger events on one site to invoke behavior on another. Webhooks are useful for integrations with third-party services and other external APIs that support them. How to create webhooks To create a new webhook: 1. go to &hellip; <a href=\"https:\/\/docs.yithemes.com\/yith-woocommerce-subscription\/premium-settings\/webhook\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Webhook<\/span><\/a><\/p>\n","protected":false},"author":6,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[],"class_list":["post-1293","post","type-post","status-publish","format-standard","hentry","category-premium-settings"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.8.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>YITH WooCommerce Subscription: Webhook<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/docs.yithemes.com\/yith-woocommerce-subscription\/premium-settings\/webhook\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"YITH WooCommerce Subscription: Webhook\" \/>\n<meta property=\"og:description\" content=\"A Webhook is an event notification sent to an URL of your choice. Users can configure them to trigger events on one site to invoke behavior on another. Webhooks are useful for integrations with third-party services and other external APIs that support them. How to create webhooks To create a new webhook: 1. go to &hellip; Continue reading Webhook\" \/>\n<meta property=\"og:url\" content=\"https:\/\/docs.yithemes.com\/yith-woocommerce-subscription\/premium-settings\/webhook\/\" \/>\n<meta property=\"og:site_name\" content=\"YITH WooCommerce Subscription\" \/>\n<meta property=\"article:published_time\" content=\"2021-06-24T09:23:03+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-06-24T09:24:29+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/docs.yithemes.com\/yith-woocommerce-subscription\/wp-content\/uploads\/sites\/325\/2021\/06\/woo-webhooks-e1624525786595.jpg\" \/>\n<meta name=\"author\" content=\"alessandra\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"alessandra\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-subscription\/premium-settings\/webhook\/\",\"url\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-subscription\/premium-settings\/webhook\/\",\"name\":\"YITH WooCommerce Subscription: Webhook\",\"isPartOf\":{\"@id\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-subscription\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-subscription\/premium-settings\/webhook\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-subscription\/premium-settings\/webhook\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-subscription\/wp-content\/uploads\/sites\/325\/2021\/06\/woo-webhooks-e1624525786595.jpg\",\"datePublished\":\"2021-06-24T09:23:03+00:00\",\"dateModified\":\"2021-06-24T09:24:29+00:00\",\"author\":{\"@id\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-subscription\/#\/schema\/person\/526d0e378b94e5d769cc699423a893fd\"},\"breadcrumb\":{\"@id\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-subscription\/premium-settings\/webhook\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/docs.yithemes.com\/yith-woocommerce-subscription\/premium-settings\/webhook\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-subscription\/premium-settings\/webhook\/#primaryimage\",\"url\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-subscription\/wp-content\/uploads\/sites\/325\/2021\/06\/woo-webhooks-e1624525786595.jpg\",\"contentUrl\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-subscription\/wp-content\/uploads\/sites\/325\/2021\/06\/woo-webhooks-e1624525786595.jpg\",\"width\":900,\"height\":455,\"caption\":\"WooCommerce webhooks\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-subscription\/premium-settings\/webhook\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-subscription\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Webhook\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-subscription\/#website\",\"url\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-subscription\/\",\"name\":\"YITH WooCommerce Subscription\",\"description\":\"Plugin documentation\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-subscription\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-subscription\/#\/schema\/person\/526d0e378b94e5d769cc699423a893fd\",\"name\":\"alessandra\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-subscription\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/7a82076030fd86df0a1c777be78906d9?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/7a82076030fd86df0a1c777be78906d9?s=96&d=mm&r=g\",\"caption\":\"alessandra\"},\"url\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-subscription\/author\/alessandra\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"YITH WooCommerce Subscription: Webhook","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:\/\/docs.yithemes.com\/yith-woocommerce-subscription\/premium-settings\/webhook\/","og_locale":"en_US","og_type":"article","og_title":"YITH WooCommerce Subscription: Webhook","og_description":"A Webhook is an event notification sent to an URL of your choice. Users can configure them to trigger events on one site to invoke behavior on another. Webhooks are useful for integrations with third-party services and other external APIs that support them. How to create webhooks To create a new webhook: 1. go to &hellip; Continue reading Webhook","og_url":"https:\/\/docs.yithemes.com\/yith-woocommerce-subscription\/premium-settings\/webhook\/","og_site_name":"YITH WooCommerce Subscription","article_published_time":"2021-06-24T09:23:03+00:00","article_modified_time":"2021-06-24T09:24:29+00:00","og_image":[{"url":"https:\/\/docs.yithemes.com\/yith-woocommerce-subscription\/wp-content\/uploads\/sites\/325\/2021\/06\/woo-webhooks-e1624525786595.jpg","type":"","width":"","height":""}],"author":"alessandra","twitter_card":"summary_large_image","twitter_misc":{"Written by":"alessandra","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/docs.yithemes.com\/yith-woocommerce-subscription\/premium-settings\/webhook\/","url":"https:\/\/docs.yithemes.com\/yith-woocommerce-subscription\/premium-settings\/webhook\/","name":"YITH WooCommerce Subscription: Webhook","isPartOf":{"@id":"https:\/\/docs.yithemes.com\/yith-woocommerce-subscription\/#website"},"primaryImageOfPage":{"@id":"https:\/\/docs.yithemes.com\/yith-woocommerce-subscription\/premium-settings\/webhook\/#primaryimage"},"image":{"@id":"https:\/\/docs.yithemes.com\/yith-woocommerce-subscription\/premium-settings\/webhook\/#primaryimage"},"thumbnailUrl":"https:\/\/docs.yithemes.com\/yith-woocommerce-subscription\/wp-content\/uploads\/sites\/325\/2021\/06\/woo-webhooks-e1624525786595.jpg","datePublished":"2021-06-24T09:23:03+00:00","dateModified":"2021-06-24T09:24:29+00:00","author":{"@id":"https:\/\/docs.yithemes.com\/yith-woocommerce-subscription\/#\/schema\/person\/526d0e378b94e5d769cc699423a893fd"},"breadcrumb":{"@id":"https:\/\/docs.yithemes.com\/yith-woocommerce-subscription\/premium-settings\/webhook\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/docs.yithemes.com\/yith-woocommerce-subscription\/premium-settings\/webhook\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/docs.yithemes.com\/yith-woocommerce-subscription\/premium-settings\/webhook\/#primaryimage","url":"https:\/\/docs.yithemes.com\/yith-woocommerce-subscription\/wp-content\/uploads\/sites\/325\/2021\/06\/woo-webhooks-e1624525786595.jpg","contentUrl":"https:\/\/docs.yithemes.com\/yith-woocommerce-subscription\/wp-content\/uploads\/sites\/325\/2021\/06\/woo-webhooks-e1624525786595.jpg","width":900,"height":455,"caption":"WooCommerce webhooks"},{"@type":"BreadcrumbList","@id":"https:\/\/docs.yithemes.com\/yith-woocommerce-subscription\/premium-settings\/webhook\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/docs.yithemes.com\/yith-woocommerce-subscription\/"},{"@type":"ListItem","position":2,"name":"Webhook"}]},{"@type":"WebSite","@id":"https:\/\/docs.yithemes.com\/yith-woocommerce-subscription\/#website","url":"https:\/\/docs.yithemes.com\/yith-woocommerce-subscription\/","name":"YITH WooCommerce Subscription","description":"Plugin documentation","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/docs.yithemes.com\/yith-woocommerce-subscription\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/docs.yithemes.com\/yith-woocommerce-subscription\/#\/schema\/person\/526d0e378b94e5d769cc699423a893fd","name":"alessandra","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/docs.yithemes.com\/yith-woocommerce-subscription\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/7a82076030fd86df0a1c777be78906d9?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/7a82076030fd86df0a1c777be78906d9?s=96&d=mm&r=g","caption":"alessandra"},"url":"https:\/\/docs.yithemes.com\/yith-woocommerce-subscription\/author\/alessandra\/"}]}},"_links":{"self":[{"href":"https:\/\/docs.yithemes.com\/yith-woocommerce-subscription\/wp-json\/wp\/v2\/posts\/1293","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/docs.yithemes.com\/yith-woocommerce-subscription\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/docs.yithemes.com\/yith-woocommerce-subscription\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/docs.yithemes.com\/yith-woocommerce-subscription\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/docs.yithemes.com\/yith-woocommerce-subscription\/wp-json\/wp\/v2\/comments?post=1293"}],"version-history":[{"count":2,"href":"https:\/\/docs.yithemes.com\/yith-woocommerce-subscription\/wp-json\/wp\/v2\/posts\/1293\/revisions"}],"predecessor-version":[{"id":1298,"href":"https:\/\/docs.yithemes.com\/yith-woocommerce-subscription\/wp-json\/wp\/v2\/posts\/1293\/revisions\/1298"}],"wp:attachment":[{"href":"https:\/\/docs.yithemes.com\/yith-woocommerce-subscription\/wp-json\/wp\/v2\/media?parent=1293"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.yithemes.com\/yith-woocommerce-subscription\/wp-json\/wp\/v2\/categories?post=1293"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.yithemes.com\/yith-woocommerce-subscription\/wp-json\/wp\/v2\/tags?post=1293"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}