{
  "item": {
    "item_id": "RI-8853727",
    "period": "2026-08",
    "booking_id": "RS-8853727",
    "duty_id": "D-513727",
    "entity": "ASL Airlines Ireland",
    "legal_entity": "ASL Airlines (Ireland) Ltd",
    "crew_name": "R. Byrne",
    "station": "DUB",
    "property_id": "P-101",
    "hotel": "Clayton Hotel Dublin Airport",
    "check_in": "2026-08-29",
    "check_out": "2026-08-30",
    "nights": 1,
    "booking_amount": 240.9,
    "card_auth": 265.9,
    "card_settled": 240.9,
    "folio_amount": 240.9,
    "variance": 0,
    "variance_pct": 0,
    "variance_category": null,
    "match_state": "matched",
    "exception_type": null,
    "state": "final",
    "resolution": "legitimate",
    "opened_at": "2026-08-30T02:10:00Z",
    "resolved_at": "2026-09-11T11:00:00Z",
    "final_at": "2026-09-29T00:01:00Z",
    "final_due_at": "2026-09-29",
    "age_days": 20,
    "auto_resolved": 1
  },
  "cards": [
    {
      "event_id": "CE-3654",
      "item_id": "RI-8853727",
      "booking_id": "RS-8853727",
      "period": "2026-08",
      "vcc_ref": "VCC-8853727",
      "event_type": "issue",
      "amount": null,
      "currency": "EUR",
      "occurred_at": "2026-08-27T09:00:00Z",
      "valid_from": "2026-08-29",
      "valid_to": "2026-09-02",
      "mcc_lock": "7011 lodging",
      "decline_reason": null,
      "issuer_ref": "CNF-853727",
      "source_ref": "feed-2026-08-3654"
    },
    {
      "event_id": "CE-3655",
      "item_id": "RI-8853727",
      "booking_id": "RS-8853727",
      "period": "2026-08",
      "vcc_ref": "VCC-8853727",
      "event_type": "auth",
      "amount": 265.9,
      "currency": "EUR",
      "occurred_at": "2026-08-29T14:20:00Z",
      "valid_from": "2026-08-29",
      "valid_to": "2026-09-02",
      "mcc_lock": "7011 lodging",
      "decline_reason": null,
      "issuer_ref": "CNF-853727",
      "source_ref": "feed-2026-08-3655"
    },
    {
      "event_id": "CE-3656",
      "item_id": "RI-8853727",
      "booking_id": "RS-8853727",
      "period": "2026-08",
      "vcc_ref": "VCC-8853727",
      "event_type": "capture",
      "amount": 240.9,
      "currency": "EUR",
      "occurred_at": "2026-08-30T08:05:00Z",
      "valid_from": "2026-08-29",
      "valid_to": "2026-09-02",
      "mcc_lock": "7011 lodging",
      "decline_reason": null,
      "issuer_ref": "CNF-853727",
      "source_ref": "feed-2026-08-3656"
    },
    {
      "event_id": "CE-3657",
      "item_id": "RI-8853727",
      "booking_id": "RS-8853727",
      "period": "2026-08",
      "vcc_ref": "VCC-8853727",
      "event_type": "settle",
      "amount": 240.9,
      "currency": "EUR",
      "occurred_at": "2026-09-01T03:00:00Z",
      "valid_from": "2026-08-29",
      "valid_to": "2026-09-02",
      "mcc_lock": "7011 lodging",
      "decline_reason": null,
      "issuer_ref": "CNF-853727",
      "source_ref": "feed-2026-08-3657"
    }
  ],
  "folio": [
    {
      "line_id": "FL-RI-8853727-r0",
      "item_id": "RI-8853727",
      "period": "2026-08",
      "line_date": "2026-08-29",
      "line_type": "room",
      "description": "Room charge",
      "amount": 212.25,
      "disputed": 0,
      "received_at": "2026-08-31T07:00:00Z",
      "source_ref": "folio-8853727",
      "folio_id": "folio-8853727"
    },
    {
      "line_id": "FL-RI-8853727-v0",
      "item_id": "RI-8853727",
      "period": "2026-08",
      "line_date": "2026-08-29",
      "line_type": "tax",
      "description": "VAT 13.5%",
      "amount": 28.65,
      "disputed": 0,
      "received_at": "2026-08-31T07:00:00Z",
      "source_ref": "folio-8853727",
      "folio_id": "folio-8853727"
    }
  ],
  "events": [
    {
      "event_id": "RE-RI-8853727-1",
      "item_id": "RI-8853727",
      "period": "2026-08",
      "seq": 1,
      "occurred_at": "2026-08-30T02:10:00Z",
      "event": "opened",
      "actor": "match-engine",
      "actor_type": "rule",
      "note": "Stay complete; reconciliation opened"
    },
    {
      "event_id": "RE-RI-8853727-2",
      "item_id": "RI-8853727",
      "period": "2026-08",
      "seq": 2,
      "occurred_at": "2026-09-01T07:00:00Z",
      "event": "evidence_received",
      "actor": "folio-ingest",
      "actor_type": "rule",
      "note": "Folio received from property"
    },
    {
      "event_id": "RE-RI-8853727-3",
      "item_id": "RI-8853727",
      "period": "2026-08",
      "seq": 3,
      "occurred_at": "2026-09-01T07:05:00Z",
      "event": "matched",
      "actor": "match-engine",
      "actor_type": "rule",
      "note": "Booking, card and folio agree within tolerance"
    },
    {
      "event_id": "RE-RI-8853727-4",
      "item_id": "RI-8853727",
      "period": "2026-08",
      "seq": 4,
      "occurred_at": "2026-09-03T11:00:00Z",
      "event": "resolved",
      "actor": "match-engine",
      "actor_type": "rule",
      "note": "Resolution: legitimate"
    },
    {
      "event_id": "RE-RI-8853727-5",
      "item_id": "RI-8853727",
      "period": "2026-08",
      "seq": 5,
      "occurred_at": "2026-09-29T00:01:00Z",
      "event": "finalised",
      "actor": "close-engine",
      "actor_type": "rule",
      "note": "30 days from last known checkout elapsed; entry immutable"
    }
  ],
  "ledger": [
    {
      "entry_id": "LE-RI-8853727-2422",
      "item_id": "RI-8853727",
      "period": "2026-08",
      "legal_entity": "ASL Airlines (Ireland) Ltd",
      "entry_date": "2026-08-29",
      "entry_type": "pending",
      "amount": 265.9,
      "balance_effect": -265.9,
      "description": "Authorization held — Clayton Hotel Dublin Airport",
      "posted_from_period": null
    },
    {
      "entry_id": "LE-RI-8853727-2423",
      "item_id": "RI-8853727",
      "period": "2026-08",
      "legal_entity": "ASL Airlines (Ireland) Ltd",
      "entry_date": "2026-09-01",
      "entry_type": "posted",
      "amount": 240.9,
      "balance_effect": 0,
      "description": "Charge posted — Clayton Hotel Dublin Airport",
      "posted_from_period": null
    },
    {
      "entry_id": "LE-RI-8853727-2424",
      "item_id": "RI-8853727",
      "period": "2026-08",
      "legal_entity": "ASL Airlines (Ireland) Ltd",
      "entry_date": "2026-09-01",
      "entry_type": "released",
      "amount": 25,
      "balance_effect": 25,
      "description": "Unused authorization released",
      "posted_from_period": null
    }
  ],
  "nights": [
    {
      "night": "2026-08-29",
      "room_net": 212.25,
      "vat_amount": 28.65,
      "city_tax": 0,
      "ancillaries": 0,
      "rate_paid": 240.9,
      "hotel": "Clayton Hotel Dublin Airport",
      "duty_reason": "overnight",
      "night_status": "occupied",
      "vcc_ref": "VCC-8853727",
      "checkin_time": "14:00",
      "checkout_time": "12:00"
    }
  ],
  "booking": {
    "booking_id": "RS-8853727",
    "layover_id": "L-513728",
    "duty_id": "D-513727",
    "crew_id": "IRE-S207",
    "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": "airline_contract",
    "channel": "staff_portal",
    "requested_by": "U-101",
    "created_at": "2026-08-24T14:00:00Z",
    "check_in": "2026-08-29",
    "check_out": "2026-08-30",
    "nights": 1,
    "room_type": "standard",
    "occupancy": 1,
    "lead_time_hours": 120,
    "confirmation_ref": "CNF-853727",
    "cancellation_deadline": "2026-08-28T18:00:00Z",
    "status": "completed",
    "period": "2026-08",
    "total_amount": 256.87
  },
  "duty": {
    "duty_id": "D-513727",
    "crew_id": "IRE-S207",
    "entity_id": "ASL Airlines Ireland",
    "roster_ref": "AIMS/202608/513727",
    "duty_type": "overnight",
    "flight_no": "ABR340",
    "dep_station": "EMA",
    "arr_station": "DUB",
    "duty_start_utc": "2026-08-28T12:15:00Z",
    "duty_end_utc": "2026-08-29T13:10:00Z",
    "duty_hours": 8.81,
    "block_hours": 6.02,
    "source_system": "aims",
    "published_at": "2026-08-13T06:00:00Z",
    "version": 1
  },
  "layover": {
    "layover_id": "L-513728",
    "duty_in": "D-513727",
    "duty_out": "D-513727R",
    "crew_id": "IRE-S207",
    "entity_id": "ASL Airlines Ireland",
    "station": "DUB",
    "rest_starts_utc": "2026-08-29T13:10:00Z",
    "rest_ends_utc": "2026-08-30T11:20:00Z",
    "rest_hours_available": 16.47,
    "sleep_opportunity_hours": 14.86,
    "transfer_in_minutes": 15,
    "transfer_out_minutes": 17,
    "nights": 1,
    "disrupted": 0,
    "period": "2026-08"
  },
  "evaluation": {
    "eval_id": "PE-13728",
    "period": "2026-08",
    "booking_id": "RS-8853727",
    "item_id": "RI-8853727",
    "ruleset": "2026.2",
    "evaluated_at": "2026-08-24T13:57:00Z",
    "channel": "staff_portal",
    "traveller_type": "staff",
    "entity": "ASL Airlines Ireland",
    "station": "DUB",
    "outcome": "hard_refusal",
    "breach_count": 1,
    "cost_impact": 240.9,
    "self_served": 0
  },
  "approval": null,
  "breaches": [
    {
      "breach_id": "PB-D8300",
      "eval_id": "PE-13728",
      "period": "2026-08",
      "rule_id": "R-ENTITLE",
      "layer": "entitlement",
      "severity": "block",
      "observed": "Overnight at home base DUB",
      "limit_value": "rest away from base only",
      "cost_impact": 240.9,
      "resolved": "refused",
      "name": "Duty entitlement",
      "authority": "ASL",
      "reference": "ASL OM-A 7.1"
    }
  ],
  "changes": [],
  "card": {
    "vcc_ref": "VCC-8853727",
    "booking_id": "RS-8853727",
    "item_id": "RI-8853727",
    "period": "2026-08",
    "issued_at": "2026-08-24T14:00:00Z",
    "issuer": "Routespring card program",
    "limit_amount": 281.87,
    "currency": "EUR",
    "valid_from": "2026-08-29",
    "valid_to": "2026-09-06",
    "grace_days": 7,
    "mcc_lock": "7011 lodging",
    "merchant_lock": "Clayton Hotel Dublin Airport",
    "auth_count": 1,
    "settled_amount": 240.9,
    "status": "settled",
    "closed_at": "2026-09-01T03:00:00Z"
  },
  "folioDoc": {
    "folio_id": "folio-8853727",
    "booking_id": "RS-8853727",
    "item_id": "RI-8853727",
    "property_id": "P-101",
    "period": "2026-08",
    "folio_number": "DUB260829-7171",
    "guest_name": "R. Byrne",
    "check_in": "2026-08-29",
    "check_out": "2026-08-30",
    "issued_at": "2026-08-30T09:30:00Z",
    "received_at": "2026-08-31T07:00:00Z",
    "received_via": "pms_feed",
    "currency": "EUR",
    "stated_total": 240.9,
    "line_count": 2,
    "days_to_receive": 1.29,
    "disputed": 0
  }
}