{"id":3494,"date":"2024-12-10T04:16:41","date_gmt":"2024-12-10T04:16:41","guid":{"rendered":"https:\/\/team.innoquad.in\/wordpress-team\/doce-demo\/wordpress\/?p=3494"},"modified":"2024-12-12T12:14:56","modified_gmt":"2024-12-12T12:14:56","slug":"create-webhooks","status":"publish","type":"post","link":"https:\/\/documentation.iqonic.design\/wpbookit\/create-webhooks\/","title":{"rendered":"Create Webhooks"},"content":{"rendered":"<div class=\"nolwrap\">\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1911\" height=\"945\" src=\"https:\/\/documentation.iqonic.design\/wpbookit\/wp-content\/uploads\/sites\/2\/2024\/12\/wpbookit_webhook_add.png\" alt=\"\" class=\"wp-image-3366\" \/><\/figure>\n\n\n\n<p>On the Webhooks page, click the <strong>New <\/strong>button to open the webhook creation form.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong> Fill Out the Webhook Details<\/strong><\/h2>\n\n\n\n<p>Provide the necessary information for the webhook configuration:<\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>Webhook Name<\/strong><\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Enter a unique name for your webhook. This name helps you identify its purpose (e.g., &#8220;New Booking Notification&#8221;).<\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>Module Name<\/strong><\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li> Select the module related to the webhook. For example, choose <strong>&#8220;Bookings&#8221;<\/strong> if the webhook is triggered by booking events or <strong>&#8220;Customer&#8221;<\/strong> if the webhook is triggered by customer events.<img loading=\"lazy\" decoding=\"async\" width=\"1910\" height=\"945\" class=\"wp-image-3367\" style=\"width: px\" src=\"https:\/\/documentation.iqonic.design\/wpbookit\/wp-content\/uploads\/sites\/2\/2024\/12\/wpbookit_webhook_module_name.png\" alt=\"\"><\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>Event Name<\/strong><\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Pick the specific event that will trigger the webhook. Examples include &#8220;New Booking,&#8221; &#8220;Edit Bookings,&#8221; or &#8220;Delete Booking.&#8221;<img loading=\"lazy\" decoding=\"async\" width=\"1913\" height=\"945\" class=\"wp-image-3368\" style=\"width: px\" src=\"https:\/\/documentation.iqonic.design\/wpbookit\/wp-content\/uploads\/sites\/2\/2024\/12\/wpbookit_webhook_select_event_name.png\" alt=\"\"><\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>Status<\/strong><\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Set the webhook&#8217;s status to <strong>Active<\/strong> to enable it. You can set it to <strong>Inactive<\/strong> if you want to temporarily disable it.<\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>Template Dynamic Keys List<\/strong><\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li> Select an event option it generate dynamic keys automictically for the selected module and event. These keys can be used to customize the webhook&#8217;s payload.<\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading\">HTTP Request<\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li>The <strong>HTTP Method<\/strong> field offers multiple options to define how data is transmitted to the external server. You can choose from the following methods based on your integration needs:<img loading=\"lazy\" decoding=\"async\" width=\"1913\" height=\"945\" class=\"wp-image-3370\" style=\"width: px\" src=\"https:\/\/documentation.iqonic.design\/wpbookit\/wp-content\/uploads\/sites\/2\/2024\/12\/wpbookit_webhook_select_http_request.png\" alt=\"\"><\/li>\n<\/ul>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>HTTP POST<\/strong>: Used for sending data securely to an external server (commonly used for creating or updating resources).<\/li>\n\n\n\n<li><strong>HTTP GET<\/strong>: Ideal for retrieving data from an external server.<\/li>\n\n\n\n<li><strong>HTTP DELETE<\/strong>: Used to request the deletion of resources on an external server.<\/li>\n\n\n\n<li><strong>HTTP PUT<\/strong>: Used for updating or replacing resources on an external server.<\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>Webhook URL<\/strong><\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Enter the URL of the external application or service where the webhook data should be sent.<\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading\"><strong> Add Headers (Optional)<\/strong><img loading=\"lazy\" decoding=\"async\" width=\"1910\" height=\"945\" class=\"wp-image-3372\" style=\"width: px\" src=\"https:\/\/documentation.iqonic.design\/wpbookit\/wp-content\/uploads\/sites\/2\/2024\/12\/wpbookit_webhook_add_header.png\" alt=\"\"><\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Click the <strong>Add Header<\/strong> button to include additional information in the webhook request, such as authentication tokens or custom fields.<\/li>\n\n\n\n<li>Provide the header name and value as required.<\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading\"><strong> Select Content Type<\/strong><img loading=\"lazy\" decoding=\"async\" width=\"1908\" height=\"945\" class=\"wp-image-3374\" style=\"width: px\" src=\"https:\/\/documentation.iqonic.design\/wpbookit\/wp-content\/uploads\/sites\/2\/2024\/12\/wpbookit_webhook_select_content_type.png\" alt=\"\"><\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Choose the content type for the data to be sent with the webhook request. The available options are:<\/li>\n<\/ul>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Form Data<\/strong>: Suitable for sending data in the standard <code>application\/x-www-form-urlencoded<\/code> format.<\/li>\n<\/ul>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>JSON Data<\/strong>: Ideal for sending data in a structured <code>application\/json<\/code> format, commonly used in modern API integrations.<\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>Form Data Section<\/strong><\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li>The <strong>Form Data<\/strong> section allows you to define custom key-value pairs that will be sent as part of the webhook request. Here&#8217;s how it works:<img loading=\"lazy\" decoding=\"async\" width=\"1911\" height=\"945\" class=\"wp-image-3375\" style=\"width: px\" src=\"https:\/\/documentation.iqonic.design\/wpbookit\/wp-content\/uploads\/sites\/2\/2024\/12\/wpbookit_webhook_add_form_filds-1.png\" alt=\"\"><\/li>\n<\/ul>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Add Form Data<\/strong>:\n<ul class=\"wp-block-list\">\n<li>Use the &#8220;Add Form Data&#8221; button to include additional key-value pairs in the request payload.<\/li>\n\n\n\n<li>This feature is useful for customizing the data being transmitted to external systems.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>Key Field<\/strong>:\n<ul class=\"wp-block-list\">\n<li>Enter the name of the parameter expected by the receiving system.<\/li>\n\n\n\n<li>This represents the identifier for the data being sent.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>Value Field<\/strong>:\n<ul class=\"wp-block-list\">\n<li>Assign a dynamic value to the key using predefined placeholders (e.g., <code>{{placeholder_name}}<\/code>).<\/li>\n\n\n\n<li>Copy the dynamic key form <strong>Template Dynamic Keys List<\/strong> and past in Value field of form data.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>Delete Field<\/strong>:\n<ul class=\"wp-block-list\">\n<li>Use the delete icon to remove unnecessary key-value pairs from the form data.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Similarly, you can add dynamic keys when using the JSON Content Type. This allows you to configure and send data in a structured JSON format with dynamic placeholders that are automatically populated during the webhook execution.<\/li>\n<\/ul>\n<\/div>","protected":false},"excerpt":{"rendered":"<p>On the Webhooks page, click the New button to open the webhook creation form. Fill Out the Webhook Details Provide the necessary information for the webhook configuration: Webhook Name Module Name Event Name Status Template Dynamic Keys List HTTP Request Webhook URL Add Headers (Optional) Select Content Type Form Data Section<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":3358,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13],"tags":[],"class_list":["post-3494","post","type-post","status-publish","format-standard","hentry","category-wpbookit-webhook-addon"],"featured_image_src":null,"author_info":{"display_name":"Iqonic Design","author_link":"https:\/\/documentation.iqonic.design\/wpbookit\/author\/dwd3f32kd2r2rf23wf4df\/"},"children":[],"_links":{"self":[{"href":"https:\/\/documentation.iqonic.design\/wpbookit\/wp-json\/wp\/v2\/posts\/3494","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/documentation.iqonic.design\/wpbookit\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/documentation.iqonic.design\/wpbookit\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/documentation.iqonic.design\/wpbookit\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/documentation.iqonic.design\/wpbookit\/wp-json\/wp\/v2\/comments?post=3494"}],"version-history":[{"count":1,"href":"https:\/\/documentation.iqonic.design\/wpbookit\/wp-json\/wp\/v2\/posts\/3494\/revisions"}],"predecessor-version":[{"id":3982,"href":"https:\/\/documentation.iqonic.design\/wpbookit\/wp-json\/wp\/v2\/posts\/3494\/revisions\/3982"}],"up":[{"embeddable":true,"href":"https:\/\/documentation.iqonic.design\/wpbookit\/wp-json\/wp\/v2\/posts\/3358"}],"wp:attachment":[{"href":"https:\/\/documentation.iqonic.design\/wpbookit\/wp-json\/wp\/v2\/media?parent=3494"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/documentation.iqonic.design\/wpbookit\/wp-json\/wp\/v2\/categories?post=3494"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/documentation.iqonic.design\/wpbookit\/wp-json\/wp\/v2\/tags?post=3494"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}