{
  "item": {
    "item_id": "RI-8855174",
    "period": "2026-08",
    "booking_id": "RS-8855174",
    "duty_id": "D-515174",
    "entity": "ASL Airlines France",
    "legal_entity": "ASL Airlines France SA",
    "crew_name": "P. Delacroix",
    "station": "LYS",
    "property_id": "P-130",
    "hotel": "Comfort Hotel Lyon",
    "check_in": "2026-08-26",
    "check_out": "2026-08-29",
    "nights": 3,
    "booking_amount": 823.35,
    "card_auth": 848.35,
    "card_settled": 863.58,
    "folio_amount": 863.58,
    "variance": 0,
    "variance_pct": 0,
    "variance_category": null,
    "match_state": "matched",
    "exception_type": null,
    "state": "final",
    "resolution": "legitimate",
    "opened_at": "2026-08-29T02:10:00Z",
    "resolved_at": "2026-09-10T11:00:00Z",
    "final_at": "2026-09-28T00:01:00Z",
    "final_due_at": "2026-09-28",
    "age_days": 29,
    "auto_resolved": 1
  },
  "cards": [
    {
      "event_id": "CE-9443",
      "item_id": "RI-8855174",
      "booking_id": "RS-8855174",
      "period": "2026-08",
      "vcc_ref": "VCC-8855174",
      "event_type": "issue",
      "amount": null,
      "currency": "EUR",
      "occurred_at": "2026-08-24T09:00:00Z",
      "valid_from": "2026-08-26",
      "valid_to": "2026-09-01",
      "mcc_lock": "7011 lodging",
      "decline_reason": null,
      "issuer_ref": "CNF-855174",
      "source_ref": "feed-2026-08-9443"
    },
    {
      "event_id": "CE-9444",
      "item_id": "RI-8855174",
      "booking_id": "RS-8855174",
      "period": "2026-08",
      "vcc_ref": "VCC-8855174",
      "event_type": "auth",
      "amount": 848.35,
      "currency": "EUR",
      "occurred_at": "2026-08-26T14:20:00Z",
      "valid_from": "2026-08-26",
      "valid_to": "2026-09-01",
      "mcc_lock": "7011 lodging",
      "decline_reason": null,
      "issuer_ref": "CNF-855174",
      "source_ref": "feed-2026-08-9444"
    },
    {
      "event_id": "CE-9445",
      "item_id": "RI-8855174",
      "booking_id": "RS-8855174",
      "period": "2026-08",
      "vcc_ref": "VCC-8855174",
      "event_type": "capture",
      "amount": 863.58,
      "currency": "EUR",
      "occurred_at": "2026-08-29T08:05:00Z",
      "valid_from": "2026-08-26",
      "valid_to": "2026-09-01",
      "mcc_lock": "7011 lodging",
      "decline_reason": null,
      "issuer_ref": "CNF-855174",
      "source_ref": "feed-2026-08-9445"
    },
    {
      "event_id": "CE-9446",
      "item_id": "RI-8855174",
      "booking_id": "RS-8855174",
      "period": "2026-08",
      "vcc_ref": "VCC-8855174",
      "event_type": "settle",
      "amount": 863.58,
      "currency": "EUR",
      "occurred_at": "2026-08-31T03:00:00Z",
      "valid_from": "2026-08-26",
      "valid_to": "2026-09-01",
      "mcc_lock": "7011 lodging",
      "decline_reason": null,
      "issuer_ref": "CNF-855174",
      "source_ref": "feed-2026-08-9446"
    }
  ],
  "folio": [
    {
      "line_id": "FL-RI-8855174-c0",
      "item_id": "RI-8855174",
      "period": "2026-08",
      "line_date": "2026-08-26",
      "line_type": "fee",
      "description": "City / tourist tax",
      "amount": 3.3,
      "disputed": 0,
      "received_at": "2026-08-30T07:00:00Z",
      "source_ref": "folio-8855174",
      "folio_id": "folio-8855174"
    },
    {
      "line_id": "FL-RI-8855174-a0",
      "item_id": "RI-8855174",
      "period": "2026-08",
      "line_date": "2026-08-26",
      "line_type": "incidental",
      "description": "Late checkout",
      "amount": 14.35,
      "disputed": 0,
      "received_at": "2026-08-30T07:00:00Z",
      "source_ref": "folio-8855174",
      "folio_id": "folio-8855174"
    },
    {
      "line_id": "FL-RI-8855174-r0",
      "item_id": "RI-8855174",
      "period": "2026-08",
      "line_date": "2026-08-26",
      "line_type": "room",
      "description": "Room charge",
      "amount": 246.5,
      "disputed": 0,
      "received_at": "2026-08-30T07:00:00Z",
      "source_ref": "folio-8855174",
      "folio_id": "folio-8855174"
    },
    {
      "line_id": "FL-RI-8855174-v0",
      "item_id": "RI-8855174",
      "period": "2026-08",
      "line_date": "2026-08-26",
      "line_type": "tax",
      "description": "VAT 10%",
      "amount": 24.65,
      "disputed": 0,
      "received_at": "2026-08-30T07:00:00Z",
      "source_ref": "folio-8855174",
      "folio_id": "folio-8855174"
    },
    {
      "line_id": "FL-RI-8855174-a1",
      "item_id": "RI-8855174",
      "period": "2026-08",
      "line_date": "2026-08-27",
      "line_type": "incidental",
      "description": "Restaurant",
      "amount": 25.88,
      "disputed": 0,
      "received_at": "2026-08-30T07:00:00Z",
      "source_ref": "folio-8855174",
      "folio_id": "folio-8855174"
    },
    {
      "line_id": "FL-RI-8855174-r1",
      "item_id": "RI-8855174",
      "period": "2026-08",
      "line_date": "2026-08-27",
      "line_type": "room",
      "description": "Room charge",
      "amount": 249.5,
      "disputed": 0,
      "received_at": "2026-08-30T07:00:00Z",
      "source_ref": "folio-8855174",
      "folio_id": "folio-8855174"
    },
    {
      "line_id": "FL-RI-8855174-v1",
      "item_id": "RI-8855174",
      "period": "2026-08",
      "line_date": "2026-08-27",
      "line_type": "tax",
      "description": "VAT 10%",
      "amount": 24.95,
      "disputed": 0,
      "received_at": "2026-08-30T07:00:00Z",
      "source_ref": "folio-8855174",
      "folio_id": "folio-8855174"
    },
    {
      "line_id": "FL-RI-8855174-c2",
      "item_id": "RI-8855174",
      "period": "2026-08",
      "line_date": "2026-08-28",
      "line_type": "fee",
      "description": "City / tourist tax",
      "amount": 3.3,
      "disputed": 0,
      "received_at": "2026-08-30T07:00:00Z",
      "source_ref": "folio-8855174",
      "folio_id": "folio-8855174"
    },
    {
      "line_id": "FL-RI-8855174-r2",
      "item_id": "RI-8855174",
      "period": "2026-08",
      "line_date": "2026-08-28",
      "line_type": "room",
      "description": "Room charge",
      "amount": 246.5,
      "disputed": 0,
      "received_at": "2026-08-30T07:00:00Z",
      "source_ref": "folio-8855174",
      "folio_id": "folio-8855174"
    },
    {
      "line_id": "FL-RI-8855174-v2",
      "item_id": "RI-8855174",
      "period": "2026-08",
      "line_date": "2026-08-28",
      "line_type": "tax",
      "description": "VAT 10%",
      "amount": 24.65,
      "disputed": 0,
      "received_at": "2026-08-30T07:00:00Z",
      "source_ref": "folio-8855174",
      "folio_id": "folio-8855174"
    }
  ],
  "events": [
    {
      "event_id": "RE-RI-8855174-1",
      "item_id": "RI-8855174",
      "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-8855174-2",
      "item_id": "RI-8855174",
      "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-8855174-3",
      "item_id": "RI-8855174",
      "period": "2026-08",
      "seq": 3,
      "occurred_at": "2026-08-31T07:05:00Z",
      "event": "matched",
      "actor": "match-engine",
      "actor_type": "rule",
      "note": "Booking, card and folio agree within tolerance"
    },
    {
      "event_id": "RE-RI-8855174-4",
      "item_id": "RI-8855174",
      "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-8855174-5",
      "item_id": "RI-8855174",
      "period": "2026-08",
      "seq": 5,
      "occurred_at": "2026-09-28T00: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-8855174-6216",
      "item_id": "RI-8855174",
      "period": "2026-08",
      "legal_entity": "ASL Airlines France SA",
      "entry_date": "2026-08-26",
      "entry_type": "pending",
      "amount": 848.35,
      "balance_effect": -848.35,
      "description": "Authorization held — Comfort Hotel Lyon",
      "posted_from_period": null
    },
    {
      "entry_id": "LE-RI-8855174-6217",
      "item_id": "RI-8855174",
      "period": "2026-08",
      "legal_entity": "ASL Airlines France SA",
      "entry_date": "2026-08-31",
      "entry_type": "posted",
      "amount": 863.58,
      "balance_effect": 0,
      "description": "Charge posted — Comfort Hotel Lyon",
      "posted_from_period": null
    }
  ],
  "nights": [
    {
      "night": "2026-08-26",
      "room_net": 246.5,
      "vat_amount": 24.65,
      "city_tax": 3.3,
      "ancillaries": 14.35,
      "rate_paid": 274.45,
      "hotel": "Comfort Hotel Lyon",
      "duty_reason": "overnight",
      "night_status": "occupied",
      "vcc_ref": "VCC-8855174",
      "checkin_time": "05:40",
      "checkout_time": "08:15"
    },
    {
      "night": "2026-08-27",
      "room_net": 249.5,
      "vat_amount": 24.95,
      "city_tax": 0,
      "ancillaries": 25.88,
      "rate_paid": 274.45,
      "hotel": "Comfort Hotel Lyon",
      "duty_reason": "held",
      "night_status": "occupied",
      "vcc_ref": "VCC-8855174",
      "checkin_time": null,
      "checkout_time": null
    },
    {
      "night": "2026-08-28",
      "room_net": 246.5,
      "vat_amount": 24.65,
      "city_tax": 3.3,
      "ancillaries": 0,
      "rate_paid": 274.45,
      "hotel": "Comfort Hotel Lyon",
      "duty_reason": "overnight",
      "night_status": "occupied",
      "vcc_ref": "VCC-8855174",
      "checkin_time": "05:40",
      "checkout_time": "08:15"
    }
  ],
  "booking": {
    "booking_id": "RS-8855174",
    "layover_id": "L-515175",
    "duty_id": "D-515174",
    "crew_id": "FRA-S208",
    "entity_id": "ASL Airlines France",
    "legal_entity": "ASL Airlines France SA",
    "station": "LYS",
    "property_id": "P-130",
    "vendor_id": null,
    "contract_id": "C-130",
    "revenue_model": "routespring_contract",
    "channel": "staff_portal",
    "requested_by": "U-103",
    "created_at": "2026-08-21T05:40:00Z",
    "check_in": "2026-08-26",
    "check_out": "2026-08-29",
    "nights": 3,
    "room_type": "standard",
    "occupancy": 1,
    "lead_time_hours": 120,
    "confirmation_ref": "CNF-855174",
    "cancellation_deadline": "2026-08-25T18:00:00Z",
    "status": "completed",
    "period": "2026-08",
    "total_amount": 879.55
  },
  "duty": {
    "duty_id": "D-515174",
    "crew_id": "FRA-S208",
    "entity_id": "ASL Airlines France",
    "roster_ref": "AIMS/202608/515174",
    "duty_type": "overnight",
    "flight_no": "FPO553",
    "dep_station": "CDG",
    "arr_station": "LYS",
    "duty_start_utc": "2026-08-25T15:30:00Z",
    "duty_end_utc": "2026-08-26T04:55:00Z",
    "duty_hours": 11.47,
    "block_hours": 3.12,
    "source_system": "aims",
    "published_at": "2026-08-12T06:00:00Z",
    "version": 1
  },
  "layover": {
    "layover_id": "L-515175",
    "duty_in": "D-515174",
    "duty_out": "D-515174R",
    "crew_id": "FRA-S208",
    "entity_id": "ASL Airlines France",
    "station": "LYS",
    "rest_starts_utc": "2026-08-26T04:55:00Z",
    "rest_ends_utc": "2026-08-29T06:00:00Z",
    "rest_hours_available": 61.55,
    "sleep_opportunity_hours": 60.04,
    "transfer_in_minutes": 10,
    "transfer_out_minutes": 11,
    "nights": 3,
    "disrupted": 0,
    "period": "2026-08"
  },
  "evaluation": {
    "eval_id": "PE-15175",
    "period": "2026-08",
    "booking_id": "RS-8855174",
    "item_id": "RI-8855174",
    "ruleset": "2026.2",
    "evaluated_at": "2026-08-21T05:37:00Z",
    "channel": "staff_portal",
    "traveller_type": "staff",
    "entity": "ASL Airlines France",
    "station": "LYS",
    "outcome": "hard_refusal",
    "breach_count": 1,
    "cost_impact": 823.35,
    "self_served": 0
  },
  "approval": null,
  "breaches": [
    {
      "breach_id": "PB-D8472",
      "eval_id": "PE-15175",
      "period": "2026-08",
      "rule_id": "R-ENTITLE",
      "layer": "entitlement",
      "severity": "block",
      "observed": "Overnight at home base LYS",
      "limit_value": "rest away from base only",
      "cost_impact": 823.35,
      "resolved": "refused",
      "name": "Duty entitlement",
      "authority": "ASL",
      "reference": "ASL OM-A 7.1"
    }
  ],
  "changes": [],
  "card": {
    "vcc_ref": "VCC-8855174",
    "booking_id": "RS-8855174",
    "item_id": "RI-8855174",
    "period": "2026-08",
    "issued_at": "2026-08-21T05:40:00Z",
    "issuer": "Routespring card program",
    "limit_amount": 904.55,
    "currency": "EUR",
    "valid_from": "2026-08-26",
    "valid_to": "2026-09-05",
    "grace_days": 7,
    "mcc_lock": "7011 lodging",
    "merchant_lock": "Comfort Hotel Lyon",
    "auth_count": 3,
    "settled_amount": 863.58,
    "status": "settled",
    "closed_at": "2026-08-31T03:00:00Z"
  },
  "folioDoc": {
    "folio_id": "folio-8855174",
    "booking_id": "RS-8855174",
    "item_id": "RI-8855174",
    "property_id": "P-130",
    "period": "2026-08",
    "folio_number": "LYS260826-2353",
    "guest_name": "P. Delacroix",
    "check_in": "2026-08-26",
    "check_out": "2026-08-29",
    "issued_at": "2026-08-29T09:30:00Z",
    "received_at": "2026-08-30T07:00:00Z",
    "received_via": "portal",
    "currency": "EUR",
    "stated_total": 863.58,
    "line_count": 10,
    "days_to_receive": 1.29,
    "disputed": 0
  }
}