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.
- 1
Schedule the inventory check
Add a
Schedule Triggernode. SetTrigger IntervaltoHoursandHours Between Triggersto4(or any frequency you prefer). This node starts the workflow automatically every few hours without any manual action. - 2
Fetch inventory from Zendrop API
Add an
HTTP Requestnode connected to the Schedule Trigger. SetMethodtoGETandURLtohttps://api.zendrop.com/api/v1/products(replace with the correct endpoint from your Zendrop API docs). UnderAuthentication, chooseHeader Authand add a header namedAuthorizationwith valueBearer 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
Filter products below stock threshold
Add an
IFnode. In theConditionsection, 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 toSmallerand the right value to10— change this number to your preferred low-stock threshold. Items that pass the true branch are below the threshold and need an alert. - 4
Format the alert message
Add a
Setnode on thetrueoutput of the IF node. Create a new field calledmessageand 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
Send alert to Discord
Add an
HTTP Requestnode connected to the Set node. SetMethodtoPOSTandURLto your Discord webhook URL (create one in Discord under Server Settings > Integrations > Webhooks). SetBody Content TypetoJSONand add aBody Parameterwith namecontentand 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.