{
  "item": {
    "item_id": "RI-8853989",
    "period": "2026-08",
    "booking_id": "RS-8853989",
    "duty_id": "D-513989",
    "entity": "ASL Airlines Belgium",
    "legal_entity": "ASL Airlines Belgium NV",
    "crew_name": "P. Janssens",
    "station": "LGG",
    "property_id": "P-110",
    "hotel": "Van der Valk Liege",
    "check_in": "2026-08-04",
    "check_out": "2026-08-06",
    "nights": 2,
    "booking_amount": 519.44,
    "card_auth": 544.44,
    "card_settled": 519.44,
    "folio_amount": 519.44,
    "variance": 0,
    "variance_pct": 0,
    "variance_category": null,
    "match_state": "matched",
    "exception_type": null,
    "state": "resolved",
    "resolution": "legitimate",
    "opened_at": "2026-08-06T02:10:00Z",
    "resolved_at": "2026-08-16T11:00:00Z",
    "final_at": null,
    "final_due_at": "2026-09-05",
    "age_days": 23,
    "auto_resolved": 1
  },
  "cards": [
    {
      "event_id": "CE-4702",
      "item_id": "RI-8853989",
      "booking_id": "RS-8853989",
      "period": "2026-08",
      "vcc_ref": "VCC-8853989",
      "event_type": "issue",
      "amount": null,
      "currency": "EUR",
      "occurred_at": "2026-08-02T09:00:00Z",
      "valid_from": "2026-08-04",
      "valid_to": "2026-08-09",
      "mcc_lock": "7011 lodging",
      "decline_reason": null,
      "issuer_ref": "CNF-853989",
      "source_ref": "feed-2026-08-4702"
    },
    {
      "event_id": "CE-4703",
      "item_id": "RI-8853989",
      "booking_id": "RS-8853989",
      "period": "2026-08",
      "vcc_ref": "VCC-8853989",
      "event_type": "auth",
      "amount": 544.44,
      "currency": "EUR",
      "occurred_at": "2026-08-04T14:20:00Z",
      "valid_from": "2026-08-04",
      "valid_to": "2026-08-09",
      "mcc_lock": "7011 lodging",
      "decline_reason": null,
      "issuer_ref": "CNF-853989",
      "source_ref": "feed-2026-08-4703"
    },
    {
      "event_id": "CE-4704",
      "item_id": "RI-8853989",
      "booking_id": "RS-8853989",
      "period": "2026-08",
      "vcc_ref": "VCC-8853989",
      "event_type": "capture",
      "amount": 519.44,
      "currency": "EUR",
      "occurred_at": "2026-08-06T08:05:00Z",
      "valid_from": "2026-08-04",
      "valid_to": "2026-08-09",
      "mcc_lock": "7011 lodging",
      "decline_reason": null,
      "issuer_ref": "CNF-853989",
      "source_ref": "feed-2026-08-4704"
    },
    {
      "event_id": "CE-4705",
      "item_id": "RI-8853989",
      "booking_id": "RS-8853989",
      "period": "2026-08",
      "vcc_ref": "VCC-8853989",
      "event_type": "settle",
      "amount": 519.44,
      "currency": "EUR",
      "occurred_at": "2026-08-08T03:00:00Z",
      "valid_from": "2026-08-04",
      "valid_to": "2026-08-09",
      "mcc_lock": "7011 lodging",
      "decline_reason": null,
      "issuer_ref": "CNF-853989",
      "source_ref": "feed-2026-08-4705"
    }
  ],
  "folio": [
    {
      "line_id": "FL-RI-8853989-c0",
      "item_id": "RI-8853989",
      "period": "2026-08",
      "line_date": "2026-08-04",
      "line_type": "fee",
      "description": "City / tourist tax",
      "amount": 4,
      "disputed": 0,
      "received_at": "2026-08-08T07:00:00Z",
      "source_ref": "folio-8853989",
      "folio_id": "folio-8853989"
    },
    {
      "line_id": "FL-RI-8853989-r0",
      "item_id": "RI-8853989",
      "period": "2026-08",
      "line_date": "2026-08-04",
      "line_type": "room",
      "description": "Room charge",
      "amount": 241.25,
      "disputed": 0,
      "received_at": "2026-08-08T07:00:00Z",
      "source_ref": "folio-8853989",
      "folio_id": "folio-8853989"
    },
    {
      "line_id": "FL-RI-8853989-v0",
      "item_id": "RI-8853989",
      "period": "2026-08",
      "line_date": "2026-08-04",
      "line_type": "tax",
      "description": "VAT 6%",
      "amount": 14.47,
      "disputed": 0,
      "received_at": "2026-08-08T07:00:00Z",
      "source_ref": "folio-8853989",
      "folio_id": "folio-8853989"
    },
    {
      "line_id": "FL-RI-8853989-c1",
      "item_id": "RI-8853989",
      "period": "2026-08",
      "line_date": "2026-08-05",
      "line_type": "fee",
      "description": "City / tourist tax",
      "amount": 4,
      "disputed": 0,
      "received_at": "2026-08-08T07:00:00Z",
      "source_ref": "folio-8853989",
      "folio_id": "folio-8853989"
    },
    {
      "line_id": "FL-RI-8853989-r1",
      "item_id": "RI-8853989",
      "period": "2026-08",
      "line_date": "2026-08-05",
      "line_type": "room",
      "description": "Room charge",
      "amount": 241.25,
      "disputed": 0,
      "received_at": "2026-08-08T07:00:00Z",
      "source_ref": "folio-8853989",
      "folio_id": "folio-8853989"
    },
    {
      "line_id": "FL-RI-8853989-v1",
      "item_id": "RI-8853989",
      "period": "2026-08",
      "line_date": "2026-08-05",
      "line_type": "tax",
      "description": "VAT 6%",
      "amount": 14.47,
      "disputed": 0,
      "received_at": "2026-08-08T07:00:00Z",
      "source_ref": "folio-8853989",
      "folio_id": "folio-8853989"
    }
  ],
  "events": [
    {
      "event_id": "RE-RI-8853989-1",
      "item_id": "RI-8853989",
      "period": "2026-08",
      "seq": 1,
      "occurred_at": "2026-08-06T02:10:00Z",
      "event": "opened",
      "actor": "match-engine",
      "actor_type": "rule",
      "note": "Stay complete; reconciliation opened"
    },
    {
      "event_id": "RE-RI-8853989-2",
      "item_id": "RI-8853989",
      "period": "2026-08",
      "seq": 2,
      "occurred_at": "2026-08-08T07:00:00Z",
      "event": "evidence_received",
      "actor": "folio-ingest",
      "actor_type": "rule",
      "note": "Folio received from property"
    },
    {
      "event_id": "RE-RI-8853989-3",
      "item_id": "RI-8853989",
      "period": "2026-08",
      "seq": 3,
      "occurred_at": "2026-08-08T07:05:00Z",
      "event": "matched",
      "actor": "match-engine",
      "actor_type": "rule",
      "note": "Booking, card and folio agree within tolerance"
    },
    {
      "event_id": "RE-RI-8853989-4",
      "item_id": "RI-8853989",
      "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-8853989-3119",
      "item_id": "RI-8853989",
      "period": "2026-08",
      "legal_entity": "ASL Airlines Belgium NV",
      "entry_date": "2026-08-04",
      "entry_type": "pending",
      "amount": 544.44,
      "balance_effect": -544.44,
      "description": "Authorization held — Van der Valk Liege",
      "posted_from_period": null
    },
    {
      "entry_id": "LE-RI-8853989-3120",
      "item_id": "RI-8853989",
      "period": "2026-08",
      "legal_entity": "ASL Airlines Belgium NV",
      "entry_date": "2026-08-08",
      "entry_type": "posted",
      "amount": 519.44,
      "balance_effect": 0,
      "description": "Charge posted — Van der Valk Liege",
      "posted_from_period": null
    },
    {
      "entry_id": "LE-RI-8853989-3121",
      "item_id": "RI-8853989",
      "period": "2026-08",
      "legal_entity": "ASL Airlines Belgium NV",
      "entry_date": "2026-08-08",
      "entry_type": "released",
      "amount": 25,
      "balance_effect": 25,
      "description": "Unused authorization released",
      "posted_from_period": null
    }
  ],
  "nights": [
    {
      "night": "2026-08-04",
      "room_net": 241.25,
      "vat_amount": 14.47,
      "city_tax": 4,
      "ancillaries": 0,
      "rate_paid": 259.72,
      "hotel": "Van der Valk Liege",
      "duty_reason": "overnight",
      "night_status": "occupied",
      "vcc_ref": "VCC-8853989",
      "checkin_time": "05:40",
      "checkout_time": "11:00"
    },
    {
      "night": "2026-08-05",
      "room_net": 241.25,
      "vat_amount": 14.47,
      "city_tax": 4,
      "ancillaries": 0,
      "rate_paid": 259.72,
      "hotel": "Van der Valk Liege",
      "duty_reason": "positioning",
      "night_status": "occupied",
      "vcc_ref": "VCC-8853989",
      "checkin_time": "05:40",
      "checkout_time": "11:00"
    }
  ],
  "booking": {
    "booking_id": "RS-8853989",
    "layover_id": "L-513990",
    "duty_id": "D-513989",
    "crew_id": "BEL-1025",
    "entity_id": "ASL Airlines Belgium",
    "legal_entity": "ASL Airlines Belgium NV",
    "station": "LGG",
    "property_id": "P-110",
    "vendor_id": null,
    "contract_id": "C-110",
    "revenue_model": "routespring_contract",
    "channel": "crew_app",
    "requested_by": "BEL-1025",
    "created_at": "2026-08-03T17:40:00Z",
    "check_in": "2026-08-04",
    "check_out": "2026-08-06",
    "nights": 2,
    "room_type": "standard",
    "occupancy": 1,
    "lead_time_hours": 12,
    "confirmation_ref": "CNF-853989",
    "cancellation_deadline": "2026-08-03T18:00:00Z",
    "status": "completed",
    "period": "2026-08",
    "total_amount": 535.41
  },
  "duty": {
    "duty_id": "D-513989",
    "crew_id": "BEL-1025",
    "entity_id": "ASL Airlines Belgium",
    "roster_ref": "AIMS/202608/513989",
    "duty_type": "overnight",
    "flight_no": "TAY135",
    "dep_station": "BRU",
    "arr_station": "LGG",
    "duty_start_utc": "2026-08-03T18:05:00Z",
    "duty_end_utc": "2026-08-04T04:43:00Z",
    "duty_hours": 7.54,
    "block_hours": 6.96,
    "source_system": "aims",
    "published_at": "2026-07-22T06:00:00Z",
    "version": 1
  },
  "layover": {
    "layover_id": "L-513990",
    "duty_in": "D-513989",
    "duty_out": "D-513989R",
    "crew_id": "BEL-1025",
    "entity_id": "ASL Airlines Belgium",
    "station": "LGG",
    "rest_starts_utc": "2026-08-04T04:43:00Z",
    "rest_ends_utc": "2026-08-06T08:45:00Z",
    "rest_hours_available": 38.86,
    "sleep_opportunity_hours": 37.01,
    "transfer_in_minutes": 22,
    "transfer_out_minutes": 23,
    "nights": 2,
    "disrupted": 0,
    "period": "2026-08"
  },
  "evaluation": {
    "eval_id": "PE-13990",
    "period": "2026-08",
    "booking_id": "RS-8853989",
    "item_id": "RI-8853989",
    "ruleset": "2026.2",
    "evaluated_at": "2026-08-03T17:37:00Z",
    "channel": "automation",
    "traveller_type": "crew",
    "entity": "ASL Airlines Belgium",
    "station": "LGG",
    "outcome": "hard_refusal",
    "breach_count": 3,
    "cost_impact": 65.31,
    "self_served": 0
  },
  "approval": null,
  "breaches": [
    {
      "breach_id": "PB-7284",
      "eval_id": "PE-13990",
      "period": "2026-08",
      "rule_id": "R-WINDOW",
      "layer": "commercial",
      "severity": "warn",
      "observed": "0.5 days",
      "limit_value": "48 hours",
      "cost_impact": 65.31,
      "resolved": "auto_allowed",
      "name": "Advance booking window",
      "authority": "ASL",
      "reference": null
    },
    {
      "breach_id": "PB-D8332",
      "eval_id": "PE-13990",
      "period": "2026-08",
      "rule_id": "R-RECEPTION",
      "layer": "regulatory",
      "severity": "approve",
      "observed": "Arrival 05:40, reception unstaffed",
      "limit_value": "staffed 24h",
      "cost_impact": 0,
      "resolved": "approved",
      "name": "24-hour reception",
      "authority": "ASL",
      "reference": "ASL OM-A 7.5"
    },
    {
      "breach_id": "PB-D8333",
      "eval_id": "PE-13990",
      "period": "2026-08",
      "rule_id": "R-SINGLE",
      "layer": "regulatory",
      "severity": "block",
      "observed": "12 crew requested against a block of 10",
      "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-1669",
      "booking_id": "RS-8853989",
      "period": "2026-08",
      "occurred_at": "2026-08-05T21:05:00Z",
      "change_type": "cancel_rebook",
      "source": "aims",
      "trigger": "roster_change",
      "modify_attempted": 1,
      "failed_reason": "no_availability",
      "hours_before_checkin": 110.03,
      "cutoff_hours": 24,
      "cost": 192.08,
      "room_lost": 0,
      "resolved_by": "human",
      "resolved_at": "2026-08-05T18:40:00Z",
      "sla_breached": 0
    }
  ],
  "card": {
    "vcc_ref": "VCC-8853989",
    "booking_id": "RS-8853989",
    "item_id": "RI-8853989",
    "period": "2026-08",
    "issued_at": "2026-08-03T17:40:00Z",
    "issuer": "Routespring card program",
    "limit_amount": 560.41,
    "currency": "EUR",
    "valid_from": "2026-08-04",
    "valid_to": "2026-08-13",
    "grace_days": 7,
    "mcc_lock": "7011 lodging",
    "merchant_lock": "Van der Valk Liege",
    "auth_count": 2,
    "settled_amount": 519.44,
    "status": "settled",
    "closed_at": "2026-08-08T03:00:00Z"
  },
  "folioDoc": {
    "folio_id": "folio-8853989",
    "booking_id": "RS-8853989",
    "item_id": "RI-8853989",
    "property_id": "P-110",
    "period": "2026-08",
    "folio_number": "LGG260804-4661",
    "guest_name": "P. Janssens",
    "check_in": "2026-08-04",
    "check_out": "2026-08-06",
    "issued_at": "2026-08-06T09:30:00Z",
    "received_at": "2026-08-08T07:00:00Z",
    "received_via": "pms_feed",
    "currency": "EUR",
    "stated_total": 519.44,
    "line_count": 6,
    "days_to_receive": 2.29,
    "disputed": 0
  }
}