{"id":93,"date":"2019-07-18T19:52:13","date_gmt":"2019-07-18T19:52:13","guid":{"rendered":"https:\/\/help.unitedover.com\/wpnotif\/?post_type=manual_kb&#038;p=93"},"modified":"2021-12-05T17:04:53","modified_gmt":"2021-12-05T17:04:53","slug":"how-to-use-whatsapp-business-api","status":"publish","type":"manual_kb","link":"https:\/\/help.unitedover.com\/wpnotif\/kb\/how-to-use-whatsapp-business-api\/","title":{"rendered":"How to use WhatsApp Business API"},"content":{"rendered":"<p>To send messages automatically using WhatsApp to your users\/customers the only way is to use WhatsApp Business API. WPNotif has a deep integration with WhatsApp Business API using gateway(s)<\/p>\n<p>To set up WhatsApp Business API in WPNotif, first, you need to have an account with any of our supported gateways for WhatsApp and get the API details from them and fill them in WPNotif settings. Also, Make sure WhatsApp Notifications are enabled in WPNotif settings<\/p>\n<h3>Step 1: Fill API Details<\/h3>\n<p>WPNotif supports multiple WhatsApp Business Gateways including <a href=\"https:\/\/www.twilio.com\/whatsapp\" target=\"_blank\" rel=\"noopener noreferrer\">Twilio<\/a>, <a href=\"https:\/\/www.messagebird.com\/whatsapp\/\" target=\"_blank\" rel=\"noopener noreferrer\">Messagebird<\/a>, <a href=\"https:\/\/www.karix.com\/whatsapp-business-api\/\" target=\"_blank\" rel=\"noopener noreferrer\">Karix<\/a>, <a href=\"https:\/\/www.gupshup.io\/developer\/whatsapp-api\" target=\"_blank\" rel=\"noopener noreferrer\">Gupshup<\/a>, etc.<\/p>\n<p>Here we&#8217;ll take Twilio as an example. Twilio API Credentials can be found under your <em>Project<\/em>\u00a0&gt;\u00a0<em>Project Settings<\/em>\u00a0&gt;\u00a0<em>API Credentials. <\/em>Copy these API details from Twilio and paste them in our settings in respective fields and make sure you turn the WhatsApp Switch to ON.<\/p>\n<p><img fetchpriority=\"high\" decoding=\"async\" class=\"\" src=\"https:\/\/help.unitedover.com\/wpnotif\/wp-content\/uploads\/sites\/3\/2019\/07\/866.png\" width=\"526\" height=\"347\" \/><\/p>\n<p>\u00a0<\/p>\n<h3>Step 2: Add WhatsApp Template<\/h3>\n<p><strong>Note: the template you fill here totally depends on your gateway, so please visit this page <a href=\"https:\/\/help.unitedover.com\/wpnotif\/gateway-settings\/\" target=\"_blank\" rel=\"noopener\">this page<\/a>.<\/strong><\/p>\n<p>But generally the templates for most gateway here is in the below format\u00a0<\/p>\n<pre class=\"wp-block-preformatted\">template-name =&gt; order-shipped <strong>(this value is provided by the gateway)<\/strong>\nnamespace =&gt; 32995840_dfdb_45b5_91c3_41tyh5fe7a84 <strong>(this value is provided by the gateway)<\/strong>\nlanguage =&gt; en\n1 =&gt; {{wc-order}} <strong>(this is WPNotif's placeholder)<\/strong>\n2 =&gt; {{date}} <strong>(this is WPNotif's placeholder)<\/strong><\/pre>\n<p><strong>So, you need to replace all the placeholders you set in WhatsApp template in your gateway with ours in the same sequence they come in your WhatsApp template in your gateway<\/strong><\/p>\n<p>But in most cases you will have different templates for SMS and WhatsApp so you can use it in the below method.<\/p>\n<pre class=\"wp-block-preformatted\">##SMS##\nYour order {{wc-order}} is shipped on {{date}}\n\n##WHATSAPP##\ntemplate-name =&gt; order-shipped\nnamespace =&gt; 32995840_dfdb_45b5_91c3_41tyh5fe7a84\nlanguage =&gt; en\n1 =&gt; {{wc-order}}\n2 =&gt; {{date}}<\/pre>\n<p><strong>Want to just use WhatsApp?<\/strong><\/p>\n<pre>##SMS##\n\n##WHATSAPP##\ntemplate-name =&gt; (the template name you define on 360Dialog)\nnamespace =&gt; (this value is provided by 360Dialog)\nlanguage =&gt; en\n1 =&gt; {{wc-order}}\n2 =&gt; {{date}}<br \/><br \/><\/pre>\n<p><strong>Note: the template you fill here totally depends on your gateway, so please visit this page <a href=\"https:\/\/help.unitedover.com\/wpnotif\/gateway-settings\/\" target=\"_blank\" rel=\"noopener\">this page<\/a>.<\/strong><\/p>\n<p>\u00a0<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-718\" src=\"https:\/\/help.unitedover.com\/wpnotif\/wp-content\/uploads\/sites\/3\/2019\/07\/1638720555.png\" alt=\"\" width=\"1282\" height=\"384\" srcset=\"https:\/\/help.unitedover.com\/wpnotif\/wp-content\/uploads\/sites\/3\/2019\/07\/1638720555.png 1282w, https:\/\/help.unitedover.com\/wpnotif\/wp-content\/uploads\/sites\/3\/2019\/07\/1638720555-300x90.png 300w, https:\/\/help.unitedover.com\/wpnotif\/wp-content\/uploads\/sites\/3\/2019\/07\/1638720555-1024x307.png 1024w, https:\/\/help.unitedover.com\/wpnotif\/wp-content\/uploads\/sites\/3\/2019\/07\/1638720555-768x230.png 768w\" sizes=\"(max-width: 1282px) 100vw, 1282px\" \/><\/p>\n<p>Once the settings are filled the setup will start working.<\/p>\n<p>\u00a0<\/p>\n<h3>Send Free WhatsApp Messages<\/h3>\n<p>To send free messages to your users\/customers using WhatsApp you can use WhatsApp Web gateway, please refer to the below documentation on how to set it up.<\/p>\n<p><blockquote class=\"wp-embedded-content\" data-secret=\"pXQq73giLT\"><a href=\"https:\/\/help.unitedover.com\/wpnotif\/kb\/how-to-use-whatsapp-web\/\">How to use WhatsApp Business Free<\/a><\/blockquote><iframe class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; clip: rect(1px, 1px, 1px, 1px);\" title=\"&#8220;How to use WhatsApp Business Free&#8221; &#8212; WPNotif Help\" src=\"https:\/\/help.unitedover.com\/wpnotif\/kb\/how-to-use-whatsapp-web\/embed\/#?secret=5ysHmj2hUR#?secret=pXQq73giLT\" data-secret=\"pXQq73giLT\" width=\"600\" height=\"338\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe><\/p>\n<p>\u00a0<\/p>\n\n\n<figure class=\"wp-block-embed-wordpress wp-block-embed is-type-wp-embed is-provider-wpnotif-help\"><div class=\"wp-block-embed__wrapper\">\n<blockquote class=\"wp-embedded-content\" data-secret=\"JbCy56X00I\"><a href=\"https:\/\/help.unitedover.com\/wpnotif\/kb\/how-to-setup-twilio-whatsapp-business-api\/\">How to setup Twilio WhatsApp Business API<\/a><\/blockquote><iframe class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; clip: rect(1px, 1px, 1px, 1px);\" title=\"&#8220;How to setup Twilio WhatsApp Business API&#8221; &#8212; WPNotif Help\" src=\"https:\/\/help.unitedover.com\/wpnotif\/kb\/how-to-setup-twilio-whatsapp-business-api\/embed\/#?secret=SNYJOfbjTT#?secret=JbCy56X00I\" data-secret=\"JbCy56X00I\" width=\"600\" height=\"338\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe>\n<\/div><\/figure>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":26,"template":"","format":"standard","manualknowledgebasecat":[2],"manual_kb_tag":[],"class_list":["post-93","manual_kb","type-manual_kb","status-publish","format-standard","hentry","manualknowledgebasecat-getting-started"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.6 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to use WhatsApp Business API - WPNotif Help<\/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:\/\/help.unitedover.com\/wpnotif\/kb\/how-to-use-whatsapp-business-api\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to use WhatsApp Business API - WPNotif Help\" \/>\n<meta property=\"og:description\" content=\"To send messages automatically using WhatsApp to your users\/customers the only way is to use WhatsApp Business API. WPNotif has a deep integration with WhatsApp Business API using gateway(s) To set up WhatsApp Business API in WPNotif, first, you need to have an account with any of our supported gateways for WhatsApp and get the [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/help.unitedover.com\/wpnotif\/kb\/how-to-use-whatsapp-business-api\/\" \/>\n<meta property=\"og:site_name\" content=\"WPNotif Help\" \/>\n<meta property=\"article:modified_time\" content=\"2021-12-05T17:04:53+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/help.unitedover.com\/wpnotif\/wp-content\/uploads\/sites\/3\/2019\/07\/866.png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/help.unitedover.com\/wpnotif\/kb\/how-to-use-whatsapp-business-api\/\",\"url\":\"https:\/\/help.unitedover.com\/wpnotif\/kb\/how-to-use-whatsapp-business-api\/\",\"name\":\"How to use WhatsApp Business API - WPNotif Help\",\"isPartOf\":{\"@id\":\"https:\/\/help.unitedover.com\/wpnotif\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/help.unitedover.com\/wpnotif\/kb\/how-to-use-whatsapp-business-api\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/help.unitedover.com\/wpnotif\/kb\/how-to-use-whatsapp-business-api\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/help.unitedover.com\/wpnotif\/wp-content\/uploads\/sites\/3\/2019\/07\/866.png\",\"datePublished\":\"2019-07-18T19:52:13+00:00\",\"dateModified\":\"2021-12-05T17:04:53+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/help.unitedover.com\/wpnotif\/kb\/how-to-use-whatsapp-business-api\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/help.unitedover.com\/wpnotif\/kb\/how-to-use-whatsapp-business-api\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/help.unitedover.com\/wpnotif\/kb\/how-to-use-whatsapp-business-api\/#primaryimage\",\"url\":\"https:\/\/help.unitedover.com\/wpnotif\/wp-content\/uploads\/sites\/3\/2019\/07\/866.png\",\"contentUrl\":\"https:\/\/help.unitedover.com\/wpnotif\/wp-content\/uploads\/sites\/3\/2019\/07\/866.png\",\"width\":1256,\"height\":829},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/help.unitedover.com\/wpnotif\/kb\/how-to-use-whatsapp-business-api\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/help.unitedover.com\/wpnotif\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to use WhatsApp Business API\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/help.unitedover.com\/wpnotif\/#website\",\"url\":\"https:\/\/help.unitedover.com\/wpnotif\/\",\"name\":\"WPNotif Help\",\"description\":\"WordPress SMS &amp; WhatsApp Notifications\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/help.unitedover.com\/wpnotif\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to use WhatsApp Business API - WPNotif Help","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:\/\/help.unitedover.com\/wpnotif\/kb\/how-to-use-whatsapp-business-api\/","og_locale":"en_US","og_type":"article","og_title":"How to use WhatsApp Business API - WPNotif Help","og_description":"To send messages automatically using WhatsApp to your users\/customers the only way is to use WhatsApp Business API. WPNotif has a deep integration with WhatsApp Business API using gateway(s) To set up WhatsApp Business API in WPNotif, first, you need to have an account with any of our supported gateways for WhatsApp and get the [&hellip;]","og_url":"https:\/\/help.unitedover.com\/wpnotif\/kb\/how-to-use-whatsapp-business-api\/","og_site_name":"WPNotif Help","article_modified_time":"2021-12-05T17:04:53+00:00","og_image":[{"url":"https:\/\/help.unitedover.com\/wpnotif\/wp-content\/uploads\/sites\/3\/2019\/07\/866.png","type":"","width":"","height":""}],"twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/help.unitedover.com\/wpnotif\/kb\/how-to-use-whatsapp-business-api\/","url":"https:\/\/help.unitedover.com\/wpnotif\/kb\/how-to-use-whatsapp-business-api\/","name":"How to use WhatsApp Business API - WPNotif Help","isPartOf":{"@id":"https:\/\/help.unitedover.com\/wpnotif\/#website"},"primaryImageOfPage":{"@id":"https:\/\/help.unitedover.com\/wpnotif\/kb\/how-to-use-whatsapp-business-api\/#primaryimage"},"image":{"@id":"https:\/\/help.unitedover.com\/wpnotif\/kb\/how-to-use-whatsapp-business-api\/#primaryimage"},"thumbnailUrl":"https:\/\/help.unitedover.com\/wpnotif\/wp-content\/uploads\/sites\/3\/2019\/07\/866.png","datePublished":"2019-07-18T19:52:13+00:00","dateModified":"2021-12-05T17:04:53+00:00","breadcrumb":{"@id":"https:\/\/help.unitedover.com\/wpnotif\/kb\/how-to-use-whatsapp-business-api\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/help.unitedover.com\/wpnotif\/kb\/how-to-use-whatsapp-business-api\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/help.unitedover.com\/wpnotif\/kb\/how-to-use-whatsapp-business-api\/#primaryimage","url":"https:\/\/help.unitedover.com\/wpnotif\/wp-content\/uploads\/sites\/3\/2019\/07\/866.png","contentUrl":"https:\/\/help.unitedover.com\/wpnotif\/wp-content\/uploads\/sites\/3\/2019\/07\/866.png","width":1256,"height":829},{"@type":"BreadcrumbList","@id":"https:\/\/help.unitedover.com\/wpnotif\/kb\/how-to-use-whatsapp-business-api\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/help.unitedover.com\/wpnotif\/"},{"@type":"ListItem","position":2,"name":"How to use WhatsApp Business API"}]},{"@type":"WebSite","@id":"https:\/\/help.unitedover.com\/wpnotif\/#website","url":"https:\/\/help.unitedover.com\/wpnotif\/","name":"WPNotif Help","description":"WordPress SMS &amp; WhatsApp Notifications","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/help.unitedover.com\/wpnotif\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"acf":[],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/help.unitedover.com\/wpnotif\/wp-json\/wp\/v2\/manual_kb\/93","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/help.unitedover.com\/wpnotif\/wp-json\/wp\/v2\/manual_kb"}],"about":[{"href":"https:\/\/help.unitedover.com\/wpnotif\/wp-json\/wp\/v2\/types\/manual_kb"}],"author":[{"embeddable":true,"href":"https:\/\/help.unitedover.com\/wpnotif\/wp-json\/wp\/v2\/users\/1"}],"version-history":[{"count":1,"href":"https:\/\/help.unitedover.com\/wpnotif\/wp-json\/wp\/v2\/manual_kb\/93\/revisions"}],"predecessor-version":[{"id":851,"href":"https:\/\/help.unitedover.com\/wpnotif\/wp-json\/wp\/v2\/manual_kb\/93\/revisions\/851"}],"wp:attachment":[{"href":"https:\/\/help.unitedover.com\/wpnotif\/wp-json\/wp\/v2\/media?parent=93"}],"wp:term":[{"taxonomy":"manualknowledgebasecat","embeddable":true,"href":"https:\/\/help.unitedover.com\/wpnotif\/wp-json\/wp\/v2\/manualknowledgebasecat?post=93"},{"taxonomy":"manual_kb_tag","embeddable":true,"href":"https:\/\/help.unitedover.com\/wpnotif\/wp-json\/wp\/v2\/manual_kb_tag?post=93"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}