{
  "item": {
    "item_id": "RI-8854888",
    "period": "2026-08",
    "booking_id": "RS-8854888",
    "duty_id": "D-514888",
    "entity": "ASL Airlines France",
    "legal_entity": "ASL Airlines France SA",
    "crew_name": "K. Perrin",
    "station": "CDG",
    "property_id": "P-126",
    "hotel": "Novotel Paris CDG",
    "check_in": "2026-08-23",
    "check_out": "2026-08-26",
    "nights": 3,
    "booking_amount": 886.05,
    "card_auth": 911.05,
    "card_settled": 896.3,
    "folio_amount": 896.3,
    "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-09-03T11:00:00Z",
    "final_at": "2026-09-25T00:01:00Z",
    "final_due_at": "2026-09-25",
    "age_days": 35,
    "auto_resolved": 1
  },
  "cards": [
    {
      "event_id": "CE-8298",
      "item_id": "RI-8854888",
      "booking_id": "RS-8854888",
      "period": "2026-08",
      "vcc_ref": "VCC-8854888",
      "event_type": "issue",
      "amount": null,
      "currency": "EUR",
      "occurred_at": "2026-08-21T09:00:00Z",
      "valid_from": "2026-08-23",
      "valid_to": "2026-08-29",
      "mcc_lock": "7011 lodging",
      "decline_reason": null,
      "issuer_ref": "CNF-854888",
      "source_ref": "feed-2026-08-8298"
    },
    {
      "event_id": "CE-8299",
      "item_id": "RI-8854888",
      "booking_id": "RS-8854888",
      "period": "2026-08",
      "vcc_ref": "VCC-8854888",
      "event_type": "auth",
      "amount": 911.05,
      "currency": "EUR",
      "occurred_at": "2026-08-23T14:20:00Z",
      "valid_from": "2026-08-23",
      "valid_to": "2026-08-29",
      "mcc_lock": "7011 lodging",
      "decline_reason": null,
      "issuer_ref": "CNF-854888",
      "source_ref": "feed-2026-08-8299"
    },
    {
      "event_id": "CE-8300",
      "item_id": "RI-8854888",
      "booking_id": "RS-8854888",
      "period": "2026-08",
      "vcc_ref": "VCC-8854888",
      "event_type": "capture",
      "amount": 896.3,
      "currency": "EUR",
      "occurred_at": "2026-08-26T08:05:00Z",
      "valid_from": "2026-08-23",
      "valid_to": "2026-08-29",
      "mcc_lock": "7011 lodging",
      "decline_reason": null,
      "issuer_ref": "CNF-854888",
      "source_ref": "feed-2026-08-8300"
    },
    {
      "event_id": "CE-8301",
      "item_id": "RI-8854888",
      "booking_id": "RS-8854888",
      "period": "2026-08",
      "vcc_ref": "VCC-8854888",
      "event_type": "settle",
      "amount": 896.3,
      "currency": "EUR",
      "occurred_at": "2026-08-28T03:00:00Z",
      "valid_from": "2026-08-23",
      "valid_to": "2026-08-29",
      "mcc_lock": "7011 lodging",
      "decline_reason": null,
      "issuer_ref": "CNF-854888",
      "source_ref": "feed-2026-08-8301"
    }
  ],
  "folio": [
    {
      "line_id": "FL-RI-8854888-c0",
      "item_id": "RI-8854888",
      "period": "2026-08",
      "line_date": "2026-08-23",
      "line_type": "fee",
      "description": "City / tourist tax",
      "amount": 5.2,
      "disputed": 0,
      "received_at": "2026-08-28T07:00:00Z",
      "source_ref": "folio-8854888",
      "folio_id": "folio-8854888"
    },
    {
      "line_id": "FL-RI-8854888-a0",
      "item_id": "RI-8854888",
      "period": "2026-08",
      "line_date": "2026-08-23",
      "line_type": "incidental",
      "description": "Parking",
      "amount": 10.25,
      "disputed": 0,
      "received_at": "2026-08-28T07:00:00Z",
      "source_ref": "folio-8854888",
      "folio_id": "folio-8854888"
    },
    {
      "line_id": "FL-RI-8854888-r0",
      "item_id": "RI-8854888",
      "period": "2026-08",
      "line_date": "2026-08-23",
      "line_type": "room",
      "description": "Room charge",
      "amount": 263.77,
      "disputed": 0,
      "received_at": "2026-08-28T07:00:00Z",
      "source_ref": "folio-8854888",
      "folio_id": "folio-8854888"
    },
    {
      "line_id": "FL-RI-8854888-v0",
      "item_id": "RI-8854888",
      "period": "2026-08",
      "line_date": "2026-08-23",
      "line_type": "tax",
      "description": "VAT 10%",
      "amount": 26.38,
      "disputed": 0,
      "received_at": "2026-08-28T07:00:00Z",
      "source_ref": "folio-8854888",
      "folio_id": "folio-8854888"
    },
    {
      "line_id": "FL-RI-8854888-c1",
      "item_id": "RI-8854888",
      "period": "2026-08",
      "line_date": "2026-08-24",
      "line_type": "fee",
      "description": "City / tourist tax",
      "amount": 5.2,
      "disputed": 0,
      "received_at": "2026-08-28T07:00:00Z",
      "source_ref": "folio-8854888",
      "folio_id": "folio-8854888"
    },
    {
      "line_id": "FL-RI-8854888-r1",
      "item_id": "RI-8854888",
      "period": "2026-08",
      "line_date": "2026-08-24",
      "line_type": "room",
      "description": "Room charge",
      "amount": 263.77,
      "disputed": 0,
      "received_at": "2026-08-28T07:00:00Z",
      "source_ref": "folio-8854888",
      "folio_id": "folio-8854888"
    },
    {
      "line_id": "FL-RI-8854888-v1",
      "item_id": "RI-8854888",
      "period": "2026-08",
      "line_date": "2026-08-24",
      "line_type": "tax",
      "description": "VAT 10%",
      "amount": 26.38,
      "disputed": 0,
      "received_at": "2026-08-28T07:00:00Z",
      "source_ref": "folio-8854888",
      "folio_id": "folio-8854888"
    },
    {
      "line_id": "FL-RI-8854888-c2",
      "item_id": "RI-8854888",
      "period": "2026-08",
      "line_date": "2026-08-25",
      "line_type": "fee",
      "description": "City / tourist tax",
      "amount": 5.2,
      "disputed": 0,
      "received_at": "2026-08-28T07:00:00Z",
      "source_ref": "folio-8854888",
      "folio_id": "folio-8854888"
    },
    {
      "line_id": "FL-RI-8854888-r2",
      "item_id": "RI-8854888",
      "period": "2026-08",
      "line_date": "2026-08-25",
      "line_type": "room",
      "description": "Room charge",
      "amount": 263.77,
      "disputed": 0,
      "received_at": "2026-08-28T07:00:00Z",
      "source_ref": "folio-8854888",
      "folio_id": "folio-8854888"
    },
    {
      "line_id": "FL-RI-8854888-v2",
      "item_id": "RI-8854888",
      "period": "2026-08",
      "line_date": "2026-08-25",
      "line_type": "tax",
      "description": "VAT 10%",
      "amount": 26.38,
      "disputed": 0,
      "received_at": "2026-08-28T07:00:00Z",
      "source_ref": "folio-8854888",
      "folio_id": "folio-8854888"
    }
  ],
  "events": [
    {
      "event_id": "RE-RI-8854888-1",
      "item_id": "RI-8854888",
      "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-8854888-2",
      "item_id": "RI-8854888",
      "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-8854888-3",
      "item_id": "RI-8854888",
      "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-8854888-4",
      "item_id": "RI-8854888",
      "period": "2026-08",
      "seq": 4,
      "occurred_at": "2026-09-01T11:00:00Z",
      "event": "resolved",
      "actor": "match-engine",
      "actor_type": "rule",
      "note": "Resolution: legitimate"
    },
    {
      "event_id": "RE-RI-8854888-5",
      "item_id": "RI-8854888",
      "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-8854888-5469",
      "item_id": "RI-8854888",
      "period": "2026-08",
      "legal_entity": "ASL Airlines France SA",
      "entry_date": "2026-08-23",
      "entry_type": "pending",
      "amount": 911.05,
      "balance_effect": -911.05,
      "description": "Authorization held — Novotel Paris CDG",
      "posted_from_period": null
    },
    {
      "entry_id": "LE-RI-8854888-5470",
      "item_id": "RI-8854888",
      "period": "2026-08",
      "legal_entity": "ASL Airlines France SA",
      "entry_date": "2026-08-28",
      "entry_type": "posted",
      "amount": 896.3,
      "balance_effect": 0,
      "description": "Charge posted — Novotel Paris CDG",
      "posted_from_period": null
    },
    {
      "entry_id": "LE-RI-8854888-5471",
      "item_id": "RI-8854888",
      "period": "2026-08",
      "legal_entity": "ASL Airlines France SA",
      "entry_date": "2026-08-28",
      "entry_type": "released",
      "amount": 14.75,
      "balance_effect": 14.75,
      "description": "Unused authorization released",
      "posted_from_period": null
    }
  ],
  "nights": [
    {
      "night": "2026-08-23",
      "room_net": 263.77,
      "vat_amount": 26.38,
      "city_tax": 5.2,
      "ancillaries": 10.25,
      "rate_paid": 295.35,
      "hotel": "Novotel Paris CDG",
      "duty_reason": "positioning",
      "night_status": "no_show",
      "vcc_ref": "VCC-8854888",
      "checkin_time": "16:00",
      "checkout_time": "10:00"
    },
    {
      "night": "2026-08-24",
      "room_net": 263.77,
      "vat_amount": 26.38,
      "city_tax": 5.2,
      "ancillaries": 0,
      "rate_paid": 295.35,
      "hotel": "Novotel Paris CDG",
      "duty_reason": "overnight",
      "night_status": "occupied",
      "vcc_ref": "VCC-8854888",
      "checkin_time": "16:00",
      "checkout_time": "10:00"
    },
    {
      "night": "2026-08-25",
      "room_net": 263.77,
      "vat_amount": 26.38,
      "city_tax": 5.2,
      "ancillaries": 0,
      "rate_paid": 295.35,
      "hotel": "Novotel Paris CDG",
      "duty_reason": "overnight",
      "night_status": "occupied",
      "vcc_ref": "VCC-8854888",
      "checkin_time": "16:00",
      "checkout_time": "10:00"
    }
  ],
  "booking": {
    "booking_id": "RS-8854888",
    "layover_id": "L-514889",
    "duty_id": "D-514888",
    "crew_id": "FRA-1009",
    "entity_id": "ASL Airlines France",
    "legal_entity": "ASL Airlines France SA",
    "station": "CDG",
    "property_id": "P-126",
    "vendor_id": null,
    "contract_id": "C-126",
    "revenue_model": "routespring_contract",
    "channel": "travel_desk",
    "requested_by": "U-101",
    "created_at": "2026-08-21T16:00:00Z",
    "check_in": "2026-08-23",
    "check_out": "2026-08-26",
    "nights": 3,
    "room_type": "superior",
    "occupancy": 1,
    "lead_time_hours": 48,
    "confirmation_ref": "CNF-854888",
    "cancellation_deadline": "2026-08-21T18:00:00Z",
    "status": "completed",
    "period": "2026-08",
    "total_amount": 912.27
  },
  "duty": {
    "duty_id": "D-514888",
    "crew_id": "FRA-1009",
    "entity_id": "ASL Airlines France",
    "roster_ref": "AIMS/202608/514888",
    "duty_type": "positioning",
    "flight_no": "FPO330",
    "dep_station": "MRS",
    "arr_station": "CDG",
    "duty_start_utc": "2026-08-22T12:15:00Z",
    "duty_end_utc": "2026-08-23T15:11:00Z",
    "duty_hours": 6.75,
    "block_hours": 7.57,
    "source_system": "aims",
    "published_at": "2026-08-03T06:00:00Z",
    "version": 1
  },
  "layover": {
    "layover_id": "L-514889",
    "duty_in": "D-514888",
    "duty_out": "D-514888R",
    "crew_id": "FRA-1009",
    "entity_id": "ASL Airlines France",
    "station": "CDG",
    "rest_starts_utc": "2026-08-23T15:11:00Z",
    "rest_ends_utc": "2026-08-26T11:20:00Z",
    "rest_hours_available": 60.01,
    "sleep_opportunity_hours": 57.66,
    "transfer_in_minutes": 14,
    "transfer_out_minutes": 16,
    "nights": 3,
    "disrupted": 0,
    "period": "2026-08"
  },
  "evaluation": {
    "eval_id": "PE-14889",
    "period": "2026-08",
    "booking_id": "RS-8854888",
    "item_id": "RI-8854888",
    "ruleset": "2026.2",
    "evaluated_at": "2026-08-21T15:57:00Z",
    "channel": "automation",
    "traveller_type": "crew",
    "entity": "ASL Airlines France",
    "station": "CDG",
    "outcome": "pass",
    "breach_count": 0,
    "cost_impact": 0,
    "self_served": 0
  },
  "approval": null,
  "breaches": [],
  "changes": [],
  "card": {
    "vcc_ref": "VCC-8854888",
    "booking_id": "RS-8854888",
    "item_id": "RI-8854888",
    "period": "2026-08",
    "issued_at": "2026-08-21T16:00:00Z",
    "issuer": "Routespring card program",
    "limit_amount": 937.27,
    "currency": "EUR",
    "valid_from": "2026-08-23",
    "valid_to": "2026-09-02",
    "grace_days": 7,
    "mcc_lock": "7011 lodging",
    "merchant_lock": "Novotel Paris CDG",
    "auth_count": 3,
    "settled_amount": 886.05,
    "status": "settled",
    "closed_at": "2026-08-28T03:00:00Z"
  },
  "folioDoc": {
    "folio_id": "folio-8854888",
    "booking_id": "RS-8854888",
    "item_id": "RI-8854888",
    "property_id": "P-126",
    "period": "2026-08",
    "folio_number": "CDG260823-5725",
    "guest_name": "K. Perrin",
    "check_in": "2026-08-23",
    "check_out": "2026-08-26",
    "issued_at": "2026-08-26T09:30:00Z",
    "received_at": "2026-08-28T07:00:00Z",
    "received_via": "pms_feed",
    "currency": "EUR",
    "stated_total": 896.3,
    "line_count": 10,
    "days_to_receive": 2.29,
    "disputed": 0
  }
}