{
  "item": {
    "item_id": "RI-8853304",
    "period": "2026-08",
    "booking_id": "RS-8853304",
    "duty_id": "D-513304",
    "entity": "ASL Airlines Ireland",
    "legal_entity": "ASL Airlines (Ireland) Ltd",
    "crew_name": "G. Healy",
    "station": "CGN",
    "property_id": "P-109",
    "hotel": "Novotel Koln City",
    "check_in": "2026-08-05",
    "check_out": "2026-08-07",
    "nights": 2,
    "booking_amount": 583.65,
    "card_auth": 608.65,
    "card_settled": 883.04,
    "folio_amount": 883.04,
    "variance": 267.13,
    "variance_pct": 45.77,
    "variance_category": "extra_night",
    "match_state": "variance",
    "exception_type": "amount_variance",
    "state": "open",
    "resolution": null,
    "opened_at": "2026-08-07T02:10:00Z",
    "resolved_at": null,
    "final_at": null,
    "final_due_at": "2026-09-06",
    "age_days": 29,
    "auto_resolved": 0
  },
  "cards": [
    {
      "event_id": "CE-1959",
      "item_id": "RI-8853304",
      "booking_id": "RS-8853304",
      "period": "2026-08",
      "vcc_ref": "VCC-8853304",
      "event_type": "issue",
      "amount": null,
      "currency": "EUR",
      "occurred_at": "2026-08-03T09:00:00Z",
      "valid_from": "2026-08-05",
      "valid_to": "2026-08-10",
      "mcc_lock": "7011 lodging",
      "decline_reason": null,
      "issuer_ref": "CNF-853304",
      "source_ref": "feed-2026-08-1959"
    },
    {
      "event_id": "CE-1960",
      "item_id": "RI-8853304",
      "booking_id": "RS-8853304",
      "period": "2026-08",
      "vcc_ref": "VCC-8853304",
      "event_type": "auth",
      "amount": 608.65,
      "currency": "EUR",
      "occurred_at": "2026-08-05T14:20:00Z",
      "valid_from": "2026-08-05",
      "valid_to": "2026-08-10",
      "mcc_lock": "7011 lodging",
      "decline_reason": null,
      "issuer_ref": "CNF-853304",
      "source_ref": "feed-2026-08-1960"
    },
    {
      "event_id": "CE-1961",
      "item_id": "RI-8853304",
      "booking_id": "RS-8853304",
      "period": "2026-08",
      "vcc_ref": "VCC-8853304",
      "event_type": "capture",
      "amount": 883.04,
      "currency": "EUR",
      "occurred_at": "2026-08-07T08:05:00Z",
      "valid_from": "2026-08-05",
      "valid_to": "2026-08-10",
      "mcc_lock": "7011 lodging",
      "decline_reason": null,
      "issuer_ref": "CNF-853304",
      "source_ref": "feed-2026-08-1961"
    },
    {
      "event_id": "CE-1962",
      "item_id": "RI-8853304",
      "booking_id": "RS-8853304",
      "period": "2026-08",
      "vcc_ref": "VCC-8853304",
      "event_type": "settle",
      "amount": 883.04,
      "currency": "EUR",
      "occurred_at": "2026-08-09T03:00:00Z",
      "valid_from": "2026-08-05",
      "valid_to": "2026-08-10",
      "mcc_lock": "7011 lodging",
      "decline_reason": null,
      "issuer_ref": "CNF-853304",
      "source_ref": "feed-2026-08-1962"
    }
  ],
  "folio": [
    {
      "line_id": "FL-RI-8853304-c0",
      "item_id": "RI-8853304",
      "period": "2026-08",
      "line_date": "2026-08-05",
      "line_type": "fee",
      "description": "City / tourist tax",
      "amount": 5,
      "disputed": 0,
      "received_at": "2026-08-11T07:00:00Z",
      "source_ref": "folio-8853304",
      "folio_id": "folio-8853304"
    },
    {
      "line_id": "FL-RI-8853304-a0",
      "item_id": "RI-8853304",
      "period": "2026-08",
      "line_date": "2026-08-05",
      "line_type": "incidental",
      "description": "Breakfast",
      "amount": 22.51,
      "disputed": 0,
      "received_at": "2026-08-11T07:00:00Z",
      "source_ref": "folio-8853304",
      "folio_id": "folio-8853304"
    },
    {
      "line_id": "FL-RI-8853304-r0",
      "item_id": "RI-8853304",
      "period": "2026-08",
      "line_date": "2026-08-05",
      "line_type": "room",
      "description": "Room charge",
      "amount": 268.18,
      "disputed": 0,
      "received_at": "2026-08-11T07:00:00Z",
      "source_ref": "folio-8853304",
      "folio_id": "folio-8853304"
    },
    {
      "line_id": "FL-RI-8853304-v0",
      "item_id": "RI-8853304",
      "period": "2026-08",
      "line_date": "2026-08-05",
      "line_type": "tax",
      "description": "VAT 7%",
      "amount": 18.77,
      "disputed": 0,
      "received_at": "2026-08-11T07:00:00Z",
      "source_ref": "folio-8853304",
      "folio_id": "folio-8853304"
    },
    {
      "line_id": "FL-RI-8853304-c1",
      "item_id": "RI-8853304",
      "period": "2026-08",
      "line_date": "2026-08-06",
      "line_type": "fee",
      "description": "City / tourist tax",
      "amount": 5,
      "disputed": 0,
      "received_at": "2026-08-11T07:00:00Z",
      "source_ref": "folio-8853304",
      "folio_id": "folio-8853304"
    },
    {
      "line_id": "FL-RI-8853304-a1",
      "item_id": "RI-8853304",
      "period": "2026-08",
      "line_date": "2026-08-06",
      "line_type": "incidental",
      "description": "Late checkout",
      "amount": 9.75,
      "disputed": 0,
      "received_at": "2026-08-11T07:00:00Z",
      "source_ref": "folio-8853304",
      "folio_id": "folio-8853304"
    },
    {
      "line_id": "FL-RI-8853304-r1",
      "item_id": "RI-8853304",
      "period": "2026-08",
      "line_date": "2026-08-06",
      "line_type": "room",
      "description": "Room charge",
      "amount": 267.94,
      "disputed": 0,
      "received_at": "2026-08-11T07:00:00Z",
      "source_ref": "folio-8853304",
      "folio_id": "folio-8853304"
    },
    {
      "line_id": "FL-RI-8853304-v1",
      "item_id": "RI-8853304",
      "period": "2026-08",
      "line_date": "2026-08-06",
      "line_type": "tax",
      "description": "VAT 7%",
      "amount": 18.76,
      "disputed": 0,
      "received_at": "2026-08-11T07:00:00Z",
      "source_ref": "folio-8853304",
      "folio_id": "folio-8853304"
    },
    {
      "line_id": "FL-RI-8853304-x",
      "item_id": "RI-8853304",
      "period": "2026-08",
      "line_date": "2026-08-07",
      "line_type": "room",
      "description": "Additional night",
      "amount": 267.13,
      "disputed": 0,
      "received_at": "2026-08-11T07:00:00Z",
      "source_ref": "folio-8853304",
      "folio_id": "folio-8853304"
    }
  ],
  "events": [
    {
      "event_id": "RE-RI-8853304-1",
      "item_id": "RI-8853304",
      "period": "2026-08",
      "seq": 1,
      "occurred_at": "2026-08-07T02:10:00Z",
      "event": "opened",
      "actor": "match-engine",
      "actor_type": "rule",
      "note": "Stay complete; reconciliation opened"
    },
    {
      "event_id": "RE-RI-8853304-2",
      "item_id": "RI-8853304",
      "period": "2026-08",
      "seq": 2,
      "occurred_at": "2026-08-09T07:00:00Z",
      "event": "evidence_received",
      "actor": "folio-ingest",
      "actor_type": "rule",
      "note": "Folio received from property"
    },
    {
      "event_id": "RE-RI-8853304-3",
      "item_id": "RI-8853304",
      "period": "2026-08",
      "seq": 3,
      "occurred_at": "2026-08-09T07:05:00Z",
      "event": "variance_detected",
      "actor": "match-engine",
      "actor_type": "rule",
      "note": "amount variance — 267.13 EUR"
    },
    {
      "event_id": "RE-RI-8853304-4",
      "item_id": "RI-8853304",
      "period": "2026-08",
      "seq": 4,
      "occurred_at": "2026-08-10T10:20:00Z",
      "event": "category_assigned",
      "actor": "P. Costa",
      "actor_type": "human",
      "note": "Categorised as extra night"
    }
  ],
  "ledger": [
    {
      "entry_id": "LE-RI-8853304-1296",
      "item_id": "RI-8853304",
      "period": "2026-08",
      "legal_entity": "ASL Airlines (Ireland) Ltd",
      "entry_date": "2026-08-05",
      "entry_type": "pending",
      "amount": 608.65,
      "balance_effect": -608.65,
      "description": "Authorization held — Novotel Koln City",
      "posted_from_period": null
    },
    {
      "entry_id": "LE-RI-8853304-1297",
      "item_id": "RI-8853304",
      "period": "2026-08",
      "legal_entity": "ASL Airlines (Ireland) Ltd",
      "entry_date": "2026-08-09",
      "entry_type": "posted",
      "amount": 883.04,
      "balance_effect": 0,
      "description": "Charge posted — Novotel Koln City",
      "posted_from_period": null
    }
  ],
  "nights": [
    {
      "night": "2026-08-05",
      "room_net": 268.18,
      "vat_amount": 18.77,
      "city_tax": 5,
      "ancillaries": 22.51,
      "rate_paid": 291.95,
      "hotel": "Novotel Koln City",
      "duty_reason": "overnight",
      "night_status": "occupied",
      "vcc_ref": "VCC-8853304",
      "checkin_time": "15:00",
      "checkout_time": "10:00"
    },
    {
      "night": "2026-08-06",
      "room_net": 267.94,
      "vat_amount": 18.76,
      "city_tax": 5,
      "ancillaries": 9.75,
      "rate_paid": 291.7,
      "hotel": "Novotel Koln City",
      "duty_reason": "overnight",
      "night_status": "occupied",
      "vcc_ref": "VCC-8853304",
      "checkin_time": "15:00",
      "checkout_time": "10:00"
    }
  ],
  "booking": {
    "booking_id": "RS-8853304",
    "layover_id": "L-513305",
    "duty_id": "D-513304",
    "crew_id": "IRE-1068",
    "entity_id": "ASL Airlines Ireland",
    "legal_entity": "ASL Airlines (Ireland) Ltd",
    "station": "CGN",
    "property_id": "P-109",
    "vendor_id": "VEN-02",
    "contract_id": null,
    "revenue_model": "vendor_net",
    "channel": "automation",
    "requested_by": "rule:roster-watch",
    "created_at": "2026-07-27T15:00:00Z",
    "check_in": "2026-08-05",
    "check_out": "2026-08-07",
    "nights": 2,
    "room_type": "standard",
    "occupancy": 1,
    "lead_time_hours": 216,
    "confirmation_ref": "CNF-853304",
    "cancellation_deadline": null,
    "status": "completed",
    "period": "2026-08",
    "total_amount": 631.88
  },
  "duty": {
    "duty_id": "D-513304",
    "crew_id": "IRE-1068",
    "entity_id": "ASL Airlines Ireland",
    "roster_ref": "AIMS/202608/513304",
    "duty_type": "overnight",
    "flight_no": "ABR129",
    "dep_station": "DUB",
    "arr_station": "CGN",
    "duty_start_utc": "2026-08-04T15:30:00Z",
    "duty_end_utc": "2026-08-05T13:41:00Z",
    "duty_hours": 6.64,
    "block_hours": 3.32,
    "source_system": "aims",
    "published_at": "2026-07-21T06:00:00Z",
    "version": 1
  },
  "layover": {
    "layover_id": "L-513305",
    "duty_in": "D-513304",
    "duty_out": "D-513304R",
    "crew_id": "IRE-1068",
    "entity_id": "ASL Airlines Ireland",
    "station": "CGN",
    "rest_starts_utc": "2026-08-05T13:41:00Z",
    "rest_ends_utc": "2026-08-07T11:20:00Z",
    "rest_hours_available": 39.41,
    "sleep_opportunity_hours": 36.64,
    "transfer_in_minutes": 44,
    "transfer_out_minutes": 40,
    "nights": 2,
    "disrupted": 0,
    "period": "2026-08"
  },
  "evaluation": {
    "eval_id": "PE-13305",
    "period": "2026-08",
    "booking_id": "RS-8853304",
    "item_id": "RI-8853304",
    "ruleset": "2026.2",
    "evaluated_at": "2026-07-27T14:57:00Z",
    "channel": "automation",
    "traveller_type": "crew",
    "entity": "ASL Airlines Ireland",
    "station": "CGN",
    "outcome": "pass",
    "breach_count": 0,
    "cost_impact": 0,
    "self_served": 0
  },
  "approval": null,
  "breaches": [],
  "changes": [],
  "card": {
    "vcc_ref": "VCC-8853304",
    "booking_id": "RS-8853304",
    "item_id": "RI-8853304",
    "period": "2026-08",
    "issued_at": "2026-07-27T15:00:00Z",
    "issuer": "Routespring card program",
    "limit_amount": 656.88,
    "currency": "EUR",
    "valid_from": "2026-08-05",
    "valid_to": "2026-08-14",
    "grace_days": 7,
    "mcc_lock": "7011 lodging",
    "merchant_lock": "Novotel Koln City",
    "auth_count": 2,
    "settled_amount": 615.91,
    "status": "settled",
    "closed_at": "2026-08-09T03:00:00Z"
  },
  "folioDoc": {
    "folio_id": "folio-8853304",
    "booking_id": "RS-8853304",
    "item_id": "RI-8853304",
    "property_id": "P-109",
    "period": "2026-08",
    "folio_number": "CGN260805-2889",
    "guest_name": "G. Healy",
    "check_in": "2026-08-05",
    "check_out": "2026-08-07",
    "issued_at": "2026-08-07T09:30:00Z",
    "received_at": "2026-08-11T07:00:00Z",
    "received_via": "portal",
    "currency": "EUR",
    "stated_total": 883.04,
    "line_count": 9,
    "days_to_receive": 4.29,
    "disputed": 0
  }
}