{
  "item": {
    "item_id": "RI-8853717",
    "period": "2026-08",
    "booking_id": "RS-8853717",
    "duty_id": "D-513717",
    "entity": "ASL Airlines Ireland",
    "legal_entity": "ASL Airlines (Ireland) Ltd",
    "crew_name": "S. O Conaill",
    "station": "CGN",
    "property_id": "P-107",
    "hotel": "Ibis Koln Messe",
    "check_in": "2026-08-03",
    "check_out": "2026-08-04",
    "nights": 1,
    "booking_amount": 349.61,
    "card_auth": 374.61,
    "card_settled": 364.57,
    "folio_amount": 364.57,
    "variance": 0,
    "variance_pct": 0,
    "variance_category": null,
    "match_state": "matched",
    "exception_type": null,
    "state": "final",
    "resolution": "legitimate",
    "opened_at": "2026-08-04T02:10:00Z",
    "resolved_at": "2026-08-11T11:00:00Z",
    "final_at": "2026-09-03T00:01:00Z",
    "final_due_at": "2026-09-03",
    "age_days": 14,
    "auto_resolved": 1
  },
  "cards": [
    {
      "event_id": "CE-3614",
      "item_id": "RI-8853717",
      "booking_id": "RS-8853717",
      "period": "2026-08",
      "vcc_ref": "VCC-8853717",
      "event_type": "issue",
      "amount": null,
      "currency": "EUR",
      "occurred_at": "2026-08-01T09:00:00Z",
      "valid_from": "2026-08-03",
      "valid_to": "2026-08-07",
      "mcc_lock": "7011 lodging",
      "decline_reason": null,
      "issuer_ref": "CNF-853717",
      "source_ref": "feed-2026-08-3614"
    },
    {
      "event_id": "CE-3615",
      "item_id": "RI-8853717",
      "booking_id": "RS-8853717",
      "period": "2026-08",
      "vcc_ref": "VCC-8853717",
      "event_type": "auth",
      "amount": 374.61,
      "currency": "EUR",
      "occurred_at": "2026-08-03T14:20:00Z",
      "valid_from": "2026-08-03",
      "valid_to": "2026-08-07",
      "mcc_lock": "7011 lodging",
      "decline_reason": null,
      "issuer_ref": "CNF-853717",
      "source_ref": "feed-2026-08-3615"
    },
    {
      "event_id": "CE-3616",
      "item_id": "RI-8853717",
      "booking_id": "RS-8853717",
      "period": "2026-08",
      "vcc_ref": "VCC-8853717",
      "event_type": "capture",
      "amount": 364.57,
      "currency": "EUR",
      "occurred_at": "2026-08-04T08:05:00Z",
      "valid_from": "2026-08-03",
      "valid_to": "2026-08-07",
      "mcc_lock": "7011 lodging",
      "decline_reason": null,
      "issuer_ref": "CNF-853717",
      "source_ref": "feed-2026-08-3616"
    },
    {
      "event_id": "CE-3617",
      "item_id": "RI-8853717",
      "booking_id": "RS-8853717",
      "period": "2026-08",
      "vcc_ref": "VCC-8853717",
      "event_type": "settle",
      "amount": 364.57,
      "currency": "EUR",
      "occurred_at": "2026-08-06T03:00:00Z",
      "valid_from": "2026-08-03",
      "valid_to": "2026-08-07",
      "mcc_lock": "7011 lodging",
      "decline_reason": null,
      "issuer_ref": "CNF-853717",
      "source_ref": "feed-2026-08-3617"
    }
  ],
  "folio": [
    {
      "line_id": "FL-RI-8853717-c0",
      "item_id": "RI-8853717",
      "period": "2026-08",
      "line_date": "2026-08-03",
      "line_type": "fee",
      "description": "City / tourist tax",
      "amount": 5,
      "disputed": 0,
      "received_at": "2026-08-09T07:00:00Z",
      "source_ref": "folio-8853717",
      "folio_id": "folio-8853717"
    },
    {
      "line_id": "FL-RI-8853717-a0",
      "item_id": "RI-8853717",
      "period": "2026-08",
      "line_date": "2026-08-03",
      "line_type": "incidental",
      "description": "Late checkout",
      "amount": 14.96,
      "disputed": 0,
      "received_at": "2026-08-09T07:00:00Z",
      "source_ref": "folio-8853717",
      "folio_id": "folio-8853717"
    },
    {
      "line_id": "FL-RI-8853717-r0",
      "item_id": "RI-8853717",
      "period": "2026-08",
      "line_date": "2026-08-03",
      "line_type": "room",
      "description": "Room charge",
      "amount": 322.07,
      "disputed": 0,
      "received_at": "2026-08-09T07:00:00Z",
      "source_ref": "folio-8853717",
      "folio_id": "folio-8853717"
    },
    {
      "line_id": "FL-RI-8853717-v0",
      "item_id": "RI-8853717",
      "period": "2026-08",
      "line_date": "2026-08-03",
      "line_type": "tax",
      "description": "VAT 7%",
      "amount": 22.54,
      "disputed": 0,
      "received_at": "2026-08-09T07:00:00Z",
      "source_ref": "folio-8853717",
      "folio_id": "folio-8853717"
    }
  ],
  "events": [
    {
      "event_id": "RE-RI-8853717-1",
      "item_id": "RI-8853717",
      "period": "2026-08",
      "seq": 1,
      "occurred_at": "2026-08-04T02:10:00Z",
      "event": "opened",
      "actor": "match-engine",
      "actor_type": "rule",
      "note": "Stay complete; reconciliation opened"
    },
    {
      "event_id": "RE-RI-8853717-2",
      "item_id": "RI-8853717",
      "period": "2026-08",
      "seq": 2,
      "occurred_at": "2026-08-06T07:00:00Z",
      "event": "evidence_received",
      "actor": "folio-ingest",
      "actor_type": "rule",
      "note": "Folio received from property"
    },
    {
      "event_id": "RE-RI-8853717-3",
      "item_id": "RI-8853717",
      "period": "2026-08",
      "seq": 3,
      "occurred_at": "2026-08-06T07:05:00Z",
      "event": "matched",
      "actor": "match-engine",
      "actor_type": "rule",
      "note": "Booking, card and folio agree within tolerance"
    },
    {
      "event_id": "RE-RI-8853717-4",
      "item_id": "RI-8853717",
      "period": "2026-08",
      "seq": 4,
      "occurred_at": "2026-08-17T11:00:00Z",
      "event": "resolved",
      "actor": "match-engine",
      "actor_type": "rule",
      "note": "Resolution: legitimate"
    },
    {
      "event_id": "RE-RI-8853717-5",
      "item_id": "RI-8853717",
      "period": "2026-08",
      "seq": 5,
      "occurred_at": "2026-09-03T00: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-8853717-2396",
      "item_id": "RI-8853717",
      "period": "2026-08",
      "legal_entity": "ASL Airlines (Ireland) Ltd",
      "entry_date": "2026-08-03",
      "entry_type": "pending",
      "amount": 374.61,
      "balance_effect": -374.61,
      "description": "Authorization held — Ibis Koln Messe",
      "posted_from_period": null
    },
    {
      "entry_id": "LE-RI-8853717-2397",
      "item_id": "RI-8853717",
      "period": "2026-08",
      "legal_entity": "ASL Airlines (Ireland) Ltd",
      "entry_date": "2026-08-06",
      "entry_type": "posted",
      "amount": 364.57,
      "balance_effect": 0,
      "description": "Charge posted — Ibis Koln Messe",
      "posted_from_period": null
    },
    {
      "entry_id": "LE-RI-8853717-2398",
      "item_id": "RI-8853717",
      "period": "2026-08",
      "legal_entity": "ASL Airlines (Ireland) Ltd",
      "entry_date": "2026-08-06",
      "entry_type": "released",
      "amount": 10.04,
      "balance_effect": 10.04,
      "description": "Unused authorization released",
      "posted_from_period": null
    }
  ],
  "nights": [
    {
      "night": "2026-08-03",
      "room_net": 322.07,
      "vat_amount": 22.54,
      "city_tax": 5,
      "ancillaries": 14.96,
      "rate_paid": 349.61,
      "hotel": "Ibis Koln Messe",
      "duty_reason": "overnight",
      "night_status": "occupied",
      "vcc_ref": "VCC-8853717",
      "checkin_time": "16:00",
      "checkout_time": "08:15"
    }
  ],
  "booking": {
    "booking_id": "RS-8853717",
    "layover_id": "L-513718",
    "duty_id": "D-513717",
    "crew_id": "IRE-1025",
    "entity_id": "ASL Airlines Ireland",
    "legal_entity": "ASL Airlines (Ireland) Ltd",
    "station": "CGN",
    "property_id": "P-107",
    "vendor_id": null,
    "contract_id": "C-107",
    "revenue_model": "airline_contract",
    "channel": "automation",
    "requested_by": "rule:roster-watch",
    "created_at": "2026-07-25T16:00:00Z",
    "check_in": "2026-08-03",
    "check_out": "2026-08-04",
    "nights": 1,
    "room_type": "standard",
    "occupancy": 1,
    "lead_time_hours": 216,
    "confirmation_ref": "CNF-853717",
    "cancellation_deadline": "2026-08-02T18:00:00Z",
    "status": "completed",
    "period": "2026-08",
    "total_amount": 380.54
  },
  "duty": {
    "duty_id": "D-513717",
    "crew_id": "IRE-1025",
    "entity_id": "ASL Airlines Ireland",
    "roster_ref": "AIMS/202608/513717",
    "duty_type": "overnight",
    "flight_no": "ABR387",
    "dep_station": "EMA",
    "arr_station": "CGN",
    "duty_start_utc": "2026-08-02T15:30:00Z",
    "duty_end_utc": "2026-08-03T15:15:00Z",
    "duty_hours": 6.71,
    "block_hours": 4.27,
    "source_system": "aims",
    "published_at": "2026-07-20T06:00:00Z",
    "version": 1
  },
  "layover": {
    "layover_id": "L-513718",
    "duty_in": "D-513717",
    "duty_out": "D-513717R",
    "crew_id": "IRE-1025",
    "entity_id": "ASL Airlines Ireland",
    "station": "CGN",
    "rest_starts_utc": "2026-08-03T15:15:00Z",
    "rest_ends_utc": "2026-08-04T06:00:00Z",
    "rest_hours_available": 16.41,
    "sleep_opportunity_hours": 14.79,
    "transfer_in_minutes": 10,
    "transfer_out_minutes": 12,
    "nights": 1,
    "disrupted": 0,
    "period": "2026-08"
  },
  "evaluation": {
    "eval_id": "PE-13718",
    "period": "2026-08",
    "booking_id": "RS-8853717",
    "item_id": "RI-8853717",
    "ruleset": "2026.2",
    "evaluated_at": "2026-07-25T15:57:00Z",
    "channel": "automation",
    "traveller_type": "crew",
    "entity": "ASL Airlines Ireland",
    "station": "CGN",
    "outcome": "soft_breach",
    "breach_count": 1,
    "cost_impact": 95.26,
    "self_served": 0
  },
  "approval": {
    "approval_id": "PA-2875",
    "eval_id": "PE-13718",
    "period": "2026-08",
    "approver": "P. Costa",
    "approver_role": "travel_desk",
    "reason": "Preferred property sold out",
    "approved_at": "2026-07-25T15:58:48Z",
    "second_approver": null
  },
  "breaches": [
    {
      "breach_id": "PB-7132",
      "eval_id": "PE-13718",
      "period": "2026-08",
      "rule_id": "R-CAP",
      "layer": "commercial",
      "severity": "approve",
      "observed": "349.61 EUR",
      "limit_value": "284.35 EUR",
      "cost_impact": 95.26,
      "resolved": "approved",
      "name": "Rate cap",
      "authority": "ASL",
      "reference": null
    }
  ],
  "changes": [],
  "card": {
    "vcc_ref": "VCC-8853717",
    "booking_id": "RS-8853717",
    "item_id": "RI-8853717",
    "period": "2026-08",
    "issued_at": "2026-07-25T16:00:00Z",
    "issuer": "Routespring card program",
    "limit_amount": 405.54,
    "currency": "EUR",
    "valid_from": "2026-08-03",
    "valid_to": "2026-08-11",
    "grace_days": 7,
    "mcc_lock": "7011 lodging",
    "merchant_lock": "Ibis Koln Messe",
    "auth_count": 1,
    "settled_amount": 364.57,
    "status": "settled",
    "closed_at": "2026-08-06T03:00:00Z"
  },
  "folioDoc": {
    "folio_id": "folio-8853717",
    "booking_id": "RS-8853717",
    "item_id": "RI-8853717",
    "property_id": "P-107",
    "period": "2026-08",
    "folio_number": "CGN260803-5669",
    "guest_name": "S. O Conaill",
    "check_in": "2026-08-03",
    "check_out": "2026-08-04",
    "issued_at": "2026-08-04T09:30:00Z",
    "received_at": "2026-08-09T07:00:00Z",
    "received_via": "pms_feed",
    "currency": "EUR",
    "stated_total": 364.57,
    "line_count": 4,
    "days_to_receive": 5.29,
    "disputed": 0
  }
}