{
  "item": {
    "item_id": "RI-8853824",
    "period": "2026-08",
    "booking_id": "RS-8853824",
    "duty_id": "D-513824",
    "entity": "ASL Airlines Ireland",
    "legal_entity": "ASL Airlines (Ireland) Ltd",
    "crew_name": "D. Nolan",
    "station": "DUB",
    "property_id": "P-101",
    "hotel": "Clayton Hotel Dublin Airport",
    "check_in": "2026-08-17",
    "check_out": "2026-08-19",
    "nights": 2,
    "booking_amount": 474.46,
    "card_auth": 499.46,
    "card_settled": 488.48,
    "folio_amount": 488.48,
    "variance": 0,
    "variance_pct": 0,
    "variance_category": null,
    "match_state": "matched",
    "exception_type": null,
    "state": "final",
    "resolution": "legitimate",
    "opened_at": "2026-08-19T02:10:00Z",
    "resolved_at": "2026-08-28T11:00:00Z",
    "final_at": "2026-09-18T00:01:00Z",
    "final_due_at": "2026-09-18",
    "age_days": 23,
    "auto_resolved": 1
  },
  "cards": [
    {
      "event_id": "CE-4041",
      "item_id": "RI-8853824",
      "booking_id": "RS-8853824",
      "period": "2026-08",
      "vcc_ref": "VCC-8853824",
      "event_type": "issue",
      "amount": null,
      "currency": "EUR",
      "occurred_at": "2026-08-15T09:00:00Z",
      "valid_from": "2026-08-17",
      "valid_to": "2026-08-22",
      "mcc_lock": "7011 lodging",
      "decline_reason": null,
      "issuer_ref": "CNF-853824",
      "source_ref": "feed-2026-08-4041"
    },
    {
      "event_id": "CE-4042",
      "item_id": "RI-8853824",
      "booking_id": "RS-8853824",
      "period": "2026-08",
      "vcc_ref": "VCC-8853824",
      "event_type": "auth",
      "amount": 499.46,
      "currency": "EUR",
      "occurred_at": "2026-08-17T14:20:00Z",
      "valid_from": "2026-08-17",
      "valid_to": "2026-08-22",
      "mcc_lock": "7011 lodging",
      "decline_reason": null,
      "issuer_ref": "CNF-853824",
      "source_ref": "feed-2026-08-4042"
    },
    {
      "event_id": "CE-4043",
      "item_id": "RI-8853824",
      "booking_id": "RS-8853824",
      "period": "2026-08",
      "vcc_ref": "VCC-8853824",
      "event_type": "capture",
      "amount": 488.48,
      "currency": "EUR",
      "occurred_at": "2026-08-19T08:05:00Z",
      "valid_from": "2026-08-17",
      "valid_to": "2026-08-22",
      "mcc_lock": "7011 lodging",
      "decline_reason": null,
      "issuer_ref": "CNF-853824",
      "source_ref": "feed-2026-08-4043"
    },
    {
      "event_id": "CE-4044",
      "item_id": "RI-8853824",
      "booking_id": "RS-8853824",
      "period": "2026-08",
      "vcc_ref": "VCC-8853824",
      "event_type": "settle",
      "amount": 488.48,
      "currency": "EUR",
      "occurred_at": "2026-08-21T03:00:00Z",
      "valid_from": "2026-08-17",
      "valid_to": "2026-08-22",
      "mcc_lock": "7011 lodging",
      "decline_reason": null,
      "issuer_ref": "CNF-853824",
      "source_ref": "feed-2026-08-4044"
    }
  ],
  "folio": [
    {
      "line_id": "FL-RI-8853824-a0",
      "item_id": "RI-8853824",
      "period": "2026-08",
      "line_date": "2026-08-17",
      "line_type": "incidental",
      "description": "Restaurant",
      "amount": 14.02,
      "disputed": 0,
      "received_at": "2026-08-22T07:00:00Z",
      "source_ref": "folio-8853824",
      "folio_id": "folio-8853824"
    },
    {
      "line_id": "FL-RI-8853824-r0",
      "item_id": "RI-8853824",
      "period": "2026-08",
      "line_date": "2026-08-17",
      "line_type": "room",
      "description": "Room charge",
      "amount": 209.01,
      "disputed": 0,
      "received_at": "2026-08-22T07:00:00Z",
      "source_ref": "folio-8853824",
      "folio_id": "folio-8853824"
    },
    {
      "line_id": "FL-RI-8853824-v0",
      "item_id": "RI-8853824",
      "period": "2026-08",
      "line_date": "2026-08-17",
      "line_type": "tax",
      "description": "VAT 13.5%",
      "amount": 28.22,
      "disputed": 0,
      "received_at": "2026-08-22T07:00:00Z",
      "source_ref": "folio-8853824",
      "folio_id": "folio-8853824"
    },
    {
      "line_id": "FL-RI-8853824-r1",
      "item_id": "RI-8853824",
      "period": "2026-08",
      "line_date": "2026-08-18",
      "line_type": "room",
      "description": "Room charge",
      "amount": 209.01,
      "disputed": 0,
      "received_at": "2026-08-22T07:00:00Z",
      "source_ref": "folio-8853824",
      "folio_id": "folio-8853824"
    },
    {
      "line_id": "FL-RI-8853824-v1",
      "item_id": "RI-8853824",
      "period": "2026-08",
      "line_date": "2026-08-18",
      "line_type": "tax",
      "description": "VAT 13.5%",
      "amount": 28.22,
      "disputed": 0,
      "received_at": "2026-08-22T07:00:00Z",
      "source_ref": "folio-8853824",
      "folio_id": "folio-8853824"
    }
  ],
  "events": [
    {
      "event_id": "RE-RI-8853824-1",
      "item_id": "RI-8853824",
      "period": "2026-08",
      "seq": 1,
      "occurred_at": "2026-08-19T02:10:00Z",
      "event": "opened",
      "actor": "match-engine",
      "actor_type": "rule",
      "note": "Stay complete; reconciliation opened"
    },
    {
      "event_id": "RE-RI-8853824-2",
      "item_id": "RI-8853824",
      "period": "2026-08",
      "seq": 2,
      "occurred_at": "2026-08-21T07:00:00Z",
      "event": "evidence_received",
      "actor": "folio-ingest",
      "actor_type": "rule",
      "note": "Folio received from property"
    },
    {
      "event_id": "RE-RI-8853824-3",
      "item_id": "RI-8853824",
      "period": "2026-08",
      "seq": 3,
      "occurred_at": "2026-08-21T07:05:00Z",
      "event": "matched",
      "actor": "match-engine",
      "actor_type": "rule",
      "note": "Booking, card and folio agree within tolerance"
    },
    {
      "event_id": "RE-RI-8853824-4",
      "item_id": "RI-8853824",
      "period": "2026-08",
      "seq": 4,
      "occurred_at": "2026-08-24T11:00:00Z",
      "event": "resolved",
      "actor": "match-engine",
      "actor_type": "rule",
      "note": "Resolution: legitimate"
    },
    {
      "event_id": "RE-RI-8853824-5",
      "item_id": "RI-8853824",
      "period": "2026-08",
      "seq": 5,
      "occurred_at": "2026-09-18T00: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-8853824-2685",
      "item_id": "RI-8853824",
      "period": "2026-08",
      "legal_entity": "ASL Airlines (Ireland) Ltd",
      "entry_date": "2026-08-17",
      "entry_type": "pending",
      "amount": 499.46,
      "balance_effect": -499.46,
      "description": "Authorization held — Clayton Hotel Dublin Airport",
      "posted_from_period": null
    },
    {
      "entry_id": "LE-RI-8853824-2686",
      "item_id": "RI-8853824",
      "period": "2026-08",
      "legal_entity": "ASL Airlines (Ireland) Ltd",
      "entry_date": "2026-08-21",
      "entry_type": "posted",
      "amount": 488.48,
      "balance_effect": 0,
      "description": "Charge posted — Clayton Hotel Dublin Airport",
      "posted_from_period": null
    },
    {
      "entry_id": "LE-RI-8853824-2687",
      "item_id": "RI-8853824",
      "period": "2026-08",
      "legal_entity": "ASL Airlines (Ireland) Ltd",
      "entry_date": "2026-08-21",
      "entry_type": "released",
      "amount": 10.98,
      "balance_effect": 10.98,
      "description": "Unused authorization released",
      "posted_from_period": null
    }
  ],
  "nights": [
    {
      "night": "2026-08-17",
      "room_net": 209.01,
      "vat_amount": 28.22,
      "city_tax": 0,
      "ancillaries": 14.02,
      "rate_paid": 237.23,
      "hotel": "Clayton Hotel Dublin Airport",
      "duty_reason": "positioning",
      "night_status": "occupied",
      "vcc_ref": "VCC-8853824",
      "checkin_time": "16:00",
      "checkout_time": "12:00"
    },
    {
      "night": "2026-08-18",
      "room_net": 209.01,
      "vat_amount": 28.22,
      "city_tax": 0,
      "ancillaries": 0,
      "rate_paid": 237.23,
      "hotel": "Clayton Hotel Dublin Airport",
      "duty_reason": "overnight",
      "night_status": "occupied",
      "vcc_ref": "VCC-8853824",
      "checkin_time": "16:00",
      "checkout_time": "12:00"
    }
  ],
  "booking": {
    "booking_id": "RS-8853824",
    "layover_id": "L-513825",
    "duty_id": "D-513824",
    "crew_id": "IRE-1076",
    "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-14T16:00:00Z",
    "check_in": "2026-08-17",
    "check_out": "2026-08-19",
    "nights": 2,
    "room_type": "standard",
    "occupancy": 1,
    "lead_time_hours": 72,
    "confirmation_ref": "CNF-853824",
    "cancellation_deadline": "2026-08-16T18:00:00Z",
    "status": "completed",
    "period": "2026-08",
    "total_amount": 504.45
  },
  "duty": {
    "duty_id": "D-513824",
    "crew_id": "IRE-1076",
    "entity_id": "ASL Airlines Ireland",
    "roster_ref": "AIMS/202608/513824",
    "duty_type": "positioning",
    "flight_no": "ABR491",
    "dep_station": "EMA",
    "arr_station": "DUB",
    "duty_start_utc": "2026-08-16T15:30:00Z",
    "duty_end_utc": "2026-08-17T15:10:00Z",
    "duty_hours": 9.73,
    "block_hours": 8.05,
    "source_system": "aims",
    "published_at": "2026-08-12T06:00:00Z",
    "version": 1
  },
  "layover": {
    "layover_id": "L-513825",
    "duty_in": "D-513824",
    "duty_out": "D-513824R",
    "crew_id": "IRE-1076",
    "entity_id": "ASL Airlines Ireland",
    "station": "DUB",
    "rest_starts_utc": "2026-08-17T15:10:00Z",
    "rest_ends_utc": "2026-08-19T11:20:00Z",
    "rest_hours_available": 40.2,
    "sleep_opportunity_hours": 38.49,
    "transfer_in_minutes": 15,
    "transfer_out_minutes": 17,
    "nights": 2,
    "disrupted": 0,
    "period": "2026-08"
  },
  "evaluation": {
    "eval_id": "PE-13825",
    "period": "2026-08",
    "booking_id": "RS-8853824",
    "item_id": "RI-8853824",
    "ruleset": "2026.2",
    "evaluated_at": "2026-08-14T15:57:00Z",
    "channel": "automation",
    "traveller_type": "crew",
    "entity": "ASL Airlines Ireland",
    "station": "DUB",
    "outcome": "pass",
    "breach_count": 0,
    "cost_impact": 0,
    "self_served": 0
  },
  "approval": null,
  "breaches": [],
  "changes": [],
  "card": {
    "vcc_ref": "VCC-8853824",
    "booking_id": "RS-8853824",
    "item_id": "RI-8853824",
    "period": "2026-08",
    "issued_at": "2026-08-14T16:00:00Z",
    "issuer": "Routespring card program",
    "limit_amount": 529.45,
    "currency": "EUR",
    "valid_from": "2026-08-17",
    "valid_to": "2026-08-26",
    "grace_days": 7,
    "mcc_lock": "7011 lodging",
    "merchant_lock": "Clayton Hotel Dublin Airport",
    "auth_count": 2,
    "settled_amount": 488.48,
    "status": "authorised",
    "closed_at": "2026-08-21T03:00:00Z"
  },
  "folioDoc": {
    "folio_id": "folio-8853824",
    "booking_id": "RS-8853824",
    "item_id": "RI-8853824",
    "property_id": "P-101",
    "period": "2026-08",
    "folio_number": "DUB260817-9292",
    "guest_name": "D. Nolan",
    "check_in": "2026-08-17",
    "check_out": "2026-08-19",
    "issued_at": "2026-08-19T09:30:00Z",
    "received_at": "2026-08-22T07:00:00Z",
    "received_via": "email_pdf",
    "currency": "EUR",
    "stated_total": 488.48,
    "line_count": 5,
    "days_to_receive": 3.29,
    "disputed": 0
  }
}