{
  "item": {
    "item_id": "RI-8853034",
    "period": "2026-08",
    "booking_id": "RS-8853034",
    "duty_id": "D-513034",
    "entity": "ASL Airlines Ireland",
    "legal_entity": "ASL Airlines (Ireland) Ltd",
    "crew_name": "B. Brennan",
    "station": "DUB",
    "property_id": "P-101",
    "hotel": "Clayton Hotel Dublin Airport",
    "check_in": "2026-08-02",
    "check_out": "2026-08-05",
    "nights": 3,
    "booking_amount": 713.91,
    "card_auth": 738.91,
    "card_settled": 888.95,
    "folio_amount": 888.95,
    "variance": 175.04,
    "variance_pct": 24.52,
    "variance_category": "rate_change",
    "match_state": "variance",
    "exception_type": "amount_variance",
    "state": "investigating",
    "resolution": null,
    "opened_at": "2026-08-05T02:10:00Z",
    "resolved_at": null,
    "final_at": null,
    "final_due_at": "2026-09-04",
    "age_days": 24,
    "auto_resolved": 0
  },
  "cards": [
    {
      "event_id": "CE-878",
      "item_id": "RI-8853034",
      "booking_id": "RS-8853034",
      "period": "2026-08",
      "vcc_ref": "VCC-8853034",
      "event_type": "issue",
      "amount": null,
      "currency": "EUR",
      "occurred_at": "2026-07-31T09:00:00Z",
      "valid_from": "2026-08-02",
      "valid_to": "2026-08-08",
      "mcc_lock": "7011 lodging",
      "decline_reason": null,
      "issuer_ref": "CNF-853034",
      "source_ref": "feed-2026-08-878"
    },
    {
      "event_id": "CE-879",
      "item_id": "RI-8853034",
      "booking_id": "RS-8853034",
      "period": "2026-08",
      "vcc_ref": "VCC-8853034",
      "event_type": "auth",
      "amount": 738.91,
      "currency": "EUR",
      "occurred_at": "2026-08-02T14:20:00Z",
      "valid_from": "2026-08-02",
      "valid_to": "2026-08-08",
      "mcc_lock": "7011 lodging",
      "decline_reason": null,
      "issuer_ref": "CNF-853034",
      "source_ref": "feed-2026-08-879"
    },
    {
      "event_id": "CE-880",
      "item_id": "RI-8853034",
      "booking_id": "RS-8853034",
      "period": "2026-08",
      "vcc_ref": "VCC-8853034",
      "event_type": "capture",
      "amount": 888.95,
      "currency": "EUR",
      "occurred_at": "2026-08-05T08:05:00Z",
      "valid_from": "2026-08-02",
      "valid_to": "2026-08-08",
      "mcc_lock": "7011 lodging",
      "decline_reason": null,
      "issuer_ref": "CNF-853034",
      "source_ref": "feed-2026-08-880"
    },
    {
      "event_id": "CE-881",
      "item_id": "RI-8853034",
      "booking_id": "RS-8853034",
      "period": "2026-08",
      "vcc_ref": "VCC-8853034",
      "event_type": "settle",
      "amount": 888.95,
      "currency": "EUR",
      "occurred_at": "2026-08-07T03:00:00Z",
      "valid_from": "2026-08-02",
      "valid_to": "2026-08-08",
      "mcc_lock": "7011 lodging",
      "decline_reason": null,
      "issuer_ref": "CNF-853034",
      "source_ref": "feed-2026-08-881"
    }
  ],
  "folio": [
    {
      "line_id": "FL-RI-8853034-r0",
      "item_id": "RI-8853034",
      "period": "2026-08",
      "line_date": "2026-08-02",
      "line_type": "room",
      "description": "Room charge",
      "amount": 209.67,
      "disputed": 0,
      "received_at": "2026-08-10T07:00:00Z",
      "source_ref": "folio-8853034",
      "folio_id": "folio-8853034"
    },
    {
      "line_id": "FL-RI-8853034-v0",
      "item_id": "RI-8853034",
      "period": "2026-08",
      "line_date": "2026-08-02",
      "line_type": "tax",
      "description": "VAT 13.5%",
      "amount": 28.3,
      "disputed": 0,
      "received_at": "2026-08-10T07:00:00Z",
      "source_ref": "folio-8853034",
      "folio_id": "folio-8853034"
    },
    {
      "line_id": "FL-RI-8853034-r1",
      "item_id": "RI-8853034",
      "period": "2026-08",
      "line_date": "2026-08-03",
      "line_type": "room",
      "description": "Room charge",
      "amount": 209.67,
      "disputed": 0,
      "received_at": "2026-08-10T07:00:00Z",
      "source_ref": "folio-8853034",
      "folio_id": "folio-8853034"
    },
    {
      "line_id": "FL-RI-8853034-v1",
      "item_id": "RI-8853034",
      "period": "2026-08",
      "line_date": "2026-08-03",
      "line_type": "tax",
      "description": "VAT 13.5%",
      "amount": 28.3,
      "disputed": 0,
      "received_at": "2026-08-10T07:00:00Z",
      "source_ref": "folio-8853034",
      "folio_id": "folio-8853034"
    },
    {
      "line_id": "FL-RI-8853034-r2",
      "item_id": "RI-8853034",
      "period": "2026-08",
      "line_date": "2026-08-04",
      "line_type": "room",
      "description": "Room charge",
      "amount": 209.67,
      "disputed": 0,
      "received_at": "2026-08-10T07:00:00Z",
      "source_ref": "folio-8853034",
      "folio_id": "folio-8853034"
    },
    {
      "line_id": "FL-RI-8853034-v2",
      "item_id": "RI-8853034",
      "period": "2026-08",
      "line_date": "2026-08-04",
      "line_type": "tax",
      "description": "VAT 13.5%",
      "amount": 28.3,
      "disputed": 0,
      "received_at": "2026-08-10T07:00:00Z",
      "source_ref": "folio-8853034",
      "folio_id": "folio-8853034"
    },
    {
      "line_id": "FL-RI-8853034-x",
      "item_id": "RI-8853034",
      "period": "2026-08",
      "line_date": "2026-08-05",
      "line_type": "adjustment",
      "description": "Rate adjustment",
      "amount": 175.04,
      "disputed": 0,
      "received_at": "2026-08-10T07:00:00Z",
      "source_ref": "folio-8853034",
      "folio_id": "folio-8853034"
    }
  ],
  "events": [
    {
      "event_id": "RE-RI-8853034-1",
      "item_id": "RI-8853034",
      "period": "2026-08",
      "seq": 1,
      "occurred_at": "2026-08-05T02:10:00Z",
      "event": "opened",
      "actor": "match-engine",
      "actor_type": "rule",
      "note": "Stay complete; reconciliation opened"
    },
    {
      "event_id": "RE-RI-8853034-2",
      "item_id": "RI-8853034",
      "period": "2026-08",
      "seq": 2,
      "occurred_at": "2026-08-07T07:00:00Z",
      "event": "evidence_received",
      "actor": "folio-ingest",
      "actor_type": "rule",
      "note": "Folio received from property"
    },
    {
      "event_id": "RE-RI-8853034-3",
      "item_id": "RI-8853034",
      "period": "2026-08",
      "seq": 3,
      "occurred_at": "2026-08-07T07:05:00Z",
      "event": "variance_detected",
      "actor": "match-engine",
      "actor_type": "rule",
      "note": "amount variance — 175.04 EUR"
    },
    {
      "event_id": "RE-RI-8853034-4",
      "item_id": "RI-8853034",
      "period": "2026-08",
      "seq": 4,
      "occurred_at": "2026-08-08T10:20:00Z",
      "event": "category_assigned",
      "actor": "P. Costa",
      "actor_type": "human",
      "note": "Categorised as rate change"
    }
  ],
  "ledger": [
    {
      "entry_id": "LE-RI-8853034-572",
      "item_id": "RI-8853034",
      "period": "2026-08",
      "legal_entity": "ASL Airlines (Ireland) Ltd",
      "entry_date": "2026-08-02",
      "entry_type": "pending",
      "amount": 738.91,
      "balance_effect": -738.91,
      "description": "Authorization held — Clayton Hotel Dublin Airport",
      "posted_from_period": null
    },
    {
      "entry_id": "LE-RI-8853034-573",
      "item_id": "RI-8853034",
      "period": "2026-08",
      "legal_entity": "ASL Airlines (Ireland) Ltd",
      "entry_date": "2026-08-07",
      "entry_type": "posted",
      "amount": 888.95,
      "balance_effect": 0,
      "description": "Charge posted — Clayton Hotel Dublin Airport",
      "posted_from_period": null
    }
  ],
  "nights": [
    {
      "night": "2026-08-02",
      "room_net": 209.67,
      "vat_amount": 28.3,
      "city_tax": 0,
      "ancillaries": 0,
      "rate_paid": 237.97,
      "hotel": "Clayton Hotel Dublin Airport",
      "duty_reason": "irops",
      "night_status": "occupied",
      "vcc_ref": "VCC-8853034",
      "checkin_time": "05:40",
      "checkout_time": "11:00"
    },
    {
      "night": "2026-08-03",
      "room_net": 209.67,
      "vat_amount": 28.3,
      "city_tax": 0,
      "ancillaries": 0,
      "rate_paid": 237.97,
      "hotel": "Clayton Hotel Dublin Airport",
      "duty_reason": "held",
      "night_status": "occupied",
      "vcc_ref": "VCC-8853034",
      "checkin_time": null,
      "checkout_time": null
    },
    {
      "night": "2026-08-04",
      "room_net": 209.67,
      "vat_amount": 28.3,
      "city_tax": 0,
      "ancillaries": 0,
      "rate_paid": 237.97,
      "hotel": "Clayton Hotel Dublin Airport",
      "duty_reason": "irops",
      "night_status": "occupied",
      "vcc_ref": "VCC-8853034",
      "checkin_time": "05:40",
      "checkout_time": "11:00"
    }
  ],
  "booking": {
    "booking_id": "RS-8853034",
    "layover_id": "L-513035",
    "duty_id": "D-513034",
    "crew_id": "IRE-1018",
    "entity_id": "ASL Airlines Ireland",
    "legal_entity": "ASL Airlines (Ireland) Ltd",
    "station": "DUB",
    "property_id": "P-101",
    "vendor_id": null,
    "contract_id": "C-101",
    "revenue_model": "routespring_contract",
    "channel": "automation",
    "requested_by": "rule:roster-watch",
    "created_at": "2026-08-01T05:40:00Z",
    "check_in": "2026-08-02",
    "check_out": "2026-08-05",
    "nights": 3,
    "room_type": "standard",
    "occupancy": 1,
    "lead_time_hours": 24,
    "confirmation_ref": "CNF-853034",
    "cancellation_deadline": "2026-08-01T18:00:00Z",
    "status": "completed",
    "period": "2026-08",
    "total_amount": 729.88
  },
  "duty": {
    "duty_id": "D-513034",
    "crew_id": "IRE-1018",
    "entity_id": "ASL Airlines Ireland",
    "roster_ref": "AIMS/202608/513034",
    "duty_type": "irops",
    "flight_no": "ABR281",
    "dep_station": "EMA",
    "arr_station": "DUB",
    "duty_start_utc": "2026-08-01T09:40:00Z",
    "duty_end_utc": "2026-08-02T04:50:00Z",
    "duty_hours": 7.47,
    "block_hours": 8.48,
    "source_system": "aims",
    "published_at": "2026-07-18T06:00:00Z",
    "version": 1
  },
  "layover": {
    "layover_id": "L-513035",
    "duty_in": "D-513034",
    "duty_out": "D-513034R",
    "crew_id": "IRE-1018",
    "entity_id": "ASL Airlines Ireland",
    "station": "DUB",
    "rest_starts_utc": "2026-08-02T04:50:00Z",
    "rest_ends_utc": "2026-08-05T08:45:00Z",
    "rest_hours_available": 57.51,
    "sleep_opportunity_hours": 55.77,
    "transfer_in_minutes": 15,
    "transfer_out_minutes": 14,
    "nights": 3,
    "disrupted": 1,
    "period": "2026-08"
  },
  "evaluation": {
    "eval_id": "PE-13035",
    "period": "2026-08",
    "booking_id": "RS-8853034",
    "item_id": "RI-8853034",
    "ruleset": "2026.2",
    "evaluated_at": "2026-08-01T05:37:00Z",
    "channel": "automation",
    "traveller_type": "crew",
    "entity": "ASL Airlines Ireland",
    "station": "DUB",
    "outcome": "soft_breach",
    "breach_count": 2,
    "cost_impact": 91,
    "self_served": 0
  },
  "approval": null,
  "breaches": [
    {
      "breach_id": "PB-6846",
      "eval_id": "PE-13035",
      "period": "2026-08",
      "rule_id": "R-WINDOW",
      "layer": "commercial",
      "severity": "warn",
      "observed": "1 days",
      "limit_value": "48 hours",
      "cost_impact": 91,
      "resolved": "auto_allowed",
      "name": "Advance booking window",
      "authority": "ASL",
      "reference": null
    },
    {
      "breach_id": "PB-D8232",
      "eval_id": "PE-13035",
      "period": "2026-08",
      "rule_id": "R-RECEPTION",
      "layer": "regulatory",
      "severity": "approve",
      "observed": "Arrival 05:40, reception unstaffed",
      "limit_value": "staffed 24h",
      "cost_impact": 0,
      "resolved": "approved",
      "name": "24-hour reception",
      "authority": "ASL",
      "reference": "ASL OM-A 7.5"
    }
  ],
  "changes": [],
  "card": {
    "vcc_ref": "VCC-8853034",
    "booking_id": "RS-8853034",
    "item_id": "RI-8853034",
    "period": "2026-08",
    "issued_at": "2026-08-01T05:40:00Z",
    "issuer": "Routespring card program",
    "limit_amount": 754.88,
    "currency": "EUR",
    "valid_from": "2026-08-02",
    "valid_to": "2026-08-12",
    "grace_days": 7,
    "mcc_lock": "7011 lodging",
    "merchant_lock": "Clayton Hotel Dublin Airport",
    "auth_count": 3,
    "settled_amount": 713.91,
    "status": "settled",
    "closed_at": "2026-08-07T03:00:00Z"
  },
  "folioDoc": {
    "folio_id": "folio-8853034",
    "booking_id": "RS-8853034",
    "item_id": "RI-8853034",
    "property_id": "P-101",
    "period": "2026-08",
    "folio_number": "DUB260802-7537",
    "guest_name": "B. Brennan",
    "check_in": "2026-08-02",
    "check_out": "2026-08-05",
    "issued_at": "2026-08-05T09:30:00Z",
    "received_at": "2026-08-10T07:00:00Z",
    "received_via": "email_pdf",
    "currency": "EUR",
    "stated_total": 888.95,
    "line_count": 7,
    "days_to_receive": 5.29,
    "disputed": 0
  }
}