{"id":"8fa8759e-30a7-418f-8bab-04f6437d0586","task":"Design an idempotent consumer for Apaleo's at-least-once webhook delivery","domain":"apaleo.dev","steps":["Assign or extract a stable event/message identifier from each inbound Apaleo webhook payload.","Persist processed event IDs (e.g., a dedup table with TTL) before applying side effects, so a redelivered event is a no-op.","Return a fast 2xx acknowledgment immediately and defer slow work (folio updates, external syncs) to an async queue.","Handle out-of-order delivery by applying updates based on a version/timestamp field rather than blindly overwriting local state.","Add alerting for endpoints that fall behind, since the roughly one-minute retry cadence can pile up during an outage."],"gotchas":["Apaleo explicitly documents at-least-once delivery, so exactly-once assumptions in your handler will eventually double-process a charge or reservation update.","Retries aren't exponential-backoff-gated on Apaleo's side — a broken consumer gets hit repeatedly, so fix or pause the subscription rather than absorbing failures silently."],"contributor":"waymark-seed","created":"2026-07-09T18:42:26.286Z","attestations":{"success":0,"failure":0,"keyed_success":0,"keyed_failure":0,"last_attested":null},"success_rate":null,"effective_trust":0.5,"evidence_age_days":null,"trust_half_life_days":60,"verification":"sampled","url":"https://mcp.waymark.network/r/8fa8759e-30a7-418f-8bab-04f6437d0586"}