{
  "item": {
    "item_id": "RI-8854614",
    "period": "2026-08",
    "booking_id": "RS-8854614",
    "duty_id": "D-514614",
    "entity": "ASL Airlines Belgium",
    "legal_entity": "ASL Airlines Belgium NV",
    "crew_name": "O. Declerck",
    "station": "HKG",
    "property_id": "P-121",
    "hotel": "Hong Kong SkyCity Marriott",
    "check_in": "2026-08-17",
    "check_out": "2026-08-19",
    "nights": 2,
    "booking_amount": 690.83,
    "card_auth": 715.83,
    "card_settled": 1006.42,
    "folio_amount": 1006.42,
    "variance": 282.8,
    "variance_pct": 40.94,
    "variance_category": "rate_change",
    "match_state": "variance",
    "exception_type": "amount_variance",
    "state": "final",
    "resolution": "written_off",
    "opened_at": "2026-08-19T02:10:00Z",
    "resolved_at": "2026-08-29T11:00:00Z",
    "final_at": "2026-09-18T00:01:00Z",
    "final_due_at": "2026-09-18",
    "age_days": 6,
    "auto_resolved": 0
  },
  "cards": [
    {
      "event_id": "CE-7198",
      "item_id": "RI-8854614",
      "booking_id": "RS-8854614",
      "period": "2026-08",
      "vcc_ref": "VCC-8854614",
      "event_type": "issue",
      "amount": null,
      "currency": "EUR",
      "occurred_at": "2026-08-15T09:00:00Z",
      "valid_from": "2026-08-17",
      "valid_to": "2026-08-22",
      "mcc_lock": "7011 lodging",
      "decline_reason": null,
      "issuer_ref": "CNF-854614",
      "source_ref": "feed-2026-08-7198"
    },
    {
      "event_id": "CE-7199",
      "item_id": "RI-8854614",
      "booking_id": "RS-8854614",
      "period": "2026-08",
      "vcc_ref": "VCC-8854614",
      "event_type": "auth",
      "amount": 715.83,
      "currency": "EUR",
      "occurred_at": "2026-08-17T14:20:00Z",
      "valid_from": "2026-08-17",
      "valid_to": "2026-08-22",
      "mcc_lock": "7011 lodging",
      "decline_reason": null,
      "issuer_ref": "CNF-854614",
      "source_ref": "feed-2026-08-7199"
    },
    {
      "event_id": "CE-7200",
      "item_id": "RI-8854614",
      "booking_id": "RS-8854614",
      "period": "2026-08",
      "vcc_ref": "VCC-8854614",
      "event_type": "capture",
      "amount": 1006.42,
      "currency": "EUR",
      "occurred_at": "2026-08-19T08:05:00Z",
      "valid_from": "2026-08-17",
      "valid_to": "2026-08-22",
      "mcc_lock": "7011 lodging",
      "decline_reason": null,
      "issuer_ref": "CNF-854614",
      "source_ref": "feed-2026-08-7200"
    },
    {
      "event_id": "CE-7201",
      "item_id": "RI-8854614",
      "booking_id": "RS-8854614",
      "period": "2026-08",
      "vcc_ref": "VCC-8854614",
      "event_type": "settle",
      "amount": 1006.42,
      "currency": "EUR",
      "occurred_at": "2026-08-21T03:00:00Z",
      "valid_from": "2026-08-17",
      "valid_to": "2026-08-22",
      "mcc_lock": "7011 lodging",
      "decline_reason": null,
      "issuer_ref": "CNF-854614",
      "source_ref": "feed-2026-08-7201"
    }
  ],
  "folio": [
    {
      "line_id": "FL-RI-8854614-a0",
      "item_id": "RI-8854614",
      "period": "2026-08",
      "line_date": "2026-08-17",
      "line_type": "incidental",
      "description": "Minibar",
      "amount": 32.79,
      "disputed": 0,
      "received_at": "2026-08-21T07:00:00Z",
      "source_ref": "folio-8854614",
      "folio_id": "folio-8854614"
    },
    {
      "line_id": "FL-RI-8854614-r0",
      "item_id": "RI-8854614",
      "period": "2026-08",
      "line_date": "2026-08-17",
      "line_type": "room",
      "description": "Room charge",
      "amount": 336.42,
      "disputed": 0,
      "received_at": "2026-08-21T07:00:00Z",
      "source_ref": "folio-8854614",
      "folio_id": "folio-8854614"
    },
    {
      "line_id": "FL-RI-8854614-r1",
      "item_id": "RI-8854614",
      "period": "2026-08",
      "line_date": "2026-08-18",
      "line_type": "room",
      "description": "Room charge",
      "amount": 354.41,
      "disputed": 0,
      "received_at": "2026-08-21T07:00:00Z",
      "source_ref": "folio-8854614",
      "folio_id": "folio-8854614"
    },
    {
      "line_id": "FL-RI-8854614-x",
      "item_id": "RI-8854614",
      "period": "2026-08",
      "line_date": "2026-08-19",
      "line_type": "adjustment",
      "description": "Rate adjustment",
      "amount": 282.8,
      "disputed": 0,
      "received_at": "2026-08-21T07:00:00Z",
      "source_ref": "folio-8854614",
      "folio_id": "folio-8854614"
    }
  ],
  "events": [
    {
      "event_id": "RE-RI-8854614-1",
      "item_id": "RI-8854614",
      "period": "2026-08",
      "seq": 1,
      "occurred_at": "2026-08-19T02:10:00Z",
      "event": "opened",
      "actor": "match-engine",
      "actor_type": "rule",
      "note": "Stay complete; reconciliation opened"
    },
    {
      "event_id": "RE-RI-8854614-2",
      "item_id": "RI-8854614",
      "period": "2026-08",
      "seq": 2,
      "occurred_at": "2026-08-21T07:00:00Z",
      "event": "evidence_received",
      "actor": "folio-ingest",
      "actor_type": "rule",
      "note": "Folio received from property"
    },
    {
      "event_id": "RE-RI-8854614-3",
      "item_id": "RI-8854614",
      "period": "2026-08",
      "seq": 3,
      "occurred_at": "2026-08-21T07:05:00Z",
      "event": "variance_detected",
      "actor": "match-engine",
      "actor_type": "rule",
      "note": "amount variance — 282.80 EUR"
    },
    {
      "event_id": "RE-RI-8854614-4",
      "item_id": "RI-8854614",
      "period": "2026-08",
      "seq": 4,
      "occurred_at": "2026-08-22T10:20:00Z",
      "event": "category_assigned",
      "actor": "R. Menon",
      "actor_type": "human",
      "note": "Categorised as rate change"
    },
    {
      "event_id": "RE-RI-8854614-5",
      "item_id": "RI-8854614",
      "period": "2026-08",
      "seq": 5,
      "occurred_at": "2026-08-24T11:00:00Z",
      "event": "resolved",
      "actor": "P. Costa",
      "actor_type": "human",
      "note": "Resolution: written_off"
    },
    {
      "event_id": "RE-RI-8854614-6",
      "item_id": "RI-8854614",
      "period": "2026-08",
      "seq": 6,
      "occurred_at": "2026-09-18T00: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-8854614-4758",
      "item_id": "RI-8854614",
      "period": "2026-08",
      "legal_entity": "ASL Airlines Belgium NV",
      "entry_date": "2026-08-17",
      "entry_type": "pending",
      "amount": 715.83,
      "balance_effect": -715.83,
      "description": "Authorization held — Hong Kong SkyCity Marriott",
      "posted_from_period": null
    },
    {
      "entry_id": "LE-RI-8854614-4759",
      "item_id": "RI-8854614",
      "period": "2026-08",
      "legal_entity": "ASL Airlines Belgium NV",
      "entry_date": "2026-08-21",
      "entry_type": "posted",
      "amount": 1006.42,
      "balance_effect": 0,
      "description": "Charge posted — Hong Kong SkyCity Marriott",
      "posted_from_period": null
    }
  ],
  "nights": [
    {
      "night": "2026-08-17",
      "room_net": 336.42,
      "vat_amount": 0,
      "city_tax": 0,
      "ancillaries": 32.79,
      "rate_paid": 336.42,
      "hotel": "Hong Kong SkyCity Marriott",
      "duty_reason": "training",
      "night_status": "occupied",
      "vcc_ref": "VCC-8854614",
      "checkin_time": "01:15",
      "checkout_time": "10:00"
    },
    {
      "night": "2026-08-18",
      "room_net": 354.41,
      "vat_amount": 0,
      "city_tax": 0,
      "ancillaries": 0,
      "rate_paid": 354.41,
      "hotel": "Hong Kong SkyCity Marriott",
      "duty_reason": "positioning",
      "night_status": "occupied",
      "vcc_ref": "VCC-8854614",
      "checkin_time": "01:15",
      "checkout_time": "10:00"
    }
  ],
  "booking": {
    "booking_id": "RS-8854614",
    "layover_id": "L-514615",
    "duty_id": "D-514614",
    "crew_id": "BEL-1010",
    "entity_id": "ASL Airlines Belgium",
    "legal_entity": "ASL Airlines Belgium NV",
    "station": "HKG",
    "property_id": "P-121",
    "vendor_id": "VEN-03",
    "contract_id": null,
    "revenue_model": "vendor_commission",
    "channel": "automation",
    "requested_by": "rule:roster-watch",
    "created_at": "2026-08-08T01:15:00Z",
    "check_in": "2026-08-17",
    "check_out": "2026-08-19",
    "nights": 2,
    "room_type": "standard",
    "occupancy": 1,
    "lead_time_hours": 216,
    "confirmation_ref": "CNF-854614",
    "cancellation_deadline": null,
    "status": "completed",
    "period": "2026-08",
    "total_amount": 739.59
  },
  "duty": {
    "duty_id": "D-514614",
    "crew_id": "BEL-1010",
    "entity_id": "ASL Airlines Belgium",
    "roster_ref": "AIMS/202608/514614",
    "duty_type": "training",
    "flight_no": "TAY449",
    "dep_station": "BRU",
    "arr_station": "HKG",
    "duty_start_utc": "2026-08-16T15:30:00Z",
    "duty_end_utc": "2026-08-17T00:00:00Z",
    "duty_hours": 11.87,
    "block_hours": 5.38,
    "source_system": "aims",
    "published_at": "2026-07-29T06:00:00Z",
    "version": 1
  },
  "layover": {
    "layover_id": "L-514615",
    "duty_in": "D-514614",
    "duty_out": "D-514614R",
    "crew_id": "BEL-1010",
    "entity_id": "ASL Airlines Belgium",
    "station": "HKG",
    "rest_starts_utc": "2026-08-17T00:00:00Z",
    "rest_ends_utc": "2026-08-19T06:00:00Z",
    "rest_hours_available": 35.69,
    "sleep_opportunity_hours": 32.69,
    "transfer_in_minutes": 44,
    "transfer_out_minutes": 39,
    "nights": 2,
    "disrupted": 0,
    "period": "2026-08"
  },
  "evaluation": {
    "eval_id": "PE-14615",
    "period": "2026-08",
    "booking_id": "RS-8854614",
    "item_id": "RI-8854614",
    "ruleset": "2026.2",
    "evaluated_at": "2026-08-08T01:12:00Z",
    "channel": "automation",
    "traveller_type": "crew",
    "entity": "ASL Airlines Belgium",
    "station": "HKG",
    "outcome": "soft_breach",
    "breach_count": 1,
    "cost_impact": 32.2,
    "self_served": 0
  },
  "approval": null,
  "breaches": [
    {
      "breach_id": "PB-7585",
      "eval_id": "PE-14615",
      "period": "2026-08",
      "rule_id": "R-SOURCE",
      "layer": "commercial",
      "severity": "warn",
      "observed": "GDS / last-room",
      "limit_value": "contract > bedbank > GDS",
      "cost_impact": 32.2,
      "resolved": "auto_allowed",
      "name": "Inventory order",
      "authority": "Routespring",
      "reference": null
    }
  ],
  "changes": [],
  "card": {
    "vcc_ref": "VCC-8854614",
    "booking_id": "RS-8854614",
    "item_id": "RI-8854614",
    "period": "2026-08",
    "issued_at": "2026-08-08T01:15:00Z",
    "issuer": "Routespring card program",
    "limit_amount": 764.59,
    "currency": "EUR",
    "valid_from": "2026-08-17",
    "valid_to": "2026-08-26",
    "grace_days": 7,
    "mcc_lock": "7011 lodging",
    "merchant_lock": "Hong Kong SkyCity Marriott",
    "auth_count": 2,
    "settled_amount": 723.62,
    "status": "settled",
    "closed_at": "2026-08-21T03:00:00Z"
  },
  "folioDoc": {
    "folio_id": "folio-8854614",
    "booking_id": "RS-8854614",
    "item_id": "RI-8854614",
    "property_id": "P-121",
    "period": "2026-08",
    "folio_number": "HKG260817-8868",
    "guest_name": "O. Declerck",
    "check_in": "2026-08-17",
    "check_out": "2026-08-19",
    "issued_at": "2026-08-19T09:30:00Z",
    "received_at": "2026-08-21T07:00:00Z",
    "received_via": "pms_feed",
    "currency": "EUR",
    "stated_total": 1006.42,
    "line_count": 4,
    "days_to_receive": 2.29,
    "disputed": 0
  }
}