{
  "item": {
    "item_id": "RI-8852936",
    "period": "2026-08",
    "booking_id": "RS-8852936",
    "duty_id": "D-512936",
    "entity": "ASL Airlines Ireland",
    "legal_entity": "ASL Airlines (Ireland) Ltd",
    "crew_name": "E. Brennan",
    "station": "LGG",
    "property_id": "P-110",
    "hotel": "Van der Valk Liege",
    "check_in": "2026-08-12",
    "check_out": "2026-08-15",
    "nights": 3,
    "booking_amount": 785.43,
    "card_auth": 810.43,
    "card_settled": 803.85,
    "folio_amount": 803.85,
    "variance": 0,
    "variance_pct": 0,
    "variance_category": null,
    "match_state": "matched",
    "exception_type": null,
    "state": "final",
    "resolution": "legitimate",
    "opened_at": "2026-08-15T02:10:00Z",
    "resolved_at": "2026-08-21T11:00:00Z",
    "final_at": "2026-09-14T00:01:00Z",
    "final_due_at": "2026-09-14",
    "age_days": 37,
    "auto_resolved": 1
  },
  "cards": [
    {
      "event_id": "CE-489",
      "item_id": "RI-8852936",
      "booking_id": "RS-8852936",
      "period": "2026-08",
      "vcc_ref": "VCC-8852936",
      "event_type": "issue",
      "amount": null,
      "currency": "EUR",
      "occurred_at": "2026-08-10T09:00:00Z",
      "valid_from": "2026-08-12",
      "valid_to": "2026-08-18",
      "mcc_lock": "7011 lodging",
      "decline_reason": null,
      "issuer_ref": "CNF-852936",
      "source_ref": "feed-2026-08-489"
    },
    {
      "event_id": "CE-490",
      "item_id": "RI-8852936",
      "booking_id": "RS-8852936",
      "period": "2026-08",
      "vcc_ref": "VCC-8852936",
      "event_type": "auth",
      "amount": 810.43,
      "currency": "EUR",
      "occurred_at": "2026-08-12T14:20:00Z",
      "valid_from": "2026-08-12",
      "valid_to": "2026-08-18",
      "mcc_lock": "7011 lodging",
      "decline_reason": null,
      "issuer_ref": "CNF-852936",
      "source_ref": "feed-2026-08-490"
    },
    {
      "event_id": "CE-491",
      "item_id": "RI-8852936",
      "booking_id": "RS-8852936",
      "period": "2026-08",
      "vcc_ref": "VCC-8852936",
      "event_type": "capture",
      "amount": 803.85,
      "currency": "EUR",
      "occurred_at": "2026-08-15T08:05:00Z",
      "valid_from": "2026-08-12",
      "valid_to": "2026-08-18",
      "mcc_lock": "7011 lodging",
      "decline_reason": null,
      "issuer_ref": "CNF-852936",
      "source_ref": "feed-2026-08-491"
    },
    {
      "event_id": "CE-492",
      "item_id": "RI-8852936",
      "booking_id": "RS-8852936",
      "period": "2026-08",
      "vcc_ref": "VCC-8852936",
      "event_type": "settle",
      "amount": 803.85,
      "currency": "EUR",
      "occurred_at": "2026-08-17T03:00:00Z",
      "valid_from": "2026-08-12",
      "valid_to": "2026-08-18",
      "mcc_lock": "7011 lodging",
      "decline_reason": null,
      "issuer_ref": "CNF-852936",
      "source_ref": "feed-2026-08-492"
    }
  ],
  "folio": [
    {
      "line_id": "FL-RI-8852936-c0",
      "item_id": "RI-8852936",
      "period": "2026-08",
      "line_date": "2026-08-12",
      "line_type": "fee",
      "description": "City / tourist tax",
      "amount": 4,
      "disputed": 0,
      "received_at": "2026-08-18T07:00:00Z",
      "source_ref": "folio-8852936",
      "folio_id": "folio-8852936"
    },
    {
      "line_id": "FL-RI-8852936-a0",
      "item_id": "RI-8852936",
      "period": "2026-08",
      "line_date": "2026-08-12",
      "line_type": "incidental",
      "description": "Late checkout",
      "amount": 18.42,
      "disputed": 0,
      "received_at": "2026-08-18T07:00:00Z",
      "source_ref": "folio-8852936",
      "folio_id": "folio-8852936"
    },
    {
      "line_id": "FL-RI-8852936-r0",
      "item_id": "RI-8852936",
      "period": "2026-08",
      "line_date": "2026-08-12",
      "line_type": "room",
      "description": "Room charge",
      "amount": 243.22,
      "disputed": 0,
      "received_at": "2026-08-18T07:00:00Z",
      "source_ref": "folio-8852936",
      "folio_id": "folio-8852936"
    },
    {
      "line_id": "FL-RI-8852936-v0",
      "item_id": "RI-8852936",
      "period": "2026-08",
      "line_date": "2026-08-12",
      "line_type": "tax",
      "description": "VAT 6%",
      "amount": 14.59,
      "disputed": 0,
      "received_at": "2026-08-18T07:00:00Z",
      "source_ref": "folio-8852936",
      "folio_id": "folio-8852936"
    },
    {
      "line_id": "FL-RI-8852936-c1",
      "item_id": "RI-8852936",
      "period": "2026-08",
      "line_date": "2026-08-13",
      "line_type": "fee",
      "description": "City / tourist tax",
      "amount": 4,
      "disputed": 0,
      "received_at": "2026-08-18T07:00:00Z",
      "source_ref": "folio-8852936",
      "folio_id": "folio-8852936"
    },
    {
      "line_id": "FL-RI-8852936-r1",
      "item_id": "RI-8852936",
      "period": "2026-08",
      "line_date": "2026-08-13",
      "line_type": "room",
      "description": "Room charge",
      "amount": 243.22,
      "disputed": 0,
      "received_at": "2026-08-18T07:00:00Z",
      "source_ref": "folio-8852936",
      "folio_id": "folio-8852936"
    },
    {
      "line_id": "FL-RI-8852936-v1",
      "item_id": "RI-8852936",
      "period": "2026-08",
      "line_date": "2026-08-13",
      "line_type": "tax",
      "description": "VAT 6%",
      "amount": 14.59,
      "disputed": 0,
      "received_at": "2026-08-18T07:00:00Z",
      "source_ref": "folio-8852936",
      "folio_id": "folio-8852936"
    },
    {
      "line_id": "FL-RI-8852936-c2",
      "item_id": "RI-8852936",
      "period": "2026-08",
      "line_date": "2026-08-14",
      "line_type": "fee",
      "description": "City / tourist tax",
      "amount": 4,
      "disputed": 0,
      "received_at": "2026-08-18T07:00:00Z",
      "source_ref": "folio-8852936",
      "folio_id": "folio-8852936"
    },
    {
      "line_id": "FL-RI-8852936-r2",
      "item_id": "RI-8852936",
      "period": "2026-08",
      "line_date": "2026-08-14",
      "line_type": "room",
      "description": "Room charge",
      "amount": 243.22,
      "disputed": 0,
      "received_at": "2026-08-18T07:00:00Z",
      "source_ref": "folio-8852936",
      "folio_id": "folio-8852936"
    },
    {
      "line_id": "FL-RI-8852936-v2",
      "item_id": "RI-8852936",
      "period": "2026-08",
      "line_date": "2026-08-14",
      "line_type": "tax",
      "description": "VAT 6%",
      "amount": 14.59,
      "disputed": 0,
      "received_at": "2026-08-18T07:00:00Z",
      "source_ref": "folio-8852936",
      "folio_id": "folio-8852936"
    }
  ],
  "events": [
    {
      "event_id": "RE-RI-8852936-1",
      "item_id": "RI-8852936",
      "period": "2026-08",
      "seq": 1,
      "occurred_at": "2026-08-15T02:10:00Z",
      "event": "opened",
      "actor": "match-engine",
      "actor_type": "rule",
      "note": "Stay complete; reconciliation opened"
    },
    {
      "event_id": "RE-RI-8852936-2",
      "item_id": "RI-8852936",
      "period": "2026-08",
      "seq": 2,
      "occurred_at": "2026-08-17T07:00:00Z",
      "event": "evidence_received",
      "actor": "folio-ingest",
      "actor_type": "rule",
      "note": "Folio received from property"
    },
    {
      "event_id": "RE-RI-8852936-3",
      "item_id": "RI-8852936",
      "period": "2026-08",
      "seq": 3,
      "occurred_at": "2026-08-17T07:05:00Z",
      "event": "matched",
      "actor": "match-engine",
      "actor_type": "rule",
      "note": "Booking, card and folio agree within tolerance"
    },
    {
      "event_id": "RE-RI-8852936-4",
      "item_id": "RI-8852936",
      "period": "2026-08",
      "seq": 4,
      "occurred_at": "2026-08-29T11:00:00Z",
      "event": "resolved",
      "actor": "match-engine",
      "actor_type": "rule",
      "note": "Resolution: legitimate"
    },
    {
      "event_id": "RE-RI-8852936-5",
      "item_id": "RI-8852936",
      "period": "2026-08",
      "seq": 5,
      "occurred_at": "2026-09-14T00: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-8852936-323",
      "item_id": "RI-8852936",
      "period": "2026-08",
      "legal_entity": "ASL Airlines (Ireland) Ltd",
      "entry_date": "2026-08-12",
      "entry_type": "pending",
      "amount": 810.43,
      "balance_effect": -810.43,
      "description": "Authorization held — Van der Valk Liege",
      "posted_from_period": null
    },
    {
      "entry_id": "LE-RI-8852936-324",
      "item_id": "RI-8852936",
      "period": "2026-08",
      "legal_entity": "ASL Airlines (Ireland) Ltd",
      "entry_date": "2026-08-17",
      "entry_type": "posted",
      "amount": 803.85,
      "balance_effect": 0,
      "description": "Charge posted — Van der Valk Liege",
      "posted_from_period": null
    },
    {
      "entry_id": "LE-RI-8852936-325",
      "item_id": "RI-8852936",
      "period": "2026-08",
      "legal_entity": "ASL Airlines (Ireland) Ltd",
      "entry_date": "2026-08-17",
      "entry_type": "released",
      "amount": 6.58,
      "balance_effect": 6.58,
      "description": "Unused authorization released",
      "posted_from_period": null
    }
  ],
  "nights": [
    {
      "night": "2026-08-12",
      "room_net": 243.22,
      "vat_amount": 14.59,
      "city_tax": 4,
      "ancillaries": 18.42,
      "rate_paid": 261.81,
      "hotel": "Van der Valk Liege",
      "duty_reason": "overnight",
      "night_status": "occupied",
      "vcc_ref": "VCC-8852936",
      "checkin_time": "22:30",
      "checkout_time": "10:00"
    },
    {
      "night": "2026-08-13",
      "room_net": 243.22,
      "vat_amount": 14.59,
      "city_tax": 4,
      "ancillaries": 0,
      "rate_paid": 261.81,
      "hotel": "Van der Valk Liege",
      "duty_reason": "positioning",
      "night_status": "occupied",
      "vcc_ref": "VCC-8852936",
      "checkin_time": "22:30",
      "checkout_time": "10:00"
    },
    {
      "night": "2026-08-14",
      "room_net": 243.22,
      "vat_amount": 14.59,
      "city_tax": 4,
      "ancillaries": 0,
      "rate_paid": 261.81,
      "hotel": "Van der Valk Liege",
      "duty_reason": "overnight",
      "night_status": "occupied",
      "vcc_ref": "VCC-8852936",
      "checkin_time": "22:30",
      "checkout_time": "10:00"
    }
  ],
  "booking": {
    "booking_id": "RS-8852936",
    "layover_id": "L-512937",
    "duty_id": "D-512936",
    "crew_id": "IRE-1006",
    "entity_id": "ASL Airlines Ireland",
    "legal_entity": "ASL Airlines (Ireland) Ltd",
    "station": "LGG",
    "property_id": "P-110",
    "vendor_id": null,
    "contract_id": "C-110",
    "revenue_model": "routespring_contract",
    "channel": "crew_app",
    "requested_by": "IRE-1006",
    "created_at": "2026-08-12T10:30:00Z",
    "check_in": "2026-08-12",
    "check_out": "2026-08-15",
    "nights": 3,
    "room_type": "superior",
    "occupancy": 1,
    "lead_time_hours": 12,
    "confirmation_ref": "CNF-852936",
    "cancellation_deadline": "2026-08-11T18:00:00Z",
    "status": "completed",
    "period": "2026-08",
    "total_amount": 819.82
  },
  "duty": {
    "duty_id": "D-512936",
    "crew_id": "IRE-1006",
    "entity_id": "ASL Airlines Ireland",
    "roster_ref": "AIMS/202608/512936",
    "duty_type": "overnight",
    "flight_no": "ABR483",
    "dep_station": "EMA",
    "arr_station": "LGG",
    "duty_start_utc": "2026-08-11T09:40:00Z",
    "duty_end_utc": "2026-08-12T21:33:00Z",
    "duty_hours": 11.13,
    "block_hours": 7.56,
    "source_system": "aims",
    "published_at": "2026-08-07T06:00:00Z",
    "version": 1
  },
  "layover": {
    "layover_id": "L-512937",
    "duty_in": "D-512936",
    "duty_out": "D-512936R",
    "crew_id": "IRE-1006",
    "entity_id": "ASL Airlines Ireland",
    "station": "LGG",
    "rest_starts_utc": "2026-08-12T21:33:00Z",
    "rest_ends_utc": "2026-08-15T11:20:00Z",
    "rest_hours_available": 59.77,
    "sleep_opportunity_hours": 57.48,
    "transfer_in_minutes": 22,
    "transfer_out_minutes": 22,
    "nights": 3,
    "disrupted": 0,
    "period": "2026-08"
  },
  "evaluation": {
    "eval_id": "PE-12937",
    "period": "2026-08",
    "booking_id": "RS-8852936",
    "item_id": "RI-8852936",
    "ruleset": "2026.2",
    "evaluated_at": "2026-08-12T10:27:00Z",
    "channel": "automation",
    "traveller_type": "crew",
    "entity": "ASL Airlines Ireland",
    "station": "LGG",
    "outcome": "soft_breach",
    "breach_count": 2,
    "cost_impact": 86.78,
    "self_served": 0
  },
  "approval": null,
  "breaches": [
    {
      "breach_id": "PB-6800",
      "eval_id": "PE-12937",
      "period": "2026-08",
      "rule_id": "R-WINDOW",
      "layer": "commercial",
      "severity": "warn",
      "observed": "0.5 days",
      "limit_value": "48 hours",
      "cost_impact": 86.78,
      "resolved": "auto_allowed",
      "name": "Advance booking window",
      "authority": "ASL",
      "reference": null
    },
    {
      "breach_id": "PB-D8226",
      "eval_id": "PE-12937",
      "period": "2026-08",
      "rule_id": "R-RECEPTION",
      "layer": "regulatory",
      "severity": "approve",
      "observed": "Arrival 22:30, reception unstaffed",
      "limit_value": "staffed 24h",
      "cost_impact": 0,
      "resolved": "approved",
      "name": "24-hour reception",
      "authority": "ASL",
      "reference": "ASL OM-A 7.5"
    }
  ],
  "changes": [
    {
      "change_id": "BC-1555",
      "booking_id": "RS-8852936",
      "period": "2026-08",
      "occurred_at": "2026-08-12T11:40:00Z",
      "change_type": "cancel_rebook",
      "source": "travel_desk",
      "trigger": "crew_swap",
      "modify_attempted": 1,
      "failed_reason": "no_availability",
      "hours_before_checkin": 109.19,
      "cutoff_hours": 24,
      "cost": 236.54,
      "room_lost": 0,
      "resolved_by": "human",
      "resolved_at": "2026-08-12T22:30:00Z",
      "sla_breached": 0
    }
  ],
  "card": {
    "vcc_ref": "VCC-8852936",
    "booking_id": "RS-8852936",
    "item_id": "RI-8852936",
    "period": "2026-08",
    "issued_at": "2026-08-12T10:30:00Z",
    "issuer": "Routespring card program",
    "limit_amount": 844.82,
    "currency": "EUR",
    "valid_from": "2026-08-12",
    "valid_to": "2026-08-22",
    "grace_days": 7,
    "mcc_lock": "7011 lodging",
    "merchant_lock": "Van der Valk Liege",
    "auth_count": 3,
    "settled_amount": 803.85,
    "status": "settled",
    "closed_at": "2026-08-17T03:00:00Z"
  },
  "folioDoc": {
    "folio_id": "folio-8852936",
    "booking_id": "RS-8852936",
    "item_id": "RI-8852936",
    "property_id": "P-110",
    "period": "2026-08",
    "folio_number": "LGG260812-6493",
    "guest_name": "E. Brennan",
    "check_in": "2026-08-12",
    "check_out": "2026-08-15",
    "issued_at": "2026-08-15T09:30:00Z",
    "received_at": "2026-08-18T07:00:00Z",
    "received_via": "email_pdf",
    "currency": "EUR",
    "stated_total": 803.85,
    "line_count": 10,
    "days_to_receive": 3.29,
    "disputed": 0
  }
}