Knowledge Base

This Slack notification setup connects WooCommerce order events to a Slack channel through AnyAPI. You will create an incoming webhook, configure a manual integration, and check the notification and API response.

The Starter walkthrough uses a fixed message. Afterwards, Lite users can add order-specific details through Expert mode.

Plan required: Starter for the fixed-message workflow; Lite for Expert-mode variables
Destination: A Slack app’s incoming webhook

Before You Start

Prepare the following:

  • A WordPress site with WooCommerce and AnyAPI active.
  • A Slack workspace where you can install an app or obtain administrator approval.
  • A channel for test notifications.
  • Access to create a WooCommerce test order.

For context and use cases, see the WooCommerce Slack notification overview.

Because this guide uses a manually configured integration, you do not need to start from an integration template.

Step 1: Create a Slack Incoming Webhook

First, follow Slack’s incoming webhook guide to create an app for your workspace.

  1. Create an app and select your workspace.
  2. Open Incoming Webhooks in the app settings.
  3. Enable Activate Incoming Webhooks.
  4. Then, select Add New Webhook to Workspace.
  5. Choose the destination channel and approve the installation.

Copy the webhook URL that Slack provides.

Slack incoming webhook settings showing the destination channel

Because this URL contains a secret, keep it private. Mask the complete URL in screenshots shared publicly or with support.

Step 2: Add a Key for Your Slack Notification Setup

Slack incoming webhooks authenticate through their URL, so this workflow does not need a separate Slack Bearer Token. However, AnyAPI requires a saved API Key entry for the outgoing integration.

Open AnyAPI → API Keys, click Add API Key, and create this dummy entry:

FieldValue
Key NameSlack Placeholder
Authentication TypeBearer Token
Bearer Tokenunused
StatusActive

Then, click Save Key.

AnyAPI dummy Bearer Token key for a Slack notification integration
Example of an existing dummy key in the Edit API Key form. The screenshots use Documentation Test Dummy as the label; it serves the same role as Slack Placeholder in this guide.

The dummy value is not a Slack API token. Instead, use your actual Slack webhook URL as the destination in the next step.

For more information, read API Key Management.

Step 3: Configure the Slack Notification Setup

Next, open AnyAPI → Order API and click New Integration.

Choose URL / API as the destination type, then configure:

SettingValue
Integration NameSlack New Order Alert
API URLYour Slack incoming webhook URL
API KeySlack Placeholder

In API Payload (JSON), enter:

📋
JSON
Copy
{"text": "🎉 New WooCommerce order received! Check your store admin for details."}
Slack notification setup in AnyAPI Starter with a static JSON message
Example settings in Starter. Replace the example endpoint with your own Slack webhook URL.

The payload contains fixed text, so matching orders produce the same message. As a result, it signals that an order event occurred without including customer details.

Do not add {{variable}} placeholders to this Basic-mode example. If you need order-specific text, use the Lite example later in this guide.

After checking the fields, click Next.

Step 4: Select the New Order Trigger

Choose New Order in the Trigger step.

AnyAPI Starter trigger selection with New Order selected

Starter includes Watch Orders, New Order, and Processing. However, the additional triggers shown in the interface require Lite.

For this walkthrough, keep New Order selected so the integration follows that event. Then, click Next.

Step 5: Confirm Basic Mode for the Slack Notification Setup

In JSON Filter, leave Basic selected.

The interface distinguishes between two payload configurations:

Automation payloadBasic-mode configuration
EmptyForward the full WooCommerce order object
Custom static JSON enteredUse the custom JSON described by the static-payload option
JSON containing {{variables}}Variables are not interpolated in Basic mode
AnyAPI Starter Basic mode explaining full order data and custom static JSON

For this Slack notification setup, retain the custom JSON from Step 3. Slack needs a message body rather than the complete WooCommerce order object.

Because Basic mode does not replace variables, use the fixed-message example for your first test. Afterwards, click Review.

Step 6: Review and Test the Slack Notification Setup

Check the integration summary:

  • The endpoint matches your intended Slack webhook.
  • The API Key is Slack Placeholder.
  • The trigger is New Order.
  • The filter mode is Basic.
AnyAPI Slack integration review showing New Order and Basic mode

