$API_TOKEN=<YOUR_API_TOKEN>
$cat > input.json << 'EOF'
<{
< "asOf": "2026-10-01T11:00:00Z",
< "maxProcessingDelayMinutes": 5,
< "coverage": [
< {
< "scope": {
< "provider": "stripe",
< "account": "acct_example_001",
< "subscription": "orders-subscription",
< "consumer": "order-worker"
< },
< "delivery": {
< "from": "2026-10-01T09:00:00Z",
< "to": "2026-10-01T11:00:00Z",
< "complete": true
< },
< "processing": {
< "from": "2026-10-01T09:00:00Z",
< "to": "2026-10-01T11:00:00Z",
< "complete": true
< }
< },
< {
< "scope": {
< "provider": "github",
< "account": "example-repo",
< "subscription": "deployment-subscription",
< "consumer": "deploy-worker"
< },
< "delivery": {
< "from": "2026-10-01T09:00:00Z",
< "to": "2026-10-01T11:00:00Z",
< "complete": true
< },
< "processing": {
< "from": "2026-10-01T09:00:00Z",
< "to": "2026-10-01T11:00:00Z",
< "complete": false
< }
< }
< ],
< "deliveries": [
< {
< "attemptId": "del_retry_01",
< "scope": {
< "provider": "stripe",
< "account": "acct_example_001",
< "subscription": "orders-subscription",
< "consumer": "order-worker"
< },
< "eventKey": "evt_recovered",
< "timestamp": "2026-10-01T09:10:00Z",
< "outcome": "failed",
< "httpStatus": 503
< },
< {
< "attemptId": "del_retry_02",
< "scope": {
< "provider": "stripe",
< "account": "acct_example_001",
< "subscription": "orders-subscription",
< "consumer": "order-worker"
< },
< "eventKey": "evt_recovered",
< "timestamp": "2026-10-01T09:11:00Z",
< "outcome": "acknowledged",
< "httpStatus": 200
< },
< {
< "attemptId": "del_gap",
< "scope": {
< "provider": "stripe",
< "account": "acct_example_001",
< "subscription": "orders-subscription",
< "consumer": "order-worker"
< },
< "eventKey": "evt_ack_gap",
< "timestamp": "2026-10-01T09:30:00Z",
< "outcome": "acknowledged",
< "httpStatus": 200
< },
< {
< "attemptId": "del_repeat",
< "scope": {
< "provider": "stripe",
< "account": "acct_example_001",
< "subscription": "orders-subscription",
< "consumer": "order-worker"
< },
< "eventKey": "evt_two_successes",
< "timestamp": "2026-10-01T09:40:00Z",
< "outcome": "acknowledged",
< "httpStatus": 200
< },
< {
< "attemptId": "del_pending",
< "scope": {
< "provider": "stripe",
< "account": "acct_example_001",
< "subscription": "orders-subscription",
< "consumer": "order-worker"
< },
< "eventKey": "evt_pending",
< "timestamp": "2026-10-01T10:59:00Z",
< "outcome": "acknowledged",
< "httpStatus": 200
< },
< {
< "attemptId": "del_partial",
< "scope": {
< "provider": "github",
< "account": "example-repo",
< "subscription": "deployment-subscription",
< "consumer": "deploy-worker"
< },
< "eventKey": "evt_partial",
< "timestamp": "2026-10-01T09:50:00Z",
< "outcome": "acknowledged",
< "httpStatus": 200
< },
< {
< "attemptId": "del_future",
< "scope": {
< "provider": "stripe",
< "account": "acct_example_001",
< "subscription": "orders-subscription",
< "consumer": "order-worker"
< },
< "eventKey": "evt_future",
< "timestamp": "2026-10-01T10:00:00Z",
< "outcome": "acknowledged",
< "httpStatus": 200
< },
< {
< "attemptId": "del_retry_02",
< "scope": {
< "provider": "stripe",
< "account": "acct_example_001",
< "subscription": "orders-subscription",
< "consumer": "order-worker"
< },
< "eventKey": "evt_recovered",
< "timestamp": "2026-10-01T09:11:00Z",
< "outcome": "acknowledged",
< "httpStatus": 200
< }
< ],
< "processing": [
< {
< "recordId": "proc_failed",
< "scope": {
< "provider": "stripe",
< "account": "acct_example_001",
< "subscription": "orders-subscription",
< "consumer": "order-worker"
< },
< "eventKey": "evt_recovered",
< "timestamp": "2026-10-01T09:11:30Z",
< "state": "failed",
< "receivedAt": "2026-10-01T09:11:00Z"
< },
< {
< "recordId": "proc_recovered",
< "scope": {
< "provider": "stripe",
< "account": "acct_example_001",
< "subscription": "orders-subscription",
< "consumer": "order-worker"
< },
< "eventKey": "evt_recovered",
< "timestamp": "2026-10-01T09:12:00Z",
< "state": "succeeded",
< "receivedAt": "2026-10-01T09:11:00Z"
< },
< {
< "recordId": "proc_repeat_01",
< "scope": {
< "provider": "stripe",
< "account": "acct_example_001",
< "subscription": "orders-subscription",
< "consumer": "order-worker"
< },
< "eventKey": "evt_two_successes",
< "timestamp": "2026-10-01T09:41:00Z",
< "state": "succeeded",
< "receivedAt": "2026-10-01T09:40:00Z"
< },
< {
< "recordId": "proc_repeat_02",
< "scope": {
< "provider": "stripe",
< "account": "acct_example_001",
< "subscription": "orders-subscription",
< "consumer": "order-worker"
< },
< "eventKey": "evt_two_successes",
< "timestamp": "2026-10-01T09:42:00Z",
< "state": "succeeded",
< "receivedAt": "2026-10-01T09:40:00Z"
< },
< {
< "recordId": "proc_pending",
< "scope": {
< "provider": "stripe",
< "account": "acct_example_001",
< "subscription": "orders-subscription",
< "consumer": "order-worker"
< },
< "eventKey": "evt_pending",
< "timestamp": "2026-10-01T11:00:00Z",
< "state": "pending",
< "receivedAt": "2026-10-01T10:59:00Z"
< },
< {
< "recordId": "proc_orphan",
< "scope": {
< "provider": "stripe",
< "account": "acct_example_001",
< "subscription": "orders-subscription",
< "consumer": "order-worker"
< },
< "eventKey": "evt_orphan",
< "timestamp": "2026-10-01T10:11:00Z",
< "state": "succeeded",
< "receivedAt": "2026-10-01T10:10:00Z"
< },
< {
< "recordId": "proc_future",
< "scope": {
< "provider": "stripe",
< "account": "acct_example_001",
< "subscription": "orders-subscription",
< "consumer": "order-worker"
< },
< "eventKey": "evt_future",
< "timestamp": "2026-10-01T11:05:00Z",
< "state": "succeeded",
< "receivedAt": "2026-10-01T10:00:00Z"
< }
< ]
<}
<EOF
$curl "https://api.apify.com/v2/actors/h_murdock~webhook-processing-reconciliation/runs?token=$API_TOKEN" \
< -X POST \
< -d @input.json \
< -H 'Content-Type: application/json'