{
  "item": {
    "item_id": "RI-8854599",
    "period": "2026-08",
    "booking_id": "RS-8854599",
    "duty_id": "D-514599",
    "entity": "ASL Airlines Belgium",
    "legal_entity": "ASL Airlines Belgium NV",
    "crew_name": "R. Maes",
    "station": "LGG",
    "property_id": "P-110",
    "hotel": "Van der Valk Liege",
    "check_in": "2026-08-09",
    "check_out": "2026-08-11",
    "nights": 2,
    "booking_amount": 614.92,
    "card_auth": 639.92,
    "card_settled": 676.27,
    "folio_amount": 676.27,
    "variance": 0,
    "variance_pct": 0,
    "variance_category": null,
    "match_state": "matched",
    "exception_type": null,
    "state": "resolved",
    "resolution": "legitimate",
    "opened_at": "2026-08-11T02:10:00Z",
    "resolved_at": "2026-08-22T11:00:00Z",
    "final_at": null,
    "final_due_at": "2026-09-10",
    "age_days": 9,
    "auto_resolved": 1
  },
  "cards": [
    {
      "event_id": "CE-7138",
      "item_id": "RI-8854599",
      "booking_id": "RS-8854599",
      "period": "2026-08",
      "vcc_ref": "VCC-8854599",
      "event_type": "issue",
      "amount": null,
      "currency": "EUR",
      "occurred_at": "2026-08-07T09:00:00Z",
      "valid_from": "2026-08-09",
      "valid_to": "2026-08-14",
      "mcc_lock": "7011 lodging",
      "decline_reason": null,
      "issuer_ref": "CNF-854599",
      "source_ref": "feed-2026-08-7138"
    },
    {
      "event_id": "CE-7139",
      "item_id": "RI-8854599",
      "booking_id": "RS-8854599",
      "period": "2026-08",
      "vcc_ref": "VCC-8854599",
      "event_type": "auth",
      "amount": 639.92,
      "currency": "EUR",
      "occurred_at": "2026-08-09T14:20:00Z",
      "valid_from": "2026-08-09",
      "valid_to": "2026-08-14",
      "mcc_lock": "7011 lodging",
      "decline_reason": null,
      "issuer_ref": "CNF-854599",
      "source_ref": "feed-2026-08-7139"
    },
    {
      "event_id": "CE-7140",
      "item_id": "RI-8854599",
      "booking_id": "RS-8854599",
      "period": "2026-08",
      "vcc_ref": "VCC-8854599",
      "event_type": "capture",
      "amount": 676.27,
      "currency": "EUR",
      "occurred_at": "2026-08-11T08:05:00Z",
      "valid_from": "2026-08-09",
      "valid_to": "2026-08-14",
      "mcc_lock": "7011 lodging",
      "decline_reason": null,
      "issuer_ref": "CNF-854599",
      "source_ref": "feed-2026-08-7140"
    },
    {
      "event_id": "CE-7141",
      "item_id": "RI-8854599",
      "booking_id": "RS-8854599",
      "period": "2026-08",
      "vcc_ref": "VCC-8854599",
      "event_type": "settle",
      "amount": 676.27,
      "currency": "EUR",
      "occurred_at": "2026-08-13T03:00:00Z",
      "valid_from": "2026-08-09",
      "valid_to": "2026-08-14",
      "mcc_lock": "7011 lodging",
      "decline_reason": null,
      "issuer_ref": "CNF-854599",
      "source_ref": "feed-2026-08-7141"
    }
  ],
  "folio": [
    {
      "line_id": "FL-RI-8854599-c0",
      "item_id": "RI-8854599",
      "period": "2026-08",
      "line_date": "2026-08-09",
      "line_type": "fee",
      "description": "City / tourist tax",
      "amount": 4,
      "disputed": 0,
      "received_at": "2026-08-14T07:00:00Z",
      "source_ref": "folio-8854599",
      "folio_id": "folio-8854599"
    },
    {
      "line_id": "FL-RI-8854599-a0",
      "item_id": "RI-8854599",
      "period": "2026-08",
      "line_date": "2026-08-09",
      "line_type": "incidental",
      "description": "Parking",
      "amount": 35.85,
      "disputed": 0,
      "received_at": "2026-08-14T07:00:00Z",
      "source_ref": "folio-8854599",
      "folio_id": "folio-8854599"
    },
    {
      "line_id": "FL-RI-8854599-r0",
      "item_id": "RI-8854599",
      "period": "2026-08",
      "line_date": "2026-08-09",
      "line_type": "room",
      "description": "Room charge",
      "amount": 270.97,
      "disputed": 0,
      "received_at": "2026-08-14T07:00:00Z",
      "source_ref": "folio-8854599",
      "folio_id": "folio-8854599"
    },
    {
      "line_id": "FL-RI-8854599-v0",
      "item_id": "RI-8854599",
      "period": "2026-08",
      "line_date": "2026-08-09",
      "line_type": "tax",
      "description": "VAT 6%",
      "amount": 16.26,
      "disputed": 0,
      "received_at": "2026-08-14T07:00:00Z",
      "source_ref": "folio-8854599",
      "folio_id": "folio-8854599"
    },
    {
      "line_id": "FL-RI-8854599-c1",
      "item_id": "RI-8854599",
      "period": "2026-08",
      "line_date": "2026-08-10",
      "line_type": "fee",
      "description": "City / tourist tax",
      "amount": 4,
      "disputed": 0,
      "received_at": "2026-08-14T07:00:00Z",
      "source_ref": "folio-8854599",
      "folio_id": "folio-8854599"
    },
    {
      "line_id": "FL-RI-8854599-a1",
      "item_id": "RI-8854599",
      "period": "2026-08",
      "line_date": "2026-08-10",
      "line_type": "incidental",
      "description": "Parking",
      "amount": 25.5,
      "disputed": 0,
      "received_at": "2026-08-14T07:00:00Z",
      "source_ref": "folio-8854599",
      "folio_id": "folio-8854599"
    },
    {
      "line_id": "FL-RI-8854599-r1",
      "item_id": "RI-8854599",
      "period": "2026-08",
      "line_date": "2026-08-10",
      "line_type": "room",
      "description": "Room charge",
      "amount": 301.59,
      "disputed": 0,
      "received_at": "2026-08-14T07:00:00Z",
      "source_ref": "folio-8854599",
      "folio_id": "folio-8854599"
    },
    {
      "line_id": "FL-RI-8854599-v1",
      "item_id": "RI-8854599",
      "period": "2026-08",
      "line_date": "2026-08-10",
      "line_type": "tax",
      "description": "VAT 6%",
      "amount": 18.1,
      "disputed": 0,
      "received_at": "2026-08-14T07:00:00Z",
      "source_ref": "folio-8854599",
      "folio_id": "folio-8854599"
    }
  ],
  "events": [
    {
      "event_id": "RE-RI-8854599-1",
      "item_id": "RI-8854599",
      "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-8854599-2",
      "item_id": "RI-8854599",
      "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-8854599-3",
      "item_id": "RI-8854599",
      "period": "2026-08",
      "seq": 3,
      "occurred_at": "2026-08-13T07:05:00Z",
      "event": "matched",
      "actor": "match-engine",
      "actor_type": "rule",
      "note": "Booking, card and folio agree within tolerance"
    },
    {
      "event_id": "RE-RI-8854599-4",
      "item_id": "RI-8854599",
      "period": "2026-08",
      "seq": 4,
      "occurred_at": "2026-08-13T11:00:00Z",
      "event": "resolved",
      "actor": "match-engine",
      "actor_type": "rule",
      "note": "Resolution: legitimate"
    }
  ],
  "ledger": [
    {
      "entry_id": "LE-RI-8854599-4717",
      "item_id": "RI-8854599",
      "period": "2026-08",
      "legal_entity": "ASL Airlines Belgium NV",
      "entry_date": "2026-08-09",
      "entry_type": "pending",
      "amount": 639.92,
      "balance_effect": -639.92,
      "description": "Authorization held — Van der Valk Liege",
      "posted_from_period": null
    },
    {
      "entry_id": "LE-RI-8854599-4718",
      "item_id": "RI-8854599",
      "period": "2026-08",
      "legal_entity": "ASL Airlines Belgium NV",
      "entry_date": "2026-08-13",
      "entry_type": "posted",
      "amount": 676.27,
      "balance_effect": 0,
      "description": "Charge posted — Van der Valk Liege",
      "posted_from_period": null
    }
  ],
  "nights": [
    {
      "night": "2026-08-09",
      "room_net": 270.97,
      "vat_amount": 16.26,
      "city_tax": 4,
      "ancillaries": 35.85,
      "rate_paid": 291.23,
      "hotel": "Van der Valk Liege",
      "duty_reason": "positioning",
      "night_status": "occupied",
      "vcc_ref": "VCC-8854599",
      "checkin_time": "16:00",
      "checkout_time": "10:00"
    },
    {
      "night": "2026-08-10",
      "room_net": 301.59,
      "vat_amount": 18.1,
      "city_tax": 4,
      "ancillaries": 25.5,
      "rate_paid": 323.69,
      "hotel": "Van der Valk Liege",
      "duty_reason": "overnight",
      "night_status": "occupied",
      "vcc_ref": "VCC-8854599",
      "checkin_time": "16:00",
      "checkout_time": "10:00"
    }
  ],
  "booking": {
    "booking_id": "RS-8854599",
    "layover_id": "L-514600",
    "duty_id": "D-514599",
    "crew_id": "BEL-1076",
    "entity_id": "ASL Airlines Belgium",
    "legal_entity": "ASL Airlines Belgium NV",
    "station": "LGG",
    "property_id": "P-110",
    "vendor_id": "VEN-01",
    "contract_id": null,
    "revenue_model": "vendor_net",
    "channel": "crew_app",
    "requested_by": "BEL-1076",
    "created_at": "2026-08-09T04:00:00Z",
    "check_in": "2026-08-09",
    "check_out": "2026-08-11",
    "nights": 2,
    "room_type": "standard",
    "occupancy": 1,
    "lead_time_hours": 12,
    "confirmation_ref": "CNF-854599",
    "cancellation_deadline": null,
    "status": "completed",
    "period": "2026-08",
    "total_amount": 692.24
  },
  "duty": {
    "duty_id": "D-514599",
    "crew_id": "BEL-1076",
    "entity_id": "ASL Airlines Belgium",
    "roster_ref": "AIMS/202608/514599",
    "duty_type": "positioning",
    "flight_no": "TAY814",
    "dep_station": "BRU",
    "arr_station": "LGG",
    "duty_start_utc": "2026-08-08T18:05:00Z",
    "duty_end_utc": "2026-08-09T15:03:00Z",
    "duty_hours": 10.53,
    "block_hours": 7.11,
    "source_system": "aims",
    "published_at": "2026-08-03T06:00:00Z",
    "version": 1
  },
  "layover": {
    "layover_id": "L-514600",
    "duty_in": "D-514599",
    "duty_out": "D-514599R",
    "crew_id": "BEL-1076",
    "entity_id": "ASL Airlines Belgium",
    "station": "LGG",
    "rest_starts_utc": "2026-08-09T15:03:00Z",
    "rest_ends_utc": "2026-08-11T06:00:00Z",
    "rest_hours_available": 35.47,
    "sleep_opportunity_hours": 33.26,
    "transfer_in_minutes": 22,
    "transfer_out_minutes": 26,
    "nights": 2,
    "disrupted": 0,
    "period": "2026-08"
  },
  "evaluation": {
    "eval_id": "PE-14600",
    "period": "2026-08",
    "booking_id": "RS-8854599",
    "item_id": "RI-8854599",
    "ruleset": "2026.2",
    "evaluated_at": "2026-08-09T03:57:00Z",
    "channel": "automation",
    "traveller_type": "crew",
    "entity": "ASL Airlines Belgium",
    "station": "LGG",
    "outcome": "soft_breach",
    "breach_count": 2,
    "cost_impact": 92.56,
    "self_served": 0
  },
  "approval": {
    "approval_id": "PA-3028",
    "eval_id": "PE-14600",
    "period": "2026-08",
    "approver": "R. Menon",
    "approver_role": "travel_desk",
    "reason": "Single-night stay, sourcing not economic",
    "approved_at": "2026-08-09T03:58:48Z",
    "second_approver": null
  },
  "breaches": [
    {
      "breach_id": "PB-7573",
      "eval_id": "PE-14600",
      "period": "2026-08",
      "rule_id": "R-PREF",
      "layer": "commercial",
      "severity": "approve",
      "observed": "Booked away from preferred order",
      "limit_value": "preferred order",
      "cost_impact": 73.67,
      "resolved": "approved",
      "name": "Preferred property order",
      "authority": "Routespring",
      "reference": null
    },
    {
      "breach_id": "PB-7574",
      "eval_id": "PE-14600",
      "period": "2026-08",
      "rule_id": "R-WINDOW",
      "layer": "commercial",
      "severity": "warn",
      "observed": "0.5 days",
      "limit_value": "48 hours",
      "cost_impact": 18.89,
      "resolved": "auto_allowed",
      "name": "Advance booking window",
      "authority": "ASL",
      "reference": null
    }
  ],
  "changes": [
    {
      "change_id": "BC-1774",
      "booking_id": "RS-8854599",
      "period": "2026-08",
      "occurred_at": "2026-08-09T06:12:00Z",
      "change_type": "modify_in_place",
      "source": "aims",
      "trigger": "crew_swap",
      "modify_attempted": 1,
      "failed_reason": null,
      "hours_before_checkin": 49.39,
      "cutoff_hours": 24,
      "cost": 14.77,
      "room_lost": 0,
      "resolved_by": "automation",
      "resolved_at": null,
      "sla_breached": 0
    }
  ],
  "card": {
    "vcc_ref": "VCC-8854599",
    "booking_id": "RS-8854599",
    "item_id": "RI-8854599",
    "period": "2026-08",
    "issued_at": "2026-08-09T04:00:00Z",
    "issuer": "Routespring card program",
    "limit_amount": 717.24,
    "currency": "EUR",
    "valid_from": "2026-08-09",
    "valid_to": "2026-08-18",
    "grace_days": 7,
    "mcc_lock": "7011 lodging",
    "merchant_lock": "Van der Valk Liege",
    "auth_count": 2,
    "settled_amount": 676.27,
    "status": "settled",
    "closed_at": "2026-08-13T03:00:00Z"
  },
  "folioDoc": {
    "folio_id": "folio-8854599",
    "booking_id": "RS-8854599",
    "item_id": "RI-8854599",
    "property_id": "P-110",
    "period": "2026-08",
    "folio_number": "LGG260809-8671",
    "guest_name": "R. Maes",
    "check_in": "2026-08-09",
    "check_out": "2026-08-11",
    "issued_at": "2026-08-11T09:30:00Z",
    "received_at": "2026-08-14T07:00:00Z",
    "received_via": "pms_feed",
    "currency": "EUR",
    "stated_total": 676.27,
    "line_count": 8,
    "days_to_receive": 3.29,
    "disputed": 0
  }
}