{
  "item": {
    "item_id": "RI-8853231",
    "period": "2026-08",
    "booking_id": "RS-8853231",
    "duty_id": "D-513231",
    "entity": "ASL Airlines Ireland",
    "legal_entity": "ASL Airlines (Ireland) Ltd",
    "crew_name": "J. Doyle",
    "station": "CGN",
    "property_id": "P-107",
    "hotel": "Ibis Koln Messe",
    "check_in": "2026-08-29",
    "check_out": "2026-09-01",
    "nights": 3,
    "booking_amount": 764.43,
    "card_auth": 789.43,
    "card_settled": 826.44,
    "folio_amount": 826.44,
    "variance": 0,
    "variance_pct": 0,
    "variance_category": null,
    "match_state": "matched",
    "exception_type": null,
    "state": "final",
    "resolution": "legitimate",
    "opened_at": "2026-09-01T02:10:00Z",
    "resolved_at": "2026-09-04T11:00:00Z",
    "final_at": "2026-10-01T00:01:00Z",
    "final_due_at": "2026-10-01",
    "age_days": 21,
    "auto_resolved": 1
  },
  "cards": [
    {
      "event_id": "CE-1663",
      "item_id": "RI-8853231",
      "booking_id": "RS-8853231",
      "period": "2026-08",
      "vcc_ref": "VCC-8853231",
      "event_type": "issue",
      "amount": null,
      "currency": "EUR",
      "occurred_at": "2026-08-27T09:00:00Z",
      "valid_from": "2026-08-29",
      "valid_to": "2026-09-04",
      "mcc_lock": "7011 lodging",
      "decline_reason": null,
      "issuer_ref": "CNF-853231",
      "source_ref": "feed-2026-08-1663"
    },
    {
      "event_id": "CE-1664",
      "item_id": "RI-8853231",
      "booking_id": "RS-8853231",
      "period": "2026-08",
      "vcc_ref": "VCC-8853231",
      "event_type": "auth",
      "amount": 789.43,
      "currency": "EUR",
      "occurred_at": "2026-08-29T14:20:00Z",
      "valid_from": "2026-08-29",
      "valid_to": "2026-09-04",
      "mcc_lock": "7011 lodging",
      "decline_reason": null,
      "issuer_ref": "CNF-853231",
      "source_ref": "feed-2026-08-1664"
    },
    {
      "event_id": "CE-1665",
      "item_id": "RI-8853231",
      "booking_id": "RS-8853231",
      "period": "2026-08",
      "vcc_ref": "VCC-8853231",
      "event_type": "capture",
      "amount": 826.44,
      "currency": "EUR",
      "occurred_at": "2026-09-01T08:05:00Z",
      "valid_from": "2026-08-29",
      "valid_to": "2026-09-04",
      "mcc_lock": "7011 lodging",
      "decline_reason": null,
      "issuer_ref": "CNF-853231",
      "source_ref": "feed-2026-08-1665"
    },
    {
      "event_id": "CE-1666",
      "item_id": "RI-8853231",
      "booking_id": "RS-8853231",
      "period": "2026-08",
      "vcc_ref": "VCC-8853231",
      "event_type": "settle",
      "amount": 826.44,
      "currency": "EUR",
      "occurred_at": "2026-09-03T03:00:00Z",
      "valid_from": "2026-08-29",
      "valid_to": "2026-09-04",
      "mcc_lock": "7011 lodging",
      "decline_reason": null,
      "issuer_ref": "CNF-853231",
      "source_ref": "feed-2026-08-1666"
    }
  ],
  "folio": [
    {
      "line_id": "FL-RI-8853231-c0",
      "item_id": "RI-8853231",
      "period": "2026-08",
      "line_date": "2026-08-29",
      "line_type": "fee",
      "description": "City / tourist tax",
      "amount": 5,
      "disputed": 0,
      "received_at": "2026-09-02T07:00:00Z",
      "source_ref": "folio-8853231",
      "folio_id": "folio-8853231"
    },
    {
      "line_id": "FL-RI-8853231-a0",
      "item_id": "RI-8853231",
      "period": "2026-08",
      "line_date": "2026-08-29",
      "line_type": "incidental",
      "description": "Parking",
      "amount": 30.58,
      "disputed": 0,
      "received_at": "2026-09-02T07:00:00Z",
      "source_ref": "folio-8853231",
      "folio_id": "folio-8853231"
    },
    {
      "line_id": "FL-RI-8853231-r0",
      "item_id": "RI-8853231",
      "period": "2026-08",
      "line_date": "2026-08-29",
      "line_type": "room",
      "description": "Room charge",
      "amount": 233.47,
      "disputed": 0,
      "received_at": "2026-09-02T07:00:00Z",
      "source_ref": "folio-8853231",
      "folio_id": "folio-8853231"
    },
    {
      "line_id": "FL-RI-8853231-v0",
      "item_id": "RI-8853231",
      "period": "2026-08",
      "line_date": "2026-08-29",
      "line_type": "tax",
      "description": "VAT 7%",
      "amount": 16.34,
      "disputed": 0,
      "received_at": "2026-09-02T07:00:00Z",
      "source_ref": "folio-8853231",
      "folio_id": "folio-8853231"
    },
    {
      "line_id": "FL-RI-8853231-r1",
      "item_id": "RI-8853231",
      "period": "2026-08",
      "line_date": "2026-08-30",
      "line_type": "room",
      "description": "Room charge",
      "amount": 238.14,
      "disputed": 0,
      "received_at": "2026-09-02T07:00:00Z",
      "source_ref": "folio-8853231",
      "folio_id": "folio-8853231"
    },
    {
      "line_id": "FL-RI-8853231-v1",
      "item_id": "RI-8853231",
      "period": "2026-08",
      "line_date": "2026-08-30",
      "line_type": "tax",
      "description": "VAT 7%",
      "amount": 16.67,
      "disputed": 0,
      "received_at": "2026-09-02T07:00:00Z",
      "source_ref": "folio-8853231",
      "folio_id": "folio-8853231"
    },
    {
      "line_id": "FL-RI-8853231-c2",
      "item_id": "RI-8853231",
      "period": "2026-08",
      "line_date": "2026-08-31",
      "line_type": "fee",
      "description": "City / tourist tax",
      "amount": 5,
      "disputed": 0,
      "received_at": "2026-09-02T07:00:00Z",
      "source_ref": "folio-8853231",
      "folio_id": "folio-8853231"
    },
    {
      "line_id": "FL-RI-8853231-a2",
      "item_id": "RI-8853231",
      "period": "2026-08",
      "line_date": "2026-08-31",
      "line_type": "incidental",
      "description": "Restaurant",
      "amount": 31.43,
      "disputed": 0,
      "received_at": "2026-09-02T07:00:00Z",
      "source_ref": "folio-8853231",
      "folio_id": "folio-8853231"
    },
    {
      "line_id": "FL-RI-8853231-r2",
      "item_id": "RI-8853231",
      "period": "2026-08",
      "line_date": "2026-08-31",
      "line_type": "room",
      "description": "Room charge",
      "amount": 233.47,
      "disputed": 0,
      "received_at": "2026-09-02T07:00:00Z",
      "source_ref": "folio-8853231",
      "folio_id": "folio-8853231"
    },
    {
      "line_id": "FL-RI-8853231-v2",
      "item_id": "RI-8853231",
      "period": "2026-08",
      "line_date": "2026-08-31",
      "line_type": "tax",
      "description": "VAT 7%",
      "amount": 16.34,
      "disputed": 0,
      "received_at": "2026-09-02T07:00:00Z",
      "source_ref": "folio-8853231",
      "folio_id": "folio-8853231"
    }
  ],
  "events": [
    {
      "event_id": "RE-RI-8853231-1",
      "item_id": "RI-8853231",
      "period": "2026-08",
      "seq": 1,
      "occurred_at": "2026-09-01T02:10:00Z",
      "event": "opened",
      "actor": "match-engine",
      "actor_type": "rule",
      "note": "Stay complete; reconciliation opened"
    },
    {
      "event_id": "RE-RI-8853231-2",
      "item_id": "RI-8853231",
      "period": "2026-08",
      "seq": 2,
      "occurred_at": "2026-09-03T07:00:00Z",
      "event": "evidence_received",
      "actor": "folio-ingest",
      "actor_type": "rule",
      "note": "Folio received from property"
    },
    {
      "event_id": "RE-RI-8853231-3",
      "item_id": "RI-8853231",
      "period": "2026-08",
      "seq": 3,
      "occurred_at": "2026-09-03T07:05:00Z",
      "event": "matched",
      "actor": "match-engine",
      "actor_type": "rule",
      "note": "Booking, card and folio agree within tolerance"
    },
    {
      "event_id": "RE-RI-8853231-4",
      "item_id": "RI-8853231",
      "period": "2026-08",
      "seq": 4,
      "occurred_at": "2026-09-10T11:00:00Z",
      "event": "resolved",
      "actor": "match-engine",
      "actor_type": "rule",
      "note": "Resolution: legitimate"
    },
    {
      "event_id": "RE-RI-8853231-5",
      "item_id": "RI-8853231",
      "period": "2026-08",
      "seq": 5,
      "occurred_at": "2026-10-01T00: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-8853231-1100",
      "item_id": "RI-8853231",
      "period": "2026-08",
      "legal_entity": "ASL Airlines (Ireland) Ltd",
      "entry_date": "2026-08-29",
      "entry_type": "pending",
      "amount": 789.43,
      "balance_effect": -789.43,
      "description": "Authorization held — Ibis Koln Messe",
      "posted_from_period": null
    },
    {
      "entry_id": "LE-RI-8853231-1101",
      "item_id": "RI-8853231",
      "period": "2026-08",
      "legal_entity": "ASL Airlines (Ireland) Ltd",
      "entry_date": "2026-09-03",
      "entry_type": "posted",
      "amount": 826.44,
      "balance_effect": 0,
      "description": "Charge posted — Ibis Koln Messe",
      "posted_from_period": null
    }
  ],
  "nights": [
    {
      "night": "2026-08-29",
      "room_net": 233.47,
      "vat_amount": 16.34,
      "city_tax": 5,
      "ancillaries": 30.58,
      "rate_paid": 254.81,
      "hotel": "Ibis Koln Messe",
      "duty_reason": "overnight",
      "night_status": "occupied",
      "vcc_ref": "VCC-8853231",
      "checkin_time": "22:30",
      "checkout_time": "04:30"
    },
    {
      "night": "2026-08-30",
      "room_net": 238.14,
      "vat_amount": 16.67,
      "city_tax": 0,
      "ancillaries": 0,
      "rate_paid": 254.81,
      "hotel": "Ibis Koln Messe",
      "duty_reason": "held",
      "night_status": "occupied",
      "vcc_ref": "VCC-8853231",
      "checkin_time": null,
      "checkout_time": null
    },
    {
      "night": "2026-08-31",
      "room_net": 233.47,
      "vat_amount": 16.34,
      "city_tax": 5,
      "ancillaries": 31.43,
      "rate_paid": 254.81,
      "hotel": "Ibis Koln Messe",
      "duty_reason": "standby",
      "night_status": "occupied",
      "vcc_ref": "VCC-8853231",
      "checkin_time": "22:30",
      "checkout_time": "04:30"
    }
  ],
  "booking": {
    "booking_id": "RS-8853231",
    "layover_id": "L-513232",
    "duty_id": "D-513231",
    "crew_id": "IRE-1086",
    "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": "routespring_contract",
    "channel": "crew_app",
    "requested_by": "IRE-1086",
    "created_at": "2026-08-28T22:30:00Z",
    "check_in": "2026-08-29",
    "check_out": "2026-09-01",
    "nights": 3,
    "room_type": "standard",
    "occupancy": 1,
    "lead_time_hours": 24,
    "confirmation_ref": "CNF-853231",
    "cancellation_deadline": "2026-08-28T18:00:00Z",
    "status": "completed",
    "period": "2026-08",
    "total_amount": 842.41
  },
  "duty": {
    "duty_id": "D-513231",
    "crew_id": "IRE-1086",
    "entity_id": "ASL Airlines Ireland",
    "roster_ref": "AIMS/202608/513231",
    "duty_type": "overnight",
    "flight_no": "ABR462",
    "dep_station": "EMA",
    "arr_station": "CGN",
    "duty_start_utc": "2026-08-28T09:40:00Z",
    "duty_end_utc": "2026-08-29T21:45:00Z",
    "duty_hours": 10.56,
    "block_hours": 6.1,
    "source_system": "aims",
    "published_at": "2026-08-18T06:00:00Z",
    "version": 1
  },
  "layover": {
    "layover_id": "L-513232",
    "duty_in": "D-513231",
    "duty_out": "D-513231R",
    "crew_id": "IRE-1086",
    "entity_id": "ASL Airlines Ireland",
    "station": "CGN",
    "rest_starts_utc": "2026-08-29T21:45:00Z",
    "rest_ends_utc": "2026-09-01T08:45:00Z",
    "rest_hours_available": 61.97,
    "sleep_opportunity_hours": 60.37,
    "transfer_in_minutes": 10,
    "transfer_out_minutes": 12,
    "nights": 3,
    "disrupted": 0,
    "period": "2026-08"
  },
  "evaluation": {
    "eval_id": "PE-13232",
    "period": "2026-08",
    "booking_id": "RS-8853231",
    "item_id": "RI-8853231",
    "ruleset": "2026.2",
    "evaluated_at": "2026-08-28T22:27:00Z",
    "channel": "travel_desk",
    "traveller_type": "crew",
    "entity": "ASL Airlines Ireland",
    "station": "CGN",
    "outcome": "soft_breach",
    "breach_count": 1,
    "cost_impact": 30.58,
    "self_served": 0
  },
  "approval": null,
  "breaches": [
    {
      "breach_id": "PB-6934",
      "eval_id": "PE-13232",
      "period": "2026-08",
      "rule_id": "R-ANC",
      "layer": "commercial",
      "severity": "warn",
      "observed": "30.58 EUR uncovered",
      "limit_value": "breakfast, wifi",
      "cost_impact": 30.58,
      "resolved": "auto_allowed",
      "name": "Covered ancillaries",
      "authority": "ASL",
      "reference": null
    }
  ],
  "changes": [],
  "card": {
    "vcc_ref": "VCC-8853231",
    "booking_id": "RS-8853231",
    "item_id": "RI-8853231",
    "period": "2026-08",
    "issued_at": "2026-08-28T22:30:00Z",
    "issuer": "Routespring card program",
    "limit_amount": 867.41,
    "currency": "EUR",
    "valid_from": "2026-08-29",
    "valid_to": "2026-09-08",
    "grace_days": 7,
    "mcc_lock": "7011 lodging",
    "merchant_lock": "Ibis Koln Messe",
    "auth_count": 3,
    "settled_amount": 826.44,
    "status": "settled",
    "closed_at": "2026-09-03T03:00:00Z"
  },
  "folioDoc": {
    "folio_id": "folio-8853231",
    "booking_id": "RS-8853231",
    "item_id": "RI-8853231",
    "property_id": "P-107",
    "period": "2026-08",
    "folio_number": "CGN260829-2672",
    "guest_name": "J. Doyle",
    "check_in": "2026-08-29",
    "check_out": "2026-09-01",
    "issued_at": "2026-09-01T09:30:00Z",
    "received_at": "2026-09-02T07:00:00Z",
    "received_via": "pms_feed",
    "currency": "EUR",
    "stated_total": 826.44,
    "line_count": 10,
    "days_to_receive": 1.29,
    "disputed": 0
  }
}