Data Store idempotency keys (webhooks you can replay)
Every instant webhook writes a pending→done Data Store record keyed by the vendor's event id so Stripe, HubSpot, and Webflow retries do not double-create.
Yoav Cohen · Operator · Nov 1, 2026
- Trigger
- Any instant module: Custom webhook, Stripe Watch Events, Close Watch New Call Activity, HubSpot Watch Notifications. The first module after the trigger is the existence check, not the CRM write.
- Operations cost
- Check 1 + Add 1 + write N + Update 1. Duplicates cost Check 1 + Get 1 + Commit 0 ≈ 2 credits and no Slack. That is the point. Data Store records also consume the org's data storage allowance (Make ties storage to licensed credits). Delete done records older than 30 days with a weekly scenario if the webhook volume is high.
Make modules
- Webhooks > Custom webhook
- Data Store > Check the Existence of a Record
- Data Store > Add a Record
- Data Store > Update a Record
- Data Store > Get a Record
- Router
- HubSpot CRM > Create or Update a Contact
- Error handler > Commit
- Error handler > Break
Scenario steps
1. Set Variable
Build key = `{{source}}:{{vendor_event_id}}`. Stripe event id, Close call id, HubSpot notification objectId+property+timestamp, Webflow form-submit id. If the vendor has no id, hash email+timestamp — weaker, still better than nothing.
Gotcha: Email-only keys drop legitimate second purchases (see stripe-payment-slack-sheet-kit). Use the vendor's idempotency id when they send one.
2. Data Store > Check the Existence of a Record
If missing: continue to Add pending. If present: Get a Record and Router on status.
Gotcha: Check + Get is 2 credits when it exists. You can Get first and treat 404/empty as missing if you prefer one module — know how your Data Store module reports misses (empty vs error).
3. Router
status=done → Commit (duplicate webhook, no work). status=pending → another execution is in flight or died; do not start a second Create; optional Slack if pending older than 10 minutes. missing → Add pending and proceed.
Gotcha: Without pending, two webhooks in the same second both Check empty and both Create. Pending is the lock. It is not a distributed lock with TTL across 10 Make data centers — it is good enough for vendor retries.
4. Data Store > Add a Record
key, status=pending, received_at, payload_hash. Do this before HubSpot.
Gotcha: If you Add done before the write, a failed write can never retry (the next webhook Commits). If you Add done only after, two in-flight writes can both proceed. Pending then done is the sequence.
5. HubSpot CRM > Create or Update a Contact
The actual write, already idempotent on email. Data Store still matters for side effects (Slack, Kit tag, Sheet row) that are not idempotent.
Gotcha: Create or Update is not a substitute for the Data Store if you also Slack. You will get one contact and three Slack messages without the key.
6. Data Store > Update a Record
status=done, hubspot_id, finished_at. Do this after all side effects you refuse to duplicate.
Gotcha: If Slack is allowed to fail, Update to done before Slack and Ignore Slack — otherwise a Slack 429 leaves status=pending and the next retry duplicates HubSpot notes. Decide which side effects are in the transaction.
7. Error handler > Break
If the write fails after pending was stored, Break (Pro) or leave pending for the drain scenario. A later webhook will hit pending, not start a parallel write.
Gotcha: Stuck pending is a failure mode: you must drain or TTL. A nightly scenario Search pending older than 24h → Slack + status=dead.
Failure mode
Two-Check race on simultaneous retries (rare but real on Stripe). Keying on email. Adding done too early. Never adding done (every retry looks pending, you Commit forever, the lead never lands). Data Store full (allowance). Using one Data Store for all scenarios with colliding keys (`123` from Close and `123` from Stripe) — prefix the source. Treating Data Store as a CRM. Incomplete executions plus Data Store pending: a Retry and a new webhook both run; keep the Router on pending.
When not to use this
Scheduled Search jobs that already use a cursor do not need this. Manual Run-once backfills do not need this. Linear Zap-shaped jobs with no vendor retry still benefit if the scenario can be replayed. Skip only if you have truly no side effects besides an idempotent Create or Update and you accept duplicate Slacks.
This is a partner link. stackstrategist may earn a commission if you subscribe, at no extra cost to you. How Make pays partners (12 months of plan price, not extra operations) is on pricing gotchas.