{"slug":"api-zfinia-com-x402-v1-event-sequence-integrity-audit-d949a4","title":"Find gaps, duplicates and ordering violations in an event sequence, per stream","host":"api.zfinia.com","method":"POST","resource":"https://api.zfinia.com/x402/v1/event-sequence-integrity-audit","category":"code","description":"Find gaps, duplicates and ordering violations in an event sequence, per stream. Partitioning matters: auditing a merged multi-stream batch as one sequence would report a gap at every interleave. Gaps are judged on sequence values and ordering on arrival order, because they are different questions. A","price_listed":0.13,"price_asked":0.13,"state":"answering","state_label":"Answering","checks_7d":1,"answered_7d":1,"latency_ms_median":8677,"reported_calls_30d":1,"reported_payers_30d":1,"networks":["eip155:8453"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"body":{"events":[{"event_id":"evt-1","offset":101,"order_id":"o-1","schema_version":"2","stream":"orders-0","total":42.5,"type":"order.created"},{"event_id":"evt-2","offset":102,"order_id":"o-2","schema_version":"2","stream":"orders-0","total":19.99,"type":"order.created"},{"event_id":"evt-4","offset":104,"order_id":"o-4","schema_version":"2","stream":"orders-0","total":7,"type":"order.created"},{"event_id":"evt-4","offset":105,"order_id":"o-4","schema_version":"2","stream":"orders-0","total":7.5,"type":"order.created"},{"event_id":"evt-5","offset":106,"order_id":"o-5","schema_version":"1","stream":"orders-0","total":"12.00","type":"order.created"},{"event_id":"evt-6","offset":1,"order_id":"o-1","reason":"customer","schema_version":"2","stream":"orders-1","type":"order.cancelled"},{"offset":2,"order_id":"o-2","reason":"fraud","schema_version":"2","stream":"orders-1","type":"order.cancelled"}],"partition_field":"stream","sequence_field":"offset"},"bodyType":"json","method":"POST","type":"http"},"output_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"additionalProperties":false,"properties":{"body":{"additionalProperties":false,"properties":{"events":{"items":{"type":"object"},"maxItems":2000,"minItems":1,"type":"array"},"expect_contiguous":{"type":"boolean"},"expect_increasing":{"type":"boolean"},"partition_field":{"maxLength":256,"type":"string"},"sequence_field":{"maxLength":256,"type":"string"}},"required":["events","sequence_field"],"type":"object"},"bodyType":{"enum":["json","form-data","text"],"type":"string"},"method":{"enum":["POST"],"type":"string"},"type":{"const":"http","type":"string"}},"required":["type","method","bodyType","body"],"type":"object"},"output":{"properties":{"example":{"type":"object"},"type":{"type":"string"}},"required":["type"],"type":"object"}},"required":["input"],"type":"object"},"history":[{"day":"2026-10-04","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.13,"price_match":true,"latency_ms":8677,"error":null}],"description_full":"Find gaps, duplicates and ordering violations in an event sequence, per stream. Partitioning matters: auditing a merged multi-stream batch as one sequence would report a gap at every interleave. Gaps are judged on sequence values and ordering on arrival order, because they are different questions. A non-integral sequence is reported as unchecked for contiguity rather than guessed at.","last_updated":"2026-10-04T08:00:04.862Z","schemes":["exact"]}