{
  "item": {
    "item_id": "RI-8854388",
    "period": "2026-08",
    "booking_id": "RS-8854388",
    "duty_id": "D-514388",
    "entity": "ASL Airlines Belgium",
    "legal_entity": "ASL Airlines Belgium NV",
    "crew_name": "B. Dubois",
    "station": "LGG",
    "property_id": "P-111",
    "hotel": "Ibis Liege Centre",
    "check_in": "2026-08-07",
    "check_out": "2026-08-10",
    "nights": 3,
    "booking_amount": 985.31,
    "card_auth": 1010.31,
    "card_settled": 985.31,
    "folio_amount": 985.31,
    "variance": 0,
    "variance_pct": 0,
    "variance_category": null,
    "match_state": "matched",
    "exception_type": null,
    "state": "final",
    "resolution": "legitimate",
    "opened_at": "2026-08-10T02:10:00Z",
    "resolved_at": "2026-08-19T11:00:00Z",
    "final_at": "2026-09-09T00:01:00Z",
    "final_due_at": "2026-09-09",
    "age_days": 12,
    "auto_resolved": 1
  },
  "cards": [
    {
      "event_id": "CE-6300",
      "item_id": "RI-8854388",
      "booking_id": "RS-8854388",
      "period": "2026-08",
      "vcc_ref": "VCC-8854388",
      "event_type": "issue",
      "amount": null,
      "currency": "EUR",
      "occurred_at": "2026-08-05T09:00:00Z",
      "valid_from": "2026-08-07",
      "valid_to": "2026-08-13",
      "mcc_lock": "7011 lodging",
      "decline_reason": null,
      "issuer_ref": "CNF-854388",
      "source_ref": "feed-2026-08-6300"
    },
    {
      "event_id": "CE-6301",
      "item_id": "RI-8854388",
      "booking_id": "RS-8854388",
      "period": "2026-08",
      "vcc_ref": "VCC-8854388",
      "event_type": "auth",
      "amount": 1010.31,
      "currency": "EUR",
      "occurred_at": "2026-08-07T14:20:00Z",
      "valid_from": "2026-08-07",
      "valid_to": "2026-08-13",
      "mcc_lock": "7011 lodging",
      "decline_reason": null,
      "issuer_ref": "CNF-854388",
      "source_ref": "feed-2026-08-6301"
    },
    {
      "event_id": "CE-6302",
      "item_id": "RI-8854388",
      "booking_id": "RS-8854388",
      "period": "2026-08",
      "vcc_ref": "VCC-8854388",
      "event_type": "capture",
      "amount": 985.31,
      "currency": "EUR",
      "occurred_at": "2026-08-10T08:05:00Z",
      "valid_from": "2026-08-07",
      "valid_to": "2026-08-13",
      "mcc_lock": "7011 lodging",
      "decline_reason": null,
      "issuer_ref": "CNF-854388",
      "source_ref": "feed-2026-08-6302"
    },
    {
      "event_id": "CE-6303",
      "item_id": "RI-8854388",
      "booking_id": "RS-8854388",
      "period": "2026-08",
      "vcc_ref": "VCC-8854388",
      "event_type": "settle",
      "amount": 985.31,
      "currency": "EUR",
      "occurred_at": "2026-08-12T03:00:00Z",
      "valid_from": "2026-08-07",
      "valid_to": "2026-08-13",
      "mcc_lock": "7011 lodging",
      "decline_reason": null,
      "issuer_ref": "CNF-854388",
      "source_ref": "feed-2026-08-6303"
    }
  ],
  "folio": [
    {
      "line_id": "FL-RI-8854388-c0",
      "item_id": "RI-8854388",
      "period": "2026-08",
      "line_date": "2026-08-07",
      "line_type": "fee",
      "description": "City / tourist tax",
      "amount": 4,
      "disputed": 0,
      "received_at": "2026-08-12T07:00:00Z",
      "source_ref": "folio-8854388",
      "folio_id": "folio-8854388"
    },
    {
      "line_id": "FL-RI-8854388-r0",
      "item_id": "RI-8854388",
      "period": "2026-08",
      "line_date": "2026-08-07",
      "line_type": "room",
      "description": "Room charge",
      "amount": 320.15,
      "disputed": 0,
      "received_at": "2026-08-12T07:00:00Z",
      "source_ref": "folio-8854388",
      "folio_id": "folio-8854388"
    },
    {
      "line_id": "FL-RI-8854388-v0",
      "item_id": "RI-8854388",
      "period": "2026-08",
      "line_date": "2026-08-07",
      "line_type": "tax",
      "description": "VAT 6%",
      "amount": 19.21,
      "disputed": 0,
      "received_at": "2026-08-12T07:00:00Z",
      "source_ref": "folio-8854388",
      "folio_id": "folio-8854388"
    },
    {
      "line_id": "FL-RI-8854388-c1",
      "item_id": "RI-8854388",
      "period": "2026-08",
      "line_date": "2026-08-08",
      "line_type": "fee",
      "description": "City / tourist tax",
      "amount": 4,
      "disputed": 0,
      "received_at": "2026-08-12T07:00:00Z",
      "source_ref": "folio-8854388",
      "folio_id": "folio-8854388"
    },
    {
      "line_id": "FL-RI-8854388-r1",
      "item_id": "RI-8854388",
      "period": "2026-08",
      "line_date": "2026-08-08",
      "line_type": "room",
      "description": "Room charge",
      "amount": 290.11,
      "disputed": 0,
      "received_at": "2026-08-12T07:00:00Z",
      "source_ref": "folio-8854388",
      "folio_id": "folio-8854388"
    },
    {
      "line_id": "FL-RI-8854388-v1",
      "item_id": "RI-8854388",
      "period": "2026-08",
      "line_date": "2026-08-08",
      "line_type": "tax",
      "description": "VAT 6%",
      "amount": 17.41,
      "disputed": 0,
      "received_at": "2026-08-12T07:00:00Z",
      "source_ref": "folio-8854388",
      "folio_id": "folio-8854388"
    },
    {
      "line_id": "FL-RI-8854388-c2",
      "item_id": "RI-8854388",
      "period": "2026-08",
      "line_date": "2026-08-09",
      "line_type": "fee",
      "description": "City / tourist tax",
      "amount": 4,
      "disputed": 0,
      "received_at": "2026-08-12T07:00:00Z",
      "source_ref": "folio-8854388",
      "folio_id": "folio-8854388"
    },
    {
      "line_id": "FL-RI-8854388-r2",
      "item_id": "RI-8854388",
      "period": "2026-08",
      "line_date": "2026-08-09",
      "line_type": "room",
      "description": "Room charge",
      "amount": 307.95,
      "disputed": 0,
      "received_at": "2026-08-12T07:00:00Z",
      "source_ref": "folio-8854388",
      "folio_id": "folio-8854388"
    },
    {
      "line_id": "FL-RI-8854388-v2",
      "item_id": "RI-8854388",
      "period": "2026-08",
      "line_date": "2026-08-09",
      "line_type": "tax",
      "description": "VAT 6%",
      "amount": 18.48,
      "disputed": 0,
      "received_at": "2026-08-12T07:00:00Z",
      "source_ref": "folio-8854388",
      "folio_id": "folio-8854388"
    }
  ],
  "events": [
    {
      "event_id": "RE-RI-8854388-1",
      "item_id": "RI-8854388",
      "period": "2026-08",
      "seq": 1,
      "occurred_at": "2026-08-10T02:10:00Z",
      "event": "opened",
      "actor": "match-engine",
      "actor_type": "rule",
      "note": "Stay complete; reconciliation opened"
    },
    {
      "event_id": "RE-RI-8854388-2",
      "item_id": "RI-8854388",
      "period": "2026-08",
      "seq": 2,
      "occurred_at": "2026-08-12T07:00:00Z",
      "event": "evidence_received",
      "actor": "folio-ingest",
      "actor_type": "rule",
      "note": "Folio received from property"
    },
    {
      "event_id": "RE-RI-8854388-3",
      "item_id": "RI-8854388",
      "period": "2026-08",
      "seq": 3,
      "occurred_at": "2026-08-12T07:05:00Z",
      "event": "matched",
      "actor": "match-engine",
      "actor_type": "rule",
      "note": "Booking, card and folio agree within tolerance"
    },
    {
      "event_id": "RE-RI-8854388-4",
      "item_id": "RI-8854388",
      "period": "2026-08",
      "seq": 4,
      "occurred_at": "2026-08-19T11:00:00Z",
      "event": "resolved",
      "actor": "match-engine",
      "actor_type": "rule",
      "note": "Resolution: legitimate"
    },
    {
      "event_id": "RE-RI-8854388-5",
      "item_id": "RI-8854388",
      "period": "2026-08",
      "seq": 5,
      "occurred_at": "2026-09-09T00: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-8854388-4164",
      "item_id": "RI-8854388",
      "period": "2026-08",
      "legal_entity": "ASL Airlines Belgium NV",
      "entry_date": "2026-08-07",
      "entry_type": "pending",
      "amount": 1010.31,
      "balance_effect": -1010.31,
      "description": "Authorization held — Ibis Liege Centre",
      "posted_from_period": null
    },
    {
      "entry_id": "LE-RI-8854388-4165",
      "item_id": "RI-8854388",
      "period": "2026-08",
      "legal_entity": "ASL Airlines Belgium NV",
      "entry_date": "2026-08-12",
      "entry_type": "posted",
      "amount": 985.31,
      "balance_effect": 0,
      "description": "Charge posted — Ibis Liege Centre",
      "posted_from_period": null
    },
    {
      "entry_id": "LE-RI-8854388-4166",
      "item_id": "RI-8854388",
      "period": "2026-08",
      "legal_entity": "ASL Airlines Belgium NV",
      "entry_date": "2026-08-12",
      "entry_type": "released",
      "amount": 25,
      "balance_effect": 25,
      "description": "Unused authorization released",
      "posted_from_period": null
    }
  ],
  "nights": [
    {
      "night": "2026-08-07",
      "room_net": 320.15,
      "vat_amount": 19.21,
      "city_tax": 4,
      "ancillaries": 0,
      "rate_paid": 343.36,
      "hotel": "Ibis Liege Centre",
      "duty_reason": "overnight",
      "night_status": "occupied",
      "vcc_ref": "VCC-8854388",
      "checkin_time": "01:15",
      "checkout_time": "11:00"
    },
    {
      "night": "2026-08-08",
      "room_net": 290.11,
      "vat_amount": 17.41,
      "city_tax": 4,
      "ancillaries": 0,
      "rate_paid": 311.52,
      "hotel": "Ibis Liege Centre",
      "duty_reason": "overnight",
      "night_status": "occupied",
      "vcc_ref": "VCC-8854388",
      "checkin_time": "01:15",
      "checkout_time": "11:00"
    },
    {
      "night": "2026-08-09",
      "room_net": 307.95,
      "vat_amount": 18.48,
      "city_tax": 4,
      "ancillaries": 0,
      "rate_paid": 330.43,
      "hotel": "Ibis Liege Centre",
      "duty_reason": "overnight",
      "night_status": "occupied",
      "vcc_ref": "VCC-8854388",
      "checkin_time": "01:15",
      "checkout_time": "11:00"
    }
  ],
  "booking": {
    "booking_id": "RS-8854388",
    "layover_id": "L-514389",
    "duty_id": "D-514388",
    "crew_id": "BEL-1032",
    "entity_id": "ASL Airlines Belgium",
    "legal_entity": "ASL Airlines Belgium NV",
    "station": "LGG",
    "property_id": "P-111",
    "vendor_id": "VEN-03",
    "contract_id": null,
    "revenue_model": "vendor_commission",
    "channel": "travel_desk",
    "requested_by": "U-101",
    "created_at": "2026-08-06T13:15:00Z",
    "check_in": "2026-08-07",
    "check_out": "2026-08-10",
    "nights": 3,
    "room_type": "superior",
    "occupancy": 1,
    "lead_time_hours": 12,
    "confirmation_ref": "CNF-854388",
    "cancellation_deadline": null,
    "status": "completed",
    "period": "2026-08",
    "total_amount": 1001.28
  },
  "duty": {
    "duty_id": "D-514388",
    "crew_id": "BEL-1032",
    "entity_id": "ASL Airlines Belgium",
    "roster_ref": "AIMS/202608/514388",
    "duty_type": "overnight",
    "flight_no": "TAY234",
    "dep_station": "BRU",
    "arr_station": "LGG",
    "duty_start_utc": "2026-08-06T12:15:00Z",
    "duty_end_utc": "2026-08-07T00:17:00Z",
    "duty_hours": 10.19,
    "block_hours": 4.32,
    "source_system": "aims",
    "published_at": "2026-07-23T06:00:00Z",
    "version": 1
  },
  "layover": {
    "layover_id": "L-514389",
    "duty_in": "D-514388",
    "duty_out": "D-514388R",
    "crew_id": "BEL-1032",
    "entity_id": "ASL Airlines Belgium",
    "station": "LGG",
    "rest_starts_utc": "2026-08-07T00:17:00Z",
    "rest_ends_utc": "2026-08-10T08:45:00Z",
    "rest_hours_available": 61.3,
    "sleep_opportunity_hours": 59.11,
    "transfer_in_minutes": 23,
    "transfer_out_minutes": 21,
    "nights": 3,
    "disrupted": 0,
    "period": "2026-08"
  },
  "evaluation": {
    "eval_id": "PE-14389",
    "period": "2026-08",
    "booking_id": "RS-8854388",
    "item_id": "RI-8854388",
    "ruleset": "2026.2",
    "evaluated_at": "2026-08-06T13:12:00Z",
    "channel": "travel_desk",
    "traveller_type": "crew",
    "entity": "ASL Airlines Belgium",
    "station": "LGG",
    "outcome": "soft_breach",
    "breach_count": 1,
    "cost_impact": 77.59,
    "self_served": 0
  },
  "approval": null,
  "breaches": [
    {
      "breach_id": "PB-7486",
      "eval_id": "PE-14389",
      "period": "2026-08",
      "rule_id": "R-WINDOW",
      "layer": "commercial",
      "severity": "warn",
      "observed": "0.5 days",
      "limit_value": "48 hours",
      "cost_impact": 77.59,
      "resolved": "auto_allowed",
      "name": "Advance booking window",
      "authority": "ASL",
      "reference": null
    }
  ],
  "changes": [
    {
      "change_id": "BC-1740",
      "booking_id": "RS-8854388",
      "period": "2026-08",
      "occurred_at": "2026-08-07T17:22:00Z",
      "change_type": "cancel_rebook",
      "source": "aims",
      "trigger": "roster_change",
      "modify_attempted": 1,
      "failed_reason": "hotel_cutoff",
      "hours_before_checkin": 16.29,
      "cutoff_hours": 24,
      "cost": 201.06,
      "room_lost": 0,
      "resolved_by": "human",
      "resolved_at": "2026-08-07T18:40:00Z",
      "sla_breached": 0
    }
  ],
  "card": {
    "vcc_ref": "VCC-8854388",
    "booking_id": "RS-8854388",
    "item_id": "RI-8854388",
    "period": "2026-08",
    "issued_at": "2026-08-06T13:15:00Z",
    "issuer": "Routespring card program",
    "limit_amount": 1026.28,
    "currency": "EUR",
    "valid_from": "2026-08-07",
    "valid_to": "2026-08-17",
    "grace_days": 7,
    "mcc_lock": "7011 lodging",
    "merchant_lock": "Ibis Liege Centre",
    "auth_count": 3,
    "settled_amount": 985.31,
    "status": "settled",
    "closed_at": "2026-08-12T03:00:00Z"
  },
  "folioDoc": {
    "folio_id": "folio-8854388",
    "booking_id": "RS-8854388",
    "item_id": "RI-8854388",
    "property_id": "P-111",
    "period": "2026-08",
    "folio_number": "LGG260807-9189",
    "guest_name": "B. Dubois",
    "check_in": "2026-08-07",
    "check_out": "2026-08-10",
    "issued_at": "2026-08-10T09:30:00Z",
    "received_at": "2026-08-12T07:00:00Z",
    "received_via": "pms_feed",
    "currency": "EUR",
    "stated_total": 985.31,
    "line_count": 9,
    "days_to_receive": 2.29,
    "disputed": 0
  }
}