Instantly Alert Your Team in OpsGenie When a Zendrop Integration Fails
Monitors Zendrop for integration or fulfillment failures via a scheduled HTTP poll and automatically creates a high-priority OpsGenie alert so your team can respond before customers notice. No manual log-checking required.
- 1
Schedule a regular poll with the Cron node
Add a
Schedule Triggernode. SetTrigger Intervalto every 5 minutes. This drives the entire workflow on a reliable heartbeat so no failure window goes undetected. - 2
Fetch recent Zendrop events via HTTP Request
Add an
HTTP Requestnode namedGet Zendrop Events. SetMethodto GET andURLtohttps://api.zendrop.com/v1/orders?status=failed. Add a headerAuthorizationwith valueBearer YOUR_ZENDROP_API_KEY. Store your key safely in n8n credentials or environment variables — never hardcode it in plain text. - 3
Check whether any failures exist with an IF node
Add an
IFnode namedHas Failures?. Set the condition to check that{{ $json.data.length }}is greater than0. Thetruebranch continues to alerting; thefalsebranch ends the workflow silently. This prevents noise when everything is healthy. - 4
Build the alert payload with a Set node
Add a
Setnode namedBuild Alert Payload. Create string fields:messageset toZendrop integration failure detected,descriptionset to{{ $json.data[0].error_message }},priorityset toP1, andsourceset ton8n-zendrop-monitor. This shapes the data into exactly what OpsGenie expects. - 5
Create the OpsGenie alert via HTTP Request
Add a second
HTTP Requestnode namedCreate OpsGenie Alert. SetMethodto POST andURLtohttps://api.opsgenie.com/v2/alerts. Add headerAuthorizationasGenieKey YOUR_OPSGENIE_API_KEYand setContent-Typetoapplication/json. In theBodyfield selectJSONand map the fields from the previous Set node:message,description,priority, andsource. Your on-call rotation will receive the alert immediately.
Frequently asked questions
What Zendrop API endpoint should I use to detect failures?
Use GET `https://api.zendrop.com/v1/orders?status=failed` to retrieve orders in a failed state. Check Zendrop's official API docs for your account's base URL and any pagination parameters if you process high order volumes.
How do I avoid duplicate OpsGenie alerts for the same failure?
Add an `alias` field in the Build Alert Payload node using a unique order or event ID such as `{{ $json.data[0].id }}`. OpsGenie deduplicates alerts that share the same alias, so re-runs within the same incident will update rather than create a new alert.
Can I route alerts to a specific OpsGenie team or responder?
Yes. Add a `responders` field to the JSON body in the Create OpsGenie Alert node, for example: `[{"name": "platform-team", "type": "team"}]`. Refer to the OpsGenie Create Alert API docs for the full schema including escalation policies.