{
  "item": {
    "item_id": "RI-8855169",
    "period": "2026-08",
    "booking_id": "RS-8855169",
    "duty_id": "D-515169",
    "entity": "ASL Airlines France",
    "legal_entity": "ASL Airlines France SA",
    "crew_name": "C. Chevalier",
    "station": "MRS",
    "property_id": "P-131",
    "hotel": "Best Western Marseille Airport",
    "check_in": "2026-08-12",
    "check_out": "2026-08-13",
    "nights": 1,
    "booking_amount": 295.56,
    "card_auth": 320.56,
    "card_settled": 327.97,
    "folio_amount": 327.97,
    "variance": 0,
    "variance_pct": 0,
    "variance_category": null,
    "match_state": "matched",
    "exception_type": null,
    "state": "final",
    "resolution": "legitimate",
    "opened_at": "2026-08-13T02:10:00Z",
    "resolved_at": "2026-08-18T11:00:00Z",
    "final_at": "2026-09-12T00:01:00Z",
    "final_due_at": "2026-09-12",
    "age_days": 17,
    "auto_resolved": 1
  },
  "cards": [
    {
      "event_id": "CE-9423",
      "item_id": "RI-8855169",
      "booking_id": "RS-8855169",
      "period": "2026-08",
      "vcc_ref": "VCC-8855169",
      "event_type": "issue",
      "amount": null,
      "currency": "EUR",
      "occurred_at": "2026-08-10T09:00:00Z",
      "valid_from": "2026-08-12",
      "valid_to": "2026-08-16",
      "mcc_lock": "7011 lodging",
      "decline_reason": null,
      "issuer_ref": "CNF-855169",
      "source_ref": "feed-2026-08-9423"
    },
    {
      "event_id": "CE-9424",
      "item_id": "RI-8855169",
      "booking_id": "RS-8855169",
      "period": "2026-08",
      "vcc_ref": "VCC-8855169",
      "event_type": "auth",
      "amount": 320.56,
      "currency": "EUR",
      "occurred_at": "2026-08-12T14:20:00Z",
      "valid_from": "2026-08-12",
      "valid_to": "2026-08-16",
      "mcc_lock": "7011 lodging",
      "decline_reason": null,
      "issuer_ref": "CNF-855169",
      "source_ref": "feed-2026-08-9424"
    },
    {
      "event_id": "CE-9425",
      "item_id": "RI-8855169",
      "booking_id": "RS-8855169",
      "period": "2026-08",
      "vcc_ref": "VCC-8855169",
      "event_type": "capture",
      "amount": 327.97,
      "currency": "EUR",
      "occurred_at": "2026-08-13T08:05:00Z",
      "valid_from": "2026-08-12",
      "valid_to": "2026-08-16",
      "mcc_lock": "7011 lodging",
      "decline_reason": null,
      "issuer_ref": "CNF-855169",
      "source_ref": "feed-2026-08-9425"
    },
    {
      "event_id": "CE-9426",
      "item_id": "RI-8855169",
      "booking_id": "RS-8855169",
      "period": "2026-08",
      "vcc_ref": "VCC-8855169",
      "event_type": "settle",
      "amount": 327.97,
      "currency": "EUR",
      "occurred_at": "2026-08-15T03:00:00Z",
      "valid_from": "2026-08-12",
      "valid_to": "2026-08-16",
      "mcc_lock": "7011 lodging",
      "decline_reason": null,
      "issuer_ref": "CNF-855169",
      "source_ref": "feed-2026-08-9426"
    }
  ],
  "folio": [
    {
      "line_id": "FL-RI-8855169-c0",
      "item_id": "RI-8855169",
      "period": "2026-08",
      "line_date": "2026-08-12",
      "line_type": "fee",
      "description": "City / tourist tax",
      "amount": 3.3,
      "disputed": 0,
      "received_at": "2026-08-19T07:00:00Z",
      "source_ref": "folio-8855169",
      "folio_id": "folio-8855169"
    },
    {
      "line_id": "FL-RI-8855169-a0",
      "item_id": "RI-8855169",
      "period": "2026-08",
      "line_date": "2026-08-12",
      "line_type": "incidental",
      "description": "Minibar",
      "amount": 32.41,
      "disputed": 0,
      "received_at": "2026-08-19T07:00:00Z",
      "source_ref": "folio-8855169",
      "folio_id": "folio-8855169"
    },
    {
      "line_id": "FL-RI-8855169-r0",
      "item_id": "RI-8855169",
      "period": "2026-08",
      "line_date": "2026-08-12",
      "line_type": "room",
      "description": "Room charge",
      "amount": 265.69,
      "disputed": 0,
      "received_at": "2026-08-19T07:00:00Z",
      "source_ref": "folio-8855169",
      "folio_id": "folio-8855169"
    },
    {
      "line_id": "FL-RI-8855169-v0",
      "item_id": "RI-8855169",
      "period": "2026-08",
      "line_date": "2026-08-12",
      "line_type": "tax",
      "description": "VAT 10%",
      "amount": 26.57,
      "disputed": 0,
      "received_at": "2026-08-19T07:00:00Z",
      "source_ref": "folio-8855169",
      "folio_id": "folio-8855169"
    }
  ],
  "events": [
    {
      "event_id": "RE-RI-8855169-1",
      "item_id": "RI-8855169",
      "period": "2026-08",
      "seq": 1,
      "occurred_at": "2026-08-13T02:10:00Z",
      "event": "opened",
      "actor": "match-engine",
      "actor_type": "rule",
      "note": "Stay complete; reconciliation opened"
    },
    {
      "event_id": "RE-RI-8855169-2",
      "item_id": "RI-8855169",
      "period": "2026-08",
      "seq": 2,
      "occurred_at": "2026-08-15T07:00:00Z",
      "event": "evidence_received",
      "actor": "folio-ingest",
      "actor_type": "rule",
      "note": "Folio received from property"
    },
    {
      "event_id": "RE-RI-8855169-3",
      "item_id": "RI-8855169",
      "period": "2026-08",
      "seq": 3,
      "occurred_at": "2026-08-15T07:05:00Z",
      "event": "matched",
      "actor": "match-engine",
      "actor_type": "rule",
      "note": "Booking, card and folio agree within tolerance"
    },
    {
      "event_id": "RE-RI-8855169-4",
      "item_id": "RI-8855169",
      "period": "2026-08",
      "seq": 4,
      "occurred_at": "2026-08-26T11:00:00Z",
      "event": "resolved",
      "actor": "match-engine",
      "actor_type": "rule",
      "note": "Resolution: legitimate"
    },
    {
      "event_id": "RE-RI-8855169-5",
      "item_id": "RI-8855169",
      "period": "2026-08",
      "seq": 5,
      "occurred_at": "2026-09-12T00: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-8855169-6204",
      "item_id": "RI-8855169",
      "period": "2026-08",
      "legal_entity": "ASL Airlines France SA",
      "entry_date": "2026-08-12",
      "entry_type": "pending",
      "amount": 320.56,
      "balance_effect": -320.56,
      "description": "Authorization held — Best Western Marseille Airport",
      "posted_from_period": null
    },
    {
      "entry_id": "LE-RI-8855169-6205",
      "item_id": "RI-8855169",
      "period": "2026-08",
      "legal_entity": "ASL Airlines France SA",
      "entry_date": "2026-08-15",
      "entry_type": "posted",
      "amount": 327.97,
      "balance_effect": 0,
      "description": "Charge posted — Best Western Marseille Airport",
      "posted_from_period": null
    }
  ],
  "nights": [
    {
      "night": "2026-08-12",
      "room_net": 265.69,
      "vat_amount": 26.57,
      "city_tax": 3.3,
      "ancillaries": 32.41,
      "rate_paid": 295.56,
      "hotel": "Best Western Marseille Airport",
      "duty_reason": "overnight",
      "night_status": "occupied",
      "vcc_ref": "VCC-8855169",
      "checkin_time": "16:00",
      "checkout_time": "10:00"
    }
  ],
  "booking": {
    "booking_id": "RS-8855169",
    "layover_id": "L-515170",
    "duty_id": "D-515169",
    "crew_id": "FRA-S203",
    "entity_id": "ASL Airlines France",
    "legal_entity": "ASL Airlines France SA",
    "station": "MRS",
    "property_id": "P-131",
    "vendor_id": "VEN-01",
    "contract_id": null,
    "revenue_model": "vendor_net",
    "channel": "staff_portal",
    "requested_by": "U-102",
    "created_at": "2026-08-10T16:00:00Z",
    "check_in": "2026-08-12",
    "check_out": "2026-08-13",
    "nights": 1,
    "room_type": "standard",
    "occupancy": 1,
    "lead_time_hours": 48,
    "confirmation_ref": "CNF-855169",
    "cancellation_deadline": null,
    "status": "completed",
    "period": "2026-08",
    "total_amount": 343.94
  },
  "duty": {
    "duty_id": "D-515169",
    "crew_id": "FRA-S203",
    "entity_id": "ASL Airlines France",
    "roster_ref": "AIMS/202608/515169",
    "duty_type": "overnight",
    "flight_no": "FPO545",
    "dep_station": "LYS",
    "arr_station": "MRS",
    "duty_start_utc": "2026-08-11T09:40:00Z",
    "duty_end_utc": "2026-08-12T15:07:00Z",
    "duty_hours": 11.39,
    "block_hours": 5.48,
    "source_system": "aims",
    "published_at": "2026-07-27T06:00:00Z",
    "version": 1
  },
  "layover": {
    "layover_id": "L-515170",
    "duty_in": "D-515169",
    "duty_out": "D-515169R",
    "crew_id": "FRA-S203",
    "entity_id": "ASL Airlines France",
    "station": "MRS",
    "rest_starts_utc": "2026-08-12T15:07:00Z",
    "rest_ends_utc": "2026-08-13T08:45:00Z",
    "rest_hours_available": 14.18,
    "sleep_opportunity_hours": 12.23,
    "transfer_in_minutes": 18,
    "transfer_out_minutes": 21,
    "nights": 1,
    "disrupted": 0,
    "period": "2026-08"
  },
  "evaluation": {
    "eval_id": "PE-15170",
    "period": "2026-08",
    "booking_id": "RS-8855169",
    "item_id": "RI-8855169",
    "ruleset": "2026.2",
    "evaluated_at": "2026-08-10T15:57:00Z",
    "channel": "staff_portal",
    "traveller_type": "staff",
    "entity": "ASL Airlines France",
    "station": "MRS",
    "outcome": "pass",
    "breach_count": 0,
    "cost_impact": 0,
    "self_served": 0
  },
  "approval": null,
  "breaches": [],
  "changes": [],
  "card": {
    "vcc_ref": "VCC-8855169",
    "booking_id": "RS-8855169",
    "item_id": "RI-8855169",
    "period": "2026-08",
    "issued_at": "2026-08-10T16:00:00Z",
    "issuer": "Routespring card program",
    "limit_amount": 368.94,
    "currency": "EUR",
    "valid_from": "2026-08-12",
    "valid_to": "2026-08-20",
    "grace_days": 7,
    "mcc_lock": "7011 lodging",
    "merchant_lock": "Best Western Marseille Airport",
    "auth_count": 1,
    "settled_amount": 327.97,
    "status": "settled",
    "closed_at": "2026-08-15T03:00:00Z"
  },
  "folioDoc": {
    "folio_id": "folio-8855169",
    "booking_id": "RS-8855169",
    "item_id": "RI-8855169",
    "property_id": "P-131",
    "period": "2026-08",
    "folio_number": "MRS260812-7473",
    "guest_name": "C. Chevalier",
    "check_in": "2026-08-12",
    "check_out": "2026-08-13",
    "issued_at": "2026-08-13T09:30:00Z",
    "received_at": "2026-08-19T07:00:00Z",
    "received_via": "pms_feed",
    "currency": "EUR",
    "stated_total": 327.97,
    "line_count": 4,
    "days_to_receive": 6.29,
    "disputed": 0
  }
}