{
  "item": {
    "item_id": "RI-8854099",
    "period": "2026-08",
    "booking_id": "RS-8854099",
    "duty_id": "D-514099",
    "entity": "ASL Airlines Belgium",
    "legal_entity": "ASL Airlines Belgium NV",
    "crew_name": "J. De Smet",
    "station": "HKG",
    "property_id": "P-121",
    "hotel": "Hong Kong SkyCity Marriott",
    "check_in": "2026-08-10",
    "check_out": "2026-08-11",
    "nights": 1,
    "booking_amount": 296.7,
    "card_auth": 321.7,
    "card_settled": 446.57,
    "folio_amount": 446.57,
    "variance": 149.87,
    "variance_pct": 50.51,
    "variance_category": "currency",
    "match_state": "variance",
    "exception_type": "amount_variance",
    "state": "explained",
    "resolution": null,
    "opened_at": "2026-08-11T02:10:00Z",
    "resolved_at": null,
    "final_at": null,
    "final_due_at": "2026-09-10",
    "age_days": 38,
    "auto_resolved": 0
  },
  "cards": [
    {
      "event_id": "CE-5142",
      "item_id": "RI-8854099",
      "booking_id": "RS-8854099",
      "period": "2026-08",
      "vcc_ref": "VCC-8854099",
      "event_type": "issue",
      "amount": null,
      "currency": "EUR",
      "occurred_at": "2026-08-08T09:00:00Z",
      "valid_from": "2026-08-10",
      "valid_to": "2026-08-14",
      "mcc_lock": "7011 lodging",
      "decline_reason": null,
      "issuer_ref": "CNF-854099",
      "source_ref": "feed-2026-08-5142"
    },
    {
      "event_id": "CE-5143",
      "item_id": "RI-8854099",
      "booking_id": "RS-8854099",
      "period": "2026-08",
      "vcc_ref": "VCC-8854099",
      "event_type": "auth",
      "amount": 321.7,
      "currency": "EUR",
      "occurred_at": "2026-08-10T14:20:00Z",
      "valid_from": "2026-08-10",
      "valid_to": "2026-08-14",
      "mcc_lock": "7011 lodging",
      "decline_reason": null,
      "issuer_ref": "CNF-854099",
      "source_ref": "feed-2026-08-5143"
    },
    {
      "event_id": "CE-5144",
      "item_id": "RI-8854099",
      "booking_id": "RS-8854099",
      "period": "2026-08",
      "vcc_ref": "VCC-8854099",
      "event_type": "capture",
      "amount": 446.57,
      "currency": "EUR",
      "occurred_at": "2026-08-11T08:05:00Z",
      "valid_from": "2026-08-10",
      "valid_to": "2026-08-14",
      "mcc_lock": "7011 lodging",
      "decline_reason": null,
      "issuer_ref": "CNF-854099",
      "source_ref": "feed-2026-08-5144"
    },
    {
      "event_id": "CE-5145",
      "item_id": "RI-8854099",
      "booking_id": "RS-8854099",
      "period": "2026-08",
      "vcc_ref": "VCC-8854099",
      "event_type": "settle",
      "amount": 446.57,
      "currency": "EUR",
      "occurred_at": "2026-08-13T03:00:00Z",
      "valid_from": "2026-08-10",
      "valid_to": "2026-08-14",
      "mcc_lock": "7011 lodging",
      "decline_reason": null,
      "issuer_ref": "CNF-854099",
      "source_ref": "feed-2026-08-5145"
    }
  ],
  "folio": [
    {
      "line_id": "FL-RI-8854099-r0",
      "item_id": "RI-8854099",
      "period": "2026-08",
      "line_date": "2026-08-10",
      "line_type": "room",
      "description": "Room charge",
      "amount": 296.7,
      "disputed": 0,
      "received_at": "2026-08-16T07:00:00Z",
      "source_ref": "folio-8854099",
      "folio_id": "folio-8854099"
    },
    {
      "line_id": "FL-RI-8854099-x",
      "item_id": "RI-8854099",
      "period": "2026-08",
      "line_date": "2026-08-11",
      "line_type": "adjustment",
      "description": "FX adjustment",
      "amount": 149.87,
      "disputed": 0,
      "received_at": "2026-08-16T07:00:00Z",
      "source_ref": "folio-8854099",
      "folio_id": "folio-8854099"
    }
  ],
  "events": [
    {
      "event_id": "RE-RI-8854099-1",
      "item_id": "RI-8854099",
      "period": "2026-08",
      "seq": 1,
      "occurred_at": "2026-08-11T02:10:00Z",
      "event": "opened",
      "actor": "match-engine",
      "actor_type": "rule",
      "note": "Stay complete; reconciliation opened"
    },
    {
      "event_id": "RE-RI-8854099-2",
      "item_id": "RI-8854099",
      "period": "2026-08",
      "seq": 2,
      "occurred_at": "2026-08-13T07:00:00Z",
      "event": "evidence_received",
      "actor": "folio-ingest",
      "actor_type": "rule",
      "note": "Folio received from property"
    },
    {
      "event_id": "RE-RI-8854099-3",
      "item_id": "RI-8854099",
      "period": "2026-08",
      "seq": 3,
      "occurred_at": "2026-08-13T07:05:00Z",
      "event": "variance_detected",
      "actor": "match-engine",
      "actor_type": "rule",
      "note": "amount variance — 149.87 EUR"
    },
    {
      "event_id": "RE-RI-8854099-4",
      "item_id": "RI-8854099",
      "period": "2026-08",
      "seq": 4,
      "occurred_at": "2026-08-14T10:20:00Z",
      "event": "category_assigned",
      "actor": "R. Menon",
      "actor_type": "human",
      "note": "Categorised as currency"
    }
  ],
  "ledger": [
    {
      "entry_id": "LE-RI-8854099-3404",
      "item_id": "RI-8854099",
      "period": "2026-08",
      "legal_entity": "ASL Airlines Belgium NV",
      "entry_date": "2026-08-10",
      "entry_type": "pending",
      "amount": 321.7,
      "balance_effect": -321.7,
      "description": "Authorization held — Hong Kong SkyCity Marriott",
      "posted_from_period": null
    },
    {
      "entry_id": "LE-RI-8854099-3405",
      "item_id": "RI-8854099",
      "period": "2026-08",
      "legal_entity": "ASL Airlines Belgium NV",
      "entry_date": "2026-08-13",
      "entry_type": "posted",
      "amount": 446.57,
      "balance_effect": 0,
      "description": "Charge posted — Hong Kong SkyCity Marriott",
      "posted_from_period": null
    }
  ],
  "nights": [
    {
      "night": "2026-08-10",
      "room_net": 296.7,
      "vat_amount": 0,
      "city_tax": 0,
      "ancillaries": 0,
      "rate_paid": 296.7,
      "hotel": "Hong Kong SkyCity Marriott",
      "duty_reason": "irops",
      "night_status": "occupied",
      "vcc_ref": "VCC-8854099",
      "checkin_time": "05:40",
      "checkout_time": "10:00"
    }
  ],
  "booking": {
    "booking_id": "RS-8854099",
    "layover_id": "L-514100",
    "duty_id": "D-514099",
    "crew_id": "BEL-1086",
    "entity_id": "ASL Airlines Belgium",
    "legal_entity": "ASL Airlines Belgium NV",
    "station": "HKG",
    "property_id": "P-121",
    "vendor_id": null,
    "contract_id": "C-121",
    "revenue_model": "routespring_contract",
    "channel": "automation",
    "requested_by": "rule:roster-watch",
    "created_at": "2026-08-09T17:40:00Z",
    "check_in": "2026-08-10",
    "check_out": "2026-08-11",
    "nights": 1,
    "room_type": "superior",
    "occupancy": 1,
    "lead_time_hours": 12,
    "confirmation_ref": "CNF-854099",
    "cancellation_deadline": "2026-08-08T18:00:00Z",
    "status": "completed",
    "period": "2026-08",
    "total_amount": 312.67
  },
  "duty": {
    "duty_id": "D-514099",
    "crew_id": "BEL-1086",
    "entity_id": "ASL Airlines Belgium",
    "roster_ref": "AIMS/202608/514099",
    "duty_type": "irops",
    "flight_no": "TAY329",
    "dep_station": "LGG",
    "arr_station": "HKG",
    "duty_start_utc": "2026-08-09T15:30:00Z",
    "duty_end_utc": "2026-08-10T04:21:00Z",
    "duty_hours": 7.75,
    "block_hours": 5.28,
    "source_system": "aims",
    "published_at": "2026-08-05T06:00:00Z",
    "version": 1
  },
  "layover": {
    "layover_id": "L-514100",
    "duty_in": "D-514099",
    "duty_out": "D-514099R",
    "crew_id": "BEL-1086",
    "entity_id": "ASL Airlines Belgium",
    "station": "HKG",
    "rest_starts_utc": "2026-08-10T04:21:00Z",
    "rest_ends_utc": "2026-08-11T06:00:00Z",
    "rest_hours_available": 17.19,
    "sleep_opportunity_hours": 14.06,
    "transfer_in_minutes": 44,
    "transfer_out_minutes": 38,
    "nights": 1,
    "disrupted": 1,
    "period": "2026-08"
  },
  "evaluation": {
    "eval_id": "PE-14100",
    "period": "2026-08",
    "booking_id": "RS-8854099",
    "item_id": "RI-8854099",
    "ruleset": "2026.2",
    "evaluated_at": "2026-08-09T17:37:00Z",
    "channel": "automation",
    "traveller_type": "crew",
    "entity": "ASL Airlines Belgium",
    "station": "HKG",
    "outcome": "hard_refusal",
    "breach_count": 2,
    "cost_impact": 97.78,
    "self_served": 0
  },
  "approval": null,
  "breaches": [
    {
      "breach_id": "PB-7335",
      "eval_id": "PE-14100",
      "period": "2026-08",
      "rule_id": "R-WINDOW",
      "layer": "commercial",
      "severity": "warn",
      "observed": "0.5 days",
      "limit_value": "48 hours",
      "cost_impact": 97.78,
      "resolved": "auto_allowed",
      "name": "Advance booking window",
      "authority": "ASL",
      "reference": null
    },
    {
      "breach_id": "PB-D8351",
      "eval_id": "PE-14100",
      "period": "2026-08",
      "rule_id": "R-SINGLE",
      "layer": "regulatory",
      "severity": "block",
      "observed": "7 crew requested against a block of 5",
      "limit_value": "one room per crew member",
      "cost_impact": 0,
      "resolved": "refused",
      "name": "Single occupancy",
      "authority": "ASL",
      "reference": "ASL OM-A 7.4"
    }
  ],
  "changes": [
    {
      "change_id": "BC-1689",
      "booking_id": "RS-8854099",
      "period": "2026-08",
      "occurred_at": "2026-08-10T06:12:00Z",
      "change_type": "modify_in_place",
      "source": "aims",
      "trigger": "irops",
      "modify_attempted": 1,
      "failed_reason": null,
      "hours_before_checkin": 53.49,
      "cutoff_hours": 48,
      "cost": 17.02,
      "room_lost": 0,
      "resolved_by": "automation",
      "resolved_at": null,
      "sla_breached": 0
    }
  ],
  "card": {
    "vcc_ref": "VCC-8854099",
    "booking_id": "RS-8854099",
    "item_id": "RI-8854099",
    "period": "2026-08",
    "issued_at": "2026-08-09T17:40:00Z",
    "issuer": "Routespring card program",
    "limit_amount": 337.67,
    "currency": "EUR",
    "valid_from": "2026-08-10",
    "valid_to": "2026-08-18",
    "grace_days": 7,
    "mcc_lock": "7011 lodging",
    "merchant_lock": "Hong Kong SkyCity Marriott",
    "auth_count": 1,
    "settled_amount": 296.7,
    "status": "settled",
    "closed_at": "2026-08-13T03:00:00Z"
  },
  "folioDoc": {
    "folio_id": "folio-8854099",
    "booking_id": "RS-8854099",
    "item_id": "RI-8854099",
    "property_id": "P-121",
    "period": "2026-08",
    "folio_number": "HKG260810-1477",
    "guest_name": "J. De Smet",
    "check_in": "2026-08-10",
    "check_out": "2026-08-11",
    "issued_at": "2026-08-11T09:30:00Z",
    "received_at": "2026-08-16T07:00:00Z",
    "received_via": "email_pdf",
    "currency": "EUR",
    "stated_total": 446.57,
    "line_count": 2,
    "days_to_receive": 5.29,
    "disputed": 0
  }
}