{
  "item": {
    "item_id": "RI-8853013",
    "period": "2026-08",
    "booking_id": "RS-8853013",
    "duty_id": "D-513013",
    "entity": "ASL Airlines Ireland",
    "legal_entity": "ASL Airlines (Ireland) Ltd",
    "crew_name": "L. Cassidy",
    "station": "BHX",
    "property_id": "P-113",
    "hotel": "Novotel Birmingham Airport",
    "check_in": "2026-08-12",
    "check_out": "2026-08-15",
    "nights": 3,
    "booking_amount": 839.88,
    "card_auth": 864.88,
    "card_settled": 854.51,
    "folio_amount": 854.51,
    "variance": 0,
    "variance_pct": 0,
    "variance_category": null,
    "match_state": "matched",
    "exception_type": null,
    "state": "resolved",
    "resolution": "legitimate",
    "opened_at": "2026-08-15T02:10:00Z",
    "resolved_at": "2026-08-22T11:00:00Z",
    "final_at": null,
    "final_due_at": "2026-09-14",
    "age_days": 40,
    "auto_resolved": 1
  },
  "cards": [
    {
      "event_id": "CE-794",
      "item_id": "RI-8853013",
      "booking_id": "RS-8853013",
      "period": "2026-08",
      "vcc_ref": "VCC-8853013",
      "event_type": "issue",
      "amount": null,
      "currency": "EUR",
      "occurred_at": "2026-08-10T09:00:00Z",
      "valid_from": "2026-08-12",
      "valid_to": "2026-08-18",
      "mcc_lock": "7011 lodging",
      "decline_reason": null,
      "issuer_ref": "CNF-853013",
      "source_ref": "feed-2026-08-794"
    },
    {
      "event_id": "CE-795",
      "item_id": "RI-8853013",
      "booking_id": "RS-8853013",
      "period": "2026-08",
      "vcc_ref": "VCC-8853013",
      "event_type": "auth",
      "amount": 864.88,
      "currency": "EUR",
      "occurred_at": "2026-08-12T14:20:00Z",
      "valid_from": "2026-08-12",
      "valid_to": "2026-08-18",
      "mcc_lock": "7011 lodging",
      "decline_reason": null,
      "issuer_ref": "CNF-853013",
      "source_ref": "feed-2026-08-795"
    },
    {
      "event_id": "CE-796",
      "item_id": "RI-8853013",
      "booking_id": "RS-8853013",
      "period": "2026-08",
      "vcc_ref": "VCC-8853013",
      "event_type": "capture",
      "amount": 854.51,
      "currency": "EUR",
      "occurred_at": "2026-08-15T08:05:00Z",
      "valid_from": "2026-08-12",
      "valid_to": "2026-08-18",
      "mcc_lock": "7011 lodging",
      "decline_reason": null,
      "issuer_ref": "CNF-853013",
      "source_ref": "feed-2026-08-796"
    },
    {
      "event_id": "CE-797",
      "item_id": "RI-8853013",
      "booking_id": "RS-8853013",
      "period": "2026-08",
      "vcc_ref": "VCC-8853013",
      "event_type": "settle",
      "amount": 854.51,
      "currency": "EUR",
      "occurred_at": "2026-08-17T03:00:00Z",
      "valid_from": "2026-08-12",
      "valid_to": "2026-08-18",
      "mcc_lock": "7011 lodging",
      "decline_reason": null,
      "issuer_ref": "CNF-853013",
      "source_ref": "feed-2026-08-797"
    }
  ],
  "folio": [
    {
      "line_id": "FL-RI-8853013-a0",
      "item_id": "RI-8853013",
      "period": "2026-08",
      "line_date": "2026-08-12",
      "line_type": "incidental",
      "description": "Minibar",
      "amount": 14.63,
      "disputed": 0,
      "received_at": "2026-08-17T07:00:00Z",
      "source_ref": "folio-8853013",
      "folio_id": "folio-8853013"
    },
    {
      "line_id": "FL-RI-8853013-r0",
      "item_id": "RI-8853013",
      "period": "2026-08",
      "line_date": "2026-08-12",
      "line_type": "room",
      "description": "Room charge",
      "amount": 233.3,
      "disputed": 0,
      "received_at": "2026-08-17T07:00:00Z",
      "source_ref": "folio-8853013",
      "folio_id": "folio-8853013"
    },
    {
      "line_id": "FL-RI-8853013-v0",
      "item_id": "RI-8853013",
      "period": "2026-08",
      "line_date": "2026-08-12",
      "line_type": "tax",
      "description": "VAT 20%",
      "amount": 46.66,
      "disputed": 0,
      "received_at": "2026-08-17T07:00:00Z",
      "source_ref": "folio-8853013",
      "folio_id": "folio-8853013"
    },
    {
      "line_id": "FL-RI-8853013-r1",
      "item_id": "RI-8853013",
      "period": "2026-08",
      "line_date": "2026-08-13",
      "line_type": "room",
      "description": "Room charge",
      "amount": 233.3,
      "disputed": 0,
      "received_at": "2026-08-17T07:00:00Z",
      "source_ref": "folio-8853013",
      "folio_id": "folio-8853013"
    },
    {
      "line_id": "FL-RI-8853013-v1",
      "item_id": "RI-8853013",
      "period": "2026-08",
      "line_date": "2026-08-13",
      "line_type": "tax",
      "description": "VAT 20%",
      "amount": 46.66,
      "disputed": 0,
      "received_at": "2026-08-17T07:00:00Z",
      "source_ref": "folio-8853013",
      "folio_id": "folio-8853013"
    },
    {
      "line_id": "FL-RI-8853013-r2",
      "item_id": "RI-8853013",
      "period": "2026-08",
      "line_date": "2026-08-14",
      "line_type": "room",
      "description": "Room charge",
      "amount": 233.3,
      "disputed": 0,
      "received_at": "2026-08-17T07:00:00Z",
      "source_ref": "folio-8853013",
      "folio_id": "folio-8853013"
    },
    {
      "line_id": "FL-RI-8853013-v2",
      "item_id": "RI-8853013",
      "period": "2026-08",
      "line_date": "2026-08-14",
      "line_type": "tax",
      "description": "VAT 20%",
      "amount": 46.66,
      "disputed": 0,
      "received_at": "2026-08-17T07:00:00Z",
      "source_ref": "folio-8853013",
      "folio_id": "folio-8853013"
    }
  ],
  "events": [
    {
      "event_id": "RE-RI-8853013-1",
      "item_id": "RI-8853013",
      "period": "2026-08",
      "seq": 1,
      "occurred_at": "2026-08-15T02:10:00Z",
      "event": "opened",
      "actor": "match-engine",
      "actor_type": "rule",
      "note": "Stay complete; reconciliation opened"
    },
    {
      "event_id": "RE-RI-8853013-2",
      "item_id": "RI-8853013",
      "period": "2026-08",
      "seq": 2,
      "occurred_at": "2026-08-17T07:00:00Z",
      "event": "evidence_received",
      "actor": "folio-ingest",
      "actor_type": "rule",
      "note": "Folio received from property"
    },
    {
      "event_id": "RE-RI-8853013-3",
      "item_id": "RI-8853013",
      "period": "2026-08",
      "seq": 3,
      "occurred_at": "2026-08-17T07:05:00Z",
      "event": "matched",
      "actor": "match-engine",
      "actor_type": "rule",
      "note": "Booking, card and folio agree within tolerance"
    },
    {
      "event_id": "RE-RI-8853013-4",
      "item_id": "RI-8853013",
      "period": "2026-08",
      "seq": 4,
      "occurred_at": "2026-08-17T11:00:00Z",
      "event": "resolved",
      "actor": "match-engine",
      "actor_type": "rule",
      "note": "Resolution: legitimate"
    }
  ],
  "ledger": [
    {
      "entry_id": "LE-RI-8853013-520",
      "item_id": "RI-8853013",
      "period": "2026-08",
      "legal_entity": "ASL Airlines (Ireland) Ltd",
      "entry_date": "2026-08-12",
      "entry_type": "pending",
      "amount": 864.88,
      "balance_effect": -864.88,
      "description": "Authorization held — Novotel Birmingham Airport",
      "posted_from_period": null
    },
    {
      "entry_id": "LE-RI-8853013-521",
      "item_id": "RI-8853013",
      "period": "2026-08",
      "legal_entity": "ASL Airlines (Ireland) Ltd",
      "entry_date": "2026-08-17",
      "entry_type": "posted",
      "amount": 854.51,
      "balance_effect": 0,
      "description": "Charge posted — Novotel Birmingham Airport",
      "posted_from_period": null
    },
    {
      "entry_id": "LE-RI-8853013-522",
      "item_id": "RI-8853013",
      "period": "2026-08",
      "legal_entity": "ASL Airlines (Ireland) Ltd",
      "entry_date": "2026-08-17",
      "entry_type": "released",
      "amount": 10.37,
      "balance_effect": 10.37,
      "description": "Unused authorization released",
      "posted_from_period": null
    }
  ],
  "nights": [
    {
      "night": "2026-08-12",
      "room_net": 233.3,
      "vat_amount": 46.66,
      "city_tax": 0,
      "ancillaries": 14.63,
      "rate_paid": 279.96,
      "hotel": "Novotel Birmingham Airport",
      "duty_reason": "positioning",
      "night_status": "occupied",
      "vcc_ref": "VCC-8853013",
      "checkin_time": "05:40",
      "checkout_time": "08:15"
    },
    {
      "night": "2026-08-13",
      "room_net": 233.3,
      "vat_amount": 46.66,
      "city_tax": 0,
      "ancillaries": 0,
      "rate_paid": 279.96,
      "hotel": "Novotel Birmingham Airport",
      "duty_reason": "held",
      "night_status": "occupied",
      "vcc_ref": "VCC-8853013",
      "checkin_time": null,
      "checkout_time": null
    },
    {
      "night": "2026-08-14",
      "room_net": 233.3,
      "vat_amount": 46.66,
      "city_tax": 0,
      "ancillaries": 0,
      "rate_paid": 279.96,
      "hotel": "Novotel Birmingham Airport",
      "duty_reason": "overnight",
      "night_status": "occupied",
      "vcc_ref": "VCC-8853013",
      "checkin_time": "05:40",
      "checkout_time": "08:15"
    }
  ],
  "booking": {
    "booking_id": "RS-8853013",
    "layover_id": "L-513014",
    "duty_id": "D-513013",
    "crew_id": "IRE-1046",
    "entity_id": "ASL Airlines Ireland",
    "legal_entity": "ASL Airlines (Ireland) Ltd",
    "station": "BHX",
    "property_id": "P-113",
    "vendor_id": null,
    "contract_id": "C-113",
    "revenue_model": "airline_contract",
    "channel": "automation",
    "requested_by": "rule:roster-watch",
    "created_at": "2026-08-11T17:40:00Z",
    "check_in": "2026-08-12",
    "check_out": "2026-08-15",
    "nights": 3,
    "room_type": "standard",
    "occupancy": 1,
    "lead_time_hours": 12,
    "confirmation_ref": "CNF-853013",
    "cancellation_deadline": "2026-08-11T18:00:00Z",
    "status": "completed",
    "period": "2026-08",
    "total_amount": 870.48
  },
  "duty": {
    "duty_id": "D-513013",
    "crew_id": "IRE-1046",
    "entity_id": "ASL Airlines Ireland",
    "roster_ref": "AIMS/202608/513013",
    "duty_type": "positioning",
    "flight_no": "ABR281",
    "dep_station": "DUB",
    "arr_station": "BHX",
    "duty_start_utc": "2026-08-11T15:30:00Z",
    "duty_end_utc": "2026-08-12T04:41:00Z",
    "duty_hours": 8.21,
    "block_hours": 4.05,
    "source_system": "aims",
    "published_at": "2026-07-27T06:00:00Z",
    "version": 1
  },
  "layover": {
    "layover_id": "L-513014",
    "duty_in": "D-513013",
    "duty_out": "D-513013R",
    "crew_id": "IRE-1046",
    "entity_id": "ASL Airlines Ireland",
    "station": "BHX",
    "rest_starts_utc": "2026-08-12T04:41:00Z",
    "rest_ends_utc": "2026-08-15T06:00:00Z",
    "rest_hours_available": 62.12,
    "sleep_opportunity_hours": 59.42,
    "transfer_in_minutes": 24,
    "transfer_out_minutes": 25,
    "nights": 3,
    "disrupted": 0,
    "period": "2026-08"
  },
  "evaluation": {
    "eval_id": "PE-13014",
    "period": "2026-08",
    "booking_id": "RS-8853013",
    "item_id": "RI-8853013",
    "ruleset": "2026.2",
    "evaluated_at": "2026-08-11T17:37:00Z",
    "channel": "automation",
    "traveller_type": "crew",
    "entity": "ASL Airlines Ireland",
    "station": "BHX",
    "outcome": "soft_breach",
    "breach_count": 1,
    "cost_impact": 87.52,
    "self_served": 0
  },
  "approval": null,
  "breaches": [
    {
      "breach_id": "PB-6836",
      "eval_id": "PE-13014",
      "period": "2026-08",
      "rule_id": "R-WINDOW",
      "layer": "commercial",
      "severity": "warn",
      "observed": "0.5 days",
      "limit_value": "48 hours",
      "cost_impact": 87.52,
      "resolved": "auto_allowed",
      "name": "Advance booking window",
      "authority": "ASL",
      "reference": null
    }
  ],
  "changes": [
    {
      "change_id": "BC-1562",
      "booking_id": "RS-8853013",
      "period": "2026-08",
      "occurred_at": "2026-08-12T21:05:00Z",
      "change_type": "cancel_rebook",
      "source": "aims",
      "trigger": "roster_change",
      "modify_attempted": 1,
      "failed_reason": "no_availability",
      "hours_before_checkin": 96.39,
      "cutoff_hours": 18,
      "cost": 200.38,
      "room_lost": 1,
      "resolved_by": "human",
      "resolved_at": "2026-08-12T18:40:00Z",
      "sla_breached": 0
    }
  ],
  "card": {
    "vcc_ref": "VCC-8853013",
    "booking_id": "RS-8853013",
    "item_id": "RI-8853013",
    "period": "2026-08",
    "issued_at": "2026-08-11T17:40:00Z",
    "issuer": "Routespring card program",
    "limit_amount": 895.48,
    "currency": "EUR",
    "valid_from": "2026-08-12",
    "valid_to": "2026-08-22",
    "grace_days": 7,
    "mcc_lock": "7011 lodging",
    "merchant_lock": "Novotel Birmingham Airport",
    "auth_count": 3,
    "settled_amount": 854.51,
    "status": "authorised",
    "closed_at": "2026-08-17T03:00:00Z"
  },
  "folioDoc": {
    "folio_id": "folio-8853013",
    "booking_id": "RS-8853013",
    "item_id": "RI-8853013",
    "property_id": "P-113",
    "period": "2026-08",
    "folio_number": "BHX260812-7178",
    "guest_name": "L. Cassidy",
    "check_in": "2026-08-12",
    "check_out": "2026-08-15",
    "issued_at": "2026-08-15T09:30:00Z",
    "received_at": "2026-08-17T07:00:00Z",
    "received_via": "pms_feed",
    "currency": "EUR",
    "stated_total": 854.51,
    "line_count": 7,
    "days_to_receive": 2.29,
    "disputed": 0
  }
}