{
  "item": {
    "item_id": "RI-8852847",
    "period": "2026-08",
    "booking_id": "RS-8852847",
    "duty_id": "D-512847",
    "entity": "ASL Airlines Ireland",
    "legal_entity": "ASL Airlines (Ireland) Ltd",
    "crew_name": "S. Nolan",
    "station": "EMA",
    "property_id": "P-104",
    "hotel": "Hilton East Midlands",
    "check_in": "2026-08-14",
    "check_out": "2026-08-17",
    "nights": 3,
    "booking_amount": 887.01,
    "card_auth": 912.01,
    "card_settled": 911.43,
    "folio_amount": 911.43,
    "variance": 0,
    "variance_pct": 0,
    "variance_category": null,
    "match_state": "matched",
    "exception_type": null,
    "state": "final",
    "resolution": "legitimate",
    "opened_at": "2026-08-17T02:10:00Z",
    "resolved_at": "2026-08-26T11:00:00Z",
    "final_at": "2026-09-16T00:01:00Z",
    "final_due_at": "2026-09-16",
    "age_days": 10,
    "auto_resolved": 1
  },
  "cards": [
    {
      "event_id": "CE-136",
      "item_id": "RI-8852847",
      "booking_id": "RS-8852847",
      "period": "2026-08",
      "vcc_ref": "VCC-8852847",
      "event_type": "issue",
      "amount": null,
      "currency": "EUR",
      "occurred_at": "2026-08-12T09:00:00Z",
      "valid_from": "2026-08-14",
      "valid_to": "2026-08-20",
      "mcc_lock": "7011 lodging",
      "decline_reason": null,
      "issuer_ref": "CNF-852847",
      "source_ref": "feed-2026-08-136"
    },
    {
      "event_id": "CE-137",
      "item_id": "RI-8852847",
      "booking_id": "RS-8852847",
      "period": "2026-08",
      "vcc_ref": "VCC-8852847",
      "event_type": "auth",
      "amount": 912.01,
      "currency": "EUR",
      "occurred_at": "2026-08-14T14:20:00Z",
      "valid_from": "2026-08-14",
      "valid_to": "2026-08-20",
      "mcc_lock": "7011 lodging",
      "decline_reason": null,
      "issuer_ref": "CNF-852847",
      "source_ref": "feed-2026-08-137"
    },
    {
      "event_id": "CE-138",
      "item_id": "RI-8852847",
      "booking_id": "RS-8852847",
      "period": "2026-08",
      "vcc_ref": "VCC-8852847",
      "event_type": "capture",
      "amount": 911.43,
      "currency": "EUR",
      "occurred_at": "2026-08-17T08:05:00Z",
      "valid_from": "2026-08-14",
      "valid_to": "2026-08-20",
      "mcc_lock": "7011 lodging",
      "decline_reason": null,
      "issuer_ref": "CNF-852847",
      "source_ref": "feed-2026-08-138"
    },
    {
      "event_id": "CE-139",
      "item_id": "RI-8852847",
      "booking_id": "RS-8852847",
      "period": "2026-08",
      "vcc_ref": "VCC-8852847",
      "event_type": "settle",
      "amount": 911.43,
      "currency": "EUR",
      "occurred_at": "2026-08-19T03:00:00Z",
      "valid_from": "2026-08-14",
      "valid_to": "2026-08-20",
      "mcc_lock": "7011 lodging",
      "decline_reason": null,
      "issuer_ref": "CNF-852847",
      "source_ref": "feed-2026-08-139"
    }
  ],
  "folio": [
    {
      "line_id": "FL-RI-8852847-r0",
      "item_id": "RI-8852847",
      "period": "2026-08",
      "line_date": "2026-08-14",
      "line_type": "room",
      "description": "Room charge",
      "amount": 246.39,
      "disputed": 0,
      "received_at": "2026-08-19T07:00:00Z",
      "source_ref": "folio-8852847",
      "folio_id": "folio-8852847"
    },
    {
      "line_id": "FL-RI-8852847-v0",
      "item_id": "RI-8852847",
      "period": "2026-08",
      "line_date": "2026-08-14",
      "line_type": "tax",
      "description": "VAT 20%",
      "amount": 49.28,
      "disputed": 0,
      "received_at": "2026-08-19T07:00:00Z",
      "source_ref": "folio-8852847",
      "folio_id": "folio-8852847"
    },
    {
      "line_id": "FL-RI-8852847-a1",
      "item_id": "RI-8852847",
      "period": "2026-08",
      "line_date": "2026-08-15",
      "line_type": "incidental",
      "description": "Minibar",
      "amount": 24.42,
      "disputed": 0,
      "received_at": "2026-08-19T07:00:00Z",
      "source_ref": "folio-8852847",
      "folio_id": "folio-8852847"
    },
    {
      "line_id": "FL-RI-8852847-r1",
      "item_id": "RI-8852847",
      "period": "2026-08",
      "line_date": "2026-08-15",
      "line_type": "room",
      "description": "Room charge",
      "amount": 246.39,
      "disputed": 0,
      "received_at": "2026-08-19T07:00:00Z",
      "source_ref": "folio-8852847",
      "folio_id": "folio-8852847"
    },
    {
      "line_id": "FL-RI-8852847-v1",
      "item_id": "RI-8852847",
      "period": "2026-08",
      "line_date": "2026-08-15",
      "line_type": "tax",
      "description": "VAT 20%",
      "amount": 49.28,
      "disputed": 0,
      "received_at": "2026-08-19T07:00:00Z",
      "source_ref": "folio-8852847",
      "folio_id": "folio-8852847"
    },
    {
      "line_id": "FL-RI-8852847-r2",
      "item_id": "RI-8852847",
      "period": "2026-08",
      "line_date": "2026-08-16",
      "line_type": "room",
      "description": "Room charge",
      "amount": 246.39,
      "disputed": 0,
      "received_at": "2026-08-19T07:00:00Z",
      "source_ref": "folio-8852847",
      "folio_id": "folio-8852847"
    },
    {
      "line_id": "FL-RI-8852847-v2",
      "item_id": "RI-8852847",
      "period": "2026-08",
      "line_date": "2026-08-16",
      "line_type": "tax",
      "description": "VAT 20%",
      "amount": 49.28,
      "disputed": 0,
      "received_at": "2026-08-19T07:00:00Z",
      "source_ref": "folio-8852847",
      "folio_id": "folio-8852847"
    }
  ],
  "events": [
    {
      "event_id": "RE-RI-8852847-1",
      "item_id": "RI-8852847",
      "period": "2026-08",
      "seq": 1,
      "occurred_at": "2026-08-17T02:10:00Z",
      "event": "opened",
      "actor": "match-engine",
      "actor_type": "rule",
      "note": "Stay complete; reconciliation opened"
    },
    {
      "event_id": "RE-RI-8852847-2",
      "item_id": "RI-8852847",
      "period": "2026-08",
      "seq": 2,
      "occurred_at": "2026-08-19T07:00:00Z",
      "event": "evidence_received",
      "actor": "folio-ingest",
      "actor_type": "rule",
      "note": "Folio received from property"
    },
    {
      "event_id": "RE-RI-8852847-3",
      "item_id": "RI-8852847",
      "period": "2026-08",
      "seq": 3,
      "occurred_at": "2026-08-19T07:05:00Z",
      "event": "matched",
      "actor": "match-engine",
      "actor_type": "rule",
      "note": "Booking, card and folio agree within tolerance"
    },
    {
      "event_id": "RE-RI-8852847-4",
      "item_id": "RI-8852847",
      "period": "2026-08",
      "seq": 4,
      "occurred_at": "2026-08-27T11:00:00Z",
      "event": "resolved",
      "actor": "match-engine",
      "actor_type": "rule",
      "note": "Resolution: legitimate"
    },
    {
      "event_id": "RE-RI-8852847-5",
      "item_id": "RI-8852847",
      "period": "2026-08",
      "seq": 5,
      "occurred_at": "2026-09-16T00: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-8852847-89",
      "item_id": "RI-8852847",
      "period": "2026-08",
      "legal_entity": "ASL Airlines (Ireland) Ltd",
      "entry_date": "2026-08-14",
      "entry_type": "pending",
      "amount": 912.01,
      "balance_effect": -912.01,
      "description": "Authorization held — Hilton East Midlands",
      "posted_from_period": null
    },
    {
      "entry_id": "LE-RI-8852847-90",
      "item_id": "RI-8852847",
      "period": "2026-08",
      "legal_entity": "ASL Airlines (Ireland) Ltd",
      "entry_date": "2026-08-19",
      "entry_type": "posted",
      "amount": 911.43,
      "balance_effect": 0,
      "description": "Charge posted — Hilton East Midlands",
      "posted_from_period": null
    },
    {
      "entry_id": "LE-RI-8852847-91",
      "item_id": "RI-8852847",
      "period": "2026-08",
      "legal_entity": "ASL Airlines (Ireland) Ltd",
      "entry_date": "2026-08-19",
      "entry_type": "released",
      "amount": 0.58,
      "balance_effect": 0.58,
      "description": "Unused authorization released",
      "posted_from_period": null
    }
  ],
  "nights": [
    {
      "night": "2026-08-14",
      "room_net": 246.39,
      "vat_amount": 49.28,
      "city_tax": 0,
      "ancillaries": 0,
      "rate_paid": 295.67,
      "hotel": "Hilton East Midlands",
      "duty_reason": "positioning",
      "night_status": "occupied",
      "vcc_ref": "VCC-8852847",
      "checkin_time": "05:40",
      "checkout_time": "10:00"
    },
    {
      "night": "2026-08-15",
      "room_net": 246.39,
      "vat_amount": 49.28,
      "city_tax": 0,
      "ancillaries": 24.42,
      "rate_paid": 295.67,
      "hotel": "Hilton East Midlands",
      "duty_reason": "positioning",
      "night_status": "occupied",
      "vcc_ref": "VCC-8852847",
      "checkin_time": "05:40",
      "checkout_time": "10:00"
    },
    {
      "night": "2026-08-16",
      "room_net": 246.39,
      "vat_amount": 49.28,
      "city_tax": 0,
      "ancillaries": 0,
      "rate_paid": 295.67,
      "hotel": "Hilton East Midlands",
      "duty_reason": "overnight",
      "night_status": "occupied",
      "vcc_ref": "VCC-8852847",
      "checkin_time": "05:40",
      "checkout_time": "10:00"
    }
  ],
  "booking": {
    "booking_id": "RS-8852847",
    "layover_id": "L-512848",
    "duty_id": "D-512847",
    "crew_id": "IRE-S211",
    "entity_id": "ASL Airlines Ireland",
    "legal_entity": "ASL Airlines (Ireland) Ltd",
    "station": "EMA",
    "property_id": "P-104",
    "vendor_id": null,
    "contract_id": "C-104",
    "revenue_model": "routespring_contract",
    "channel": "staff_portal",
    "requested_by": "U-103",
    "created_at": "2026-08-11T05:40:00Z",
    "check_in": "2026-08-14",
    "check_out": "2026-08-17",
    "nights": 3,
    "room_type": "standard",
    "occupancy": 1,
    "lead_time_hours": 72,
    "confirmation_ref": "CNF-852847",
    "cancellation_deadline": "2026-08-13T18:00:00Z",
    "status": "completed",
    "period": "2026-08",
    "total_amount": 927.4
  },
  "duty": {
    "duty_id": "D-512847",
    "crew_id": "IRE-S211",
    "entity_id": "ASL Airlines Ireland",
    "roster_ref": "AIMS/202608/512847",
    "duty_type": "positioning",
    "flight_no": "ABR248",
    "dep_station": "DUB",
    "arr_station": "EMA",
    "duty_start_utc": "2026-08-13T18:05:00Z",
    "duty_end_utc": "2026-08-14T04:50:00Z",
    "duty_hours": 7.91,
    "block_hours": 8.17,
    "source_system": "aims",
    "published_at": "2026-08-06T06:00:00Z",
    "version": 1
  },
  "layover": {
    "layover_id": "L-512848",
    "duty_in": "D-512847",
    "duty_out": "D-512847R",
    "crew_id": "IRE-S211",
    "entity_id": "ASL Airlines Ireland",
    "station": "EMA",
    "rest_starts_utc": "2026-08-14T04:50:00Z",
    "rest_ends_utc": "2026-08-17T06:00:00Z",
    "rest_hours_available": 60.2,
    "sleep_opportunity_hours": 58.03,
    "transfer_in_minutes": 15,
    "transfer_out_minutes": 14,
    "nights": 3,
    "disrupted": 0,
    "period": "2026-08"
  },
  "evaluation": {
    "eval_id": "PE-12848",
    "period": "2026-08",
    "booking_id": "RS-8852847",
    "item_id": "RI-8852847",
    "ruleset": "2026.2",
    "evaluated_at": "2026-08-11T05:37:00Z",
    "channel": "staff_portal",
    "traveller_type": "staff",
    "entity": "ASL Airlines Ireland",
    "station": "EMA",
    "outcome": "hard_refusal",
    "breach_count": 1,
    "cost_impact": 887.01,
    "self_served": 0
  },
  "approval": null,
  "breaches": [
    {
      "breach_id": "PB-D8220",
      "eval_id": "PE-12848",
      "period": "2026-08",
      "rule_id": "R-ENTITLE",
      "layer": "entitlement",
      "severity": "block",
      "observed": "Overnight at home base EMA",
      "limit_value": "rest away from base only",
      "cost_impact": 887.01,
      "resolved": "refused",
      "name": "Duty entitlement",
      "authority": "ASL",
      "reference": "ASL OM-A 7.1"
    }
  ],
  "changes": [],
  "card": {
    "vcc_ref": "VCC-8852847",
    "booking_id": "RS-8852847",
    "item_id": "RI-8852847",
    "period": "2026-08",
    "issued_at": "2026-08-11T05:40:00Z",
    "issuer": "Routespring card program",
    "limit_amount": 952.4,
    "currency": "EUR",
    "valid_from": "2026-08-14",
    "valid_to": "2026-08-24",
    "grace_days": 7,
    "mcc_lock": "7011 lodging",
    "merchant_lock": "Hilton East Midlands",
    "auth_count": 3,
    "settled_amount": 1226.46,
    "status": "settled",
    "closed_at": "2026-08-19T03:00:00Z"
  },
  "folioDoc": {
    "folio_id": "folio-8852847",
    "booking_id": "RS-8852847",
    "item_id": "RI-8852847",
    "property_id": "P-104",
    "period": "2026-08",
    "folio_number": "EMA260814-4089",
    "guest_name": "S. Nolan",
    "check_in": "2026-08-14",
    "check_out": "2026-08-17",
    "issued_at": "2026-08-17T09:30:00Z",
    "received_at": "2026-08-19T07:00:00Z",
    "received_via": "email_pdf",
    "currency": "EUR",
    "stated_total": 911.43,
    "line_count": 7,
    "days_to_receive": 2.29,
    "disputed": 0
  }
}