$API_TOKEN=<YOUR_API_TOKEN>
$cat > input.json << 'EOF'
<{
< "request": {
< "entity_id": "order-42",
< "evaluation_time": "2026-10-18T08:00:00Z",
< "sources": [
< {
< "id": "stripe"
< },
< {
< "id": "crm"
< },
< {
< "id": "warehouse"
< }
< ],
< "fields": {
< "payment": {
< "source_priority": [
< "stripe",
< "crm"
< ],
< "max_age_seconds": 3600,
< "min_confidence": 0.8,
< "require_provenance": true,
< "allowed_values": [
< "paid",
< "refunded"
< ],
< "tie_break": "ABSTAIN"
< },
< "fulfillment": {
< "source_priority": [
< "warehouse"
< ],
< "max_age_seconds": 3600,
< "min_confidence": 0.8,
< "require_provenance": true,
< "allowed_values": [
< "shipped",
< "held"
< ],
< "tie_break": "ABSTAIN"
< }
< },
< "observations": [
< {
< "id": "a",
< "entity_id": "order-42",
< "source_id": "stripe",
< "field": "payment",
< "value": "refunded",
< "observed_at": "2026-10-18T07:55:00Z",
< "confidence": 0.98,
< "provenance": "stripe:event-a"
< },
< {
< "id": "b",
< "entity_id": "order-42",
< "source_id": "crm",
< "field": "payment",
< "value": "paid",
< "observed_at": "2026-10-18T07:59:00Z",
< "confidence": 0.99,
< "provenance": "crm:event-b"
< },
< {
< "id": "c",
< "entity_id": "order-42",
< "source_id": "warehouse",
< "field": "fulfillment",
< "value": "shipped",
< "observed_at": "2026-10-18T07:58:00Z",
< "confidence": 0.95,
< "provenance": "warehouse:event-c"
< }
< ],
< "invariants": []
< }
<}
<EOF
$curl "https://api.apify.com/v2/actors/bono718~agent-state-conflict-resolver/runs?token=$API_TOKEN" \
< -X POST \
< -d @input.json \
< -H 'Content-Type: application/json'