{
  "item": {
    "item_id": "RI-8852951",
    "period": "2026-08",
    "booking_id": "RS-8852951",
    "duty_id": "D-512951",
    "entity": "ASL Airlines Ireland",
    "legal_entity": "ASL Airlines (Ireland) Ltd",
    "crew_name": "N. O Conaill",
    "station": "BHX",
    "property_id": "P-114",
    "hotel": "Ibis Birmingham Airport",
    "check_in": "2026-08-02",
    "check_out": "2026-08-03",
    "nights": 1,
    "booking_amount": 257.81,
    "card_auth": 282.81,
    "card_settled": 550.89,
    "folio_amount": 550.89,
    "variance": 281.61,
    "variance_pct": 109.23,
    "variance_category": "tax_fees",
    "match_state": "variance",
    "exception_type": "amount_variance",
    "state": "final",
    "resolution": "written_off",
    "opened_at": "2026-08-03T02:10:00Z",
    "resolved_at": "2026-08-14T11:00:00Z",
    "final_at": "2026-09-02T00:01:00Z",
    "final_due_at": "2026-09-02",
    "age_days": 37,
    "auto_resolved": 0
  },
  "cards": [
    {
      "event_id": "CE-549",
      "item_id": "RI-8852951",
      "booking_id": "RS-8852951",
      "period": "2026-08",
      "vcc_ref": "VCC-8852951",
      "event_type": "issue",
      "amount": null,
      "currency": "EUR",
      "occurred_at": "2026-07-31T09:00:00Z",
      "valid_from": "2026-08-02",
      "valid_to": "2026-08-06",
      "mcc_lock": "7011 lodging",
      "decline_reason": null,
      "issuer_ref": "CNF-852951",
      "source_ref": "feed-2026-08-549"
    },
    {
      "event_id": "CE-550",
      "item_id": "RI-8852951",
      "booking_id": "RS-8852951",
      "period": "2026-08",
      "vcc_ref": "VCC-8852951",
      "event_type": "auth",
      "amount": 282.81,
      "currency": "EUR",
      "occurred_at": "2026-08-02T14:20:00Z",
      "valid_from": "2026-08-02",
      "valid_to": "2026-08-06",
      "mcc_lock": "7011 lodging",
      "decline_reason": null,
      "issuer_ref": "CNF-852951",
      "source_ref": "feed-2026-08-550"
    },
    {
      "event_id": "CE-551",
      "item_id": "RI-8852951",
      "booking_id": "RS-8852951",
      "period": "2026-08",
      "vcc_ref": "VCC-8852951",
      "event_type": "capture",
      "amount": 550.89,
      "currency": "EUR",
      "occurred_at": "2026-08-03T08:05:00Z",
      "valid_from": "2026-08-02",
      "valid_to": "2026-08-06",
      "mcc_lock": "7011 lodging",
      "decline_reason": null,
      "issuer_ref": "CNF-852951",
      "source_ref": "feed-2026-08-551"
    },
    {
      "event_id": "CE-552",
      "item_id": "RI-8852951",
      "booking_id": "RS-8852951",
      "period": "2026-08",
      "vcc_ref": "VCC-8852951",
      "event_type": "settle",
      "amount": 550.89,
      "currency": "EUR",
      "occurred_at": "2026-08-05T03:00:00Z",
      "valid_from": "2026-08-02",
      "valid_to": "2026-08-06",
      "mcc_lock": "7011 lodging",
      "decline_reason": null,
      "issuer_ref": "CNF-852951",
      "source_ref": "feed-2026-08-552"
    }
  ],
  "folio": [
    {
      "line_id": "FL-RI-8852951-a0",
      "item_id": "RI-8852951",
      "period": "2026-08",
      "line_date": "2026-08-02",
      "line_type": "incidental",
      "description": "Restaurant",
      "amount": 11.47,
      "disputed": 0,
      "received_at": "2026-08-06T07:00:00Z",
      "source_ref": "folio-8852951",
      "folio_id": "folio-8852951"
    },
    {
      "line_id": "FL-RI-8852951-r0",
      "item_id": "RI-8852951",
      "period": "2026-08",
      "line_date": "2026-08-02",
      "line_type": "room",
      "description": "Room charge",
      "amount": 214.84,
      "disputed": 0,
      "received_at": "2026-08-06T07:00:00Z",
      "source_ref": "folio-8852951",
      "folio_id": "folio-8852951"
    },
    {
      "line_id": "FL-RI-8852951-v0",
      "item_id": "RI-8852951",
      "period": "2026-08",
      "line_date": "2026-08-02",
      "line_type": "tax",
      "description": "VAT 20%",
      "amount": 42.97,
      "disputed": 0,
      "received_at": "2026-08-06T07:00:00Z",
      "source_ref": "folio-8852951",
      "folio_id": "folio-8852951"
    },
    {
      "line_id": "FL-RI-8852951-x",
      "item_id": "RI-8852951",
      "period": "2026-08",
      "line_date": "2026-08-03",
      "line_type": "adjustment",
      "description": "Destination fee",
      "amount": 281.61,
      "disputed": 0,
      "received_at": "2026-08-06T07:00:00Z",
      "source_ref": "folio-8852951",
      "folio_id": "folio-8852951"
    }
  ],
  "events": [
    {
      "event_id": "RE-RI-8852951-1",
      "item_id": "RI-8852951",
      "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-8852951-2",
      "item_id": "RI-8852951",
      "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-8852951-3",
      "item_id": "RI-8852951",
      "period": "2026-08",
      "seq": 3,
      "occurred_at": "2026-08-05T07:05:00Z",
      "event": "variance_detected",
      "actor": "match-engine",
      "actor_type": "rule",
      "note": "amount variance — 281.61 EUR"
    },
    {
      "event_id": "RE-RI-8852951-4",
      "item_id": "RI-8852951",
      "period": "2026-08",
      "seq": 4,
      "occurred_at": "2026-08-06T10:20:00Z",
      "event": "category_assigned",
      "actor": "P. Costa",
      "actor_type": "human",
      "note": "Categorised as tax fees"
    },
    {
      "event_id": "RE-RI-8852951-5",
      "item_id": "RI-8852951",
      "period": "2026-08",
      "seq": 5,
      "occurred_at": "2026-08-06T11:00:00Z",
      "event": "resolved",
      "actor": "P. Costa",
      "actor_type": "human",
      "note": "Resolution: written_off"
    },
    {
      "event_id": "RE-RI-8852951-6",
      "item_id": "RI-8852951",
      "period": "2026-08",
      "seq": 6,
      "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-8852951-360",
      "item_id": "RI-8852951",
      "period": "2026-08",
      "legal_entity": "ASL Airlines (Ireland) Ltd",
      "entry_date": "2026-08-02",
      "entry_type": "pending",
      "amount": 282.81,
      "balance_effect": -282.81,
      "description": "Authorization held — Ibis Birmingham Airport",
      "posted_from_period": null
    },
    {
      "entry_id": "LE-RI-8852951-361",
      "item_id": "RI-8852951",
      "period": "2026-08",
      "legal_entity": "ASL Airlines (Ireland) Ltd",
      "entry_date": "2026-08-05",
      "entry_type": "posted",
      "amount": 550.89,
      "balance_effect": 0,
      "description": "Charge posted — Ibis Birmingham Airport",
      "posted_from_period": null
    }
  ],
  "nights": [
    {
      "night": "2026-08-02",
      "room_net": 214.84,
      "vat_amount": 42.97,
      "city_tax": 0,
      "ancillaries": 11.47,
      "rate_paid": 257.81,
      "hotel": "Ibis Birmingham Airport",
      "duty_reason": "training",
      "night_status": "occupied",
      "vcc_ref": "VCC-8852951",
      "checkin_time": "05:40",
      "checkout_time": "04:30"
    }
  ],
  "booking": {
    "booking_id": "RS-8852951",
    "layover_id": "L-512952",
    "duty_id": "D-512951",
    "crew_id": "IRE-1001",
    "entity_id": "ASL Airlines Ireland",
    "legal_entity": "ASL Airlines (Ireland) Ltd",
    "station": "BHX",
    "property_id": "P-114",
    "vendor_id": "VEN-01",
    "contract_id": null,
    "revenue_model": "vendor_net",
    "channel": "automation",
    "requested_by": "rule:roster-watch",
    "created_at": "2026-07-28T05:40:00Z",
    "check_in": "2026-08-02",
    "check_out": "2026-08-03",
    "nights": 1,
    "room_type": "standard",
    "occupancy": 1,
    "lead_time_hours": 120,
    "confirmation_ref": "CNF-852951",
    "cancellation_deadline": null,
    "status": "completed",
    "period": "2026-08",
    "total_amount": 285.25
  },
  "duty": {
    "duty_id": "D-512951",
    "crew_id": "IRE-1001",
    "entity_id": "ASL Airlines Ireland",
    "roster_ref": "AIMS/202608/512951",
    "duty_type": "training",
    "flight_no": "ABR691",
    "dep_station": "EMA",
    "arr_station": "BHX",
    "duty_start_utc": "2026-08-01T15:30:00Z",
    "duty_end_utc": "2026-08-02T04:42:00Z",
    "duty_hours": 7.07,
    "block_hours": 4.02,
    "source_system": "aims",
    "published_at": "2026-07-15T06:00:00Z",
    "version": 1
  },
  "layover": {
    "layover_id": "L-512952",
    "duty_in": "D-512951",
    "duty_out": "D-512951R",
    "crew_id": "IRE-1001",
    "entity_id": "ASL Airlines Ireland",
    "station": "BHX",
    "rest_starts_utc": "2026-08-02T04:42:00Z",
    "rest_ends_utc": "2026-08-03T11:20:00Z",
    "rest_hours_available": 15.91,
    "sleep_opportunity_hours": 13.26,
    "transfer_in_minutes": 23,
    "transfer_out_minutes": 22,
    "nights": 1,
    "disrupted": 0,
    "period": "2026-08"
  },
  "evaluation": {
    "eval_id": "PE-12952",
    "period": "2026-08",
    "booking_id": "RS-8852951",
    "item_id": "RI-8852951",
    "ruleset": "2026.2",
    "evaluated_at": "2026-07-28T05:37:00Z",
    "channel": "automation",
    "traveller_type": "crew",
    "entity": "ASL Airlines Ireland",
    "station": "BHX",
    "outcome": "pass",
    "breach_count": 0,
    "cost_impact": 0,
    "self_served": 0
  },
  "approval": null,
  "breaches": [],
  "changes": [],
  "card": {
    "vcc_ref": "VCC-8852951",
    "booking_id": "RS-8852951",
    "item_id": "RI-8852951",
    "period": "2026-08",
    "issued_at": "2026-07-28T05:40:00Z",
    "issuer": "Routespring card program",
    "limit_amount": 310.25,
    "currency": "EUR",
    "valid_from": "2026-08-02",
    "valid_to": "2026-08-10",
    "grace_days": 7,
    "mcc_lock": "7011 lodging",
    "merchant_lock": "Ibis Birmingham Airport",
    "auth_count": 1,
    "settled_amount": 269.28,
    "status": "authorised",
    "closed_at": "2026-08-05T03:00:00Z"
  },
  "folioDoc": {
    "folio_id": "folio-8852951",
    "booking_id": "RS-8852951",
    "item_id": "RI-8852951",
    "property_id": "P-114",
    "period": "2026-08",
    "folio_number": "BHX260802-9434",
    "guest_name": "N. O Conaill",
    "check_in": "2026-08-02",
    "check_out": "2026-08-03",
    "issued_at": "2026-08-03T09:30:00Z",
    "received_at": "2026-08-06T07:00:00Z",
    "received_via": "email_pdf",
    "currency": "EUR",
    "stated_total": 550.89,
    "line_count": 4,
    "days_to_receive": 3.29,
    "disputed": 0
  }
}