{
  "item": {
    "item_id": "RI-8854570",
    "period": "2026-08",
    "booking_id": "RS-8854570",
    "duty_id": "D-514570",
    "entity": "ASL Airlines Belgium",
    "legal_entity": "ASL Airlines Belgium NV",
    "crew_name": "N. Dubois",
    "station": "BRU",
    "property_id": "P-117",
    "hotel": "Thon Hotel EU",
    "check_in": "2026-08-04",
    "check_out": "2026-08-05",
    "nights": 1,
    "booking_amount": 387.76,
    "card_auth": 412.76,
    "card_settled": 597.79,
    "folio_amount": 597.79,
    "variance": 210.03,
    "variance_pct": 54.16,
    "variance_category": "incidentals",
    "match_state": "variance",
    "exception_type": "amount_variance",
    "state": "final",
    "resolution": "absorbed",
    "opened_at": "2026-08-05T02:10:00Z",
    "resolved_at": "2026-08-11T11:00:00Z",
    "final_at": "2026-09-04T00:01:00Z",
    "final_due_at": "2026-09-04",
    "age_days": 13,
    "auto_resolved": 0
  },
  "cards": [
    {
      "event_id": "CE-7022",
      "item_id": "RI-8854570",
      "booking_id": "RS-8854570",
      "period": "2026-08",
      "vcc_ref": "VCC-8854570",
      "event_type": "issue",
      "amount": null,
      "currency": "EUR",
      "occurred_at": "2026-08-02T09:00:00Z",
      "valid_from": "2026-08-04",
      "valid_to": "2026-08-08",
      "mcc_lock": "7011 lodging",
      "decline_reason": null,
      "issuer_ref": "CNF-854570",
      "source_ref": "feed-2026-08-7022"
    },
    {
      "event_id": "CE-7023",
      "item_id": "RI-8854570",
      "booking_id": "RS-8854570",
      "period": "2026-08",
      "vcc_ref": "VCC-8854570",
      "event_type": "auth",
      "amount": 412.76,
      "currency": "EUR",
      "occurred_at": "2026-08-04T14:20:00Z",
      "valid_from": "2026-08-04",
      "valid_to": "2026-08-08",
      "mcc_lock": "7011 lodging",
      "decline_reason": null,
      "issuer_ref": "CNF-854570",
      "source_ref": "feed-2026-08-7023"
    },
    {
      "event_id": "CE-7024",
      "item_id": "RI-8854570",
      "booking_id": "RS-8854570",
      "period": "2026-08",
      "vcc_ref": "VCC-8854570",
      "event_type": "capture",
      "amount": 597.79,
      "currency": "EUR",
      "occurred_at": "2026-08-05T08:05:00Z",
      "valid_from": "2026-08-04",
      "valid_to": "2026-08-08",
      "mcc_lock": "7011 lodging",
      "decline_reason": null,
      "issuer_ref": "CNF-854570",
      "source_ref": "feed-2026-08-7024"
    },
    {
      "event_id": "CE-7025",
      "item_id": "RI-8854570",
      "booking_id": "RS-8854570",
      "period": "2026-08",
      "vcc_ref": "VCC-8854570",
      "event_type": "settle",
      "amount": 597.79,
      "currency": "EUR",
      "occurred_at": "2026-08-07T03:00:00Z",
      "valid_from": "2026-08-04",
      "valid_to": "2026-08-08",
      "mcc_lock": "7011 lodging",
      "decline_reason": null,
      "issuer_ref": "CNF-854570",
      "source_ref": "feed-2026-08-7025"
    }
  ],
  "folio": [
    {
      "line_id": "FL-RI-8854570-c0",
      "item_id": "RI-8854570",
      "period": "2026-08",
      "line_date": "2026-08-04",
      "line_type": "fee",
      "description": "City / tourist tax",
      "amount": 4.24,
      "disputed": 0,
      "received_at": "2026-08-10T07:00:00Z",
      "source_ref": "folio-8854570",
      "folio_id": "folio-8854570"
    },
    {
      "line_id": "FL-RI-8854570-r0",
      "item_id": "RI-8854570",
      "period": "2026-08",
      "line_date": "2026-08-04",
      "line_type": "room",
      "description": "Room charge",
      "amount": 361.81,
      "disputed": 0,
      "received_at": "2026-08-10T07:00:00Z",
      "source_ref": "folio-8854570",
      "folio_id": "folio-8854570"
    },
    {
      "line_id": "FL-RI-8854570-v0",
      "item_id": "RI-8854570",
      "period": "2026-08",
      "line_date": "2026-08-04",
      "line_type": "tax",
      "description": "VAT 6%",
      "amount": 21.71,
      "disputed": 0,
      "received_at": "2026-08-10T07:00:00Z",
      "source_ref": "folio-8854570",
      "folio_id": "folio-8854570"
    },
    {
      "line_id": "FL-RI-8854570-x",
      "item_id": "RI-8854570",
      "period": "2026-08",
      "line_date": "2026-08-05",
      "line_type": "incidental",
      "description": "Unitemised incidentals",
      "amount": 210.03,
      "disputed": 0,
      "received_at": "2026-08-10T07:00:00Z",
      "source_ref": "folio-8854570",
      "folio_id": "folio-8854570"
    }
  ],
  "events": [
    {
      "event_id": "RE-RI-8854570-1",
      "item_id": "RI-8854570",
      "period": "2026-08",
      "seq": 1,
      "occurred_at": "2026-08-05T02:10:00Z",
      "event": "opened",
      "actor": "match-engine",
      "actor_type": "rule",
      "note": "Stay complete; reconciliation opened"
    },
    {
      "event_id": "RE-RI-8854570-2",
      "item_id": "RI-8854570",
      "period": "2026-08",
      "seq": 2,
      "occurred_at": "2026-08-07T07:00:00Z",
      "event": "evidence_received",
      "actor": "folio-ingest",
      "actor_type": "rule",
      "note": "Folio received from property"
    },
    {
      "event_id": "RE-RI-8854570-3",
      "item_id": "RI-8854570",
      "period": "2026-08",
      "seq": 3,
      "occurred_at": "2026-08-07T07:05:00Z",
      "event": "variance_detected",
      "actor": "match-engine",
      "actor_type": "rule",
      "note": "amount variance — 210.03 EUR"
    },
    {
      "event_id": "RE-RI-8854570-4",
      "item_id": "RI-8854570",
      "period": "2026-08",
      "seq": 4,
      "occurred_at": "2026-08-08T10:20:00Z",
      "event": "category_assigned",
      "actor": "P. Costa",
      "actor_type": "human",
      "note": "Categorised as incidentals"
    },
    {
      "event_id": "RE-RI-8854570-5",
      "item_id": "RI-8854570",
      "period": "2026-08",
      "seq": 5,
      "occurred_at": "2026-08-07T11:00:00Z",
      "event": "resolved",
      "actor": "P. Costa",
      "actor_type": "human",
      "note": "Resolution: absorbed"
    },
    {
      "event_id": "RE-RI-8854570-6",
      "item_id": "RI-8854570",
      "period": "2026-08",
      "seq": 6,
      "occurred_at": "2026-09-04T00: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-8854570-4639",
      "item_id": "RI-8854570",
      "period": "2026-08",
      "legal_entity": "ASL Airlines Belgium NV",
      "entry_date": "2026-08-04",
      "entry_type": "pending",
      "amount": 412.76,
      "balance_effect": -412.76,
      "description": "Authorization held — Thon Hotel EU",
      "posted_from_period": null
    },
    {
      "entry_id": "LE-RI-8854570-4640",
      "item_id": "RI-8854570",
      "period": "2026-08",
      "legal_entity": "ASL Airlines Belgium NV",
      "entry_date": "2026-08-07",
      "entry_type": "posted",
      "amount": 597.79,
      "balance_effect": 0,
      "description": "Charge posted — Thon Hotel EU",
      "posted_from_period": null
    }
  ],
  "nights": [
    {
      "night": "2026-08-04",
      "room_net": 361.81,
      "vat_amount": 21.71,
      "city_tax": 4.24,
      "ancillaries": 0,
      "rate_paid": 387.76,
      "hotel": "Thon Hotel EU",
      "duty_reason": "overnight",
      "night_status": "occupied",
      "vcc_ref": "VCC-8854570",
      "checkin_time": "22:30",
      "checkout_time": "12:00"
    }
  ],
  "booking": {
    "booking_id": "RS-8854570",
    "layover_id": "L-514571",
    "duty_id": "D-514570",
    "crew_id": "BEL-S215",
    "entity_id": "ASL Airlines Belgium",
    "legal_entity": "ASL Airlines Belgium NV",
    "station": "BRU",
    "property_id": "P-117",
    "vendor_id": "VEN-04",
    "contract_id": null,
    "revenue_model": "vendor_commission",
    "channel": "staff_portal",
    "requested_by": "U-103",
    "created_at": "2026-07-30T22:30:00Z",
    "check_in": "2026-08-04",
    "check_out": "2026-08-05",
    "nights": 1,
    "room_type": "standard",
    "occupancy": 1,
    "lead_time_hours": 120,
    "confirmation_ref": "CNF-854570",
    "cancellation_deadline": null,
    "status": "completed",
    "period": "2026-08",
    "total_amount": 403.73
  },
  "duty": {
    "duty_id": "D-514570",
    "crew_id": "BEL-S215",
    "entity_id": "ASL Airlines Belgium",
    "roster_ref": "AIMS/202608/514570",
    "duty_type": "overnight",
    "flight_no": "TAY694",
    "dep_station": "LGG",
    "arr_station": "BRU",
    "duty_start_utc": "2026-08-03T09:40:00Z",
    "duty_end_utc": "2026-08-04T21:37:00Z",
    "duty_hours": 12.16,
    "block_hours": 3.58,
    "source_system": "aims",
    "published_at": "2026-07-28T06:00:00Z",
    "version": 1
  },
  "layover": {
    "layover_id": "L-514571",
    "duty_in": "D-514570",
    "duty_out": "D-514570R",
    "crew_id": "BEL-S215",
    "entity_id": "ASL Airlines Belgium",
    "station": "BRU",
    "rest_starts_utc": "2026-08-04T21:37:00Z",
    "rest_ends_utc": "2026-08-05T11:20:00Z",
    "rest_hours_available": 16.2,
    "sleep_opportunity_hours": 14.01,
    "transfer_in_minutes": 18,
    "transfer_out_minutes": 16,
    "nights": 1,
    "disrupted": 0,
    "period": "2026-08"
  },
  "evaluation": {
    "eval_id": "PE-14571",
    "period": "2026-08",
    "booking_id": "RS-8854570",
    "item_id": "RI-8854570",
    "ruleset": "2026.2",
    "evaluated_at": "2026-07-30T22:27:00Z",
    "channel": "staff_portal",
    "traveller_type": "staff",
    "entity": "ASL Airlines Belgium",
    "station": "BRU",
    "outcome": "hard_refusal",
    "breach_count": 3,
    "cost_impact": 511.36,
    "self_served": 0
  },
  "approval": {
    "approval_id": "PA-3024",
    "eval_id": "PE-14571",
    "period": "2026-08",
    "approver": "M. Dupont",
    "approver_role": "line_manager",
    "reason": "Preferred property sold out",
    "approved_at": "2026-07-30T22:28:48Z",
    "second_approver": null
  },
  "breaches": [
    {
      "breach_id": "PB-7563",
      "eval_id": "PE-14571",
      "period": "2026-08",
      "rule_id": "R-PREF",
      "layer": "commercial",
      "severity": "approve",
      "observed": "Booked away from preferred order",
      "limit_value": "preferred order",
      "cost_impact": 25.9,
      "resolved": "approved",
      "name": "Preferred property order",
      "authority": "Routespring",
      "reference": null
    },
    {
      "breach_id": "PB-7564",
      "eval_id": "PE-14571",
      "period": "2026-08",
      "rule_id": "R-SOURCE",
      "layer": "commercial",
      "severity": "warn",
      "observed": "GDS / last-room",
      "limit_value": "contract > bedbank > GDS",
      "cost_impact": 97.7,
      "resolved": "auto_allowed",
      "name": "Inventory order",
      "authority": "Routespring",
      "reference": null
    },
    {
      "breach_id": "PB-D8415",
      "eval_id": "PE-14571",
      "period": "2026-08",
      "rule_id": "R-ENTITLE",
      "layer": "entitlement",
      "severity": "block",
      "observed": "Overnight at home base BRU",
      "limit_value": "rest away from base only",
      "cost_impact": 387.76,
      "resolved": "refused",
      "name": "Duty entitlement",
      "authority": "ASL",
      "reference": "ASL OM-A 7.1"
    }
  ],
  "changes": [],
  "card": {
    "vcc_ref": "VCC-8854570",
    "booking_id": "RS-8854570",
    "item_id": "RI-8854570",
    "period": "2026-08",
    "issued_at": "2026-07-30T22:30:00Z",
    "issuer": "Routespring card program",
    "limit_amount": 428.73,
    "currency": "EUR",
    "valid_from": "2026-08-04",
    "valid_to": "2026-08-12",
    "grace_days": 7,
    "mcc_lock": "7011 lodging",
    "merchant_lock": "Thon Hotel EU",
    "auth_count": 1,
    "settled_amount": 387.76,
    "status": "authorised",
    "closed_at": "2026-08-07T03:00:00Z"
  },
  "folioDoc": {
    "folio_id": "folio-8854570",
    "booking_id": "RS-8854570",
    "item_id": "RI-8854570",
    "property_id": "P-117",
    "period": "2026-08",
    "folio_number": "BRU260804-8976",
    "guest_name": "N. Dubois",
    "check_in": "2026-08-04",
    "check_out": "2026-08-05",
    "issued_at": "2026-08-05T09:30:00Z",
    "received_at": "2026-08-10T07:00:00Z",
    "received_via": "pms_feed",
    "currency": "EUR",
    "stated_total": 597.79,
    "line_count": 4,
    "days_to_receive": 5.29,
    "disputed": 0
  }
}