{
  "item": {
    "item_id": "RI-8852816",
    "period": "2026-08",
    "booking_id": "RS-8852816",
    "duty_id": "D-512816",
    "entity": "ASL Airlines Ireland",
    "legal_entity": "ASL Airlines (Ireland) Ltd",
    "crew_name": "E. Kavanagh",
    "station": "DUB",
    "property_id": "P-102",
    "hotel": "Maldron Hotel Dublin Airport",
    "check_in": "2026-08-01",
    "check_out": "2026-08-03",
    "nights": 2,
    "booking_amount": 530.36,
    "card_auth": 555.36,
    "card_settled": 564.21,
    "folio_amount": 564.21,
    "variance": 0,
    "variance_pct": 0,
    "variance_category": null,
    "match_state": "matched",
    "exception_type": null,
    "state": "final",
    "resolution": "legitimate",
    "opened_at": "2026-08-03T02:10:00Z",
    "resolved_at": "2026-08-05T11:00:00Z",
    "final_at": "2026-09-02T00:01:00Z",
    "final_due_at": "2026-09-02",
    "age_days": 17,
    "auto_resolved": 1
  },
  "cards": [
    {
      "event_id": "CE-9",
      "item_id": "RI-8852816",
      "booking_id": "RS-8852816",
      "period": "2026-08",
      "vcc_ref": "VCC-8852816",
      "event_type": "issue",
      "amount": null,
      "currency": "EUR",
      "occurred_at": "2026-07-30T09:00:00Z",
      "valid_from": "2026-08-01",
      "valid_to": "2026-08-06",
      "mcc_lock": "7011 lodging",
      "decline_reason": null,
      "issuer_ref": "CNF-852816",
      "source_ref": "feed-2026-08-9"
    },
    {
      "event_id": "CE-10",
      "item_id": "RI-8852816",
      "booking_id": "RS-8852816",
      "period": "2026-08",
      "vcc_ref": "VCC-8852816",
      "event_type": "auth",
      "amount": 555.36,
      "currency": "EUR",
      "occurred_at": "2026-08-01T14:20:00Z",
      "valid_from": "2026-08-01",
      "valid_to": "2026-08-06",
      "mcc_lock": "7011 lodging",
      "decline_reason": null,
      "issuer_ref": "CNF-852816",
      "source_ref": "feed-2026-08-10"
    },
    {
      "event_id": "CE-11",
      "item_id": "RI-8852816",
      "booking_id": "RS-8852816",
      "period": "2026-08",
      "vcc_ref": "VCC-8852816",
      "event_type": "capture",
      "amount": 564.21,
      "currency": "EUR",
      "occurred_at": "2026-08-03T08:05:00Z",
      "valid_from": "2026-08-01",
      "valid_to": "2026-08-06",
      "mcc_lock": "7011 lodging",
      "decline_reason": null,
      "issuer_ref": "CNF-852816",
      "source_ref": "feed-2026-08-11"
    },
    {
      "event_id": "CE-12",
      "item_id": "RI-8852816",
      "booking_id": "RS-8852816",
      "period": "2026-08",
      "vcc_ref": "VCC-8852816",
      "event_type": "settle",
      "amount": 564.21,
      "currency": "EUR",
      "occurred_at": "2026-08-05T03:00:00Z",
      "valid_from": "2026-08-01",
      "valid_to": "2026-08-06",
      "mcc_lock": "7011 lodging",
      "decline_reason": null,
      "issuer_ref": "CNF-852816",
      "source_ref": "feed-2026-08-12"
    }
  ],
  "folio": [
    {
      "line_id": "FL-RI-8852816-a0",
      "item_id": "RI-8852816",
      "period": "2026-08",
      "line_date": "2026-08-01",
      "line_type": "incidental",
      "description": "Late checkout",
      "amount": 33.85,
      "disputed": 0,
      "received_at": "2026-08-07T07:00:00Z",
      "source_ref": "folio-8852816",
      "folio_id": "folio-8852816"
    },
    {
      "line_id": "FL-RI-8852816-r0",
      "item_id": "RI-8852816",
      "period": "2026-08",
      "line_date": "2026-08-01",
      "line_type": "room",
      "description": "Room charge",
      "amount": 233.64,
      "disputed": 0,
      "received_at": "2026-08-07T07:00:00Z",
      "source_ref": "folio-8852816",
      "folio_id": "folio-8852816"
    },
    {
      "line_id": "FL-RI-8852816-v0",
      "item_id": "RI-8852816",
      "period": "2026-08",
      "line_date": "2026-08-01",
      "line_type": "tax",
      "description": "VAT 13.5%",
      "amount": 31.54,
      "disputed": 0,
      "received_at": "2026-08-07T07:00:00Z",
      "source_ref": "folio-8852816",
      "folio_id": "folio-8852816"
    },
    {
      "line_id": "FL-RI-8852816-r1",
      "item_id": "RI-8852816",
      "period": "2026-08",
      "line_date": "2026-08-02",
      "line_type": "room",
      "description": "Room charge",
      "amount": 233.64,
      "disputed": 0,
      "received_at": "2026-08-07T07:00:00Z",
      "source_ref": "folio-8852816",
      "folio_id": "folio-8852816"
    },
    {
      "line_id": "FL-RI-8852816-v1",
      "item_id": "RI-8852816",
      "period": "2026-08",
      "line_date": "2026-08-02",
      "line_type": "tax",
      "description": "VAT 13.5%",
      "amount": 31.54,
      "disputed": 0,
      "received_at": "2026-08-07T07:00:00Z",
      "source_ref": "folio-8852816",
      "folio_id": "folio-8852816"
    }
  ],
  "events": [
    {
      "event_id": "RE-RI-8852816-1",
      "item_id": "RI-8852816",
      "period": "2026-08",
      "seq": 1,
      "occurred_at": "2026-08-03T02:10:00Z",
      "event": "opened",
      "actor": "match-engine",
      "actor_type": "rule",
      "note": "Stay complete; reconciliation opened"
    },
    {
      "event_id": "RE-RI-8852816-2",
      "item_id": "RI-8852816",
      "period": "2026-08",
      "seq": 2,
      "occurred_at": "2026-08-05T07:00:00Z",
      "event": "evidence_received",
      "actor": "folio-ingest",
      "actor_type": "rule",
      "note": "Folio received from property"
    },
    {
      "event_id": "RE-RI-8852816-3",
      "item_id": "RI-8852816",
      "period": "2026-08",
      "seq": 3,
      "occurred_at": "2026-08-05T07:05:00Z",
      "event": "matched",
      "actor": "match-engine",
      "actor_type": "rule",
      "note": "Booking, card and folio agree within tolerance"
    },
    {
      "event_id": "RE-RI-8852816-4",
      "item_id": "RI-8852816",
      "period": "2026-08",
      "seq": 4,
      "occurred_at": "2026-08-17T11:00:00Z",
      "event": "resolved",
      "actor": "match-engine",
      "actor_type": "rule",
      "note": "Resolution: legitimate"
    },
    {
      "event_id": "RE-RI-8852816-5",
      "item_id": "RI-8852816",
      "period": "2026-08",
      "seq": 5,
      "occurred_at": "2026-09-02T00: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-8852816-6",
      "item_id": "RI-8852816",
      "period": "2026-08",
      "legal_entity": "ASL Airlines (Ireland) Ltd",
      "entry_date": "2026-08-01",
      "entry_type": "pending",
      "amount": 555.36,
      "balance_effect": -555.36,
      "description": "Authorization held — Maldron Hotel Dublin Airport",
      "posted_from_period": null
    },
    {
      "entry_id": "LE-RI-8852816-7",
      "item_id": "RI-8852816",
      "period": "2026-08",
      "legal_entity": "ASL Airlines (Ireland) Ltd",
      "entry_date": "2026-08-05",
      "entry_type": "posted",
      "amount": 564.21,
      "balance_effect": 0,
      "description": "Charge posted — Maldron Hotel Dublin Airport",
      "posted_from_period": null
    }
  ],
  "nights": [
    {
      "night": "2026-08-01",
      "room_net": 233.64,
      "vat_amount": 31.54,
      "city_tax": 0,
      "ancillaries": 33.85,
      "rate_paid": 265.18,
      "hotel": "Maldron Hotel Dublin Airport",
      "duty_reason": "overnight",
      "night_status": "occupied",
      "vcc_ref": "VCC-8852816",
      "checkin_time": "15:00",
      "checkout_time": "12:00"
    },
    {
      "night": "2026-08-02",
      "room_net": 233.64,
      "vat_amount": 31.54,
      "city_tax": 0,
      "ancillaries": 0,
      "rate_paid": 265.18,
      "hotel": "Maldron Hotel Dublin Airport",
      "duty_reason": "positioning",
      "night_status": "occupied",
      "vcc_ref": "VCC-8852816",
      "checkin_time": "15:00",
      "checkout_time": "12:00"
    }
  ],
  "booking": {
    "booking_id": "RS-8852816",
    "layover_id": "L-512817",
    "duty_id": "D-512816",
    "crew_id": "IRE-1027",
    "entity_id": "ASL Airlines Ireland",
    "legal_entity": "ASL Airlines (Ireland) Ltd",
    "station": "DUB",
    "property_id": "P-102",
    "vendor_id": null,
    "contract_id": "C-102",
    "revenue_model": "routespring_contract",
    "channel": "crew_app",
    "requested_by": "IRE-1027",
    "created_at": "2026-08-01T03:00:00Z",
    "check_in": "2026-08-01",
    "check_out": "2026-08-03",
    "nights": 2,
    "room_type": "standard",
    "occupancy": 1,
    "lead_time_hours": 12,
    "confirmation_ref": "CNF-852816",
    "cancellation_deadline": "2026-07-31T18:00:00Z",
    "status": "completed",
    "period": "2026-08",
    "total_amount": 580.18
  },
  "duty": {
    "duty_id": "D-512816",
    "crew_id": "IRE-1027",
    "entity_id": "ASL Airlines Ireland",
    "roster_ref": "AIMS/202608/512816",
    "duty_type": "overnight",
    "flight_no": "ABR368",
    "dep_station": "EMA",
    "arr_station": "DUB",
    "duty_start_utc": "2026-07-31T15:30:00Z",
    "duty_end_utc": "2026-08-01T14:02:00Z",
    "duty_hours": 11.13,
    "block_hours": 6.76,
    "source_system": "crew_app",
    "published_at": "2026-07-12T06:00:00Z",
    "version": 1
  },
  "layover": {
    "layover_id": "L-512817",
    "duty_in": "D-512816",
    "duty_out": "D-512816R",
    "crew_id": "IRE-1027",
    "entity_id": "ASL Airlines Ireland",
    "station": "DUB",
    "rest_starts_utc": "2026-08-01T14:02:00Z",
    "rest_ends_utc": "2026-08-03T11:20:00Z",
    "rest_hours_available": 38.17,
    "sleep_opportunity_hours": 35.77,
    "transfer_in_minutes": 23,
    "transfer_out_minutes": 22,
    "nights": 2,
    "disrupted": 0,
    "period": "2026-08"
  },
  "evaluation": {
    "eval_id": "PE-12817",
    "period": "2026-08",
    "booking_id": "RS-8852816",
    "item_id": "RI-8852816",
    "ruleset": "2026.2",
    "evaluated_at": "2026-08-01T02:57:00Z",
    "channel": "automation",
    "traveller_type": "crew",
    "entity": "ASL Airlines Ireland",
    "station": "DUB",
    "outcome": "soft_breach",
    "breach_count": 2,
    "cost_impact": 99.61,
    "self_served": 0
  },
  "approval": null,
  "breaches": [
    {
      "breach_id": "PB-6753",
      "eval_id": "PE-12817",
      "period": "2026-08",
      "rule_id": "R-WINDOW",
      "layer": "commercial",
      "severity": "warn",
      "observed": "0.5 days",
      "limit_value": "48 hours",
      "cost_impact": 65.76,
      "resolved": "auto_allowed",
      "name": "Advance booking window",
      "authority": "ASL",
      "reference": null
    },
    {
      "breach_id": "PB-6754",
      "eval_id": "PE-12817",
      "period": "2026-08",
      "rule_id": "R-ANC",
      "layer": "commercial",
      "severity": "warn",
      "observed": "33.85 EUR uncovered",
      "limit_value": "breakfast, wifi",
      "cost_impact": 33.85,
      "resolved": "auto_allowed",
      "name": "Covered ancillaries",
      "authority": "ASL",
      "reference": null
    }
  ],
  "changes": [
    {
      "change_id": "BC-1546",
      "booking_id": "RS-8852816",
      "period": "2026-08",
      "occurred_at": "2026-08-01T06:12:00Z",
      "change_type": "modify_in_place",
      "source": "crew_app",
      "trigger": "roster_change",
      "modify_attempted": 1,
      "failed_reason": null,
      "hours_before_checkin": 88.16,
      "cutoff_hours": 24,
      "cost": 15.32,
      "room_lost": 0,
      "resolved_by": "automation",
      "resolved_at": null,
      "sla_breached": 0
    }
  ],
  "card": {
    "vcc_ref": "VCC-8852816",
    "booking_id": "RS-8852816",
    "item_id": "RI-8852816",
    "period": "2026-08",
    "issued_at": "2026-08-01T03:00:00Z",
    "issuer": "Routespring card program",
    "limit_amount": 605.18,
    "currency": "EUR",
    "valid_from": "2026-08-01",
    "valid_to": "2026-08-10",
    "grace_days": 7,
    "mcc_lock": "7011 lodging",
    "merchant_lock": "Maldron Hotel Dublin Airport",
    "auth_count": 2,
    "settled_amount": 564.21,
    "status": "settled",
    "closed_at": "2026-08-05T03:00:00Z"
  },
  "folioDoc": {
    "folio_id": "folio-8852816",
    "booking_id": "RS-8852816",
    "item_id": "RI-8852816",
    "property_id": "P-102",
    "period": "2026-08",
    "folio_number": "DUB260801-2922",
    "guest_name": "E. Kavanagh",
    "check_in": "2026-08-01",
    "check_out": "2026-08-03",
    "issued_at": "2026-08-03T09:30:00Z",
    "received_at": "2026-08-07T07:00:00Z",
    "received_via": "pms_feed",
    "currency": "EUR",
    "stated_total": 564.21,
    "line_count": 5,
    "days_to_receive": 4.29,
    "disputed": 0
  }
}