{"id":856,"date":"2026-10-29T13:38:51","date_gmt":"2026-10-29T13:38:51","guid":{"rendered":"https:\/\/vectalk.com.br\/blog\/woocommerce-whatsapp-business-api\/"},"modified":"2026-10-29T13:38:58","modified_gmt":"2026-10-29T13:38:58","slug":"woocommerce-whatsapp-business-api","status":"publish","type":"post","link":"https:\/\/vectalk.com.br\/blog\/en\/woocommerce-whatsapp-business-api\/","title":{"rendered":"WooCommerce + official WhatsApp Business API: order notifications without a shady plugin"},"content":{"rendered":"\n<p><em>Updated on October 29, 2026<\/em><\/p>\n\n\n\n<p>To connect WooCommerce to the official WhatsApp Business API, you listen for order status changes (with the PHP hook <code>woocommerce_order_status_changed<\/code> or a WooCommerce webhook) and, for each event, send a Meta-approved template to the customer&#8217;s phone. Order confirmation, payment received and shipping updates are utility templates; abandoned cart reminders are marketing. The customer must have agreed to receive these messages, and a checkbox at checkout is the natural place to ask.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Why to avoid &#8220;pirate&#8221; WhatsApp plugins<\/h2>\n\n\n\n<p>Many WhatsApp plugins for WooCommerce connect your number by scanning a QR code, as if it were WhatsApp Web. That is not the official API: the number can be banned, and there are no approved templates and no status webhooks. If the plugin is a &#8220;nulled&#8221; copy of a paid product, you are also installing code of unknown origin on the server that stores your customers&#8217; data. Our article on <a href=\"https:\/\/vectalk.com.br\/blog\/en\/official-vs-unofficial-whatsapp-api\/\">official vs. unofficial WhatsApp API<\/a> covers the risks in detail.<\/p>\n\n\n\n<p>With the <a href=\"https:\/\/vectalk.com.br\/blog\/en\/official-whatsapp-api\/\">official WhatsApp API<\/a>, the store sends Meta-approved templates, gets the status of every message and pays per delivered message at a public rate.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">The two integration paths<\/h2>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>Path<\/th><th>How it works<\/th><th>When to use it<\/th><\/tr><\/thead><tbody><tr><td>PHP hook inside WordPress<\/td><td>A small custom plugin listens to <code>woocommerce_order_status_changed<\/code> and calls the API<\/td><td>Single store, someone on the team maintains PHP<\/td><\/tr><tr><td>WooCommerce webhook<\/td><td>WooCommerce posts the order as JSON to your backend, n8n or Make<\/td><td>Logic outside WordPress, several stores, team that avoids PHP<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>The PHP hook has fewer moving parts; the webhook moves sending out of WordPress and makes it easier to reuse the same logic for other platforms, such as <a href=\"https:\/\/vectalk.com.br\/blog\/en\/shopify-whatsapp-api\/\">Shopify<\/a> and <a href=\"https:\/\/vectalk.com.br\/blog\/en\/nuvemshop-tiendanube-whatsapp-api\/\">Nuvemshop\/Tiendanube<\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Path 1: the <code>woocommerce_order_status_changed<\/code> hook<\/h2>\n\n\n\n<p>WooCommerce fires <code>woocommerce_order_status_changed<\/code> whenever an order moves from one status to another. The <a href=\"https:\/\/woocommerce.github.io\/code-reference\/files\/woocommerce-includes-class-wc-order.html\" target=\"_blank\" rel=\"noreferrer noopener\">WooCommerce code reference<\/a> shows its four arguments: order ID, old status, new status and the order object. There are also per-status hooks, such as <code>woocommerce_order_status_processing<\/code>, and <code>woocommerce_payment_complete<\/code>, fired when payment is confirmed.<\/p>\n\n\n\n<p>The built-in statuses that matter for notifications:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>Status (slug)<\/th><th>In the admin<\/th><th>Suggested notification<\/th><th>Category<\/th><\/tr><\/thead><tbody><tr><td><code>pending<\/code><\/td><td>Pending payment<\/td><td>Bank transfer, Pix or boleto issued, awaiting payment<\/td><td>Utility, if the text is only about the order<\/td><\/tr><tr><td><code>on-hold<\/code><\/td><td>On hold<\/td><td>Payment under review or awaiting confirmation<\/td><td>Utility<\/td><\/tr><tr><td><code>processing<\/code><\/td><td>Processing<\/td><td>Payment received, order being prepared<\/td><td>Utility<\/td><\/tr><tr><td><code>completed<\/code><\/td><td>Completed<\/td><td>Order shipped or delivered, with tracking<\/td><td>Utility<\/td><\/tr><tr><td><code>cancelled<\/code> \/ <code>failed<\/code><\/td><td>Cancelled \/ Failed<\/td><td>Order cancelled or payment declined<\/td><td>Utility<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>Which status an order paid by bank transfer, Pix (Brazil&#8217;s instant payment system) or boleto (a Brazilian bank payment slip) lands in depends on the payment gateway: place a test order with each method before mapping templates. Also check that the hook actually fires: when an order is created directly in its final status, with no change from one status to another, <code>woocommerce_order_status_changed<\/code> may not be called.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">PHP example<\/h3>\n\n\n\n<p>A minimal plugin: it maps statuses to templates, normalizes the phone number, respects opt-in and stores a flag on the order once the notification goes out, so it is never sent twice.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"language-php\">&lt;?php\n\/* Plugin Name: WhatsApp order notifications *\/\n\ndefined( 'ABSPATH' ) || exit;\n\nconst VT_API_URL = 'https:\/\/apis.vectalk.com.br\/api\/messages';\n\n\/\/ WooCommerce status =&gt; template approved by Meta\nfunction vt_templates() {\n\treturn array(\n\t\t'pending'    =&gt; 'order_awaiting_payment',\n\t\t'processing' =&gt; 'order_payment_received',\n\t\t'completed'  =&gt; 'order_shipped',\n\t);\n}\n\nadd_action( 'woocommerce_order_status_changed', 'vt_on_status_changed', 10, 4 );\n\nfunction vt_on_status_changed( $order_id, $from, $to, $order ) {\n\t$templates = vt_templates();\n\t$flag      = '_vt_whatsapp_' . $to;\n\t$phone     = vt_normalize_phone( $order-&gt;get_billing_phone() );\n\tif ( ! isset( $templates[ $to ] ) || ! $phone || ! vt_has_optin( $order ) || $order-&gt;get_meta( $flag ) ) {\n\t\treturn; \/\/ no template, no phone, no opt-in, or already notified\n\t}\n\n\t$body = array(\n\t\t'messaging_product' =&gt; 'whatsapp',\n\t\t'to'                =&gt; $phone,\n\t\t'type'              =&gt; 'template',\n\t\t'template'          =&gt; array(\n\t\t\t'name'       =&gt; $templates[ $to ],\n\t\t\t'language'   =&gt; array( 'code' =&gt; 'en_US' ),\n\t\t\t'components' =&gt; array(\n\t\t\t\tarray(\n\t\t\t\t\t'type'       =&gt; 'body',\n\t\t\t\t\t'parameters' =&gt; array(\n\t\t\t\t\t\tarray( 'type' =&gt; 'text', 'text' =&gt; $order-&gt;get_billing_first_name() ),\n\t\t\t\t\t\tarray( 'type' =&gt; 'text', 'text' =&gt; $order-&gt;get_order_number() ),\n\t\t\t\t\t),\n\t\t\t\t),\n\t\t\t),\n\t\t),\n\t);\n\n\t$response = wp_remote_post(\n\t\tVT_API_URL,\n\t\tarray(\n\t\t\t'timeout' =&gt; 10,\n\t\t\t'headers' =&gt; array(\n\t\t\t\t'Authorization' =&gt; 'Bearer ' . VT_TOKEN, \/\/ define it in wp-config.php\n\t\t\t\t'Content-Type'  =&gt; 'application\/json',\n\t\t\t),\n\t\t\t'body'    =&gt; wp_json_encode( $body ),\n\t\t)\n\t);\n\n\tif ( is_wp_error( $response ) || 200 !== wp_remote_retrieve_response_code( $response ) ) {\n\t\t$order-&gt;add_order_note( 'WhatsApp: failed to send ' . $templates[ $to ] );\n\t\treturn;\n\t}\n\n\t$data = json_decode( wp_remote_retrieve_body( $response ), true );\n\t$order-&gt;update_meta_data( $flag, $data['messages'][0]['id'] ?? 'sent' );\n\t$order-&gt;save();\n}\n\n\/\/ Brazilian example: \"(84) 99999-9999\" =&gt; \"5584999999999\"\nfunction vt_normalize_phone( $raw ) {\n\t$digits = preg_replace( '\/\\D\/', '', (string) $raw );\n\tif ( strlen( $digits ) === 10 || strlen( $digits ) === 11 ) {\n\t\t$digits = '55' . $digits; \/\/ default country code; change for your market\n\t}\n\treturn strlen( $digits ) &gt;= 12 ? $digits : '';\n}<\/code><\/pre>\n\n\n\n<p>Before going to production:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Keep the token out of the code.<\/strong> Define <code>VT_TOKEN<\/code> in <code>wp-config.php<\/code>, never in the repository.<\/li>\n\n\n<li><strong>Don&#8217;t block checkout.<\/strong> The call runs in the same request that changed the status. At volume, push sending to a queue.<\/li>\n\n\n<li><strong>Store the message ID.<\/strong> The returned <code>wamid<\/code> shows up in the <a href=\"https:\/\/vectalk.com.br\/blog\/en\/whatsapp-api-message-status-webhook\/\">status webhook<\/a> and tells you whether the notification was delivered.<\/li>\n\n<\/ul>\n\n\n\n<p>The code uses the order object&#8217;s methods (<code>get_meta<\/code>, <code>update_meta_data<\/code>, <code>save<\/code>) instead of <code>update_post_meta<\/code>, so it also works with High-Performance Order Storage (HPOS).<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Path 2: WooCommerce webhooks<\/h2>\n\n\n\n<p>Go to <strong>WooCommerce &gt; Settings &gt; Advanced &gt; Webhooks<\/strong>, click <strong>Add webhook<\/strong> and fill in name, status, topic, delivery URL and secret (<a href=\"https:\/\/woocommerce.com\/document\/webhooks\/\" target=\"_blank\" rel=\"noreferrer noopener\">webhooks documentation<\/a>). Order topics are <code>order.created<\/code>, <code>order.updated<\/code> and <code>order.deleted<\/code>; you can also use action topics, which map to a single hook, in the form <code>action.hook_name<\/code> (<a href=\"https:\/\/developer.woocommerce.com\/docs\/apis\/rest-api\/v3\/webhooks\/\" target=\"_blank\" rel=\"noreferrer noopener\">REST API v3<\/a>).<\/p>\n\n\n\n<p>The payload is the same JSON the REST API would return for that order, so your backend gets <code>status<\/code>, <code>billing.phone<\/code>, <code>number<\/code> and the line items. Each delivery carries the <code>X-WC-Webhook-Topic<\/code>, <code>X-WC-Webhook-ID<\/code>, <code>X-WC-Webhook-Delivery-ID<\/code> and <code>X-WC-Webhook-Signature<\/code> headers, the last one a base64-encoded HMAC-SHA256 of the body generated with your secret. Verify it before processing:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"language-php\">&lt;?php\n$raw       = file_get_contents( 'php:\/\/input' );\n$received  = $_SERVER['HTTP_X_WC_WEBHOOK_SIGNATURE'] ?? '';\n$expected  = base64_encode( hash_hmac( 'sha256', $raw, getenv( 'WC_WEBHOOK_SECRET' ), true ) );\n\nif ( ! hash_equals( $expected, $received ) ) {\n\thttp_response_code( 401 );\n\texit;\n}\n\n$order = json_decode( $raw, true );\n\/\/ $order['status'], $order['billing']['phone'], $order['number']...\nhttp_response_code( 200 );<\/code><\/pre>\n\n\n\n<p>Things to watch:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong><code>order.updated<\/code> fires on any change<\/strong>, not only on status transitions. Store the last status you notified and only send when it changes.<\/li>\n\n\n<li><strong>Reply fast with a 2xx.<\/strong> Anything other than 2xx, 301 or 302 counts as a failure, and WooCommerce disables the webhook after more than five consecutive failures (logs under <strong>WooCommerce &gt; Status &gt; Logs<\/strong>, source <code>webhooks-delivery<\/code>).<\/li>\n\n\n<li><strong>Initial ping.<\/strong> When you activate the webhook, WooCommerce pings the URL; accept it.<\/li>\n\n<\/ul>\n\n\n\n<p>No backend of your own? Point the webhook to an <a href=\"https:\/\/vectalk.com.br\/blog\/en\/n8n-whatsapp-business-api\/\">n8n<\/a> workflow.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Opt-in at checkout<\/h2>\n\n\n\n<p>Meta requires that you have the customer&#8217;s number and permission before your business starts the conversation, with your business name made clear (<a href=\"https:\/\/developers.facebook.com\/documentation\/business-messaging\/whatsapp\/getting-opt-in\" target=\"_blank\" rel=\"noreferrer noopener\">Get opt-in for WhatsApp<\/a>). Checkout is the simplest place to capture it.<\/p>\n\n\n\n<p>On the block-based checkout (WooCommerce 8.9 or later), use the <a href=\"https:\/\/developer.woocommerce.com\/docs\/block-development\/cart-and-checkout-blocks\/how-to-additional-checkout-fields-guide\/\" target=\"_blank\" rel=\"noreferrer noopener\">Additional Checkout Fields API<\/a>:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"language-php\">&lt;?php\nadd_action( 'woocommerce_init', function () {\n\tif ( ! function_exists( 'woocommerce_register_additional_checkout_field' ) ) {\n\t\treturn;\n\t}\n\twoocommerce_register_additional_checkout_field(\n\t\tarray(\n\t\t\t'id'       =&gt; 'my-store\/whatsapp-optin',\n\t\t\t'label'    =&gt; 'Send me updates about this order from Example Store on WhatsApp',\n\t\t\t'location' =&gt; 'order',\n\t\t\t'type'     =&gt; 'checkbox',\n\t\t\t'required' =&gt; false,\n\t\t)\n\t);\n} );\n\nfunction vt_has_optin( $order ) {\n\t$fields = \\Automattic\\WooCommerce\\Blocks\\Package::container()\n\t\t-&gt;get( \\Automattic\\WooCommerce\\Blocks\\Domain\\Services\\CheckoutFields::class );\n\treturn (bool) $fields-&gt;get_field_from_object( 'my-store\/whatsapp-optin', $order, 'other' );\n}<\/code><\/pre>\n\n\n\n<p>Good practices for the field:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Separate order updates from offers.<\/strong> One checkbox for order updates (utility) and another, unchecked, for offers (marketing). Agreeing to one is not agreeing to the other.<\/li>\n\n\n<li><strong>Never pre-check it.<\/strong> Consent must be the customer&#8217;s own action.<\/li>\n\n\n<li><strong>Keep proof.<\/strong> Also record the date and the exact text accepted.<\/li>\n\n<\/ul>\n\n\n\n<p>On the classic (shortcode) checkout, the field is added through the checkout form hooks, not this API. Our <a href=\"https:\/\/vectalk.com.br\/blog\/en\/whatsapp-opt-in-list\/\">WhatsApp opt-in list guide<\/a> has sample wording. If you sell to Brazil, the LGPD (Law 13,709\/2018, Brazil&#8217;s data protection law) applies to this data; this article is not legal advice.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Pending payments: bank transfer, Pix and boleto<\/h2>\n\n\n\n<p>Orders created but not paid need their own flow. In Brazil this is mostly Pix codes that expire and boletos with a due date:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>The order enters <code>pending<\/code> or <code>on-hold<\/code> (depending on the gateway). Immediately send the template with the amount and deadline.<\/li>\n\n\n<li>Schedule a check close to the expiry date. If the order is still in the same status, send a reminder.<\/li>\n\n\n<li>When the status moves to <code>processing<\/code>, cancel pending reminders and send the payment confirmation.<\/li>\n\n<\/ol>\n\n\n\n<p>Keep the text strictly about the order so Meta approves it as utility. Discounts, urgency (&#8220;hurry, stock is running out&#8221;) or product suggestions turn the template into marketing, according to the <a href=\"https:\/\/developers.facebook.com\/documentation\/business-messaging\/whatsapp\/templates\/template-categorization\" target=\"_blank\" rel=\"noreferrer noopener\">template categorization guidelines<\/a>. An abandoned cart, where no order exists yet, is always marketing and requires marketing opt-in. Our guide to <a href=\"https:\/\/vectalk.com.br\/blog\/en\/recover-pix-boleto-abandoned-cart-whatsapp\/\">recovering Pix, boleto and abandoned carts<\/a> covers timing, copy and the template with a payment button.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Templates by event and cost<\/h2>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>Event<\/th><th>Sample body<\/th><th>Category<\/th><th>Meta cost (Brazil)<\/th><\/tr><\/thead><tbody><tr><td>Order created, awaiting Pix<\/td><td>&#8220;Hi {{1}}. Your order {{2}} is awaiting Pix payment until {{3}}.&#8221;<\/td><td>Utility<\/td><td>R$ 0.0350<\/td><\/tr><tr><td>Payment received<\/td><td>&#8220;{{1}}, payment for order {{2}} has been confirmed.&#8221;<\/td><td>Utility<\/td><td>R$ 0.0350<\/td><\/tr><tr><td>Order shipped<\/td><td>&#8220;Your order {{1}} has shipped. Tracking code: {{2}}.&#8221;<\/td><td>Utility<\/td><td>R$ 0.0350<\/td><\/tr><tr><td>Abandoned cart<\/td><td>&#8220;You left {{1}} in your cart.&#8221;<\/td><td>Marketing<\/td><td>R$ 0.3217<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>Prices per delivered message for recipients in Brazil, in Brazilian reais (R$), since October 1, 2026 (<a href=\"https:\/\/developers.facebook.com\/documentation\/business-messaging\/whatsapp\/pricing\" target=\"_blank\" rel=\"noreferrer noopener\">Meta pricing<\/a>); rates differ by recipient country. Since that date, utility templates sent inside the customer service window are also charged, and the free tier of 1,000 messages per number per month applies only to service messages. More ready-to-use examples in <a href=\"https:\/\/vectalk.com.br\/blog\/en\/whatsapp-template-examples\/\">WhatsApp template examples<\/a> and the category rules in <a href=\"https:\/\/vectalk.com.br\/blog\/en\/whatsapp-template-categories\/\">how Meta categorizes your template<\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">How to do it with Vectalk<\/h2>\n\n\n\n<p>Vectalk is a proxy for Meta&#8217;s official WhatsApp Cloud API. The flow for a WooCommerce store:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><a href=\"https:\/\/apps.vectalk.com.br\/register\">Create your account<\/a> and connect your number; with coexistence, it stays on the WhatsApp Business app too.<\/li>\n\n\n<li>Create the templates in the dashboard (there is a Template Library) and wait for approval.<\/li>\n\n\n<li>Use the instance API key in the code above, which calls <code>POST https:\/\/apis.vectalk.com.br\/api\/messages<\/code> (<a href=\"https:\/\/docs.vectalk.com.br\/api-reference\/messages\/send-template\">send template<\/a>).<\/li>\n\n\n<li>Configure the instance webhook to receive statuses and replies.<\/li>\n\n\n<li>Top up your balance: each delivered message is deducted from your prepaid balance, with no card registered at Meta.<\/li>\n\n<\/ol>\n\n\n\n<p>Vectalk has no inbox or bulk sending in its dashboard: customer replies reach your own system or the support tool you already use through the webhook.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Frequently asked questions<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">Do I need a plugin to connect WooCommerce and WhatsApp?<\/h3>\n\n\n\n<p>No. A few lines of PHP on a hook, or a native WooCommerce webhook calling the official API, is enough.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Which phone number does WooCommerce use?<\/h3>\n\n\n\n<p>The billing phone field (<code>billing.phone<\/code>). It is free text, so normalize it to international format with digits only (country code + area code + number) before sending.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Can I send the tracking code on WhatsApp?<\/h3>\n\n\n\n<p>Yes, as a utility template with the code as a variable. Take the code from your shipping plugin or from wherever the store records it and pass it as a template parameter.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">My WooCommerce webhook stopped arriving. What happened?<\/h3>\n\n\n\n<p>Most likely it was disabled after more than five consecutive failures. Check its status under <strong>Settings &gt; Advanced &gt; Webhooks<\/strong>, look at the <code>webhooks-delivery<\/code> log, fix the endpoint and re-enable it.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p><strong>Official sources consulted on October 29, 2026:<\/strong> <a href=\"https:\/\/woocommerce.github.io\/code-reference\/files\/woocommerce-includes-class-wc-order.html\" target=\"_blank\" rel=\"noreferrer noopener\">WooCommerce: WC_Order class (status hooks)<\/a> \u00b7 <a href=\"https:\/\/woocommerce.com\/document\/webhooks\/\" target=\"_blank\" rel=\"noreferrer noopener\">WooCommerce: Webhooks<\/a> \u00b7 <a href=\"https:\/\/developer.woocommerce.com\/docs\/apis\/rest-api\/v3\/webhooks\/\" target=\"_blank\" rel=\"noreferrer noopener\">WooCommerce REST API v3: Webhooks<\/a> \u00b7 <a href=\"https:\/\/developer.woocommerce.com\/docs\/block-development\/cart-and-checkout-blocks\/how-to-additional-checkout-fields-guide\/\" target=\"_blank\" rel=\"noreferrer noopener\">WooCommerce: Additional checkout fields<\/a> \u00b7 <a href=\"https:\/\/developers.facebook.com\/documentation\/business-messaging\/whatsapp\/getting-opt-in\" target=\"_blank\" rel=\"noreferrer noopener\">Meta: Get opt-in for WhatsApp<\/a> \u00b7 <a href=\"https:\/\/developers.facebook.com\/documentation\/business-messaging\/whatsapp\/templates\/template-categorization\" target=\"_blank\" rel=\"noreferrer noopener\">Meta: Template categorization<\/a> \u00b7 <a href=\"https:\/\/developers.facebook.com\/documentation\/business-messaging\/whatsapp\/pricing\" target=\"_blank\" rel=\"noreferrer noopener\">Meta: Pricing<\/a> \u00b7 <a href=\"https:\/\/docs.vectalk.com.br\/api-reference\/messages\/send-template\">Vectalk: Send template<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>How to send WooCommerce order notifications on WhatsApp through the official API: PHP hook or webhook, the right template category and opt-in at checkout.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_post_was_ever_published":false},"categories":[1],"tags":[],"class_list":["post-856","post","type-post","status-publish","format-standard","hentry","category-blog"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.7 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>WooCommerce WhatsApp notifications via API | Vectalk<\/title>\n<meta name=\"description\" content=\"WooCommerce WhatsApp order notifications through the official API: webhooks or a PHP hook, sample code, checkout opt-in and pending payment reminders.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/vectalk.com.br\/blog\/en\/woocommerce-whatsapp-business-api\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"WooCommerce WhatsApp notifications via API | Vectalk\" \/>\n<meta property=\"og:description\" content=\"WooCommerce WhatsApp order notifications through the official API: webhooks or a PHP hook, sample code, checkout opt-in and pending payment reminders.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/vectalk.com.br\/blog\/en\/woocommerce-whatsapp-business-api\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog Vectalk\" \/>\n<meta property=\"article:published_time\" content=\"2026-10-29T13:38:51+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-10-29T13:38:58+00:00\" \/>\n<meta name=\"author\" content=\"wanderleyfcunha\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"wanderleyfcunha\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"10 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/vectalk.com.br\\\/blog\\\/en\\\/woocommerce-whatsapp-business-api\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/vectalk.com.br\\\/blog\\\/en\\\/woocommerce-whatsapp-business-api\\\/\"},\"author\":{\"name\":\"wanderleyfcunha\",\"@id\":\"https:\\\/\\\/vectalk.com.br\\\/blog\\\/#\\\/schema\\\/person\\\/ff36ecd9d8257856f227f8e5d639db2b\"},\"headline\":\"WooCommerce + official WhatsApp Business API: order notifications without a shady plugin\",\"datePublished\":\"2026-10-29T13:38:51+00:00\",\"dateModified\":\"2026-10-29T13:38:58+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/vectalk.com.br\\\/blog\\\/en\\\/woocommerce-whatsapp-business-api\\\/\"},\"wordCount\":1474,\"articleSection\":[\"Blog\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/vectalk.com.br\\\/blog\\\/en\\\/woocommerce-whatsapp-business-api\\\/\",\"url\":\"https:\\\/\\\/vectalk.com.br\\\/blog\\\/en\\\/woocommerce-whatsapp-business-api\\\/\",\"name\":\"WooCommerce WhatsApp notifications via API | Vectalk\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/vectalk.com.br\\\/blog\\\/#website\"},\"datePublished\":\"2026-10-29T13:38:51+00:00\",\"dateModified\":\"2026-10-29T13:38:58+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/vectalk.com.br\\\/blog\\\/#\\\/schema\\\/person\\\/ff36ecd9d8257856f227f8e5d639db2b\"},\"description\":\"WooCommerce WhatsApp order notifications through the official API: webhooks or a PHP hook, sample code, checkout opt-in and pending payment reminders.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/vectalk.com.br\\\/blog\\\/en\\\/woocommerce-whatsapp-business-api\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/vectalk.com.br\\\/blog\\\/en\\\/woocommerce-whatsapp-business-api\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/vectalk.com.br\\\/blog\\\/en\\\/woocommerce-whatsapp-business-api\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/vectalk.com.br\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"WooCommerce + official WhatsApp Business API: order notifications without a shady plugin\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/vectalk.com.br\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/vectalk.com.br\\\/blog\\\/\",\"name\":\"Blog Vectalk\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/vectalk.com.br\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/vectalk.com.br\\\/blog\\\/#\\\/schema\\\/person\\\/ff36ecd9d8257856f227f8e5d639db2b\",\"name\":\"wanderleyfcunha\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/21c37077f1731eb558973f27a7b647d55f72fde5200a843ac5f5345b247ea725?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/21c37077f1731eb558973f27a7b647d55f72fde5200a843ac5f5345b247ea725?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/21c37077f1731eb558973f27a7b647d55f72fde5200a843ac5f5345b247ea725?s=96&d=mm&r=g\",\"caption\":\"wanderleyfcunha\"},\"sameAs\":[\"https:\\\/\\\/vectalk.com.br\\\/blog\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"WooCommerce WhatsApp notifications via API | Vectalk","description":"WooCommerce WhatsApp order notifications through the official API: webhooks or a PHP hook, sample code, checkout opt-in and pending payment reminders.","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:\/\/vectalk.com.br\/blog\/en\/woocommerce-whatsapp-business-api\/","og_locale":"en_US","og_type":"article","og_title":"WooCommerce WhatsApp notifications via API | Vectalk","og_description":"WooCommerce WhatsApp order notifications through the official API: webhooks or a PHP hook, sample code, checkout opt-in and pending payment reminders.","og_url":"https:\/\/vectalk.com.br\/blog\/en\/woocommerce-whatsapp-business-api\/","og_site_name":"Blog Vectalk","article_published_time":"2026-10-29T13:38:51+00:00","article_modified_time":"2026-10-29T13:38:58+00:00","author":"wanderleyfcunha","twitter_card":"summary_large_image","twitter_misc":{"Written by":"wanderleyfcunha","Est. reading time":"10 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/vectalk.com.br\/blog\/en\/woocommerce-whatsapp-business-api\/#article","isPartOf":{"@id":"https:\/\/vectalk.com.br\/blog\/en\/woocommerce-whatsapp-business-api\/"},"author":{"name":"wanderleyfcunha","@id":"https:\/\/vectalk.com.br\/blog\/#\/schema\/person\/ff36ecd9d8257856f227f8e5d639db2b"},"headline":"WooCommerce + official WhatsApp Business API: order notifications without a shady plugin","datePublished":"2026-10-29T13:38:51+00:00","dateModified":"2026-10-29T13:38:58+00:00","mainEntityOfPage":{"@id":"https:\/\/vectalk.com.br\/blog\/en\/woocommerce-whatsapp-business-api\/"},"wordCount":1474,"articleSection":["Blog"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/vectalk.com.br\/blog\/en\/woocommerce-whatsapp-business-api\/","url":"https:\/\/vectalk.com.br\/blog\/en\/woocommerce-whatsapp-business-api\/","name":"WooCommerce WhatsApp notifications via API | Vectalk","isPartOf":{"@id":"https:\/\/vectalk.com.br\/blog\/#website"},"datePublished":"2026-10-29T13:38:51+00:00","dateModified":"2026-10-29T13:38:58+00:00","author":{"@id":"https:\/\/vectalk.com.br\/blog\/#\/schema\/person\/ff36ecd9d8257856f227f8e5d639db2b"},"description":"WooCommerce WhatsApp order notifications through the official API: webhooks or a PHP hook, sample code, checkout opt-in and pending payment reminders.","breadcrumb":{"@id":"https:\/\/vectalk.com.br\/blog\/en\/woocommerce-whatsapp-business-api\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/vectalk.com.br\/blog\/en\/woocommerce-whatsapp-business-api\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/vectalk.com.br\/blog\/en\/woocommerce-whatsapp-business-api\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/vectalk.com.br\/blog\/"},{"@type":"ListItem","position":2,"name":"WooCommerce + official WhatsApp Business API: order notifications without a shady plugin"}]},{"@type":"WebSite","@id":"https:\/\/vectalk.com.br\/blog\/#website","url":"https:\/\/vectalk.com.br\/blog\/","name":"Blog Vectalk","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/vectalk.com.br\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/vectalk.com.br\/blog\/#\/schema\/person\/ff36ecd9d8257856f227f8e5d639db2b","name":"wanderleyfcunha","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/21c37077f1731eb558973f27a7b647d55f72fde5200a843ac5f5345b247ea725?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/21c37077f1731eb558973f27a7b647d55f72fde5200a843ac5f5345b247ea725?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/21c37077f1731eb558973f27a7b647d55f72fde5200a843ac5f5345b247ea725?s=96&d=mm&r=g","caption":"wanderleyfcunha"},"sameAs":["https:\/\/vectalk.com.br\/blog"]}]}},"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/vectalk.com.br\/blog\/wp-json\/wp\/v2\/posts\/856","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/vectalk.com.br\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/vectalk.com.br\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/vectalk.com.br\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/vectalk.com.br\/blog\/wp-json\/wp\/v2\/comments?post=856"}],"version-history":[{"count":1,"href":"https:\/\/vectalk.com.br\/blog\/wp-json\/wp\/v2\/posts\/856\/revisions"}],"predecessor-version":[{"id":859,"href":"https:\/\/vectalk.com.br\/blog\/wp-json\/wp\/v2\/posts\/856\/revisions\/859"}],"wp:attachment":[{"href":"https:\/\/vectalk.com.br\/blog\/wp-json\/wp\/v2\/media?parent=856"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/vectalk.com.br\/blog\/wp-json\/wp\/v2\/categories?post=856"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/vectalk.com.br\/blog\/wp-json\/wp\/v2\/tags?post=856"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}