{
  "item": {
    "item_id": "RI-8853400",
    "period": "2026-08",
    "booking_id": "RS-8853400",
    "duty_id": "D-513400",
    "entity": "ASL Airlines Ireland",
    "legal_entity": "ASL Airlines (Ireland) Ltd",
    "crew_name": "J. Healy",
    "station": "CGN",
    "property_id": "P-108",
    "hotel": "Leonardo Hotel Koln",
    "check_in": "2026-08-19",
    "check_out": "2026-08-23",
    "nights": 4,
    "booking_amount": 1081.76,
    "card_auth": 1106.76,
    "card_settled": 1133.69,
    "folio_amount": 1133.69,
    "variance": 0,
    "variance_pct": 0,
    "variance_category": null,
    "match_state": "matched",
    "exception_type": null,
    "state": "final",
    "resolution": "legitimate",
    "opened_at": "2026-08-23T02:10:00Z",
    "resolved_at": "2026-09-05T11:00:00Z",
    "final_at": "2026-09-22T00:01:00Z",
    "final_due_at": "2026-09-22",
    "age_days": 16,
    "auto_resolved": 1
  },
  "cards": [
    {
      "event_id": "CE-2345",
      "item_id": "RI-8853400",
      "booking_id": "RS-8853400",
      "period": "2026-08",
      "vcc_ref": "VCC-8853400",
      "event_type": "issue",
      "amount": null,
      "currency": "EUR",
      "occurred_at": "2026-08-17T09:00:00Z",
      "valid_from": "2026-08-19",
      "valid_to": "2026-08-26",
      "mcc_lock": "7011 lodging",
      "decline_reason": null,
      "issuer_ref": "CNF-853400",
      "source_ref": "feed-2026-08-2345"
    },
    {
      "event_id": "CE-2346",
      "item_id": "RI-8853400",
      "booking_id": "RS-8853400",
      "period": "2026-08",
      "vcc_ref": "VCC-8853400",
      "event_type": "auth",
      "amount": 1106.76,
      "currency": "EUR",
      "occurred_at": "2026-08-19T14:20:00Z",
      "valid_from": "2026-08-19",
      "valid_to": "2026-08-26",
      "mcc_lock": "7011 lodging",
      "decline_reason": null,
      "issuer_ref": "CNF-853400",
      "source_ref": "feed-2026-08-2346"
    },
    {
      "event_id": "CE-2347",
      "item_id": "RI-8853400",
      "booking_id": "RS-8853400",
      "period": "2026-08",
      "vcc_ref": "VCC-8853400",
      "event_type": "capture",
      "amount": 1133.69,
      "currency": "EUR",
      "occurred_at": "2026-08-23T08:05:00Z",
      "valid_from": "2026-08-19",
      "valid_to": "2026-08-26",
      "mcc_lock": "7011 lodging",
      "decline_reason": null,
      "issuer_ref": "CNF-853400",
      "source_ref": "feed-2026-08-2347"
    },
    {
      "event_id": "CE-2348",
      "item_id": "RI-8853400",
      "booking_id": "RS-8853400",
      "period": "2026-08",
      "vcc_ref": "VCC-8853400",
      "event_type": "settle",
      "amount": 1133.69,
      "currency": "EUR",
      "occurred_at": "2026-08-25T03:00:00Z",
      "valid_from": "2026-08-19",
      "valid_to": "2026-08-26",
      "mcc_lock": "7011 lodging",
      "decline_reason": null,
      "issuer_ref": "CNF-853400",
      "source_ref": "feed-2026-08-2348"
    }
  ],
  "folio": [
    {
      "line_id": "FL-RI-8853400-c0",
      "item_id": "RI-8853400",
      "period": "2026-08",
      "line_date": "2026-08-19",
      "line_type": "fee",
      "description": "City / tourist tax",
      "amount": 5,
      "disputed": 0,
      "received_at": "2026-08-28T07:00:00Z",
      "source_ref": "folio-8853400",
      "folio_id": "folio-8853400"
    },
    {
      "line_id": "FL-RI-8853400-a0",
      "item_id": "RI-8853400",
      "period": "2026-08",
      "line_date": "2026-08-19",
      "line_type": "incidental",
      "description": "Parking",
      "amount": 12.05,
      "disputed": 0,
      "received_at": "2026-08-28T07:00:00Z",
      "source_ref": "folio-8853400",
      "folio_id": "folio-8853400"
    },
    {
      "line_id": "FL-RI-8853400-r0",
      "item_id": "RI-8853400",
      "period": "2026-08",
      "line_date": "2026-08-19",
      "line_type": "room",
      "description": "Room charge",
      "amount": 248.07,
      "disputed": 0,
      "received_at": "2026-08-28T07:00:00Z",
      "source_ref": "folio-8853400",
      "folio_id": "folio-8853400"
    },
    {
      "line_id": "FL-RI-8853400-v0",
      "item_id": "RI-8853400",
      "period": "2026-08",
      "line_date": "2026-08-19",
      "line_type": "tax",
      "description": "VAT 7%",
      "amount": 17.37,
      "disputed": 0,
      "received_at": "2026-08-28T07:00:00Z",
      "source_ref": "folio-8853400",
      "folio_id": "folio-8853400"
    },
    {
      "line_id": "FL-RI-8853400-c1",
      "item_id": "RI-8853400",
      "period": "2026-08",
      "line_date": "2026-08-20",
      "line_type": "fee",
      "description": "City / tourist tax",
      "amount": 5,
      "disputed": 0,
      "received_at": "2026-08-28T07:00:00Z",
      "source_ref": "folio-8853400",
      "folio_id": "folio-8853400"
    },
    {
      "line_id": "FL-RI-8853400-a1",
      "item_id": "RI-8853400",
      "period": "2026-08",
      "line_date": "2026-08-20",
      "line_type": "incidental",
      "description": "Minibar",
      "amount": 16.79,
      "disputed": 0,
      "received_at": "2026-08-28T07:00:00Z",
      "source_ref": "folio-8853400",
      "folio_id": "folio-8853400"
    },
    {
      "line_id": "FL-RI-8853400-r1",
      "item_id": "RI-8853400",
      "period": "2026-08",
      "line_date": "2026-08-20",
      "line_type": "room",
      "description": "Room charge",
      "amount": 248.07,
      "disputed": 0,
      "received_at": "2026-08-28T07:00:00Z",
      "source_ref": "folio-8853400",
      "folio_id": "folio-8853400"
    },
    {
      "line_id": "FL-RI-8853400-v1",
      "item_id": "RI-8853400",
      "period": "2026-08",
      "line_date": "2026-08-20",
      "line_type": "tax",
      "description": "VAT 7%",
      "amount": 17.37,
      "disputed": 0,
      "received_at": "2026-08-28T07:00:00Z",
      "source_ref": "folio-8853400",
      "folio_id": "folio-8853400"
    },
    {
      "line_id": "FL-RI-8853400-c2",
      "item_id": "RI-8853400",
      "period": "2026-08",
      "line_date": "2026-08-21",
      "line_type": "fee",
      "description": "City / tourist tax",
      "amount": 5,
      "disputed": 0,
      "received_at": "2026-08-28T07:00:00Z",
      "source_ref": "folio-8853400",
      "folio_id": "folio-8853400"
    },
    {
      "line_id": "FL-RI-8853400-r2",
      "item_id": "RI-8853400",
      "period": "2026-08",
      "line_date": "2026-08-21",
      "line_type": "room",
      "description": "Room charge",
      "amount": 248.07,
      "disputed": 0,
      "received_at": "2026-08-28T07:00:00Z",
      "source_ref": "folio-8853400",
      "folio_id": "folio-8853400"
    },
    {
      "line_id": "FL-RI-8853400-v2",
      "item_id": "RI-8853400",
      "period": "2026-08",
      "line_date": "2026-08-21",
      "line_type": "tax",
      "description": "VAT 7%",
      "amount": 17.37,
      "disputed": 0,
      "received_at": "2026-08-28T07:00:00Z",
      "source_ref": "folio-8853400",
      "folio_id": "folio-8853400"
    },
    {
      "line_id": "FL-RI-8853400-c3",
      "item_id": "RI-8853400",
      "period": "2026-08",
      "line_date": "2026-08-22",
      "line_type": "fee",
      "description": "City / tourist tax",
      "amount": 5,
      "disputed": 0,
      "received_at": "2026-08-28T07:00:00Z",
      "source_ref": "folio-8853400",
      "folio_id": "folio-8853400"
    },
    {
      "line_id": "FL-RI-8853400-a3",
      "item_id": "RI-8853400",
      "period": "2026-08",
      "line_date": "2026-08-22",
      "line_type": "incidental",
      "description": "Parking",
      "amount": 23.09,
      "disputed": 0,
      "received_at": "2026-08-28T07:00:00Z",
      "source_ref": "folio-8853400",
      "folio_id": "folio-8853400"
    },
    {
      "line_id": "FL-RI-8853400-r3",
      "item_id": "RI-8853400",
      "period": "2026-08",
      "line_date": "2026-08-22",
      "line_type": "room",
      "description": "Room charge",
      "amount": 248.07,
      "disputed": 0,
      "received_at": "2026-08-28T07:00:00Z",
      "source_ref": "folio-8853400",
      "folio_id": "folio-8853400"
    },
    {
      "line_id": "FL-RI-8853400-v3",
      "item_id": "RI-8853400",
      "period": "2026-08",
      "line_date": "2026-08-22",
      "line_type": "tax",
      "description": "VAT 7%",
      "amount": 17.37,
      "disputed": 0,
      "received_at": "2026-08-28T07:00:00Z",
      "source_ref": "folio-8853400",
      "folio_id": "folio-8853400"
    }
  ],
  "events": [
    {
      "event_id": "RE-RI-8853400-1",
      "item_id": "RI-8853400",
      "period": "2026-08",
      "seq": 1,
      "occurred_at": "2026-08-23T02:10:00Z",
      "event": "opened",
      "actor": "match-engine",
      "actor_type": "rule",
      "note": "Stay complete; reconciliation opened"
    },
    {
      "event_id": "RE-RI-8853400-2",
      "item_id": "RI-8853400",
      "period": "2026-08",
      "seq": 2,
      "occurred_at": "2026-08-25T07:00:00Z",
      "event": "evidence_received",
      "actor": "folio-ingest",
      "actor_type": "rule",
      "note": "Folio received from property"
    },
    {
      "event_id": "RE-RI-8853400-3",
      "item_id": "RI-8853400",
      "period": "2026-08",
      "seq": 3,
      "occurred_at": "2026-08-25T07:05:00Z",
      "event": "matched",
      "actor": "match-engine",
      "actor_type": "rule",
      "note": "Booking, card and folio agree within tolerance"
    },
    {
      "event_id": "RE-RI-8853400-4",
      "item_id": "RI-8853400",
      "period": "2026-08",
      "seq": 4,
      "occurred_at": "2026-08-31T11:00:00Z",
      "event": "resolved",
      "actor": "match-engine",
      "actor_type": "rule",
      "note": "Resolution: legitimate"
    },
    {
      "event_id": "RE-RI-8853400-5",
      "item_id": "RI-8853400",
      "period": "2026-08",
      "seq": 5,
      "occurred_at": "2026-09-22T00: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-8853400-1555",
      "item_id": "RI-8853400",
      "period": "2026-08",
      "legal_entity": "ASL Airlines (Ireland) Ltd",
      "entry_date": "2026-08-19",
      "entry_type": "pending",
      "amount": 1106.76,
      "balance_effect": -1106.76,
      "description": "Authorization held — Leonardo Hotel Koln",
      "posted_from_period": null
    },
    {
      "entry_id": "LE-RI-8853400-1556",
      "item_id": "RI-8853400",
      "period": "2026-08",
      "legal_entity": "ASL Airlines (Ireland) Ltd",
      "entry_date": "2026-08-25",
      "entry_type": "posted",
      "amount": 1133.69,
      "balance_effect": 0,
      "description": "Charge posted — Leonardo Hotel Koln",
      "posted_from_period": null
    }
  ],
  "nights": [
    {
      "night": "2026-08-19",
      "room_net": 248.07,
      "vat_amount": 17.37,
      "city_tax": 5,
      "ancillaries": 12.05,
      "rate_paid": 270.44,
      "hotel": "Leonardo Hotel Koln",
      "duty_reason": "overnight",
      "night_status": "occupied",
      "vcc_ref": "VCC-8853400",
      "checkin_time": "05:40",
      "checkout_time": "12:00"
    },
    {
      "night": "2026-08-20",
      "room_net": 248.07,
      "vat_amount": 17.37,
      "city_tax": 5,
      "ancillaries": 16.79,
      "rate_paid": 270.44,
      "hotel": "Leonardo Hotel Koln",
      "duty_reason": "overnight",
      "night_status": "occupied",
      "vcc_ref": "VCC-8853400",
      "checkin_time": "05:40",
      "checkout_time": "12:00"
    },
    {
      "night": "2026-08-21",
      "room_net": 248.07,
      "vat_amount": 17.37,
      "city_tax": 5,
      "ancillaries": 0,
      "rate_paid": 270.44,
      "hotel": "Leonardo Hotel Koln",
      "duty_reason": "overnight",
      "night_status": "occupied",
      "vcc_ref": "VCC-8853400",
      "checkin_time": "05:40",
      "checkout_time": "12:00"
    },
    {
      "night": "2026-08-22",
      "room_net": 248.07,
      "vat_amount": 17.37,
      "city_tax": 5,
      "ancillaries": 23.09,
      "rate_paid": 270.44,
      "hotel": "Leonardo Hotel Koln",
      "duty_reason": "overnight",
      "night_status": "occupied",
      "vcc_ref": "VCC-8853400",
      "checkin_time": "05:40",
      "checkout_time": "12:00"
    }
  ],
  "booking": {
    "booking_id": "RS-8853400",
    "layover_id": "L-513401",
    "duty_id": "D-513400",
    "crew_id": "IRE-1056",
    "entity_id": "ASL Airlines Ireland",
    "legal_entity": "ASL Airlines (Ireland) Ltd",
    "station": "CGN",
    "property_id": "P-108",
    "vendor_id": null,
    "contract_id": "C-108",
    "revenue_model": "routespring_contract",
    "channel": "automation",
    "requested_by": "rule:roster-watch",
    "created_at": "2026-08-10T05:40:00Z",
    "check_in": "2026-08-19",
    "check_out": "2026-08-23",
    "nights": 4,
    "room_type": "executive",
    "occupancy": 1,
    "lead_time_hours": 216,
    "confirmation_ref": "CNF-853400",
    "cancellation_deadline": "2026-08-17T18:00:00Z",
    "status": "completed",
    "period": "2026-08",
    "total_amount": 1149.66
  },
  "duty": {
    "duty_id": "D-513400",
    "crew_id": "IRE-1056",
    "entity_id": "ASL Airlines Ireland",
    "roster_ref": "AIMS/202608/513400",
    "duty_type": "overnight",
    "flight_no": "ABR386",
    "dep_station": "DUB",
    "arr_station": "CGN",
    "duty_start_utc": "2026-08-18T09:40:00Z",
    "duty_end_utc": "2026-08-19T04:49:00Z",
    "duty_hours": 10.4,
    "block_hours": 6.91,
    "source_system": "aims",
    "published_at": "2026-07-30T06:00:00Z",
    "version": 1
  },
  "layover": {
    "layover_id": "L-513401",
    "duty_in": "D-513400",
    "duty_out": "D-513400R",
    "crew_id": "IRE-1056",
    "entity_id": "ASL Airlines Ireland",
    "station": "CGN",
    "rest_starts_utc": "2026-08-19T04:49:00Z",
    "rest_ends_utc": "2026-08-23T06:00:00Z",
    "rest_hours_available": 79.85,
    "sleep_opportunity_hours": 78.12,
    "transfer_in_minutes": 16,
    "transfer_out_minutes": 14,
    "nights": 4,
    "disrupted": 0,
    "period": "2026-08"
  },
  "evaluation": {
    "eval_id": "PE-13401",
    "period": "2026-08",
    "booking_id": "RS-8853400",
    "item_id": "RI-8853400",
    "ruleset": "2026.2",
    "evaluated_at": "2026-08-10T05:37:00Z",
    "channel": "automation",
    "traveller_type": "crew",
    "entity": "ASL Airlines Ireland",
    "station": "CGN",
    "outcome": "pass",
    "breach_count": 0,
    "cost_impact": 0,
    "self_served": 0
  },
  "approval": null,
  "breaches": [],
  "changes": [],
  "card": {
    "vcc_ref": "VCC-8853400",
    "booking_id": "RS-8853400",
    "item_id": "RI-8853400",
    "period": "2026-08",
    "issued_at": "2026-08-10T05:40:00Z",
    "issuer": "Routespring card program",
    "limit_amount": 1174.66,
    "currency": "EUR",
    "valid_from": "2026-08-19",
    "valid_to": "2026-08-30",
    "grace_days": 7,
    "mcc_lock": "7011 lodging",
    "merchant_lock": "Leonardo Hotel Koln",
    "auth_count": 4,
    "settled_amount": 1133.69,
    "status": "settled",
    "closed_at": "2026-08-25T03:00:00Z"
  },
  "folioDoc": {
    "folio_id": "folio-8853400",
    "booking_id": "RS-8853400",
    "item_id": "RI-8853400",
    "property_id": "P-108",
    "period": "2026-08",
    "folio_number": "CGN260819-9103",
    "guest_name": "J. Healy",
    "check_in": "2026-08-19",
    "check_out": "2026-08-23",
    "issued_at": "2026-08-23T09:30:00Z",
    "received_at": "2026-08-28T07:00:00Z",
    "received_via": "pms_feed",
    "currency": "EUR",
    "stated_total": 1133.69,
    "line_count": 15,
    "days_to_receive": 5.29,
    "disputed": 0
  }
}