Ops · n8n

Get Instant Discord Alerts When Zendrop Products Run Low on Stock

Automatically checks your Zendrop product inventory on a schedule and sends a formatted alert to a Discord channel whenever any item falls below your defined stock threshold. Keep your ops team informed before stockouts hurt your sales.

difficulty Intermediatesetup 40 minresult A scheduled workflow that polls Zendrop inventory via API and posts a clear low-stock warning message to your Discord channel whenever a product dips below your chosen quantity.
  1. 1

    Schedule the inventory check

    Add a Schedule Trigger node. Set Trigger Interval to Hours and Hours Between Triggers to 4 (or any frequency you prefer). This node starts the workflow automatically every few hours without any manual action.

  2. 2

    Fetch inventory from Zendrop API

    Add an HTTP Request node connected to the Schedule Trigger. Set Method to GET and URL to https://api.zendrop.com/api/v1/products (replace with the correct endpoint from your Zendrop API docs). Under Authentication, choose Header Auth and add a header named Authorization with value Bearer YOUR_ZENDROP_API_KEY. Store your API key in n8n credentials and reference it here. The node returns a list of your products and their stock quantities.

  3. 3

    Filter products below stock threshold

    Add an IF node. In the Condition section, set the left value to the expression {{ $json.stock_quantity }} (adjust the field name to match the actual Zendrop API response key for stock). Set the operator to Smaller and the right value to 10 — change this number to your preferred low-stock threshold. Items that pass the true branch are below the threshold and need an alert.

  4. 4

    Format the alert message

    Add a Set node on the true output of the IF node. Create a new field called message and set its value to a string like ⚠️ Low Stock Alert: {{ $json.name }} has only {{ $json.stock_quantity }} units left. Please restock soon! — adjust field names to match Zendrop's actual response keys. This node prepares a clean, human-readable message for Discord.

  5. 5

    Send alert to Discord

    Add an HTTP Request node connected to the Set node. Set Method to POST and URL to your Discord webhook URL (create one in Discord under Server Settings > Integrations > Webhooks). Set Body Content Type to JSON and add a Body Parameter with name content and value {{ $json.message }}. Each low-stock product will trigger its own Discord message in your chosen channel.

Frequently asked questions

Where do I find my Zendrop API key?

Log into your Zendrop account, go to Settings, and look for an API or Developer section. Copy your API key from there and paste it into the n8n HTTP Request node's Authorization header as `Bearer YOUR_KEY`. If you do not see an API section, contact Zendrop support as API access may depend on your plan.

How do I create a Discord webhook URL?

Open Discord and go to the channel where you want alerts. Click the gear icon (Edit Channel), then go to Integrations > Webhooks > New Webhook. Give it a name, copy the webhook URL, and paste it into the final HTTP Request node's URL field in n8n.

What if Zendrop's API response uses different field names than in the workflow?

Run the workflow manually once and inspect the output of the second HTTP Request node in n8n's execution view. You will see the exact field names Zendrop returns. Update the expressions in the IF node and Set node (for example, change `stock_quantity` to whatever key holds the inventory count, and `name` to the product name key) to match the real response.

About this recipe. Recipes on FlowRecipesHub are written for business owners, not developers, and are tested before publishing — how recipes get made. Some ingredient links are affiliate links that cost you nothing — full disclosure.