{
  "item": {
    "item_id": "RI-8853257",
    "period": "2026-08",
    "booking_id": "RS-8853257",
    "duty_id": "D-513257",
    "entity": "ASL Airlines Ireland",
    "legal_entity": "ASL Airlines (Ireland) Ltd",
    "crew_name": "D. Byrne",
    "station": "CGN",
    "property_id": "P-107",
    "hotel": "Ibis Koln Messe",
    "check_in": "2026-08-12",
    "check_out": "2026-08-15",
    "nights": 3,
    "booking_amount": 856.77,
    "card_auth": 881.77,
    "card_settled": 1218.43,
    "folio_amount": 1218.43,
    "variance": 333.24,
    "variance_pct": 38.89,
    "variance_category": "tax_fees",
    "match_state": "variance",
    "exception_type": "amount_variance",
    "state": "explained",
    "resolution": null,
    "opened_at": "2026-08-15T02:10:00Z",
    "resolved_at": null,
    "final_at": null,
    "final_due_at": "2026-09-14",
    "age_days": 10,
    "auto_resolved": 0
  },
  "cards": [
    {
      "event_id": "CE-1768",
      "item_id": "RI-8853257",
      "booking_id": "RS-8853257",
      "period": "2026-08",
      "vcc_ref": "VCC-8853257",
      "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-853257",
      "source_ref": "feed-2026-08-1768"
    },
    {
      "event_id": "CE-1769",
      "item_id": "RI-8853257",
      "booking_id": "RS-8853257",
      "period": "2026-08",
      "vcc_ref": "VCC-8853257",
      "event_type": "auth",
      "amount": 881.77,
      "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-853257",
      "source_ref": "feed-2026-08-1769"
    },
    {
      "event_id": "CE-1770",
      "item_id": "RI-8853257",
      "booking_id": "RS-8853257",
      "period": "2026-08",
      "vcc_ref": "VCC-8853257",
      "event_type": "capture",
      "amount": 1218.43,
      "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-853257",
      "source_ref": "feed-2026-08-1770"
    },
    {
      "event_id": "CE-1771",
      "item_id": "RI-8853257",
      "booking_id": "RS-8853257",
      "period": "2026-08",
      "vcc_ref": "VCC-8853257",
      "event_type": "settle",
      "amount": 1218.43,
      "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-853257",
      "source_ref": "feed-2026-08-1771"
    }
  ],
  "folio": [
    {
      "line_id": "FL-RI-8853257-c0",
      "item_id": "RI-8853257",
      "period": "2026-08",
      "line_date": "2026-08-12",
      "line_type": "fee",
      "description": "City / tourist tax",
      "amount": 5,
      "disputed": 0,
      "received_at": "2026-08-21T07:00:00Z",
      "source_ref": "folio-8853257",
      "folio_id": "folio-8853257"
    },
    {
      "line_id": "FL-RI-8853257-a0",
      "item_id": "RI-8853257",
      "period": "2026-08",
      "line_date": "2026-08-12",
      "line_type": "incidental",
      "description": "Restaurant",
      "amount": 28.42,
      "disputed": 0,
      "received_at": "2026-08-21T07:00:00Z",
      "source_ref": "folio-8853257",
      "folio_id": "folio-8853257"
    },
    {
      "line_id": "FL-RI-8853257-r0",
      "item_id": "RI-8853257",
      "period": "2026-08",
      "line_date": "2026-08-12",
      "line_type": "room",
      "description": "Room charge",
      "amount": 268.86,
      "disputed": 0,
      "received_at": "2026-08-21T07:00:00Z",
      "source_ref": "folio-8853257",
      "folio_id": "folio-8853257"
    },
    {
      "line_id": "FL-RI-8853257-v0",
      "item_id": "RI-8853257",
      "period": "2026-08",
      "line_date": "2026-08-12",
      "line_type": "tax",
      "description": "VAT 7%",
      "amount": 18.82,
      "disputed": 0,
      "received_at": "2026-08-21T07:00:00Z",
      "source_ref": "folio-8853257",
      "folio_id": "folio-8853257"
    },
    {
      "line_id": "FL-RI-8853257-c1",
      "item_id": "RI-8853257",
      "period": "2026-08",
      "line_date": "2026-08-13",
      "line_type": "fee",
      "description": "City / tourist tax",
      "amount": 5,
      "disputed": 0,
      "received_at": "2026-08-21T07:00:00Z",
      "source_ref": "folio-8853257",
      "folio_id": "folio-8853257"
    },
    {
      "line_id": "FL-RI-8853257-r1",
      "item_id": "RI-8853257",
      "period": "2026-08",
      "line_date": "2026-08-13",
      "line_type": "room",
      "description": "Room charge",
      "amount": 269.21,
      "disputed": 0,
      "received_at": "2026-08-21T07:00:00Z",
      "source_ref": "folio-8853257",
      "folio_id": "folio-8853257"
    },
    {
      "line_id": "FL-RI-8853257-v1",
      "item_id": "RI-8853257",
      "period": "2026-08",
      "line_date": "2026-08-13",
      "line_type": "tax",
      "description": "VAT 7%",
      "amount": 18.84,
      "disputed": 0,
      "received_at": "2026-08-21T07:00:00Z",
      "source_ref": "folio-8853257",
      "folio_id": "folio-8853257"
    },
    {
      "line_id": "FL-RI-8853257-c2",
      "item_id": "RI-8853257",
      "period": "2026-08",
      "line_date": "2026-08-14",
      "line_type": "fee",
      "description": "City / tourist tax",
      "amount": 5,
      "disputed": 0,
      "received_at": "2026-08-21T07:00:00Z",
      "source_ref": "folio-8853257",
      "folio_id": "folio-8853257"
    },
    {
      "line_id": "FL-RI-8853257-r2",
      "item_id": "RI-8853257",
      "period": "2026-08",
      "line_date": "2026-08-14",
      "line_type": "room",
      "description": "Room charge",
      "amount": 248.64,
      "disputed": 0,
      "received_at": "2026-08-21T07:00:00Z",
      "source_ref": "folio-8853257",
      "folio_id": "folio-8853257"
    },
    {
      "line_id": "FL-RI-8853257-v2",
      "item_id": "RI-8853257",
      "period": "2026-08",
      "line_date": "2026-08-14",
      "line_type": "tax",
      "description": "VAT 7%",
      "amount": 17.4,
      "disputed": 0,
      "received_at": "2026-08-21T07:00:00Z",
      "source_ref": "folio-8853257",
      "folio_id": "folio-8853257"
    },
    {
      "line_id": "FL-RI-8853257-x",
      "item_id": "RI-8853257",
      "period": "2026-08",
      "line_date": "2026-08-15",
      "line_type": "adjustment",
      "description": "Destination fee",
      "amount": 333.24,
      "disputed": 0,
      "received_at": "2026-08-21T07:00:00Z",
      "source_ref": "folio-8853257",
      "folio_id": "folio-8853257"
    }
  ],
  "events": [
    {
      "event_id": "RE-RI-8853257-1",
      "item_id": "RI-8853257",
      "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-8853257-2",
      "item_id": "RI-8853257",
      "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-8853257-3",
      "item_id": "RI-8853257",
      "period": "2026-08",
      "seq": 3,
      "occurred_at": "2026-08-17T07:05:00Z",
      "event": "variance_detected",
      "actor": "match-engine",
      "actor_type": "rule",
      "note": "amount variance — 333.24 EUR"
    },
    {
      "event_id": "RE-RI-8853257-4",
      "item_id": "RI-8853257",
      "period": "2026-08",
      "seq": 4,
      "occurred_at": "2026-08-18T10:20:00Z",
      "event": "category_assigned",
      "actor": "R. Menon",
      "actor_type": "human",
      "note": "Categorised as tax fees"
    }
  ],
  "ledger": [
    {
      "entry_id": "LE-RI-8853257-1167",
      "item_id": "RI-8853257",
      "period": "2026-08",
      "legal_entity": "ASL Airlines (Ireland) Ltd",
      "entry_date": "2026-08-12",
      "entry_type": "pending",
      "amount": 881.77,
      "balance_effect": -881.77,
      "description": "Authorization held — Ibis Koln Messe",
      "posted_from_period": null
    },
    {
      "entry_id": "LE-RI-8853257-1168",
      "item_id": "RI-8853257",
      "period": "2026-08",
      "legal_entity": "ASL Airlines (Ireland) Ltd",
      "entry_date": "2026-08-17",
      "entry_type": "posted",
      "amount": 1218.43,
      "balance_effect": 0,
      "description": "Charge posted — Ibis Koln Messe",
      "posted_from_period": null
    }
  ],
  "nights": [
    {
      "night": "2026-08-12",
      "room_net": 268.86,
      "vat_amount": 18.82,
      "city_tax": 5,
      "ancillaries": 28.42,
      "rate_paid": 292.68,
      "hotel": "Ibis Koln Messe",
      "duty_reason": "overnight",
      "night_status": "occupied",
      "vcc_ref": "VCC-8853257",
      "checkin_time": "05:40",
      "checkout_time": "10:00"
    },
    {
      "night": "2026-08-13",
      "room_net": 269.21,
      "vat_amount": 18.84,
      "city_tax": 5,
      "ancillaries": 0,
      "rate_paid": 293.05,
      "hotel": "Ibis Koln Messe",
      "duty_reason": "overnight",
      "night_status": "occupied",
      "vcc_ref": "VCC-8853257",
      "checkin_time": "05:40",
      "checkout_time": "10:00"
    },
    {
      "night": "2026-08-14",
      "room_net": 248.64,
      "vat_amount": 17.4,
      "city_tax": 5,
      "ancillaries": 0,
      "rate_paid": 271.04,
      "hotel": "Ibis Koln Messe",
      "duty_reason": "overnight",
      "night_status": "occupied",
      "vcc_ref": "VCC-8853257",
      "checkin_time": "05:40",
      "checkout_time": "10:00"
    }
  ],
  "booking": {
    "booking_id": "RS-8853257",
    "layover_id": "L-513258",
    "duty_id": "D-513257",
    "crew_id": "IRE-1000",
    "entity_id": "ASL Airlines Ireland",
    "legal_entity": "ASL Airlines (Ireland) Ltd",
    "station": "CGN",
    "property_id": "P-107",
    "vendor_id": "VEN-01",
    "contract_id": null,
    "revenue_model": "vendor_net",
    "channel": "automation",
    "requested_by": "rule:roster-watch",
    "created_at": "2026-08-07T05:40:00Z",
    "check_in": "2026-08-12",
    "check_out": "2026-08-15",
    "nights": 3,
    "room_type": "superior",
    "occupancy": 1,
    "lead_time_hours": 120,
    "confirmation_ref": "CNF-853257",
    "cancellation_deadline": null,
    "status": "completed",
    "period": "2026-08",
    "total_amount": 901.16
  },
  "duty": {
    "duty_id": "D-513257",
    "crew_id": "IRE-1000",
    "entity_id": "ASL Airlines Ireland",
    "roster_ref": "AIMS/202608/513257",
    "duty_type": "overnight",
    "flight_no": "ABR782",
    "dep_station": "DUB",
    "arr_station": "CGN",
    "duty_start_utc": "2026-08-11T15:30:00Z",
    "duty_end_utc": "2026-08-12T04:55:00Z",
    "duty_hours": 12.16,
    "block_hours": 5.32,
    "source_system": "aims",
    "published_at": "2026-08-03T06:00:00Z",
    "version": 1
  },
  "layover": {
    "layover_id": "L-513258",
    "duty_in": "D-513257",
    "duty_out": "D-513257R",
    "crew_id": "IRE-1000",
    "entity_id": "ASL Airlines Ireland",
    "station": "CGN",
    "rest_starts_utc": "2026-08-12T04:55:00Z",
    "rest_ends_utc": "2026-08-15T11:20:00Z",
    "rest_hours_available": 60.41,
    "sleep_opportunity_hours": 58.47,
    "transfer_in_minutes": 10,
    "transfer_out_minutes": 9,
    "nights": 3,
    "disrupted": 0,
    "period": "2026-08"
  },
  "evaluation": {
    "eval_id": "PE-13258",
    "period": "2026-08",
    "booking_id": "RS-8853257",
    "item_id": "RI-8853257",
    "ruleset": "2026.2",
    "evaluated_at": "2026-08-07T05:37:00Z",
    "channel": "automation",
    "traveller_type": "crew",
    "entity": "ASL Airlines Ireland",
    "station": "CGN",
    "outcome": "soft_breach",
    "breach_count": 1,
    "cost_impact": 67.84,
    "self_served": 0
  },
  "approval": {
    "approval_id": "PA-2806",
    "eval_id": "PE-13258",
    "period": "2026-08",
    "approver": "R. Menon",
    "approver_role": "travel_desk",
    "reason": "Crew rest would otherwise be compromised",
    "approved_at": "2026-08-07T05:38:48Z",
    "second_approver": null
  },
  "breaches": [
    {
      "breach_id": "PB-6948",
      "eval_id": "PE-13258",
      "period": "2026-08",
      "rule_id": "R-PREF",
      "layer": "commercial",
      "severity": "approve",
      "observed": "Booked away from preferred order",
      "limit_value": "preferred order",
      "cost_impact": 67.84,
      "resolved": "approved",
      "name": "Preferred property order",
      "authority": "Routespring",
      "reference": null
    }
  ],
  "changes": [],
  "card": {
    "vcc_ref": "VCC-8853257",
    "booking_id": "RS-8853257",
    "item_id": "RI-8853257",
    "period": "2026-08",
    "issued_at": "2026-08-07T05:40:00Z",
    "issuer": "Routespring card program",
    "limit_amount": 926.16,
    "currency": "EUR",
    "valid_from": "2026-08-12",
    "valid_to": "2026-08-22",
    "grace_days": 7,
    "mcc_lock": "7011 lodging",
    "merchant_lock": "Ibis Koln Messe",
    "auth_count": 3,
    "settled_amount": 885.19,
    "status": "settled",
    "closed_at": "2026-08-17T03:00:00Z"
  },
  "folioDoc": {
    "folio_id": "folio-8853257",
    "booking_id": "RS-8853257",
    "item_id": "RI-8853257",
    "property_id": "P-107",
    "period": "2026-08",
    "folio_number": "CGN260812-3633",
    "guest_name": "D. Byrne",
    "check_in": "2026-08-12",
    "check_out": "2026-08-15",
    "issued_at": "2026-08-15T09:30:00Z",
    "received_at": "2026-08-21T07:00:00Z",
    "received_via": "portal",
    "currency": "EUR",
    "stated_total": 1218.43,
    "line_count": 11,
    "days_to_receive": 6.29,
    "disputed": 0
  }
}