{
  "item": {
    "item_id": "RI-8853217",
    "period": "2026-08",
    "booking_id": "RS-8853217",
    "duty_id": "D-513217",
    "entity": "ASL Airlines Ireland",
    "legal_entity": "ASL Airlines (Ireland) Ltd",
    "crew_name": "M. Mulligan",
    "station": "EMA",
    "property_id": "P-105",
    "hotel": "Holiday Inn Castle Donington",
    "check_in": "2026-08-11",
    "check_out": "2026-08-13",
    "nights": 2,
    "booking_amount": 595.42,
    "card_auth": 620.42,
    "card_settled": 646.82,
    "folio_amount": 646.82,
    "variance": 0,
    "variance_pct": 0,
    "variance_category": null,
    "match_state": "matched",
    "exception_type": null,
    "state": "resolved",
    "resolution": "legitimate",
    "opened_at": "2026-08-13T02:10:00Z",
    "resolved_at": "2026-08-20T11:00:00Z",
    "final_at": null,
    "final_due_at": "2026-09-12",
    "age_days": 19,
    "auto_resolved": 1
  },
  "cards": [
    {
      "event_id": "CE-1607",
      "item_id": "RI-8853217",
      "booking_id": "RS-8853217",
      "period": "2026-08",
      "vcc_ref": "VCC-8853217",
      "event_type": "issue",
      "amount": null,
      "currency": "EUR",
      "occurred_at": "2026-08-09T09:00:00Z",
      "valid_from": "2026-08-11",
      "valid_to": "2026-08-16",
      "mcc_lock": "7011 lodging",
      "decline_reason": null,
      "issuer_ref": "CNF-853217",
      "source_ref": "feed-2026-08-1607"
    },
    {
      "event_id": "CE-1608",
      "item_id": "RI-8853217",
      "booking_id": "RS-8853217",
      "period": "2026-08",
      "vcc_ref": "VCC-8853217",
      "event_type": "auth",
      "amount": 620.42,
      "currency": "EUR",
      "occurred_at": "2026-08-11T14:20:00Z",
      "valid_from": "2026-08-11",
      "valid_to": "2026-08-16",
      "mcc_lock": "7011 lodging",
      "decline_reason": null,
      "issuer_ref": "CNF-853217",
      "source_ref": "feed-2026-08-1608"
    },
    {
      "event_id": "CE-1609",
      "item_id": "RI-8853217",
      "booking_id": "RS-8853217",
      "period": "2026-08",
      "vcc_ref": "VCC-8853217",
      "event_type": "capture",
      "amount": 646.82,
      "currency": "EUR",
      "occurred_at": "2026-08-13T08:05:00Z",
      "valid_from": "2026-08-11",
      "valid_to": "2026-08-16",
      "mcc_lock": "7011 lodging",
      "decline_reason": null,
      "issuer_ref": "CNF-853217",
      "source_ref": "feed-2026-08-1609"
    },
    {
      "event_id": "CE-1610",
      "item_id": "RI-8853217",
      "booking_id": "RS-8853217",
      "period": "2026-08",
      "vcc_ref": "VCC-8853217",
      "event_type": "settle",
      "amount": 646.82,
      "currency": "EUR",
      "occurred_at": "2026-08-15T03:00:00Z",
      "valid_from": "2026-08-11",
      "valid_to": "2026-08-16",
      "mcc_lock": "7011 lodging",
      "decline_reason": null,
      "issuer_ref": "CNF-853217",
      "source_ref": "feed-2026-08-1610"
    }
  ],
  "folio": [
    {
      "line_id": "FL-RI-8853217-a0",
      "item_id": "RI-8853217",
      "period": "2026-08",
      "line_date": "2026-08-11",
      "line_type": "incidental",
      "description": "Restaurant",
      "amount": 18.12,
      "disputed": 0,
      "received_at": "2026-08-14T07:00:00Z",
      "source_ref": "folio-8853217",
      "folio_id": "folio-8853217"
    },
    {
      "line_id": "FL-RI-8853217-r0",
      "item_id": "RI-8853217",
      "period": "2026-08",
      "line_date": "2026-08-11",
      "line_type": "room",
      "description": "Room charge",
      "amount": 248.09,
      "disputed": 0,
      "received_at": "2026-08-14T07:00:00Z",
      "source_ref": "folio-8853217",
      "folio_id": "folio-8853217"
    },
    {
      "line_id": "FL-RI-8853217-v0",
      "item_id": "RI-8853217",
      "period": "2026-08",
      "line_date": "2026-08-11",
      "line_type": "tax",
      "description": "VAT 20%",
      "amount": 49.62,
      "disputed": 0,
      "received_at": "2026-08-14T07:00:00Z",
      "source_ref": "folio-8853217",
      "folio_id": "folio-8853217"
    },
    {
      "line_id": "FL-RI-8853217-a1",
      "item_id": "RI-8853217",
      "period": "2026-08",
      "line_date": "2026-08-12",
      "line_type": "incidental",
      "description": "Parking",
      "amount": 33.28,
      "disputed": 0,
      "received_at": "2026-08-14T07:00:00Z",
      "source_ref": "folio-8853217",
      "folio_id": "folio-8853217"
    },
    {
      "line_id": "FL-RI-8853217-r1",
      "item_id": "RI-8853217",
      "period": "2026-08",
      "line_date": "2026-08-12",
      "line_type": "room",
      "description": "Room charge",
      "amount": 248.09,
      "disputed": 0,
      "received_at": "2026-08-14T07:00:00Z",
      "source_ref": "folio-8853217",
      "folio_id": "folio-8853217"
    },
    {
      "line_id": "FL-RI-8853217-v1",
      "item_id": "RI-8853217",
      "period": "2026-08",
      "line_date": "2026-08-12",
      "line_type": "tax",
      "description": "VAT 20%",
      "amount": 49.62,
      "disputed": 0,
      "received_at": "2026-08-14T07:00:00Z",
      "source_ref": "folio-8853217",
      "folio_id": "folio-8853217"
    }
  ],
  "events": [
    {
      "event_id": "RE-RI-8853217-1",
      "item_id": "RI-8853217",
      "period": "2026-08",
      "seq": 1,
      "occurred_at": "2026-08-13T02:10:00Z",
      "event": "opened",
      "actor": "match-engine",
      "actor_type": "rule",
      "note": "Stay complete; reconciliation opened"
    },
    {
      "event_id": "RE-RI-8853217-2",
      "item_id": "RI-8853217",
      "period": "2026-08",
      "seq": 2,
      "occurred_at": "2026-08-15T07:00:00Z",
      "event": "evidence_received",
      "actor": "folio-ingest",
      "actor_type": "rule",
      "note": "Folio received from property"
    },
    {
      "event_id": "RE-RI-8853217-3",
      "item_id": "RI-8853217",
      "period": "2026-08",
      "seq": 3,
      "occurred_at": "2026-08-15T07:05:00Z",
      "event": "matched",
      "actor": "match-engine",
      "actor_type": "rule",
      "note": "Booking, card and folio agree within tolerance"
    },
    {
      "event_id": "RE-RI-8853217-4",
      "item_id": "RI-8853217",
      "period": "2026-08",
      "seq": 4,
      "occurred_at": "2026-08-27T11:00:00Z",
      "event": "resolved",
      "actor": "match-engine",
      "actor_type": "rule",
      "note": "Resolution: legitimate"
    }
  ],
  "ledger": [
    {
      "entry_id": "LE-RI-8853217-1065",
      "item_id": "RI-8853217",
      "period": "2026-08",
      "legal_entity": "ASL Airlines (Ireland) Ltd",
      "entry_date": "2026-08-11",
      "entry_type": "pending",
      "amount": 620.42,
      "balance_effect": -620.42,
      "description": "Authorization held — Holiday Inn Castle Donington",
      "posted_from_period": null
    },
    {
      "entry_id": "LE-RI-8853217-1066",
      "item_id": "RI-8853217",
      "period": "2026-08",
      "legal_entity": "ASL Airlines (Ireland) Ltd",
      "entry_date": "2026-08-15",
      "entry_type": "posted",
      "amount": 646.82,
      "balance_effect": 0,
      "description": "Charge posted — Holiday Inn Castle Donington",
      "posted_from_period": null
    }
  ],
  "nights": [
    {
      "night": "2026-08-11",
      "room_net": 248.09,
      "vat_amount": 49.62,
      "city_tax": 0,
      "ancillaries": 18.12,
      "rate_paid": 297.71,
      "hotel": "Holiday Inn Castle Donington",
      "duty_reason": "overnight",
      "night_status": "occupied",
      "vcc_ref": "VCC-8853217",
      "checkin_time": "14:00",
      "checkout_time": "04:30"
    },
    {
      "night": "2026-08-12",
      "room_net": 248.09,
      "vat_amount": 49.62,
      "city_tax": 0,
      "ancillaries": 33.28,
      "rate_paid": 297.71,
      "hotel": "Holiday Inn Castle Donington",
      "duty_reason": "overnight",
      "night_status": "occupied",
      "vcc_ref": "VCC-8853217",
      "checkin_time": "14:00",
      "checkout_time": "04:30"
    }
  ],
  "booking": {
    "booking_id": "RS-8853217",
    "layover_id": "L-513218",
    "duty_id": "D-513217",
    "crew_id": "IRE-S202",
    "entity_id": "ASL Airlines Ireland",
    "legal_entity": "ASL Airlines (Ireland) Ltd",
    "station": "EMA",
    "property_id": "P-105",
    "vendor_id": null,
    "contract_id": "C-105",
    "revenue_model": "routespring_contract",
    "channel": "staff_portal",
    "requested_by": "U-102",
    "created_at": "2026-08-02T14:00:00Z",
    "check_in": "2026-08-11",
    "check_out": "2026-08-13",
    "nights": 2,
    "room_type": "standard",
    "occupancy": 1,
    "lead_time_hours": 216,
    "confirmation_ref": "CNF-853217",
    "cancellation_deadline": "2026-08-10T18:00:00Z",
    "status": "completed",
    "period": "2026-08",
    "total_amount": 662.79
  },
  "duty": {
    "duty_id": "D-513217",
    "crew_id": "IRE-S202",
    "entity_id": "ASL Airlines Ireland",
    "roster_ref": "AIMS/202608/513217",
    "duty_type": "overnight",
    "flight_no": "ABR146",
    "dep_station": "DUB",
    "arr_station": "EMA",
    "duty_start_utc": "2026-08-10T15:30:00Z",
    "duty_end_utc": "2026-08-11T13:14:00Z",
    "duty_hours": 9.03,
    "block_hours": 3.41,
    "source_system": "aims",
    "published_at": "2026-08-06T06:00:00Z",
    "version": 1
  },
  "layover": {
    "layover_id": "L-513218",
    "duty_in": "D-513217",
    "duty_out": "D-513217R",
    "crew_id": "IRE-S202",
    "entity_id": "ASL Airlines Ireland",
    "station": "EMA",
    "rest_starts_utc": "2026-08-11T13:14:00Z",
    "rest_ends_utc": "2026-08-13T11:20:00Z",
    "rest_hours_available": 37.42,
    "sleep_opportunity_hours": 35.85,
    "transfer_in_minutes": 11,
    "transfer_out_minutes": 13,
    "nights": 2,
    "disrupted": 0,
    "period": "2026-08"
  },
  "evaluation": {
    "eval_id": "PE-13218",
    "period": "2026-08",
    "booking_id": "RS-8853217",
    "item_id": "RI-8853217",
    "ruleset": "2026.2",
    "evaluated_at": "2026-08-02T13:57:00Z",
    "channel": "staff_portal",
    "traveller_type": "staff",
    "entity": "ASL Airlines Ireland",
    "station": "EMA",
    "outcome": "pass",
    "breach_count": 0,
    "cost_impact": 0,
    "self_served": 0
  },
  "approval": null,
  "breaches": [],
  "changes": [],
  "card": {
    "vcc_ref": "VCC-8853217",
    "booking_id": "RS-8853217",
    "item_id": "RI-8853217",
    "period": "2026-08",
    "issued_at": "2026-08-02T14:00:00Z",
    "issuer": "Routespring card program",
    "limit_amount": 687.79,
    "currency": "EUR",
    "valid_from": "2026-08-11",
    "valid_to": "2026-08-20",
    "grace_days": 7,
    "mcc_lock": "7011 lodging",
    "merchant_lock": "Holiday Inn Castle Donington",
    "auth_count": 2,
    "settled_amount": 646.82,
    "status": "settled",
    "closed_at": "2026-08-15T03:00:00Z"
  },
  "folioDoc": {
    "folio_id": "folio-8853217",
    "booking_id": "RS-8853217",
    "item_id": "RI-8853217",
    "property_id": "P-105",
    "period": "2026-08",
    "folio_number": "EMA260811-4446",
    "guest_name": "M. Mulligan",
    "check_in": "2026-08-11",
    "check_out": "2026-08-13",
    "issued_at": "2026-08-13T09:30:00Z",
    "received_at": "2026-08-14T07:00:00Z",
    "received_via": "pms_feed",
    "currency": "EUR",
    "stated_total": 646.82,
    "line_count": 6,
    "days_to_receive": 1.29,
    "disputed": 0
  }
}