{
  "item": {
    "item_id": "RI-8852858",
    "period": "2026-08",
    "booking_id": "RS-8852858",
    "duty_id": "D-512858",
    "entity": "ASL Airlines Ireland",
    "legal_entity": "ASL Airlines (Ireland) Ltd",
    "crew_name": "N. O Conaill",
    "station": "DUB",
    "property_id": "P-101",
    "hotel": "Clayton Hotel Dublin Airport",
    "check_in": "2026-08-08",
    "check_out": "2026-08-11",
    "nights": 3,
    "booking_amount": 712.68,
    "card_auth": 737.68,
    "card_settled": 1078.71,
    "folio_amount": 1078.71,
    "variance": 366.03,
    "variance_pct": 51.36,
    "variance_category": "early_departure",
    "match_state": "variance",
    "exception_type": "amount_variance",
    "state": "resolved",
    "resolution": "charged_to_crew",
    "opened_at": "2026-08-11T02:10:00Z",
    "resolved_at": "2026-08-25T11:00:00Z",
    "final_at": null,
    "final_due_at": "2026-09-10",
    "age_days": 33,
    "auto_resolved": 0
  },
  "cards": [
    {
      "event_id": "CE-180",
      "item_id": "RI-8852858",
      "booking_id": "RS-8852858",
      "period": "2026-08",
      "vcc_ref": "VCC-8852858",
      "event_type": "issue",
      "amount": null,
      "currency": "EUR",
      "occurred_at": "2026-08-06T09:00:00Z",
      "valid_from": "2026-08-08",
      "valid_to": "2026-08-14",
      "mcc_lock": "7011 lodging",
      "decline_reason": null,
      "issuer_ref": "CNF-852858",
      "source_ref": "feed-2026-08-180"
    },
    {
      "event_id": "CE-181",
      "item_id": "RI-8852858",
      "booking_id": "RS-8852858",
      "period": "2026-08",
      "vcc_ref": "VCC-8852858",
      "event_type": "auth",
      "amount": 737.68,
      "currency": "EUR",
      "occurred_at": "2026-08-08T14:20:00Z",
      "valid_from": "2026-08-08",
      "valid_to": "2026-08-14",
      "mcc_lock": "7011 lodging",
      "decline_reason": null,
      "issuer_ref": "CNF-852858",
      "source_ref": "feed-2026-08-181"
    },
    {
      "event_id": "CE-182",
      "item_id": "RI-8852858",
      "booking_id": "RS-8852858",
      "period": "2026-08",
      "vcc_ref": "VCC-8852858",
      "event_type": "capture",
      "amount": 1078.71,
      "currency": "EUR",
      "occurred_at": "2026-08-11T08:05:00Z",
      "valid_from": "2026-08-08",
      "valid_to": "2026-08-14",
      "mcc_lock": "7011 lodging",
      "decline_reason": null,
      "issuer_ref": "CNF-852858",
      "source_ref": "feed-2026-08-182"
    },
    {
      "event_id": "CE-183",
      "item_id": "RI-8852858",
      "booking_id": "RS-8852858",
      "period": "2026-08",
      "vcc_ref": "VCC-8852858",
      "event_type": "settle",
      "amount": 1078.71,
      "currency": "EUR",
      "occurred_at": "2026-08-13T03:00:00Z",
      "valid_from": "2026-08-08",
      "valid_to": "2026-08-14",
      "mcc_lock": "7011 lodging",
      "decline_reason": null,
      "issuer_ref": "CNF-852858",
      "source_ref": "feed-2026-08-183"
    }
  ],
  "folio": [
    {
      "line_id": "FL-RI-8852858-r0",
      "item_id": "RI-8852858",
      "period": "2026-08",
      "line_date": "2026-08-08",
      "line_type": "room",
      "description": "Room charge",
      "amount": 209.3,
      "disputed": 0,
      "received_at": "2026-08-12T07:00:00Z",
      "source_ref": "folio-8852858",
      "folio_id": "folio-8852858"
    },
    {
      "line_id": "FL-RI-8852858-v0",
      "item_id": "RI-8852858",
      "period": "2026-08",
      "line_date": "2026-08-08",
      "line_type": "tax",
      "description": "VAT 13.5%",
      "amount": 28.26,
      "disputed": 0,
      "received_at": "2026-08-12T07:00:00Z",
      "source_ref": "folio-8852858",
      "folio_id": "folio-8852858"
    },
    {
      "line_id": "FL-RI-8852858-r1",
      "item_id": "RI-8852858",
      "period": "2026-08",
      "line_date": "2026-08-09",
      "line_type": "room",
      "description": "Room charge",
      "amount": 209.3,
      "disputed": 0,
      "received_at": "2026-08-12T07:00:00Z",
      "source_ref": "folio-8852858",
      "folio_id": "folio-8852858"
    },
    {
      "line_id": "FL-RI-8852858-v1",
      "item_id": "RI-8852858",
      "period": "2026-08",
      "line_date": "2026-08-09",
      "line_type": "tax",
      "description": "VAT 13.5%",
      "amount": 28.26,
      "disputed": 0,
      "received_at": "2026-08-12T07:00:00Z",
      "source_ref": "folio-8852858",
      "folio_id": "folio-8852858"
    },
    {
      "line_id": "FL-RI-8852858-r2",
      "item_id": "RI-8852858",
      "period": "2026-08",
      "line_date": "2026-08-10",
      "line_type": "room",
      "description": "Room charge",
      "amount": 209.3,
      "disputed": 0,
      "received_at": "2026-08-12T07:00:00Z",
      "source_ref": "folio-8852858",
      "folio_id": "folio-8852858"
    },
    {
      "line_id": "FL-RI-8852858-v2",
      "item_id": "RI-8852858",
      "period": "2026-08",
      "line_date": "2026-08-10",
      "line_type": "tax",
      "description": "VAT 13.5%",
      "amount": 28.26,
      "disputed": 0,
      "received_at": "2026-08-12T07:00:00Z",
      "source_ref": "folio-8852858",
      "folio_id": "folio-8852858"
    },
    {
      "line_id": "FL-RI-8852858-x",
      "item_id": "RI-8852858",
      "period": "2026-08",
      "line_date": "2026-08-11",
      "line_type": "adjustment",
      "description": "Early departure fee",
      "amount": 366.03,
      "disputed": 0,
      "received_at": "2026-08-12T07:00:00Z",
      "source_ref": "folio-8852858",
      "folio_id": "folio-8852858"
    }
  ],
  "events": [
    {
      "event_id": "RE-RI-8852858-1",
      "item_id": "RI-8852858",
      "period": "2026-08",
      "seq": 1,
      "occurred_at": "2026-08-11T02:10:00Z",
      "event": "opened",
      "actor": "match-engine",
      "actor_type": "rule",
      "note": "Stay complete; reconciliation opened"
    },
    {
      "event_id": "RE-RI-8852858-2",
      "item_id": "RI-8852858",
      "period": "2026-08",
      "seq": 2,
      "occurred_at": "2026-08-13T07:00:00Z",
      "event": "evidence_received",
      "actor": "folio-ingest",
      "actor_type": "rule",
      "note": "Folio received from property"
    },
    {
      "event_id": "RE-RI-8852858-3",
      "item_id": "RI-8852858",
      "period": "2026-08",
      "seq": 3,
      "occurred_at": "2026-08-13T07:05:00Z",
      "event": "variance_detected",
      "actor": "match-engine",
      "actor_type": "rule",
      "note": "amount variance — 366.03 EUR"
    },
    {
      "event_id": "RE-RI-8852858-4",
      "item_id": "RI-8852858",
      "period": "2026-08",
      "seq": 4,
      "occurred_at": "2026-08-14T10:20:00Z",
      "event": "category_assigned",
      "actor": "R. Menon",
      "actor_type": "human",
      "note": "Categorised as early departure"
    },
    {
      "event_id": "RE-RI-8852858-5",
      "item_id": "RI-8852858",
      "period": "2026-08",
      "seq": 5,
      "occurred_at": "2026-08-22T11:00:00Z",
      "event": "resolved",
      "actor": "A. Sheshadri",
      "actor_type": "human",
      "note": "Resolution: charged_to_crew"
    }
  ],
  "ledger": [
    {
      "entry_id": "LE-RI-8852858-119",
      "item_id": "RI-8852858",
      "period": "2026-08",
      "legal_entity": "ASL Airlines (Ireland) Ltd",
      "entry_date": "2026-08-08",
      "entry_type": "pending",
      "amount": 737.68,
      "balance_effect": -737.68,
      "description": "Authorization held — Clayton Hotel Dublin Airport",
      "posted_from_period": null
    },
    {
      "entry_id": "LE-RI-8852858-120",
      "item_id": "RI-8852858",
      "period": "2026-08",
      "legal_entity": "ASL Airlines (Ireland) Ltd",
      "entry_date": "2026-08-13",
      "entry_type": "posted",
      "amount": 1078.71,
      "balance_effect": 0,
      "description": "Charge posted — Clayton Hotel Dublin Airport",
      "posted_from_period": null
    }
  ],
  "nights": [
    {
      "night": "2026-08-08",
      "room_net": 209.3,
      "vat_amount": 28.26,
      "city_tax": 0,
      "ancillaries": 0,
      "rate_paid": 237.56,
      "hotel": "Clayton Hotel Dublin Airport",
      "duty_reason": "overnight",
      "night_status": "occupied",
      "vcc_ref": "VCC-8852858",
      "checkin_time": "01:15",
      "checkout_time": "10:00"
    },
    {
      "night": "2026-08-09",
      "room_net": 209.3,
      "vat_amount": 28.26,
      "city_tax": 0,
      "ancillaries": 0,
      "rate_paid": 237.56,
      "hotel": "Clayton Hotel Dublin Airport",
      "duty_reason": "held",
      "night_status": "occupied",
      "vcc_ref": "VCC-8852858",
      "checkin_time": null,
      "checkout_time": null
    },
    {
      "night": "2026-08-10",
      "room_net": 209.3,
      "vat_amount": 28.26,
      "city_tax": 0,
      "ancillaries": 0,
      "rate_paid": 237.56,
      "hotel": "Clayton Hotel Dublin Airport",
      "duty_reason": "positioning",
      "night_status": "occupied",
      "vcc_ref": "VCC-8852858",
      "checkin_time": "01:15",
      "checkout_time": "10:00"
    }
  ],
  "booking": {
    "booking_id": "RS-8852858",
    "layover_id": "L-512859",
    "duty_id": "D-512858",
    "crew_id": "IRE-1001",
    "entity_id": "ASL Airlines Ireland",
    "legal_entity": "ASL Airlines (Ireland) Ltd",
    "station": "DUB",
    "property_id": "P-101",
    "vendor_id": null,
    "contract_id": "C-101",
    "revenue_model": "routespring_contract",
    "channel": "automation",
    "requested_by": "rule:roster-watch",
    "created_at": "2026-08-03T01:15:00Z",
    "check_in": "2026-08-08",
    "check_out": "2026-08-11",
    "nights": 3,
    "room_type": "standard",
    "occupancy": 1,
    "lead_time_hours": 120,
    "confirmation_ref": "CNF-852858",
    "cancellation_deadline": "2026-08-07T18:00:00Z",
    "status": "completed",
    "period": "2026-08",
    "total_amount": 728.65
  },
  "duty": {
    "duty_id": "D-512858",
    "crew_id": "IRE-1001",
    "entity_id": "ASL Airlines Ireland",
    "roster_ref": "AIMS/202608/512858",
    "duty_type": "overnight",
    "flight_no": "ABR361",
    "dep_station": "EMA",
    "arr_station": "DUB",
    "duty_start_utc": "2026-08-07T18:05:00Z",
    "duty_end_utc": "2026-08-08T00:25:00Z",
    "duty_hours": 6.79,
    "block_hours": 7.62,
    "source_system": "aims",
    "published_at": "2026-08-01T06:00:00Z",
    "version": 1
  },
  "layover": {
    "layover_id": "L-512859",
    "duty_in": "D-512858",
    "duty_out": "D-512858R",
    "crew_id": "IRE-1001",
    "entity_id": "ASL Airlines Ireland",
    "station": "DUB",
    "rest_starts_utc": "2026-08-08T00:25:00Z",
    "rest_ends_utc": "2026-08-11T06:00:00Z",
    "rest_hours_available": 57.17,
    "sleep_opportunity_hours": 55.06,
    "transfer_in_minutes": 15,
    "transfer_out_minutes": 16,
    "nights": 3,
    "disrupted": 0,
    "period": "2026-08"
  },
  "evaluation": {
    "eval_id": "PE-12859",
    "period": "2026-08",
    "booking_id": "RS-8852858",
    "item_id": "RI-8852858",
    "ruleset": "2026.2",
    "evaluated_at": "2026-08-03T01:12:00Z",
    "channel": "automation",
    "traveller_type": "crew",
    "entity": "ASL Airlines Ireland",
    "station": "DUB",
    "outcome": "pass",
    "breach_count": 0,
    "cost_impact": 0,
    "self_served": 0
  },
  "approval": null,
  "breaches": [],
  "changes": [],
  "card": {
    "vcc_ref": "VCC-8852858",
    "booking_id": "RS-8852858",
    "item_id": "RI-8852858",
    "period": "2026-08",
    "issued_at": "2026-08-03T01:15:00Z",
    "issuer": "Routespring card program",
    "limit_amount": 753.65,
    "currency": "EUR",
    "valid_from": "2026-08-08",
    "valid_to": "2026-08-18",
    "grace_days": 7,
    "mcc_lock": "7011 lodging",
    "merchant_lock": "Clayton Hotel Dublin Airport",
    "auth_count": 3,
    "settled_amount": 712.68,
    "status": "authorised",
    "closed_at": "2026-08-13T03:00:00Z"
  },
  "folioDoc": {
    "folio_id": "folio-8852858",
    "booking_id": "RS-8852858",
    "item_id": "RI-8852858",
    "property_id": "P-101",
    "period": "2026-08",
    "folio_number": "DUB260808-2615",
    "guest_name": "N. O Conaill",
    "check_in": "2026-08-08",
    "check_out": "2026-08-11",
    "issued_at": "2026-08-11T09:30:00Z",
    "received_at": "2026-08-12T07:00:00Z",
    "received_via": "email_pdf",
    "currency": "EUR",
    "stated_total": 1078.71,
    "line_count": 7,
    "days_to_receive": 1.29,
    "disputed": 0
  }
}