{
  "item": {
    "item_id": "RI-8854280",
    "period": "2026-08",
    "booking_id": "RS-8854280",
    "duty_id": "D-514280",
    "entity": "ASL Airlines Belgium",
    "legal_entity": "ASL Airlines Belgium NV",
    "crew_name": "N. Dubois",
    "station": "LGG",
    "property_id": "P-112",
    "hotel": "Husa de la Couronne",
    "check_in": "2026-08-16",
    "check_out": "2026-08-18",
    "nights": 2,
    "booking_amount": 606.99,
    "card_auth": 631.99,
    "card_settled": 606.99,
    "folio_amount": 606.99,
    "variance": 0,
    "variance_pct": 0,
    "variance_category": null,
    "match_state": "matched",
    "exception_type": null,
    "state": "final",
    "resolution": "legitimate",
    "opened_at": "2026-08-18T02:10:00Z",
    "resolved_at": "2026-08-27T11:00:00Z",
    "final_at": "2026-09-17T00:01:00Z",
    "final_due_at": "2026-09-17",
    "age_days": 20,
    "auto_resolved": 1
  },
  "cards": [
    {
      "event_id": "CE-5868",
      "item_id": "RI-8854280",
      "booking_id": "RS-8854280",
      "period": "2026-08",
      "vcc_ref": "VCC-8854280",
      "event_type": "issue",
      "amount": null,
      "currency": "EUR",
      "occurred_at": "2026-08-14T09:00:00Z",
      "valid_from": "2026-08-16",
      "valid_to": "2026-08-21",
      "mcc_lock": "7011 lodging",
      "decline_reason": null,
      "issuer_ref": "CNF-854280",
      "source_ref": "feed-2026-08-5868"
    },
    {
      "event_id": "CE-5869",
      "item_id": "RI-8854280",
      "booking_id": "RS-8854280",
      "period": "2026-08",
      "vcc_ref": "VCC-8854280",
      "event_type": "auth",
      "amount": 631.99,
      "currency": "EUR",
      "occurred_at": "2026-08-16T14:20:00Z",
      "valid_from": "2026-08-16",
      "valid_to": "2026-08-21",
      "mcc_lock": "7011 lodging",
      "decline_reason": null,
      "issuer_ref": "CNF-854280",
      "source_ref": "feed-2026-08-5869"
    },
    {
      "event_id": "CE-5870",
      "item_id": "RI-8854280",
      "booking_id": "RS-8854280",
      "period": "2026-08",
      "vcc_ref": "VCC-8854280",
      "event_type": "capture",
      "amount": 606.99,
      "currency": "EUR",
      "occurred_at": "2026-08-18T08:05:00Z",
      "valid_from": "2026-08-16",
      "valid_to": "2026-08-21",
      "mcc_lock": "7011 lodging",
      "decline_reason": null,
      "issuer_ref": "CNF-854280",
      "source_ref": "feed-2026-08-5870"
    },
    {
      "event_id": "CE-5871",
      "item_id": "RI-8854280",
      "booking_id": "RS-8854280",
      "period": "2026-08",
      "vcc_ref": "VCC-8854280",
      "event_type": "settle",
      "amount": 606.99,
      "currency": "EUR",
      "occurred_at": "2026-08-20T03:00:00Z",
      "valid_from": "2026-08-16",
      "valid_to": "2026-08-21",
      "mcc_lock": "7011 lodging",
      "decline_reason": null,
      "issuer_ref": "CNF-854280",
      "source_ref": "feed-2026-08-5871"
    }
  ],
  "folio": [
    {
      "line_id": "FL-RI-8854280-c0",
      "item_id": "RI-8854280",
      "period": "2026-08",
      "line_date": "2026-08-16",
      "line_type": "fee",
      "description": "City / tourist tax",
      "amount": 4,
      "disputed": 0,
      "received_at": "2026-08-20T07:00:00Z",
      "source_ref": "folio-8854280",
      "folio_id": "folio-8854280"
    },
    {
      "line_id": "FL-RI-8854280-r0",
      "item_id": "RI-8854280",
      "period": "2026-08",
      "line_date": "2026-08-16",
      "line_type": "room",
      "description": "Room charge",
      "amount": 271.68,
      "disputed": 0,
      "received_at": "2026-08-20T07:00:00Z",
      "source_ref": "folio-8854280",
      "folio_id": "folio-8854280"
    },
    {
      "line_id": "FL-RI-8854280-v0",
      "item_id": "RI-8854280",
      "period": "2026-08",
      "line_date": "2026-08-16",
      "line_type": "tax",
      "description": "VAT 6%",
      "amount": 16.3,
      "disputed": 0,
      "received_at": "2026-08-20T07:00:00Z",
      "source_ref": "folio-8854280",
      "folio_id": "folio-8854280"
    },
    {
      "line_id": "FL-RI-8854280-c1",
      "item_id": "RI-8854280",
      "period": "2026-08",
      "line_date": "2026-08-17",
      "line_type": "fee",
      "description": "City / tourist tax",
      "amount": 4,
      "disputed": 0,
      "received_at": "2026-08-20T07:00:00Z",
      "source_ref": "folio-8854280",
      "folio_id": "folio-8854280"
    },
    {
      "line_id": "FL-RI-8854280-r1",
      "item_id": "RI-8854280",
      "period": "2026-08",
      "line_date": "2026-08-17",
      "line_type": "room",
      "description": "Room charge",
      "amount": 293.41,
      "disputed": 0,
      "received_at": "2026-08-20T07:00:00Z",
      "source_ref": "folio-8854280",
      "folio_id": "folio-8854280"
    },
    {
      "line_id": "FL-RI-8854280-v1",
      "item_id": "RI-8854280",
      "period": "2026-08",
      "line_date": "2026-08-17",
      "line_type": "tax",
      "description": "VAT 6%",
      "amount": 17.6,
      "disputed": 0,
      "received_at": "2026-08-20T07:00:00Z",
      "source_ref": "folio-8854280",
      "folio_id": "folio-8854280"
    }
  ],
  "events": [
    {
      "event_id": "RE-RI-8854280-1",
      "item_id": "RI-8854280",
      "period": "2026-08",
      "seq": 1,
      "occurred_at": "2026-08-18T02:10:00Z",
      "event": "opened",
      "actor": "match-engine",
      "actor_type": "rule",
      "note": "Stay complete; reconciliation opened"
    },
    {
      "event_id": "RE-RI-8854280-2",
      "item_id": "RI-8854280",
      "period": "2026-08",
      "seq": 2,
      "occurred_at": "2026-08-20T07:00:00Z",
      "event": "evidence_received",
      "actor": "folio-ingest",
      "actor_type": "rule",
      "note": "Folio received from property"
    },
    {
      "event_id": "RE-RI-8854280-3",
      "item_id": "RI-8854280",
      "period": "2026-08",
      "seq": 3,
      "occurred_at": "2026-08-20T07:05:00Z",
      "event": "matched",
      "actor": "match-engine",
      "actor_type": "rule",
      "note": "Booking, card and folio agree within tolerance"
    },
    {
      "event_id": "RE-RI-8854280-4",
      "item_id": "RI-8854280",
      "period": "2026-08",
      "seq": 4,
      "occurred_at": "2026-08-24T11:00:00Z",
      "event": "resolved",
      "actor": "match-engine",
      "actor_type": "rule",
      "note": "Resolution: legitimate"
    },
    {
      "event_id": "RE-RI-8854280-5",
      "item_id": "RI-8854280",
      "period": "2026-08",
      "seq": 5,
      "occurred_at": "2026-09-17T00: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-8854280-3879",
      "item_id": "RI-8854280",
      "period": "2026-08",
      "legal_entity": "ASL Airlines Belgium NV",
      "entry_date": "2026-08-16",
      "entry_type": "pending",
      "amount": 631.99,
      "balance_effect": -631.99,
      "description": "Authorization held — Husa de la Couronne",
      "posted_from_period": null
    },
    {
      "entry_id": "LE-RI-8854280-3880",
      "item_id": "RI-8854280",
      "period": "2026-08",
      "legal_entity": "ASL Airlines Belgium NV",
      "entry_date": "2026-08-20",
      "entry_type": "posted",
      "amount": 606.99,
      "balance_effect": 0,
      "description": "Charge posted — Husa de la Couronne",
      "posted_from_period": null
    },
    {
      "entry_id": "LE-RI-8854280-3881",
      "item_id": "RI-8854280",
      "period": "2026-08",
      "legal_entity": "ASL Airlines Belgium NV",
      "entry_date": "2026-08-20",
      "entry_type": "released",
      "amount": 25,
      "balance_effect": 25,
      "description": "Unused authorization released",
      "posted_from_period": null
    }
  ],
  "nights": [
    {
      "night": "2026-08-16",
      "room_net": 271.68,
      "vat_amount": 16.3,
      "city_tax": 4,
      "ancillaries": 0,
      "rate_paid": 291.98,
      "hotel": "Husa de la Couronne",
      "duty_reason": "overnight",
      "night_status": "occupied",
      "vcc_ref": "VCC-8854280",
      "checkin_time": "05:40",
      "checkout_time": "11:00"
    },
    {
      "night": "2026-08-17",
      "room_net": 293.41,
      "vat_amount": 17.6,
      "city_tax": 4,
      "ancillaries": 0,
      "rate_paid": 315.01,
      "hotel": "Husa de la Couronne",
      "duty_reason": "training",
      "night_status": "occupied",
      "vcc_ref": "VCC-8854280",
      "checkin_time": "05:40",
      "checkout_time": "11:00"
    }
  ],
  "booking": {
    "booking_id": "RS-8854280",
    "layover_id": "L-514281",
    "duty_id": "D-514280",
    "crew_id": "BEL-S215",
    "entity_id": "ASL Airlines Belgium",
    "legal_entity": "ASL Airlines Belgium NV",
    "station": "LGG",
    "property_id": "P-112",
    "vendor_id": "VEN-04",
    "contract_id": null,
    "revenue_model": "vendor_commission",
    "channel": "staff_portal",
    "requested_by": "U-103",
    "created_at": "2026-08-15T17:40:00Z",
    "check_in": "2026-08-16",
    "check_out": "2026-08-18",
    "nights": 2,
    "room_type": "superior",
    "occupancy": 1,
    "lead_time_hours": 12,
    "confirmation_ref": "CNF-854280",
    "cancellation_deadline": null,
    "status": "completed",
    "period": "2026-08",
    "total_amount": 622.96
  },
  "duty": {
    "duty_id": "D-514280",
    "crew_id": "BEL-S215",
    "entity_id": "ASL Airlines Belgium",
    "roster_ref": "AIMS/202608/514280",
    "duty_type": "overnight",
    "flight_no": "TAY501",
    "dep_station": "BRU",
    "arr_station": "LGG",
    "duty_start_utc": "2026-08-15T15:30:00Z",
    "duty_end_utc": "2026-08-16T04:29:00Z",
    "duty_hours": 11.59,
    "block_hours": 5.72,
    "source_system": "crew_app",
    "published_at": "2026-08-04T06:00:00Z",
    "version": 1
  },
  "layover": {
    "layover_id": "L-514281",
    "duty_in": "D-514280",
    "duty_out": "D-514280R",
    "crew_id": "BEL-S215",
    "entity_id": "ASL Airlines Belgium",
    "station": "LGG",
    "rest_starts_utc": "2026-08-16T04:29:00Z",
    "rest_ends_utc": "2026-08-18T06:00:00Z",
    "rest_hours_available": 38.37,
    "sleep_opportunity_hours": 35.36,
    "transfer_in_minutes": 36,
    "transfer_out_minutes": 42,
    "nights": 2,
    "disrupted": 0,
    "period": "2026-08"
  },
  "evaluation": {
    "eval_id": "PE-14281",
    "period": "2026-08",
    "booking_id": "RS-8854280",
    "item_id": "RI-8854280",
    "ruleset": "2026.2",
    "evaluated_at": "2026-08-15T17:37:00Z",
    "channel": "staff_portal",
    "traveller_type": "staff",
    "entity": "ASL Airlines Belgium",
    "station": "LGG",
    "outcome": "hard_refusal",
    "breach_count": 2,
    "cost_impact": 87.9,
    "self_served": 0
  },
  "approval": null,
  "breaches": [
    {
      "breach_id": "PB-7430",
      "eval_id": "PE-14281",
      "period": "2026-08",
      "rule_id": "R-WINDOW",
      "layer": "commercial",
      "severity": "warn",
      "observed": "0.5 days",
      "limit_value": "48 hours",
      "cost_impact": 87.9,
      "resolved": "auto_allowed",
      "name": "Advance booking window",
      "authority": "ASL",
      "reference": null
    },
    {
      "breach_id": "PB-D8377",
      "eval_id": "PE-14281",
      "period": "2026-08",
      "rule_id": "R-EASA-ACC",
      "layer": "regulatory",
      "severity": "block",
      "observed": "Audit AUD-20 (2026-08-11): 50.55 dB measured at night",
      "limit_value": "35 dB — quiet, dark, temperature-controlled",
      "cost_impact": 0,
      "resolved": "refused",
      "name": "Accommodation standard",
      "authority": "EASA",
      "reference": "CS FTL.1.235"
    }
  ],
  "changes": [
    {
      "change_id": "BC-1720",
      "booking_id": "RS-8854280",
      "period": "2026-08",
      "occurred_at": "2026-08-16T06:12:00Z",
      "change_type": "modify_in_place",
      "source": "crew_app",
      "trigger": "roster_change",
      "modify_attempted": 1,
      "failed_reason": null,
      "hours_before_checkin": 57.19,
      "cutoff_hours": 24,
      "cost": 11.33,
      "room_lost": 0,
      "resolved_by": "automation",
      "resolved_at": null,
      "sla_breached": 0
    }
  ],
  "card": {
    "vcc_ref": "VCC-8854280",
    "booking_id": "RS-8854280",
    "item_id": "RI-8854280",
    "period": "2026-08",
    "issued_at": "2026-08-15T17:40:00Z",
    "issuer": "Routespring card program",
    "limit_amount": 647.96,
    "currency": "EUR",
    "valid_from": "2026-08-16",
    "valid_to": "2026-08-25",
    "grace_days": 7,
    "mcc_lock": "7011 lodging",
    "merchant_lock": "Husa de la Couronne",
    "auth_count": 2,
    "settled_amount": 606.99,
    "status": "settled",
    "closed_at": "2026-08-20T03:00:00Z"
  },
  "folioDoc": {
    "folio_id": "folio-8854280",
    "booking_id": "RS-8854280",
    "item_id": "RI-8854280",
    "property_id": "P-112",
    "period": "2026-08",
    "folio_number": "LGG260816-4618",
    "guest_name": "N. Dubois",
    "check_in": "2026-08-16",
    "check_out": "2026-08-18",
    "issued_at": "2026-08-18T09:30:00Z",
    "received_at": "2026-08-20T07:00:00Z",
    "received_via": "pms_feed",
    "currency": "EUR",
    "stated_total": 606.99,
    "line_count": 6,
    "days_to_receive": 2.29,
    "disputed": 0
  }
}