{
  "item": {
    "item_id": "RI-8852980",
    "period": "2026-08",
    "booking_id": "RS-8852980",
    "duty_id": "D-512980",
    "entity": "ASL Airlines Ireland",
    "legal_entity": "ASL Airlines (Ireland) Ltd",
    "crew_name": "H. Doyle",
    "station": "DUB",
    "property_id": "P-102",
    "hotel": "Maldron Hotel Dublin Airport",
    "check_in": "2026-08-03",
    "check_out": "2026-08-06",
    "nights": 3,
    "booking_amount": 854.97,
    "card_auth": 879.97,
    "card_settled": 885.02,
    "folio_amount": 885.02,
    "variance": 0,
    "variance_pct": 0,
    "variance_category": null,
    "match_state": "matched",
    "exception_type": null,
    "state": "resolved",
    "resolution": "legitimate",
    "opened_at": "2026-08-06T02:10:00Z",
    "resolved_at": "2026-08-08T11:00:00Z",
    "final_at": null,
    "final_due_at": "2026-09-05",
    "age_days": 12,
    "auto_resolved": 1
  },
  "cards": [
    {
      "event_id": "CE-665",
      "item_id": "RI-8852980",
      "booking_id": "RS-8852980",
      "period": "2026-08",
      "vcc_ref": "VCC-8852980",
      "event_type": "issue",
      "amount": null,
      "currency": "EUR",
      "occurred_at": "2026-08-01T09:00:00Z",
      "valid_from": "2026-08-03",
      "valid_to": "2026-08-09",
      "mcc_lock": "7011 lodging",
      "decline_reason": null,
      "issuer_ref": "CNF-852980",
      "source_ref": "feed-2026-08-665"
    },
    {
      "event_id": "CE-666",
      "item_id": "RI-8852980",
      "booking_id": "RS-8852980",
      "period": "2026-08",
      "vcc_ref": "VCC-8852980",
      "event_type": "auth",
      "amount": 879.97,
      "currency": "EUR",
      "occurred_at": "2026-08-03T14:20:00Z",
      "valid_from": "2026-08-03",
      "valid_to": "2026-08-09",
      "mcc_lock": "7011 lodging",
      "decline_reason": null,
      "issuer_ref": "CNF-852980",
      "source_ref": "feed-2026-08-666"
    },
    {
      "event_id": "CE-667",
      "item_id": "RI-8852980",
      "booking_id": "RS-8852980",
      "period": "2026-08",
      "vcc_ref": "VCC-8852980",
      "event_type": "capture",
      "amount": 885.02,
      "currency": "EUR",
      "occurred_at": "2026-08-06T08:05:00Z",
      "valid_from": "2026-08-03",
      "valid_to": "2026-08-09",
      "mcc_lock": "7011 lodging",
      "decline_reason": null,
      "issuer_ref": "CNF-852980",
      "source_ref": "feed-2026-08-667"
    },
    {
      "event_id": "CE-668",
      "item_id": "RI-8852980",
      "booking_id": "RS-8852980",
      "period": "2026-08",
      "vcc_ref": "VCC-8852980",
      "event_type": "settle",
      "amount": 885.02,
      "currency": "EUR",
      "occurred_at": "2026-08-08T03:00:00Z",
      "valid_from": "2026-08-03",
      "valid_to": "2026-08-09",
      "mcc_lock": "7011 lodging",
      "decline_reason": null,
      "issuer_ref": "CNF-852980",
      "source_ref": "feed-2026-08-668"
    }
  ],
  "folio": [
    {
      "line_id": "FL-RI-8852980-r0",
      "item_id": "RI-8852980",
      "period": "2026-08",
      "line_date": "2026-08-03",
      "line_type": "room",
      "description": "Room charge",
      "amount": 287.44,
      "disputed": 0,
      "received_at": "2026-08-09T07:00:00Z",
      "source_ref": "folio-8852980",
      "folio_id": "folio-8852980"
    },
    {
      "line_id": "FL-RI-8852980-v0",
      "item_id": "RI-8852980",
      "period": "2026-08",
      "line_date": "2026-08-03",
      "line_type": "tax",
      "description": "VAT 13.5%",
      "amount": 38.81,
      "disputed": 0,
      "received_at": "2026-08-09T07:00:00Z",
      "source_ref": "folio-8852980",
      "folio_id": "folio-8852980"
    },
    {
      "line_id": "FL-RI-8852980-a1",
      "item_id": "RI-8852980",
      "period": "2026-08",
      "line_date": "2026-08-04",
      "line_type": "incidental",
      "description": "Minibar",
      "amount": 30.05,
      "disputed": 0,
      "received_at": "2026-08-09T07:00:00Z",
      "source_ref": "folio-8852980",
      "folio_id": "folio-8852980"
    },
    {
      "line_id": "FL-RI-8852980-r1",
      "item_id": "RI-8852980",
      "period": "2026-08",
      "line_date": "2026-08-04",
      "line_type": "room",
      "description": "Room charge",
      "amount": 232.92,
      "disputed": 0,
      "received_at": "2026-08-09T07:00:00Z",
      "source_ref": "folio-8852980",
      "folio_id": "folio-8852980"
    },
    {
      "line_id": "FL-RI-8852980-v1",
      "item_id": "RI-8852980",
      "period": "2026-08",
      "line_date": "2026-08-04",
      "line_type": "tax",
      "description": "VAT 13.5%",
      "amount": 31.44,
      "disputed": 0,
      "received_at": "2026-08-09T07:00:00Z",
      "source_ref": "folio-8852980",
      "folio_id": "folio-8852980"
    },
    {
      "line_id": "FL-RI-8852980-r2",
      "item_id": "RI-8852980",
      "period": "2026-08",
      "line_date": "2026-08-05",
      "line_type": "room",
      "description": "Room charge",
      "amount": 232.92,
      "disputed": 0,
      "received_at": "2026-08-09T07:00:00Z",
      "source_ref": "folio-8852980",
      "folio_id": "folio-8852980"
    },
    {
      "line_id": "FL-RI-8852980-v2",
      "item_id": "RI-8852980",
      "period": "2026-08",
      "line_date": "2026-08-05",
      "line_type": "tax",
      "description": "VAT 13.5%",
      "amount": 31.44,
      "disputed": 0,
      "received_at": "2026-08-09T07:00:00Z",
      "source_ref": "folio-8852980",
      "folio_id": "folio-8852980"
    }
  ],
  "events": [
    {
      "event_id": "RE-RI-8852980-1",
      "item_id": "RI-8852980",
      "period": "2026-08",
      "seq": 1,
      "occurred_at": "2026-08-06T02:10:00Z",
      "event": "opened",
      "actor": "match-engine",
      "actor_type": "rule",
      "note": "Stay complete; reconciliation opened"
    },
    {
      "event_id": "RE-RI-8852980-2",
      "item_id": "RI-8852980",
      "period": "2026-08",
      "seq": 2,
      "occurred_at": "2026-08-08T07:00:00Z",
      "event": "evidence_received",
      "actor": "folio-ingest",
      "actor_type": "rule",
      "note": "Folio received from property"
    },
    {
      "event_id": "RE-RI-8852980-3",
      "item_id": "RI-8852980",
      "period": "2026-08",
      "seq": 3,
      "occurred_at": "2026-08-08T07:05:00Z",
      "event": "matched",
      "actor": "match-engine",
      "actor_type": "rule",
      "note": "Booking, card and folio agree within tolerance"
    },
    {
      "event_id": "RE-RI-8852980-4",
      "item_id": "RI-8852980",
      "period": "2026-08",
      "seq": 4,
      "occurred_at": "2026-08-09T11:00:00Z",
      "event": "resolved",
      "actor": "match-engine",
      "actor_type": "rule",
      "note": "Resolution: legitimate"
    }
  ],
  "ledger": [
    {
      "entry_id": "LE-RI-8852980-438",
      "item_id": "RI-8852980",
      "period": "2026-08",
      "legal_entity": "ASL Airlines (Ireland) Ltd",
      "entry_date": "2026-08-03",
      "entry_type": "pending",
      "amount": 879.97,
      "balance_effect": -879.97,
      "description": "Authorization held — Maldron Hotel Dublin Airport",
      "posted_from_period": null
    },
    {
      "entry_id": "LE-RI-8852980-439",
      "item_id": "RI-8852980",
      "period": "2026-08",
      "legal_entity": "ASL Airlines (Ireland) Ltd",
      "entry_date": "2026-08-08",
      "entry_type": "posted",
      "amount": 885.02,
      "balance_effect": 0,
      "description": "Charge posted — Maldron Hotel Dublin Airport",
      "posted_from_period": null
    }
  ],
  "nights": [
    {
      "night": "2026-08-03",
      "room_net": 287.44,
      "vat_amount": 38.81,
      "city_tax": 0,
      "ancillaries": 0,
      "rate_paid": 326.25,
      "hotel": "Maldron Hotel Dublin Airport",
      "duty_reason": "training",
      "night_status": "occupied",
      "vcc_ref": "VCC-8852980",
      "checkin_time": "05:40",
      "checkout_time": "04:30"
    },
    {
      "night": "2026-08-04",
      "room_net": 232.92,
      "vat_amount": 31.44,
      "city_tax": 0,
      "ancillaries": 30.05,
      "rate_paid": 264.36,
      "hotel": "Maldron Hotel Dublin Airport",
      "duty_reason": "held",
      "night_status": "occupied",
      "vcc_ref": "VCC-8852980",
      "checkin_time": null,
      "checkout_time": null
    },
    {
      "night": "2026-08-05",
      "room_net": 232.92,
      "vat_amount": 31.44,
      "city_tax": 0,
      "ancillaries": 0,
      "rate_paid": 264.36,
      "hotel": "Maldron Hotel Dublin Airport",
      "duty_reason": "training",
      "night_status": "occupied",
      "vcc_ref": "VCC-8852980",
      "checkin_time": "05:40",
      "checkout_time": "04:30"
    }
  ],
  "booking": {
    "booking_id": "RS-8852980",
    "layover_id": "L-512981",
    "duty_id": "D-512980",
    "crew_id": "IRE-S209",
    "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": "staff_portal",
    "requested_by": "U-101",
    "created_at": "2026-08-01T05:40:00Z",
    "check_in": "2026-08-03",
    "check_out": "2026-08-06",
    "nights": 3,
    "room_type": "standard",
    "occupancy": 1,
    "lead_time_hours": 48,
    "confirmation_ref": "CNF-852980",
    "cancellation_deadline": "2026-08-02T18:00:00Z",
    "status": "completed",
    "period": "2026-08",
    "total_amount": 900.99
  },
  "duty": {
    "duty_id": "D-512980",
    "crew_id": "IRE-S209",
    "entity_id": "ASL Airlines Ireland",
    "roster_ref": "AIMS/202608/512980",
    "duty_type": "training",
    "flight_no": "ABR687",
    "dep_station": "EMA",
    "arr_station": "DUB",
    "duty_start_utc": "2026-08-02T18:05:00Z",
    "duty_end_utc": "2026-08-03T04:42:00Z",
    "duty_hours": 9.46,
    "block_hours": 5.94,
    "source_system": "aims",
    "published_at": "2026-07-16T06:00:00Z",
    "version": 1
  },
  "layover": {
    "layover_id": "L-512981",
    "duty_in": "D-512980",
    "duty_out": "D-512980R",
    "crew_id": "IRE-S209",
    "entity_id": "ASL Airlines Ireland",
    "station": "DUB",
    "rest_starts_utc": "2026-08-03T04:42:00Z",
    "rest_ends_utc": "2026-08-06T06:00:00Z",
    "rest_hours_available": 60.01,
    "sleep_opportunity_hours": 58.1,
    "transfer_in_minutes": 23,
    "transfer_out_minutes": 25,
    "nights": 3,
    "disrupted": 0,
    "period": "2026-08"
  },
  "evaluation": {
    "eval_id": "PE-12981",
    "period": "2026-08",
    "booking_id": "RS-8852980",
    "item_id": "RI-8852980",
    "ruleset": "2026.2",
    "evaluated_at": "2026-08-01T05:37:00Z",
    "channel": "staff_portal",
    "traveller_type": "staff",
    "entity": "ASL Airlines Ireland",
    "station": "DUB",
    "outcome": "soft_breach",
    "breach_count": 1,
    "cost_impact": 61.89,
    "self_served": 0
  },
  "approval": {
    "approval_id": "PA-2761",
    "eval_id": "PE-12981",
    "period": "2026-08",
    "approver": "K. Vermeulen",
    "approver_role": "line_manager",
    "reason": "Rate cap exceeded, no alternative within transfer limit",
    "approved_at": "2026-08-01T05:38:48Z",
    "second_approver": null
  },
  "breaches": [
    {
      "breach_id": "PB-6823",
      "eval_id": "PE-12981",
      "period": "2026-08",
      "rule_id": "R-CAP",
      "layer": "commercial",
      "severity": "approve",
      "observed": "326.25 EUR",
      "limit_value": "294.36 EUR",
      "cost_impact": 61.89,
      "resolved": "approved",
      "name": "Rate cap",
      "authority": "ASL",
      "reference": null
    }
  ],
  "changes": [],
  "card": {
    "vcc_ref": "VCC-8852980",
    "booking_id": "RS-8852980",
    "item_id": "RI-8852980",
    "period": "2026-08",
    "issued_at": "2026-08-01T05:40:00Z",
    "issuer": "Routespring card program",
    "limit_amount": 925.99,
    "currency": "EUR",
    "valid_from": "2026-08-03",
    "valid_to": "2026-08-13",
    "grace_days": 7,
    "mcc_lock": "7011 lodging",
    "merchant_lock": "Maldron Hotel Dublin Airport",
    "auth_count": 3,
    "settled_amount": 885.02,
    "status": "settled",
    "closed_at": "2026-08-08T03:00:00Z"
  },
  "folioDoc": {
    "folio_id": "folio-8852980",
    "booking_id": "RS-8852980",
    "item_id": "RI-8852980",
    "property_id": "P-102",
    "period": "2026-08",
    "folio_number": "DUB260803-7452",
    "guest_name": "H. Doyle",
    "check_in": "2026-08-03",
    "check_out": "2026-08-06",
    "issued_at": "2026-08-06T09:30:00Z",
    "received_at": "2026-08-09T07:00:00Z",
    "received_via": "manual",
    "currency": "EUR",
    "stated_total": 885.02,
    "line_count": 7,
    "days_to_receive": 3.29,
    "disputed": 0
  }
}