Then, click Save & Finish and confirm that the integration is active.

Place a test order through your WooCommerce storefront. Afterwards, open the channel associated with the webhook and look for the notification.

Slack displaying a fixed WooCommerce order notification sent by AnyAPI
Example of a fixed notification in Slack.

Also, open the AnyAPI API Log and find the matching request. A successful Slack incoming-webhook response normally returns HTTP 200 with the response text ok.

AnyAPI Starter API Log showing a successful Slack webhook response
Earlier Lite interface shown. Starter has a read-only log without Lite’s search and statistics.

Check both the response and the destination channel before relying on the integration. If no matching log appears, investigate the integration status and trigger before changing the JSON.

For further help, see API Logs and Troubleshooting.

Add Dynamic Order Details with Lite

Once the fixed notification works, Lite users can select Expert in JSON Filter and configure an order-specific message:

📋
JSON
Copy
{
  "text": "New WooCommerce order #{{order_id}} — Order total: {{order_total}}"
}

Expert mode supports these order variables. Therefore, the notification can identify the order that triggered it instead of displaying identical text every time.

Save the updated integration and test another order. For additional payload options, read the JSON Filter guide.

Troubleshooting Your Slack Notification Setup

Start with the response body, because it often explains more than the HTTP status alone.

ResultWhat to check
invalid_payloadCheck JSON syntax, quotation marks, and escaping. Return to the simple message example before adding more content.
no_textCheck that the simple message payload contains a non-empty text string.
no_service or no_active_hooksCheck whether the webhook is valid and enabled.
action_prohibitedAsk the workspace administrator whether posting is restricted.
channel_is_archivedUse an active destination channel.
HTTP 200 but no visible messageCheck the response body, request timestamp, workspace, and channel associated with the webhook.
No matching API Log entryConfirm that the integration is active and the order event matches the selected trigger.
Full order data reaches SlackReopen Automation and check that your custom message JSON was saved. Inspect the actual request before assuming the configuration worked.

For example, a correct webhook URL can still point to a different channel from the one you are viewing. Therefore, verify the channel in the Slack app settings as well as the URL in AnyAPI.

If variables appear literally in the message, check the filter mode. Basic mode does not interpolate them; dynamic messages require Lite’s Expert mode.

Next Steps

After your Slack notification setup is verified, you can:

Although Starter supports unlimited API calls, it applies throttling after 500 calls per month. Lite removes that Starter throttle.

Retest after changing the webhook, trigger, or payload so you can confirm the updated result.

Frequently Asked Questions

Slack Notification FAQ

  • Slack returns HTTP 200 but no message appears — what’s wrong?

    Check that the response body is ok and that the log entry matches your latest test. Then, verify the workspace and channel associated with that exact webhook. A successful response does not confirm that you are viewing the intended destination. If necessary, update the webhook and test again.

  • My Slack webhook returns HTTP 400 (invalid_payload or no_text) — how do I fix it?

    invalid_payload can indicate malformed JSON or incorrectly escaped content. no_text indicates that the message text attribute is missing. For this guide’s simple message, check that the actual request contains valid JSON with a non-empty text string. Use the fixed-message example before adding more content, then inspect Slack’s response.

  • Do I need a Slack app or a paid Slack plan to receive WooCommerce order alerts?

    You need a Slack app with Incoming Webhooks enabled and permission to install it in your workspace. A free Slack workspace can support app integrations, subject to its app limit and administrator policies. The webhook URL provides Slack authentication, while AnyAPI requires the saved dummy key described in this guide.

  • Why does my Slack notification show the same message for every order?

    The Basic-mode example contains fixed text, so each matching order produces the same message. Basic mode does not replace {{variables}}. To include order details, use Lite’s Expert mode with supported variables such as {{order_id}} and {{order_total}}, then test the updated integration.

  • Can I send WooCommerce order notifications to Slack for free?

    Starter supports the manual fixed-message setup described in this guide. Create a Slack incoming webhook, save a dummy API Key in AnyAPI, enter the message JSON in Automation, and select Basic mode. Dynamic order variables require Lite’s Expert mode. Slack workspace permissions and app limits apply separately.

Updated on November 2, 2026

Share This Article

Was it helpful ?

© Copyright 2025・AnyAPI・All rights reserved