{
  "item": {
    "item_id": "RI-8855175",
    "period": "2026-08",
    "booking_id": "RS-8855175",
    "duty_id": "D-515175",
    "entity": "ASL Airlines France",
    "legal_entity": "ASL Airlines France SA",
    "crew_name": "D. Aubert",
    "station": "MRS",
    "property_id": "P-132",
    "hotel": "Holiday Inn Marseille",
    "check_in": "2026-08-25",
    "check_out": "2026-08-29",
    "nights": 4,
    "booking_amount": 1060.84,
    "card_auth": 1085.84,
    "card_settled": 1125.29,
    "folio_amount": 1125.29,
    "variance": 64.45,
    "variance_pct": 6.08,
    "variance_category": "extra_night",
    "match_state": "variance",
    "exception_type": "amount_variance",
    "state": "investigating",
    "resolution": null,
    "opened_at": "2026-08-29T02:10:00Z",
    "resolved_at": null,
    "final_at": null,
    "final_due_at": "2026-09-28",
    "age_days": 17,
    "auto_resolved": 0
  },
  "cards": [
    {
      "event_id": "CE-9447",
      "item_id": "RI-8855175",
      "booking_id": "RS-8855175",
      "period": "2026-08",
      "vcc_ref": "VCC-8855175",
      "event_type": "issue",
      "amount": null,
      "currency": "EUR",
      "occurred_at": "2026-08-23T09:00:00Z",
      "valid_from": "2026-08-25",
      "valid_to": "2026-09-01",
      "mcc_lock": "7011 lodging",
      "decline_reason": null,
      "issuer_ref": "CNF-855175",
      "source_ref": "feed-2026-08-9447"
    },
    {
      "event_id": "CE-9448",
      "item_id": "RI-8855175",
      "booking_id": "RS-8855175",
      "period": "2026-08",
      "vcc_ref": "VCC-8855175",
      "event_type": "auth",
      "amount": 1085.84,
      "currency": "EUR",
      "occurred_at": "2026-08-25T14:20:00Z",
      "valid_from": "2026-08-25",
      "valid_to": "2026-09-01",
      "mcc_lock": "7011 lodging",
      "decline_reason": null,
      "issuer_ref": "CNF-855175",
      "source_ref": "feed-2026-08-9448"
    },
    {
      "event_id": "CE-9449",
      "item_id": "RI-8855175",
      "booking_id": "RS-8855175",
      "period": "2026-08",
      "vcc_ref": "VCC-8855175",
      "event_type": "capture",
      "amount": 1125.29,
      "currency": "EUR",
      "occurred_at": "2026-08-29T08:05:00Z",
      "valid_from": "2026-08-25",
      "valid_to": "2026-09-01",
      "mcc_lock": "7011 lodging",
      "decline_reason": null,
      "issuer_ref": "CNF-855175",
      "source_ref": "feed-2026-08-9449"
    },
    {
      "event_id": "CE-9450",
      "item_id": "RI-8855175",
      "booking_id": "RS-8855175",
      "period": "2026-08",
      "vcc_ref": "VCC-8855175",
      "event_type": "settle",
      "amount": 1125.29,
      "currency": "EUR",
      "occurred_at": "2026-08-31T03:00:00Z",
      "valid_from": "2026-08-25",
      "valid_to": "2026-09-01",
      "mcc_lock": "7011 lodging",
      "decline_reason": null,
      "issuer_ref": "CNF-855175",
      "source_ref": "feed-2026-08-9450"
    }
  ],
  "folio": [
    {
      "line_id": "FL-RI-8855175-c0",
      "item_id": "RI-8855175",
      "period": "2026-08",
      "line_date": "2026-08-25",
      "line_type": "fee",
      "description": "City / tourist tax",
      "amount": 3.3,
      "disputed": 0,
      "received_at": "2026-08-31T07:00:00Z",
      "source_ref": "folio-8855175",
      "folio_id": "folio-8855175"
    },
    {
      "line_id": "FL-RI-8855175-r0",
      "item_id": "RI-8855175",
      "period": "2026-08",
      "line_date": "2026-08-25",
      "line_type": "room",
      "description": "Room charge",
      "amount": 238.1,
      "disputed": 0,
      "received_at": "2026-08-31T07:00:00Z",
      "source_ref": "folio-8855175",
      "folio_id": "folio-8855175"
    },
    {
      "line_id": "FL-RI-8855175-v0",
      "item_id": "RI-8855175",
      "period": "2026-08",
      "line_date": "2026-08-25",
      "line_type": "tax",
      "description": "VAT 10%",
      "amount": 23.81,
      "disputed": 0,
      "received_at": "2026-08-31T07:00:00Z",
      "source_ref": "folio-8855175",
      "folio_id": "folio-8855175"
    },
    {
      "line_id": "FL-RI-8855175-c1",
      "item_id": "RI-8855175",
      "period": "2026-08",
      "line_date": "2026-08-26",
      "line_type": "fee",
      "description": "City / tourist tax",
      "amount": 3.3,
      "disputed": 0,
      "received_at": "2026-08-31T07:00:00Z",
      "source_ref": "folio-8855175",
      "folio_id": "folio-8855175"
    },
    {
      "line_id": "FL-RI-8855175-r1",
      "item_id": "RI-8855175",
      "period": "2026-08",
      "line_date": "2026-08-26",
      "line_type": "room",
      "description": "Room charge",
      "amount": 238.1,
      "disputed": 0,
      "received_at": "2026-08-31T07:00:00Z",
      "source_ref": "folio-8855175",
      "folio_id": "folio-8855175"
    },
    {
      "line_id": "FL-RI-8855175-v1",
      "item_id": "RI-8855175",
      "period": "2026-08",
      "line_date": "2026-08-26",
      "line_type": "tax",
      "description": "VAT 10%",
      "amount": 23.81,
      "disputed": 0,
      "received_at": "2026-08-31T07:00:00Z",
      "source_ref": "folio-8855175",
      "folio_id": "folio-8855175"
    },
    {
      "line_id": "FL-RI-8855175-c2",
      "item_id": "RI-8855175",
      "period": "2026-08",
      "line_date": "2026-08-27",
      "line_type": "fee",
      "description": "City / tourist tax",
      "amount": 3.3,
      "disputed": 0,
      "received_at": "2026-08-31T07:00:00Z",
      "source_ref": "folio-8855175",
      "folio_id": "folio-8855175"
    },
    {
      "line_id": "FL-RI-8855175-r2",
      "item_id": "RI-8855175",
      "period": "2026-08",
      "line_date": "2026-08-27",
      "line_type": "room",
      "description": "Room charge",
      "amount": 238.1,
      "disputed": 0,
      "received_at": "2026-08-31T07:00:00Z",
      "source_ref": "folio-8855175",
      "folio_id": "folio-8855175"
    },
    {
      "line_id": "FL-RI-8855175-v2",
      "item_id": "RI-8855175",
      "period": "2026-08",
      "line_date": "2026-08-27",
      "line_type": "tax",
      "description": "VAT 10%",
      "amount": 23.81,
      "disputed": 0,
      "received_at": "2026-08-31T07:00:00Z",
      "source_ref": "folio-8855175",
      "folio_id": "folio-8855175"
    },
    {
      "line_id": "FL-RI-8855175-c3",
      "item_id": "RI-8855175",
      "period": "2026-08",
      "line_date": "2026-08-28",
      "line_type": "fee",
      "description": "City / tourist tax",
      "amount": 3.3,
      "disputed": 0,
      "received_at": "2026-08-31T07:00:00Z",
      "source_ref": "folio-8855175",
      "folio_id": "folio-8855175"
    },
    {
      "line_id": "FL-RI-8855175-r3",
      "item_id": "RI-8855175",
      "period": "2026-08",
      "line_date": "2026-08-28",
      "line_type": "room",
      "description": "Room charge",
      "amount": 238.1,
      "disputed": 0,
      "received_at": "2026-08-31T07:00:00Z",
      "source_ref": "folio-8855175",
      "folio_id": "folio-8855175"
    },
    {
      "line_id": "FL-RI-8855175-v3",
      "item_id": "RI-8855175",
      "period": "2026-08",
      "line_date": "2026-08-28",
      "line_type": "tax",
      "description": "VAT 10%",
      "amount": 23.81,
      "disputed": 0,
      "received_at": "2026-08-31T07:00:00Z",
      "source_ref": "folio-8855175",
      "folio_id": "folio-8855175"
    },
    {
      "line_id": "FL-RI-8855175-x",
      "item_id": "RI-8855175",
      "period": "2026-08",
      "line_date": "2026-08-29",
      "line_type": "room",
      "description": "Additional night",
      "amount": 64.45,
      "disputed": 0,
      "received_at": "2026-08-31T07:00:00Z",
      "source_ref": "folio-8855175",
      "folio_id": "folio-8855175"
    }
  ],
  "events": [
    {
      "event_id": "RE-RI-8855175-1",
      "item_id": "RI-8855175",
      "period": "2026-08",
      "seq": 1,
      "occurred_at": "2026-08-29T02:10:00Z",
      "event": "opened",
      "actor": "match-engine",
      "actor_type": "rule",
      "note": "Stay complete; reconciliation opened"
    },
    {
      "event_id": "RE-RI-8855175-2",
      "item_id": "RI-8855175",
      "period": "2026-08",
      "seq": 2,
      "occurred_at": "2026-08-31T07:00:00Z",
      "event": "evidence_received",
      "actor": "folio-ingest",
      "actor_type": "rule",
      "note": "Folio received from property"
    },
    {
      "event_id": "RE-RI-8855175-3",
      "item_id": "RI-8855175",
      "period": "2026-08",
      "seq": 3,
      "occurred_at": "2026-08-31T07:05:00Z",
      "event": "variance_detected",
      "actor": "match-engine",
      "actor_type": "rule",
      "note": "amount variance — 64.45 EUR"
    },
    {
      "event_id": "RE-RI-8855175-4",
      "item_id": "RI-8855175",
      "period": "2026-08",
      "seq": 4,
      "occurred_at": "2026-09-01T10:20:00Z",
      "event": "category_assigned",
      "actor": "R. Menon",
      "actor_type": "human",
      "note": "Categorised as extra night"
    }
  ],
  "ledger": [
    {
      "entry_id": "LE-RI-8855175-6218",
      "item_id": "RI-8855175",
      "period": "2026-08",
      "legal_entity": "ASL Airlines France SA",
      "entry_date": "2026-08-25",
      "entry_type": "pending",
      "amount": 1085.84,
      "balance_effect": -1085.84,
      "description": "Authorization held — Holiday Inn Marseille",
      "posted_from_period": null
    },
    {
      "entry_id": "LE-RI-8855175-6219",
      "item_id": "RI-8855175",
      "period": "2026-08",
      "legal_entity": "ASL Airlines France SA",
      "entry_date": "2026-08-31",
      "entry_type": "posted",
      "amount": 1125.29,
      "balance_effect": 0,
      "description": "Charge posted — Holiday Inn Marseille",
      "posted_from_period": null
    }
  ],
  "nights": [
    {
      "night": "2026-08-25",
      "room_net": 238.1,
      "vat_amount": 23.81,
      "city_tax": 3.3,
      "ancillaries": 0,
      "rate_paid": 265.21,
      "hotel": "Holiday Inn Marseille",
      "duty_reason": "irops",
      "night_status": "occupied",
      "vcc_ref": "VCC-8855175",
      "checkin_time": "14:00",
      "checkout_time": "10:00"
    },
    {
      "night": "2026-08-26",
      "room_net": 238.1,
      "vat_amount": 23.81,
      "city_tax": 3.3,
      "ancillaries": 0,
      "rate_paid": 265.21,
      "hotel": "Holiday Inn Marseille",
      "duty_reason": "irops",
      "night_status": "occupied",
      "vcc_ref": "VCC-8855175",
      "checkin_time": "14:00",
      "checkout_time": "10:00"
    },
    {
      "night": "2026-08-27",
      "room_net": 238.1,
      "vat_amount": 23.81,
      "city_tax": 3.3,
      "ancillaries": 0,
      "rate_paid": 265.21,
      "hotel": "Holiday Inn Marseille",
      "duty_reason": "irops",
      "night_status": "occupied",
      "vcc_ref": "VCC-8855175",
      "checkin_time": "14:00",
      "checkout_time": "10:00"
    },
    {
      "night": "2026-08-28",
      "room_net": 238.1,
      "vat_amount": 23.81,
      "city_tax": 3.3,
      "ancillaries": 0,
      "rate_paid": 265.21,
      "hotel": "Holiday Inn Marseille",
      "duty_reason": "irops",
      "night_status": "occupied",
      "vcc_ref": "VCC-8855175",
      "checkin_time": "14:00",
      "checkout_time": "10:00"
    }
  ],
  "booking": {
    "booking_id": "RS-8855175",
    "layover_id": "L-515176",
    "duty_id": "D-515175",
    "crew_id": "FRA-1022",
    "entity_id": "ASL Airlines France",
    "legal_entity": "ASL Airlines France SA",
    "station": "MRS",
    "property_id": "P-132",
    "vendor_id": null,
    "contract_id": "C-132",
    "revenue_model": "airline_contract",
    "channel": "automation",
    "requested_by": "rule:roster-watch",
    "created_at": "2026-08-25T02:00:00Z",
    "check_in": "2026-08-25",
    "check_out": "2026-08-29",
    "nights": 4,
    "room_type": "standard",
    "occupancy": 1,
    "lead_time_hours": 12,
    "confirmation_ref": "CNF-855175",
    "cancellation_deadline": "2026-08-23T18:00:00Z",
    "status": "completed",
    "period": "2026-08",
    "total_amount": 1076.81
  },
  "duty": {
    "duty_id": "D-515175",
    "crew_id": "FRA-1022",
    "entity_id": "ASL Airlines France",
    "roster_ref": "AIMS/202608/515175",
    "duty_type": "irops",
    "flight_no": "FPO141",
    "dep_station": "LYS",
    "arr_station": "MRS",
    "duty_start_utc": "2026-08-24T18:05:00Z",
    "duty_end_utc": "2026-08-25T13:09:00Z",
    "duty_hours": 11.97,
    "block_hours": 6.99,
    "source_system": "aims",
    "published_at": "2026-08-13T06:00:00Z",
    "version": 1
  },
  "layover": {
    "layover_id": "L-515176",
    "duty_in": "D-515175",
    "duty_out": "D-515175R",
    "crew_id": "FRA-1022",
    "entity_id": "ASL Airlines France",
    "station": "MRS",
    "rest_starts_utc": "2026-08-25T13:09:00Z",
    "rest_ends_utc": "2026-08-29T11:20:00Z",
    "rest_hours_available": 83.2,
    "sleep_opportunity_hours": 81.55,
    "transfer_in_minutes": 16,
    "transfer_out_minutes": 17,
    "nights": 4,
    "disrupted": 1,
    "period": "2026-08"
  },
  "evaluation": {
    "eval_id": "PE-15176",
    "period": "2026-08",
    "booking_id": "RS-8855175",
    "item_id": "RI-8855175",
    "ruleset": "2026.2",
    "evaluated_at": "2026-08-25T01:57:00Z",
    "channel": "automation",
    "traveller_type": "crew",
    "entity": "ASL Airlines France",
    "station": "MRS",
    "outcome": "soft_breach",
    "breach_count": 1,
    "cost_impact": 89.27,
    "self_served": 0
  },
  "approval": null,
  "breaches": [
    {
      "breach_id": "PB-7822",
      "eval_id": "PE-15176",
      "period": "2026-08",
      "rule_id": "R-WINDOW",
      "layer": "commercial",
      "severity": "warn",
      "observed": "0.5 days",
      "limit_value": "48 hours",
      "cost_impact": 89.27,
      "resolved": "auto_allowed",
      "name": "Advance booking window",
      "authority": "ASL",
      "reference": null
    }
  ],
  "changes": [
    {
      "change_id": "BC-1858",
      "booking_id": "RS-8855175",
      "period": "2026-08",
      "occurred_at": "2026-08-25T06:12:00Z",
      "change_type": "modify_in_place",
      "source": "aims",
      "trigger": "irops",
      "modify_attempted": 1,
      "failed_reason": null,
      "hours_before_checkin": 53.91,
      "cutoff_hours": 48,
      "cost": 18.15,
      "room_lost": 0,
      "resolved_by": "automation",
      "resolved_at": null,
      "sla_breached": 0
    }
  ],
  "card": {
    "vcc_ref": "VCC-8855175",
    "booking_id": "RS-8855175",
    "item_id": "RI-8855175",
    "period": "2026-08",
    "issued_at": "2026-08-25T02:00:00Z",
    "issuer": "Routespring card program",
    "limit_amount": 1101.81,
    "currency": "EUR",
    "valid_from": "2026-08-25",
    "valid_to": "2026-09-05",
    "grace_days": 7,
    "mcc_lock": "7011 lodging",
    "merchant_lock": "Holiday Inn Marseille",
    "auth_count": 4,
    "settled_amount": 1218.31,
    "status": "authorised",
    "closed_at": "2026-08-31T03:00:00Z"
  },
  "folioDoc": {
    "folio_id": "folio-8855175",
    "booking_id": "RS-8855175",
    "item_id": "RI-8855175",
    "property_id": "P-132",
    "period": "2026-08",
    "folio_number": "MRS260825-6257",
    "guest_name": "D. Aubert",
    "check_in": "2026-08-25",
    "check_out": "2026-08-29",
    "issued_at": "2026-08-29T09:30:00Z",
    "received_at": "2026-08-31T07:00:00Z",
    "received_via": "portal",
    "currency": "EUR",
    "stated_total": 1125.29,
    "line_count": 13,
    "days_to_receive": 2.29,
    "disputed": 0
  }
}