{
  "item": {
    "item_id": "RI-8852878",
    "period": "2026-08",
    "booking_id": "RS-8852878",
    "duty_id": "D-512878",
    "entity": "ASL Airlines Ireland",
    "legal_entity": "ASL Airlines (Ireland) Ltd",
    "crew_name": "V. Doyle",
    "station": "STN",
    "property_id": "P-116",
    "hotel": "Hampton by Hilton Stansted",
    "check_in": "2026-08-30",
    "check_out": "2026-08-31",
    "nights": 1,
    "booking_amount": 304.75,
    "card_auth": 329.75,
    "card_settled": 304.75,
    "folio_amount": 304.75,
    "variance": 0,
    "variance_pct": 0,
    "variance_category": null,
    "match_state": "matched",
    "exception_type": null,
    "state": "final",
    "resolution": "legitimate",
    "opened_at": "2026-08-31T02:10:00Z",
    "resolved_at": "2026-09-12T11:00:00Z",
    "final_at": "2026-09-30T00:01:00Z",
    "final_due_at": "2026-09-30",
    "age_days": 1,
    "auto_resolved": 1
  },
  "cards": [
    {
      "event_id": "CE-260",
      "item_id": "RI-8852878",
      "booking_id": "RS-8852878",
      "period": "2026-08",
      "vcc_ref": "VCC-8852878",
      "event_type": "issue",
      "amount": null,
      "currency": "EUR",
      "occurred_at": "2026-08-28T09:00:00Z",
      "valid_from": "2026-08-30",
      "valid_to": "2026-09-03",
      "mcc_lock": "7011 lodging",
      "decline_reason": null,
      "issuer_ref": "CNF-852878",
      "source_ref": "feed-2026-08-260"
    },
    {
      "event_id": "CE-261",
      "item_id": "RI-8852878",
      "booking_id": "RS-8852878",
      "period": "2026-08",
      "vcc_ref": "VCC-8852878",
      "event_type": "auth",
      "amount": 329.75,
      "currency": "EUR",
      "occurred_at": "2026-08-30T14:20:00Z",
      "valid_from": "2026-08-30",
      "valid_to": "2026-09-03",
      "mcc_lock": "7011 lodging",
      "decline_reason": null,
      "issuer_ref": "CNF-852878",
      "source_ref": "feed-2026-08-261"
    },
    {
      "event_id": "CE-262",
      "item_id": "RI-8852878",
      "booking_id": "RS-8852878",
      "period": "2026-08",
      "vcc_ref": "VCC-8852878",
      "event_type": "capture",
      "amount": 304.75,
      "currency": "EUR",
      "occurred_at": "2026-08-31T08:05:00Z",
      "valid_from": "2026-08-30",
      "valid_to": "2026-09-03",
      "mcc_lock": "7011 lodging",
      "decline_reason": null,
      "issuer_ref": "CNF-852878",
      "source_ref": "feed-2026-08-262"
    },
    {
      "event_id": "CE-263",
      "item_id": "RI-8852878",
      "booking_id": "RS-8852878",
      "period": "2026-08",
      "vcc_ref": "VCC-8852878",
      "event_type": "settle",
      "amount": 304.75,
      "currency": "EUR",
      "occurred_at": "2026-09-02T03:00:00Z",
      "valid_from": "2026-08-30",
      "valid_to": "2026-09-03",
      "mcc_lock": "7011 lodging",
      "decline_reason": null,
      "issuer_ref": "CNF-852878",
      "source_ref": "feed-2026-08-263"
    }
  ],
  "folio": [
    {
      "line_id": "FL-RI-8852878-r0",
      "item_id": "RI-8852878",
      "period": "2026-08",
      "line_date": "2026-08-30",
      "line_type": "room",
      "description": "Room charge",
      "amount": 253.96,
      "disputed": 0,
      "received_at": "2026-09-03T07:00:00Z",
      "source_ref": "folio-8852878",
      "folio_id": "folio-8852878"
    },
    {
      "line_id": "FL-RI-8852878-v0",
      "item_id": "RI-8852878",
      "period": "2026-08",
      "line_date": "2026-08-30",
      "line_type": "tax",
      "description": "VAT 20%",
      "amount": 50.79,
      "disputed": 0,
      "received_at": "2026-09-03T07:00:00Z",
      "source_ref": "folio-8852878",
      "folio_id": "folio-8852878"
    }
  ],
  "events": [
    {
      "event_id": "RE-RI-8852878-1",
      "item_id": "RI-8852878",
      "period": "2026-08",
      "seq": 1,
      "occurred_at": "2026-08-31T02:10:00Z",
      "event": "opened",
      "actor": "match-engine",
      "actor_type": "rule",
      "note": "Stay complete; reconciliation opened"
    },
    {
      "event_id": "RE-RI-8852878-2",
      "item_id": "RI-8852878",
      "period": "2026-08",
      "seq": 2,
      "occurred_at": "2026-09-02T07:00:00Z",
      "event": "evidence_received",
      "actor": "folio-ingest",
      "actor_type": "rule",
      "note": "Folio received from property"
    },
    {
      "event_id": "RE-RI-8852878-3",
      "item_id": "RI-8852878",
      "period": "2026-08",
      "seq": 3,
      "occurred_at": "2026-09-02T07:05:00Z",
      "event": "matched",
      "actor": "match-engine",
      "actor_type": "rule",
      "note": "Booking, card and folio agree within tolerance"
    },
    {
      "event_id": "RE-RI-8852878-4",
      "item_id": "RI-8852878",
      "period": "2026-08",
      "seq": 4,
      "occurred_at": "2026-09-08T11:00:00Z",
      "event": "resolved",
      "actor": "match-engine",
      "actor_type": "rule",
      "note": "Resolution: legitimate"
    },
    {
      "event_id": "RE-RI-8852878-5",
      "item_id": "RI-8852878",
      "period": "2026-08",
      "seq": 5,
      "occurred_at": "2026-09-30T00: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-8852878-172",
      "item_id": "RI-8852878",
      "period": "2026-08",
      "legal_entity": "ASL Airlines (Ireland) Ltd",
      "entry_date": "2026-08-30",
      "entry_type": "pending",
      "amount": 329.75,
      "balance_effect": -329.75,
      "description": "Authorization held — Hampton by Hilton Stansted",
      "posted_from_period": null
    },
    {
      "entry_id": "LE-RI-8852878-173",
      "item_id": "RI-8852878",
      "period": "2026-08",
      "legal_entity": "ASL Airlines (Ireland) Ltd",
      "entry_date": "2026-09-02",
      "entry_type": "posted",
      "amount": 304.75,
      "balance_effect": 0,
      "description": "Charge posted — Hampton by Hilton Stansted",
      "posted_from_period": null
    },
    {
      "entry_id": "LE-RI-8852878-174",
      "item_id": "RI-8852878",
      "period": "2026-08",
      "legal_entity": "ASL Airlines (Ireland) Ltd",
      "entry_date": "2026-09-02",
      "entry_type": "released",
      "amount": 25,
      "balance_effect": 25,
      "description": "Unused authorization released",
      "posted_from_period": null
    }
  ],
  "nights": [
    {
      "night": "2026-08-30",
      "room_net": 253.96,
      "vat_amount": 50.79,
      "city_tax": 0,
      "ancillaries": 0,
      "rate_paid": 304.75,
      "hotel": "Hampton by Hilton Stansted",
      "duty_reason": "training",
      "night_status": "occupied",
      "vcc_ref": "VCC-8852878",
      "checkin_time": "16:00",
      "checkout_time": "11:00"
    }
  ],
  "booking": {
    "booking_id": "RS-8852878",
    "layover_id": "L-512879",
    "duty_id": "D-512878",
    "crew_id": "IRE-1026",
    "entity_id": "ASL Airlines Ireland",
    "legal_entity": "ASL Airlines (Ireland) Ltd",
    "station": "STN",
    "property_id": "P-116",
    "vendor_id": null,
    "contract_id": "C-116",
    "revenue_model": "routespring_contract",
    "channel": "travel_desk",
    "requested_by": "U-102",
    "created_at": "2026-08-30T04:00:00Z",
    "check_in": "2026-08-30",
    "check_out": "2026-08-31",
    "nights": 1,
    "room_type": "executive",
    "occupancy": 1,
    "lead_time_hours": 12,
    "confirmation_ref": "CNF-852878",
    "cancellation_deadline": "2026-08-29T18:00:00Z",
    "status": "completed",
    "period": "2026-08",
    "total_amount": 320.72
  },
  "duty": {
    "duty_id": "D-512878",
    "crew_id": "IRE-1026",
    "entity_id": "ASL Airlines Ireland",
    "roster_ref": "AIMS/202608/512878",
    "duty_type": "training",
    "flight_no": "ABR453",
    "dep_station": "DUB",
    "arr_station": "STN",
    "duty_start_utc": "2026-08-29T15:30:00Z",
    "duty_end_utc": "2026-08-30T15:07:00Z",
    "duty_hours": 11.06,
    "block_hours": 6.44,
    "source_system": "aims",
    "published_at": "2026-08-24T06:00:00Z",
    "version": 1
  },
  "layover": {
    "layover_id": "L-512879",
    "duty_in": "D-512878",
    "duty_out": "D-512878R",
    "crew_id": "IRE-1026",
    "entity_id": "ASL Airlines Ireland",
    "station": "STN",
    "rest_starts_utc": "2026-08-30T15:07:00Z",
    "rest_ends_utc": "2026-08-31T11:20:00Z",
    "rest_hours_available": 16.24,
    "sleep_opportunity_hours": 14.44,
    "transfer_in_minutes": 18,
    "transfer_out_minutes": 20,
    "nights": 1,
    "disrupted": 0,
    "period": "2026-08"
  },
  "evaluation": {
    "eval_id": "PE-12879",
    "period": "2026-08",
    "booking_id": "RS-8852878",
    "item_id": "RI-8852878",
    "ruleset": "2026.2",
    "evaluated_at": "2026-08-30T03:57:00Z",
    "channel": "automation",
    "traveller_type": "crew",
    "entity": "ASL Airlines Ireland",
    "station": "STN",
    "outcome": "soft_breach",
    "breach_count": 1,
    "cost_impact": 49.82,
    "self_served": 0
  },
  "approval": null,
  "breaches": [
    {
      "breach_id": "PB-6776",
      "eval_id": "PE-12879",
      "period": "2026-08",
      "rule_id": "R-WINDOW",
      "layer": "commercial",
      "severity": "warn",
      "observed": "0.5 days",
      "limit_value": "48 hours",
      "cost_impact": 49.82,
      "resolved": "auto_allowed",
      "name": "Advance booking window",
      "authority": "ASL",
      "reference": null
    }
  ],
  "changes": [],
  "card": {
    "vcc_ref": "VCC-8852878",
    "booking_id": "RS-8852878",
    "item_id": "RI-8852878",
    "period": "2026-08",
    "issued_at": "2026-08-30T04:00:00Z",
    "issuer": "Routespring card program",
    "limit_amount": 345.72,
    "currency": "EUR",
    "valid_from": "2026-08-30",
    "valid_to": "2026-09-07",
    "grace_days": 7,
    "mcc_lock": "7011 lodging",
    "merchant_lock": "Hampton by Hilton Stansted",
    "auth_count": 1,
    "settled_amount": 304.75,
    "status": "settled",
    "closed_at": "2026-09-02T03:00:00Z"
  },
  "folioDoc": {
    "folio_id": "folio-8852878",
    "booking_id": "RS-8852878",
    "item_id": "RI-8852878",
    "property_id": "P-116",
    "period": "2026-08",
    "folio_number": "STN260830-5899",
    "guest_name": "V. Doyle",
    "check_in": "2026-08-30",
    "check_out": "2026-08-31",
    "issued_at": "2026-08-31T09:30:00Z",
    "received_at": "2026-09-03T07:00:00Z",
    "received_via": "pms_feed",
    "currency": "EUR",
    "stated_total": 304.75,
    "line_count": 2,
    "days_to_receive": 3.29,
    "disputed": 0
  }
}