{
  "item": {
    "item_id": "RI-8853521",
    "period": "2026-08",
    "booking_id": "RS-8853521",
    "duty_id": "D-513521",
    "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-07",
    "check_out": "2026-08-09",
    "nights": 2,
    "booking_amount": 583.34,
    "card_auth": 608.34,
    "card_settled": 705.4,
    "folio_amount": 705.4,
    "variance": 85.14,
    "variance_pct": 14.6,
    "variance_category": "extra_night",
    "match_state": "variance",
    "exception_type": "amount_variance",
    "state": "investigating",
    "resolution": null,
    "opened_at": "2026-08-09T02:10:00Z",
    "resolved_at": null,
    "final_at": null,
    "final_due_at": "2026-09-08",
    "age_days": 4,
    "auto_resolved": 0
  },
  "cards": [
    {
      "event_id": "CE-2829",
      "item_id": "RI-8853521",
      "booking_id": "RS-8853521",
      "period": "2026-08",
      "vcc_ref": "VCC-8853521",
      "event_type": "issue",
      "amount": null,
      "currency": "EUR",
      "occurred_at": "2026-08-05T09:00:00Z",
      "valid_from": "2026-08-07",
      "valid_to": "2026-08-12",
      "mcc_lock": "7011 lodging",
      "decline_reason": null,
      "issuer_ref": "CNF-853521",
      "source_ref": "feed-2026-08-2829"
    },
    {
      "event_id": "CE-2830",
      "item_id": "RI-8853521",
      "booking_id": "RS-8853521",
      "period": "2026-08",
      "vcc_ref": "VCC-8853521",
      "event_type": "auth",
      "amount": 608.34,
      "currency": "EUR",
      "occurred_at": "2026-08-07T14:20:00Z",
      "valid_from": "2026-08-07",
      "valid_to": "2026-08-12",
      "mcc_lock": "7011 lodging",
      "decline_reason": null,
      "issuer_ref": "CNF-853521",
      "source_ref": "feed-2026-08-2830"
    },
    {
      "event_id": "CE-2831",
      "item_id": "RI-8853521",
      "booking_id": "RS-8853521",
      "period": "2026-08",
      "vcc_ref": "VCC-8853521",
      "event_type": "capture",
      "amount": 705.4,
      "currency": "EUR",
      "occurred_at": "2026-08-09T08:05:00Z",
      "valid_from": "2026-08-07",
      "valid_to": "2026-08-12",
      "mcc_lock": "7011 lodging",
      "decline_reason": null,
      "issuer_ref": "CNF-853521",
      "source_ref": "feed-2026-08-2831"
    },
    {
      "event_id": "CE-2832",
      "item_id": "RI-8853521",
      "booking_id": "RS-8853521",
      "period": "2026-08",
      "vcc_ref": "VCC-8853521",
      "event_type": "settle",
      "amount": 705.4,
      "currency": "EUR",
      "occurred_at": "2026-08-11T03:00:00Z",
      "valid_from": "2026-08-07",
      "valid_to": "2026-08-12",
      "mcc_lock": "7011 lodging",
      "decline_reason": null,
      "issuer_ref": "CNF-853521",
      "source_ref": "feed-2026-08-2832"
    }
  ],
  "folio": [
    {
      "line_id": "FL-RI-8853521-a0",
      "item_id": "RI-8853521",
      "period": "2026-08",
      "line_date": "2026-08-07",
      "line_type": "incidental",
      "description": "Breakfast",
      "amount": 16.62,
      "disputed": 0,
      "received_at": "2026-08-15T07:00:00Z",
      "source_ref": "folio-8853521",
      "folio_id": "folio-8853521"
    },
    {
      "line_id": "FL-RI-8853521-r0",
      "item_id": "RI-8853521",
      "period": "2026-08",
      "line_date": "2026-08-07",
      "line_type": "room",
      "description": "Room charge",
      "amount": 250.15,
      "disputed": 0,
      "received_at": "2026-08-15T07:00:00Z",
      "source_ref": "folio-8853521",
      "folio_id": "folio-8853521"
    },
    {
      "line_id": "FL-RI-8853521-v0",
      "item_id": "RI-8853521",
      "period": "2026-08",
      "line_date": "2026-08-07",
      "line_type": "tax",
      "description": "VAT 20%",
      "amount": 50.03,
      "disputed": 0,
      "received_at": "2026-08-15T07:00:00Z",
      "source_ref": "folio-8853521",
      "folio_id": "folio-8853521"
    },
    {
      "line_id": "FL-RI-8853521-a1",
      "item_id": "RI-8853521",
      "period": "2026-08",
      "line_date": "2026-08-08",
      "line_type": "incidental",
      "description": "Minibar",
      "amount": 20.3,
      "disputed": 0,
      "received_at": "2026-08-15T07:00:00Z",
      "source_ref": "folio-8853521",
      "folio_id": "folio-8853521"
    },
    {
      "line_id": "FL-RI-8853521-r1",
      "item_id": "RI-8853521",
      "period": "2026-08",
      "line_date": "2026-08-08",
      "line_type": "room",
      "description": "Room charge",
      "amount": 235.97,
      "disputed": 0,
      "received_at": "2026-08-15T07:00:00Z",
      "source_ref": "folio-8853521",
      "folio_id": "folio-8853521"
    },
    {
      "line_id": "FL-RI-8853521-v1",
      "item_id": "RI-8853521",
      "period": "2026-08",
      "line_date": "2026-08-08",
      "line_type": "tax",
      "description": "VAT 20%",
      "amount": 47.19,
      "disputed": 0,
      "received_at": "2026-08-15T07:00:00Z",
      "source_ref": "folio-8853521",
      "folio_id": "folio-8853521"
    },
    {
      "line_id": "FL-RI-8853521-x",
      "item_id": "RI-8853521",
      "period": "2026-08",
      "line_date": "2026-08-09",
      "line_type": "room",
      "description": "Additional night",
      "amount": 85.14,
      "disputed": 0,
      "received_at": "2026-08-15T07:00:00Z",
      "source_ref": "folio-8853521",
      "folio_id": "folio-8853521"
    }
  ],
  "events": [
    {
      "event_id": "RE-RI-8853521-1",
      "item_id": "RI-8853521",
      "period": "2026-08",
      "seq": 1,
      "occurred_at": "2026-08-09T02:10:00Z",
      "event": "opened",
      "actor": "match-engine",
      "actor_type": "rule",
      "note": "Stay complete; reconciliation opened"
    },
    {
      "event_id": "RE-RI-8853521-2",
      "item_id": "RI-8853521",
      "period": "2026-08",
      "seq": 2,
      "occurred_at": "2026-08-11T07:00:00Z",
      "event": "evidence_received",
      "actor": "folio-ingest",
      "actor_type": "rule",
      "note": "Folio received from property"
    },
    {
      "event_id": "RE-RI-8853521-3",
      "item_id": "RI-8853521",
      "period": "2026-08",
      "seq": 3,
      "occurred_at": "2026-08-11T07:05:00Z",
      "event": "variance_detected",
      "actor": "match-engine",
      "actor_type": "rule",
      "note": "amount variance — 85.14 EUR"
    },
    {
      "event_id": "RE-RI-8853521-4",
      "item_id": "RI-8853521",
      "period": "2026-08",
      "seq": 4,
      "occurred_at": "2026-08-12T10:20:00Z",
      "event": "category_assigned",
      "actor": "R. Menon",
      "actor_type": "human",
      "note": "Categorised as extra night"
    }
  ],
  "ledger": [
    {
      "entry_id": "LE-RI-8853521-1877",
      "item_id": "RI-8853521",
      "period": "2026-08",
      "legal_entity": "ASL Airlines (Ireland) Ltd",
      "entry_date": "2026-08-07",
      "entry_type": "pending",
      "amount": 608.34,
      "balance_effect": -608.34,
      "description": "Authorization held — Hilton East Midlands",
      "posted_from_period": null
    },
    {
      "entry_id": "LE-RI-8853521-1878",
      "item_id": "RI-8853521",
      "period": "2026-08",
      "legal_entity": "ASL Airlines (Ireland) Ltd",
      "entry_date": "2026-08-11",
      "entry_type": "posted",
      "amount": 705.4,
      "balance_effect": 0,
      "description": "Charge posted — Hilton East Midlands",
      "posted_from_period": null
    }
  ],
  "nights": [
    {
      "night": "2026-08-07",
      "room_net": 250.15,
      "vat_amount": 50.03,
      "city_tax": 0,
      "ancillaries": 16.62,
      "rate_paid": 300.18,
      "hotel": "Hilton East Midlands",
      "duty_reason": "overnight",
      "night_status": "occupied",
      "vcc_ref": "VCC-8853521",
      "checkin_time": "15:00",
      "checkout_time": "11:00"
    },
    {
      "night": "2026-08-08",
      "room_net": 235.97,
      "vat_amount": 47.19,
      "city_tax": 0,
      "ancillaries": 20.3,
      "rate_paid": 283.16,
      "hotel": "Hilton East Midlands",
      "duty_reason": "overnight",
      "night_status": "occupied",
      "vcc_ref": "VCC-8853521",
      "checkin_time": "15:00",
      "checkout_time": "11:00"
    }
  ],
  "booking": {
    "booking_id": "RS-8853521",
    "layover_id": "L-513522",
    "duty_id": "D-513521",
    "crew_id": "IRE-S211",
    "entity_id": "ASL Airlines Ireland",
    "legal_entity": "ASL Airlines (Ireland) Ltd",
    "station": "EMA",
    "property_id": "P-104",
    "vendor_id": "VEN-01",
    "contract_id": null,
    "revenue_model": "vendor_net",
    "channel": "staff_portal",
    "requested_by": "U-101",
    "created_at": "2026-08-02T15:00:00Z",
    "check_in": "2026-08-07",
    "check_out": "2026-08-09",
    "nights": 2,
    "room_type": "superior",
    "occupancy": 1,
    "lead_time_hours": 120,
    "confirmation_ref": "CNF-853521",
    "cancellation_deadline": null,
    "status": "completed",
    "period": "2026-08",
    "total_amount": 636.23
  },
  "duty": {
    "duty_id": "D-513521",
    "crew_id": "IRE-S211",
    "entity_id": "ASL Airlines Ireland",
    "roster_ref": "AIMS/202608/513521",
    "duty_type": "overnight",
    "flight_no": "ABR839",
    "dep_station": "DUB",
    "arr_station": "EMA",
    "duty_start_utc": "2026-08-06T18:05:00Z",
    "duty_end_utc": "2026-08-07T14:10:00Z",
    "duty_hours": 6.31,
    "block_hours": 8.47,
    "source_system": "aims",
    "published_at": "2026-07-24T06:00:00Z",
    "version": 1
  },
  "layover": {
    "layover_id": "L-513522",
    "duty_in": "D-513521",
    "duty_out": "D-513521R",
    "crew_id": "IRE-S211",
    "entity_id": "ASL Airlines Ireland",
    "station": "EMA",
    "rest_starts_utc": "2026-08-07T14:10:00Z",
    "rest_ends_utc": "2026-08-09T08:45:00Z",
    "rest_hours_available": 39.85,
    "sleep_opportunity_hours": 38.23,
    "transfer_in_minutes": 15,
    "transfer_out_minutes": 17,
    "nights": 2,
    "disrupted": 0,
    "period": "2026-08"
  },
  "evaluation": {
    "eval_id": "PE-13522",
    "period": "2026-08",
    "booking_id": "RS-8853521",
    "item_id": "RI-8853521",
    "ruleset": "2026.2",
    "evaluated_at": "2026-08-02T14:57:00Z",
    "channel": "staff_portal",
    "traveller_type": "staff",
    "entity": "ASL Airlines Ireland",
    "station": "EMA",
    "outcome": "hard_refusal",
    "breach_count": 1,
    "cost_impact": 583.34,
    "self_served": 0
  },
  "approval": null,
  "breaches": [
    {
      "breach_id": "PB-D8282",
      "eval_id": "PE-13522",
      "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": 583.34,
      "resolved": "refused",
      "name": "Duty entitlement",
      "authority": "ASL",
      "reference": "ASL OM-A 7.1"
    }
  ],
  "changes": [],
  "card": {
    "vcc_ref": "VCC-8853521",
    "booking_id": "RS-8853521",
    "item_id": "RI-8853521",
    "period": "2026-08",
    "issued_at": "2026-08-02T15:00:00Z",
    "issuer": "Routespring card program",
    "limit_amount": 661.23,
    "currency": "EUR",
    "valid_from": "2026-08-07",
    "valid_to": "2026-08-16",
    "grace_days": 7,
    "mcc_lock": "7011 lodging",
    "merchant_lock": "Hilton East Midlands",
    "auth_count": 2,
    "settled_amount": 620.26,
    "status": "authorised",
    "closed_at": "2026-08-11T03:00:00Z"
  },
  "folioDoc": {
    "folio_id": "folio-8853521",
    "booking_id": "RS-8853521",
    "item_id": "RI-8853521",
    "property_id": "P-104",
    "period": "2026-08",
    "folio_number": "EMA260807-5456",
    "guest_name": "S. Nolan",
    "check_in": "2026-08-07",
    "check_out": "2026-08-09",
    "issued_at": "2026-08-09T09:30:00Z",
    "received_at": "2026-08-15T07:00:00Z",
    "received_via": "email_pdf",
    "currency": "EUR",
    "stated_total": 705.4,
    "line_count": 7,
    "days_to_receive": 6.29,
    "disputed": 0
  }
}