Dev Ops · n8n

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.

difficulty Intermediatesetup 45 minresult A runbook-ready OpsGenie alert is auto-created whenever Zendrop reports a failed integration event, giving on-call engineers immediate context to act.
  1. 1

    Schedule a regular poll with the Cron node

    Add a Schedule Trigger node. Set Trigger Interval to every 5 minutes. This drives the entire workflow on a reliable heartbeat so no failure window goes undetected.

  2. 2

    Fetch recent Zendrop events via HTTP Request

    Add an HTTP Request node named Get Zendrop Events. Set Method to GET and URL to https://api.zendrop.com/v1/orders?status=failed. Add a header Authorization with value Bearer YOUR_ZENDROP_API_KEY. Store your key safely in n8n credentials or environment variables — never hardcode it in plain text.

  3. 3

    Check whether any failures exist with an IF node

    Add an IF node named Has Failures?. Set the condition to check that {{ $json.data.length }} is greater than 0. The true branch continues to alerting; the false branch ends the workflow silently. This prevents noise when everything is healthy.

  4. 4

    Build the alert payload with a Set node

    Add a Set node named Build Alert Payload. Create string fields: message set to Zendrop integration failure detected, description set to {{ $json.data[0].error_message }}, priority set to P1, and source set to n8n-zendrop-monitor. This shapes the data into exactly what OpsGenie expects.

  5. 5

    Create the OpsGenie alert via HTTP Request

    Add a second HTTP Request node named Create OpsGenie Alert. Set Method to POST and URL to https://api.opsgenie.com/v2/alerts. Add header Authorization as GenieKey YOUR_OPSGENIE_API_KEY and set Content-Type to application/json. In the Body field select JSON and map the fields from the previous Set node: message, description, priority, and source. 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.

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.