{
  "item": {
    "item_id": "RI-8854699",
    "period": "2026-08",
    "booking_id": "RS-8854699",
    "duty_id": "D-514699",
    "entity": "ASL Airlines France",
    "legal_entity": "ASL Airlines France SA",
    "crew_name": "D. Bernard",
    "station": "LYS",
    "property_id": "P-130",
    "hotel": "Comfort Hotel Lyon",
    "check_in": "2026-08-22",
    "check_out": "2026-08-26",
    "nights": 4,
    "booking_amount": 1169.38,
    "card_auth": 1194.38,
    "card_settled": 1201.76,
    "folio_amount": 1201.76,
    "variance": 0,
    "variance_pct": 0,
    "variance_category": null,
    "match_state": "matched",
    "exception_type": null,
    "state": "final",
    "resolution": "legitimate",
    "opened_at": "2026-08-26T02:10:00Z",
    "resolved_at": "2026-08-30T11:00:00Z",
    "final_at": "2026-09-25T00:01:00Z",
    "final_due_at": "2026-09-25",
    "age_days": 7,
    "auto_resolved": 1
  },
  "cards": [
    {
      "event_id": "CE-7539",
      "item_id": "RI-8854699",
      "booking_id": "RS-8854699",
      "period": "2026-08",
      "vcc_ref": "VCC-8854699",
      "event_type": "issue",
      "amount": null,
      "currency": "EUR",
      "occurred_at": "2026-08-20T09:00:00Z",
      "valid_from": "2026-08-22",
      "valid_to": "2026-08-29",
      "mcc_lock": "7011 lodging",
      "decline_reason": null,
      "issuer_ref": "CNF-854699",
      "source_ref": "feed-2026-08-7539"
    },
    {
      "event_id": "CE-7540",
      "item_id": "RI-8854699",
      "booking_id": "RS-8854699",
      "period": "2026-08",
      "vcc_ref": "VCC-8854699",
      "event_type": "auth",
      "amount": 1194.38,
      "currency": "EUR",
      "occurred_at": "2026-08-22T14:20:00Z",
      "valid_from": "2026-08-22",
      "valid_to": "2026-08-29",
      "mcc_lock": "7011 lodging",
      "decline_reason": null,
      "issuer_ref": "CNF-854699",
      "source_ref": "feed-2026-08-7540"
    },
    {
      "event_id": "CE-7541",
      "item_id": "RI-8854699",
      "booking_id": "RS-8854699",
      "period": "2026-08",
      "vcc_ref": "VCC-8854699",
      "event_type": "capture",
      "amount": 1201.76,
      "currency": "EUR",
      "occurred_at": "2026-08-26T08:05:00Z",
      "valid_from": "2026-08-22",
      "valid_to": "2026-08-29",
      "mcc_lock": "7011 lodging",
      "decline_reason": null,
      "issuer_ref": "CNF-854699",
      "source_ref": "feed-2026-08-7541"
    },
    {
      "event_id": "CE-7542",
      "item_id": "RI-8854699",
      "booking_id": "RS-8854699",
      "period": "2026-08",
      "vcc_ref": "VCC-8854699",
      "event_type": "settle",
      "amount": 1201.76,
      "currency": "EUR",
      "occurred_at": "2026-08-28T03:00:00Z",
      "valid_from": "2026-08-22",
      "valid_to": "2026-08-29",
      "mcc_lock": "7011 lodging",
      "decline_reason": null,
      "issuer_ref": "CNF-854699",
      "source_ref": "feed-2026-08-7542"
    }
  ],
  "folio": [
    {
      "line_id": "FL-RI-8854699-c0",
      "item_id": "RI-8854699",
      "period": "2026-08",
      "line_date": "2026-08-22",
      "line_type": "fee",
      "description": "City / tourist tax",
      "amount": 3.3,
      "disputed": 0,
      "received_at": "2026-08-31T07:00:00Z",
      "source_ref": "folio-8854699",
      "folio_id": "folio-8854699"
    },
    {
      "line_id": "FL-RI-8854699-r0",
      "item_id": "RI-8854699",
      "period": "2026-08",
      "line_date": "2026-08-22",
      "line_type": "room",
      "description": "Room charge",
      "amount": 234.7,
      "disputed": 0,
      "received_at": "2026-08-31T07:00:00Z",
      "source_ref": "folio-8854699",
      "folio_id": "folio-8854699"
    },
    {
      "line_id": "FL-RI-8854699-v0",
      "item_id": "RI-8854699",
      "period": "2026-08",
      "line_date": "2026-08-22",
      "line_type": "tax",
      "description": "VAT 10%",
      "amount": 23.47,
      "disputed": 0,
      "received_at": "2026-08-31T07:00:00Z",
      "source_ref": "folio-8854699",
      "folio_id": "folio-8854699"
    },
    {
      "line_id": "FL-RI-8854699-c1",
      "item_id": "RI-8854699",
      "period": "2026-08",
      "line_date": "2026-08-23",
      "line_type": "fee",
      "description": "City / tourist tax",
      "amount": 3.3,
      "disputed": 0,
      "received_at": "2026-08-31T07:00:00Z",
      "source_ref": "folio-8854699",
      "folio_id": "folio-8854699"
    },
    {
      "line_id": "FL-RI-8854699-r1",
      "item_id": "RI-8854699",
      "period": "2026-08",
      "line_date": "2026-08-23",
      "line_type": "room",
      "description": "Room charge",
      "amount": 249.55,
      "disputed": 0,
      "received_at": "2026-08-31T07:00:00Z",
      "source_ref": "folio-8854699",
      "folio_id": "folio-8854699"
    },
    {
      "line_id": "FL-RI-8854699-v1",
      "item_id": "RI-8854699",
      "period": "2026-08",
      "line_date": "2026-08-23",
      "line_type": "tax",
      "description": "VAT 10%",
      "amount": 24.96,
      "disputed": 0,
      "received_at": "2026-08-31T07:00:00Z",
      "source_ref": "folio-8854699",
      "folio_id": "folio-8854699"
    },
    {
      "line_id": "FL-RI-8854699-c2",
      "item_id": "RI-8854699",
      "period": "2026-08",
      "line_date": "2026-08-24",
      "line_type": "fee",
      "description": "City / tourist tax",
      "amount": 3.3,
      "disputed": 0,
      "received_at": "2026-08-31T07:00:00Z",
      "source_ref": "folio-8854699",
      "folio_id": "folio-8854699"
    },
    {
      "line_id": "FL-RI-8854699-a2",
      "item_id": "RI-8854699",
      "period": "2026-08",
      "line_date": "2026-08-24",
      "line_type": "incidental",
      "description": "Breakfast",
      "amount": 32.38,
      "disputed": 0,
      "received_at": "2026-08-31T07:00:00Z",
      "source_ref": "folio-8854699",
      "folio_id": "folio-8854699"
    },
    {
      "line_id": "FL-RI-8854699-r2",
      "item_id": "RI-8854699",
      "period": "2026-08",
      "line_date": "2026-08-24",
      "line_type": "room",
      "description": "Room charge",
      "amount": 274.99,
      "disputed": 0,
      "received_at": "2026-08-31T07:00:00Z",
      "source_ref": "folio-8854699",
      "folio_id": "folio-8854699"
    },
    {
      "line_id": "FL-RI-8854699-v2",
      "item_id": "RI-8854699",
      "period": "2026-08",
      "line_date": "2026-08-24",
      "line_type": "tax",
      "description": "VAT 10%",
      "amount": 27.5,
      "disputed": 0,
      "received_at": "2026-08-31T07:00:00Z",
      "source_ref": "folio-8854699",
      "folio_id": "folio-8854699"
    },
    {
      "line_id": "FL-RI-8854699-c3",
      "item_id": "RI-8854699",
      "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-8854699",
      "folio_id": "folio-8854699"
    },
    {
      "line_id": "FL-RI-8854699-r3",
      "item_id": "RI-8854699",
      "period": "2026-08",
      "line_date": "2026-08-25",
      "line_type": "room",
      "description": "Room charge",
      "amount": 291.83,
      "disputed": 0,
      "received_at": "2026-08-31T07:00:00Z",
      "source_ref": "folio-8854699",
      "folio_id": "folio-8854699"
    },
    {
      "line_id": "FL-RI-8854699-v3",
      "item_id": "RI-8854699",
      "period": "2026-08",
      "line_date": "2026-08-25",
      "line_type": "tax",
      "description": "VAT 10%",
      "amount": 29.18,
      "disputed": 0,
      "received_at": "2026-08-31T07:00:00Z",
      "source_ref": "folio-8854699",
      "folio_id": "folio-8854699"
    }
  ],
  "events": [
    {
      "event_id": "RE-RI-8854699-1",
      "item_id": "RI-8854699",
      "period": "2026-08",
      "seq": 1,
      "occurred_at": "2026-08-26T02:10:00Z",
      "event": "opened",
      "actor": "match-engine",
      "actor_type": "rule",
      "note": "Stay complete; reconciliation opened"
    },
    {
      "event_id": "RE-RI-8854699-2",
      "item_id": "RI-8854699",
      "period": "2026-08",
      "seq": 2,
      "occurred_at": "2026-08-28T07:00:00Z",
      "event": "evidence_received",
      "actor": "folio-ingest",
      "actor_type": "rule",
      "note": "Folio received from property"
    },
    {
      "event_id": "RE-RI-8854699-3",
      "item_id": "RI-8854699",
      "period": "2026-08",
      "seq": 3,
      "occurred_at": "2026-08-28T07:05:00Z",
      "event": "matched",
      "actor": "match-engine",
      "actor_type": "rule",
      "note": "Booking, card and folio agree within tolerance"
    },
    {
      "event_id": "RE-RI-8854699-4",
      "item_id": "RI-8854699",
      "period": "2026-08",
      "seq": 4,
      "occurred_at": "2026-09-05T11:00:00Z",
      "event": "resolved",
      "actor": "match-engine",
      "actor_type": "rule",
      "note": "Resolution: legitimate"
    },
    {
      "event_id": "RE-RI-8854699-5",
      "item_id": "RI-8854699",
      "period": "2026-08",
      "seq": 5,
      "occurred_at": "2026-09-25T00: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-8854699-4978",
      "item_id": "RI-8854699",
      "period": "2026-08",
      "legal_entity": "ASL Airlines France SA",
      "entry_date": "2026-08-22",
      "entry_type": "pending",
      "amount": 1194.38,
      "balance_effect": -1194.38,
      "description": "Authorization held — Comfort Hotel Lyon",
      "posted_from_period": null
    },
    {
      "entry_id": "LE-RI-8854699-4979",
      "item_id": "RI-8854699",
      "period": "2026-08",
      "legal_entity": "ASL Airlines France SA",
      "entry_date": "2026-08-28",
      "entry_type": "posted",
      "amount": 1201.76,
      "balance_effect": 0,
      "description": "Charge posted — Comfort Hotel Lyon",
      "posted_from_period": null
    }
  ],
  "nights": [
    {
      "night": "2026-08-22",
      "room_net": 234.7,
      "vat_amount": 23.47,
      "city_tax": 3.3,
      "ancillaries": 0,
      "rate_paid": 261.47,
      "hotel": "Comfort Hotel Lyon",
      "duty_reason": "training",
      "night_status": "occupied",
      "vcc_ref": "VCC-8854699",
      "checkin_time": "05:40",
      "checkout_time": "10:00"
    },
    {
      "night": "2026-08-23",
      "room_net": 249.55,
      "vat_amount": 24.96,
      "city_tax": 3.3,
      "ancillaries": 0,
      "rate_paid": 277.81,
      "hotel": "Comfort Hotel Lyon",
      "duty_reason": "overnight",
      "night_status": "occupied",
      "vcc_ref": "VCC-8854699",
      "checkin_time": "05:40",
      "checkout_time": "10:00"
    },
    {
      "night": "2026-08-24",
      "room_net": 274.99,
      "vat_amount": 27.5,
      "city_tax": 3.3,
      "ancillaries": 32.38,
      "rate_paid": 305.79,
      "hotel": "Comfort Hotel Lyon",
      "duty_reason": "overnight",
      "night_status": "occupied",
      "vcc_ref": "VCC-8854699",
      "checkin_time": "05:40",
      "checkout_time": "10:00"
    },
    {
      "night": "2026-08-25",
      "room_net": 291.83,
      "vat_amount": 29.18,
      "city_tax": 3.3,
      "ancillaries": 0,
      "rate_paid": 324.31,
      "hotel": "Comfort Hotel Lyon",
      "duty_reason": "overnight",
      "night_status": "occupied",
      "vcc_ref": "VCC-8854699",
      "checkin_time": "05:40",
      "checkout_time": "10:00"
    }
  ],
  "booking": {
    "booking_id": "RS-8854699",
    "layover_id": "L-514700",
    "duty_id": "D-514699",
    "crew_id": "FRA-1014",
    "entity_id": "ASL Airlines France",
    "legal_entity": "ASL Airlines France SA",
    "station": "LYS",
    "property_id": "P-130",
    "vendor_id": "VEN-04",
    "contract_id": null,
    "revenue_model": "vendor_commission",
    "channel": "automation",
    "requested_by": "rule:roster-watch",
    "created_at": "2026-08-21T05:40:00Z",
    "check_in": "2026-08-22",
    "check_out": "2026-08-26",
    "nights": 4,
    "room_type": "standard",
    "occupancy": 1,
    "lead_time_hours": 24,
    "confirmation_ref": "CNF-854699",
    "cancellation_deadline": null,
    "status": "completed",
    "period": "2026-08",
    "total_amount": 1217.73
  },
  "duty": {
    "duty_id": "D-514699",
    "crew_id": "FRA-1014",
    "entity_id": "ASL Airlines France",
    "roster_ref": "AIMS/202608/514699",
    "duty_type": "training",
    "flight_no": "FPO219",
    "dep_station": "CDG",
    "arr_station": "LYS",
    "duty_start_utc": "2026-08-21T18:05:00Z",
    "duty_end_utc": "2026-08-22T04:55:00Z",
    "duty_hours": 9.64,
    "block_hours": 4.57,
    "source_system": "aims",
    "published_at": "2026-08-02T06:00:00Z",
    "version": 1
  },
  "layover": {
    "layover_id": "L-514700",
    "duty_in": "D-514699",
    "duty_out": "D-514699R",
    "crew_id": "FRA-1014",
    "entity_id": "ASL Airlines France",
    "station": "LYS",
    "rest_starts_utc": "2026-08-22T04:55:00Z",
    "rest_ends_utc": "2026-08-26T08:45:00Z",
    "rest_hours_available": 81.74,
    "sleep_opportunity_hours": 79.98,
    "transfer_in_minutes": 10,
    "transfer_out_minutes": 10,
    "nights": 4,
    "disrupted": 0,
    "period": "2026-08"
  },
  "evaluation": {
    "eval_id": "PE-14700",
    "period": "2026-08",
    "booking_id": "RS-8854699",
    "item_id": "RI-8854699",
    "ruleset": "2026.2",
    "evaluated_at": "2026-08-21T05:37:00Z",
    "channel": "travel_desk",
    "traveller_type": "crew",
    "entity": "ASL Airlines France",
    "station": "LYS",
    "outcome": "soft_breach",
    "breach_count": 1,
    "cost_impact": 92.2,
    "self_served": 0
  },
  "approval": null,
  "breaches": [
    {
      "breach_id": "PB-7616",
      "eval_id": "PE-14700",
      "period": "2026-08",
      "rule_id": "R-SOURCE",
      "layer": "commercial",
      "severity": "warn",
      "observed": "GDS / last-room",
      "limit_value": "contract > bedbank > GDS",
      "cost_impact": 92.2,
      "resolved": "auto_allowed",
      "name": "Inventory order",
      "authority": "Routespring",
      "reference": null
    }
  ],
  "changes": [],
  "card": {
    "vcc_ref": "VCC-8854699",
    "booking_id": "RS-8854699",
    "item_id": "RI-8854699",
    "period": "2026-08",
    "issued_at": "2026-08-21T05:40:00Z",
    "issuer": "Routespring card program",
    "limit_amount": 1242.73,
    "currency": "EUR",
    "valid_from": "2026-08-22",
    "valid_to": "2026-09-02",
    "grace_days": 7,
    "mcc_lock": "7011 lodging",
    "merchant_lock": "Comfort Hotel Lyon",
    "auth_count": 4,
    "settled_amount": 1201.76,
    "status": "settled",
    "closed_at": "2026-08-28T03:00:00Z"
  },
  "folioDoc": {
    "folio_id": "folio-8854699",
    "booking_id": "RS-8854699",
    "item_id": "RI-8854699",
    "property_id": "P-130",
    "period": "2026-08",
    "folio_number": "LYS260822-2657",
    "guest_name": "D. Bernard",
    "check_in": "2026-08-22",
    "check_out": "2026-08-26",
    "issued_at": "2026-08-26T09:30:00Z",
    "received_at": "2026-08-31T07:00:00Z",
    "received_via": "pms_feed",
    "currency": "EUR",
    "stated_total": 1201.76,
    "line_count": 13,
    "days_to_receive": 5.29,
    "disputed": 0
  }
}