{
  "item": {
    "item_id": "RI-8854827",
    "period": "2026-08",
    "booking_id": "RS-8854827",
    "duty_id": "D-514827",
    "entity": "ASL Airlines France",
    "legal_entity": "ASL Airlines France SA",
    "crew_name": "M. Bernard",
    "station": "CDG",
    "property_id": "P-126",
    "hotel": "Novotel Paris CDG",
    "check_in": "2026-08-02",
    "check_out": "2026-08-05",
    "nights": 3,
    "booking_amount": 883.62,
    "card_auth": 908.62,
    "card_settled": 883.62,
    "folio_amount": 883.62,
    "variance": 0,
    "variance_pct": 0,
    "variance_category": null,
    "match_state": "matched",
    "exception_type": null,
    "state": "resolved",
    "resolution": "legitimate",
    "opened_at": "2026-08-05T02:10:00Z",
    "resolved_at": "2026-08-13T11:00:00Z",
    "final_at": null,
    "final_due_at": "2026-09-04",
    "age_days": 35,
    "auto_resolved": 1
  },
  "cards": [
    {
      "event_id": "CE-8053",
      "item_id": "RI-8854827",
      "booking_id": "RS-8854827",
      "period": "2026-08",
      "vcc_ref": "VCC-8854827",
      "event_type": "issue",
      "amount": null,
      "currency": "EUR",
      "occurred_at": "2026-07-31T09:00:00Z",
      "valid_from": "2026-08-02",
      "valid_to": "2026-08-08",
      "mcc_lock": "7011 lodging",
      "decline_reason": null,
      "issuer_ref": "CNF-854827",
      "source_ref": "feed-2026-08-8053"
    },
    {
      "event_id": "CE-8054",
      "item_id": "RI-8854827",
      "booking_id": "RS-8854827",
      "period": "2026-08",
      "vcc_ref": "VCC-8854827",
      "event_type": "auth",
      "amount": 908.62,
      "currency": "EUR",
      "occurred_at": "2026-08-02T14:20:00Z",
      "valid_from": "2026-08-02",
      "valid_to": "2026-08-08",
      "mcc_lock": "7011 lodging",
      "decline_reason": null,
      "issuer_ref": "CNF-854827",
      "source_ref": "feed-2026-08-8054"
    },
    {
      "event_id": "CE-8055",
      "item_id": "RI-8854827",
      "booking_id": "RS-8854827",
      "period": "2026-08",
      "vcc_ref": "VCC-8854827",
      "event_type": "capture",
      "amount": 883.62,
      "currency": "EUR",
      "occurred_at": "2026-08-05T08:05:00Z",
      "valid_from": "2026-08-02",
      "valid_to": "2026-08-08",
      "mcc_lock": "7011 lodging",
      "decline_reason": null,
      "issuer_ref": "CNF-854827",
      "source_ref": "feed-2026-08-8055"
    },
    {
      "event_id": "CE-8056",
      "item_id": "RI-8854827",
      "booking_id": "RS-8854827",
      "period": "2026-08",
      "vcc_ref": "VCC-8854827",
      "event_type": "settle",
      "amount": 883.62,
      "currency": "EUR",
      "occurred_at": "2026-08-07T03:00:00Z",
      "valid_from": "2026-08-02",
      "valid_to": "2026-08-08",
      "mcc_lock": "7011 lodging",
      "decline_reason": null,
      "issuer_ref": "CNF-854827",
      "source_ref": "feed-2026-08-8056"
    }
  ],
  "folio": [
    {
      "line_id": "FL-RI-8854827-c0",
      "item_id": "RI-8854827",
      "period": "2026-08",
      "line_date": "2026-08-02",
      "line_type": "fee",
      "description": "City / tourist tax",
      "amount": 5.2,
      "disputed": 0,
      "received_at": "2026-08-08T07:00:00Z",
      "source_ref": "folio-8854827",
      "folio_id": "folio-8854827"
    },
    {
      "line_id": "FL-RI-8854827-r0",
      "item_id": "RI-8854827",
      "period": "2026-08",
      "line_date": "2026-08-02",
      "line_type": "room",
      "description": "Room charge",
      "amount": 263.04,
      "disputed": 0,
      "received_at": "2026-08-08T07:00:00Z",
      "source_ref": "folio-8854827",
      "folio_id": "folio-8854827"
    },
    {
      "line_id": "FL-RI-8854827-v0",
      "item_id": "RI-8854827",
      "period": "2026-08",
      "line_date": "2026-08-02",
      "line_type": "tax",
      "description": "VAT 10%",
      "amount": 26.3,
      "disputed": 0,
      "received_at": "2026-08-08T07:00:00Z",
      "source_ref": "folio-8854827",
      "folio_id": "folio-8854827"
    },
    {
      "line_id": "FL-RI-8854827-c1",
      "item_id": "RI-8854827",
      "period": "2026-08",
      "line_date": "2026-08-03",
      "line_type": "fee",
      "description": "City / tourist tax",
      "amount": 5.2,
      "disputed": 0,
      "received_at": "2026-08-08T07:00:00Z",
      "source_ref": "folio-8854827",
      "folio_id": "folio-8854827"
    },
    {
      "line_id": "FL-RI-8854827-r1",
      "item_id": "RI-8854827",
      "period": "2026-08",
      "line_date": "2026-08-03",
      "line_type": "room",
      "description": "Room charge",
      "amount": 263.04,
      "disputed": 0,
      "received_at": "2026-08-08T07:00:00Z",
      "source_ref": "folio-8854827",
      "folio_id": "folio-8854827"
    },
    {
      "line_id": "FL-RI-8854827-v1",
      "item_id": "RI-8854827",
      "period": "2026-08",
      "line_date": "2026-08-03",
      "line_type": "tax",
      "description": "VAT 10%",
      "amount": 26.3,
      "disputed": 0,
      "received_at": "2026-08-08T07:00:00Z",
      "source_ref": "folio-8854827",
      "folio_id": "folio-8854827"
    },
    {
      "line_id": "FL-RI-8854827-c2",
      "item_id": "RI-8854827",
      "period": "2026-08",
      "line_date": "2026-08-04",
      "line_type": "fee",
      "description": "City / tourist tax",
      "amount": 5.2,
      "disputed": 0,
      "received_at": "2026-08-08T07:00:00Z",
      "source_ref": "folio-8854827",
      "folio_id": "folio-8854827"
    },
    {
      "line_id": "FL-RI-8854827-r2",
      "item_id": "RI-8854827",
      "period": "2026-08",
      "line_date": "2026-08-04",
      "line_type": "room",
      "description": "Room charge",
      "amount": 263.04,
      "disputed": 0,
      "received_at": "2026-08-08T07:00:00Z",
      "source_ref": "folio-8854827",
      "folio_id": "folio-8854827"
    },
    {
      "line_id": "FL-RI-8854827-v2",
      "item_id": "RI-8854827",
      "period": "2026-08",
      "line_date": "2026-08-04",
      "line_type": "tax",
      "description": "VAT 10%",
      "amount": 26.3,
      "disputed": 0,
      "received_at": "2026-08-08T07:00:00Z",
      "source_ref": "folio-8854827",
      "folio_id": "folio-8854827"
    }
  ],
  "events": [
    {
      "event_id": "RE-RI-8854827-1",
      "item_id": "RI-8854827",
      "period": "2026-08",
      "seq": 1,
      "occurred_at": "2026-08-05T02:10:00Z",
      "event": "opened",
      "actor": "match-engine",
      "actor_type": "rule",
      "note": "Stay complete; reconciliation opened"
    },
    {
      "event_id": "RE-RI-8854827-2",
      "item_id": "RI-8854827",
      "period": "2026-08",
      "seq": 2,
      "occurred_at": "2026-08-07T07:00:00Z",
      "event": "evidence_received",
      "actor": "folio-ingest",
      "actor_type": "rule",
      "note": "Folio received from property"
    },
    {
      "event_id": "RE-RI-8854827-3",
      "item_id": "RI-8854827",
      "period": "2026-08",
      "seq": 3,
      "occurred_at": "2026-08-07T07:05:00Z",
      "event": "matched",
      "actor": "match-engine",
      "actor_type": "rule",
      "note": "Booking, card and folio agree within tolerance"
    },
    {
      "event_id": "RE-RI-8854827-4",
      "item_id": "RI-8854827",
      "period": "2026-08",
      "seq": 4,
      "occurred_at": "2026-08-18T11:00:00Z",
      "event": "resolved",
      "actor": "match-engine",
      "actor_type": "rule",
      "note": "Resolution: legitimate"
    }
  ],
  "ledger": [
    {
      "entry_id": "LE-RI-8854827-5316",
      "item_id": "RI-8854827",
      "period": "2026-08",
      "legal_entity": "ASL Airlines France SA",
      "entry_date": "2026-08-02",
      "entry_type": "pending",
      "amount": 908.62,
      "balance_effect": -908.62,
      "description": "Authorization held — Novotel Paris CDG",
      "posted_from_period": null
    },
    {
      "entry_id": "LE-RI-8854827-5317",
      "item_id": "RI-8854827",
      "period": "2026-08",
      "legal_entity": "ASL Airlines France SA",
      "entry_date": "2026-08-07",
      "entry_type": "posted",
      "amount": 883.62,
      "balance_effect": 0,
      "description": "Charge posted — Novotel Paris CDG",
      "posted_from_period": null
    },
    {
      "entry_id": "LE-RI-8854827-5318",
      "item_id": "RI-8854827",
      "period": "2026-08",
      "legal_entity": "ASL Airlines France SA",
      "entry_date": "2026-08-07",
      "entry_type": "released",
      "amount": 25,
      "balance_effect": 25,
      "description": "Unused authorization released",
      "posted_from_period": null
    }
  ],
  "nights": [
    {
      "night": "2026-08-02",
      "room_net": 263.04,
      "vat_amount": 26.3,
      "city_tax": 5.2,
      "ancillaries": 0,
      "rate_paid": 294.54,
      "hotel": "Novotel Paris CDG",
      "duty_reason": "positioning",
      "night_status": "occupied",
      "vcc_ref": "VCC-8854827",
      "checkin_time": "14:00",
      "checkout_time": "10:00"
    },
    {
      "night": "2026-08-03",
      "room_net": 263.04,
      "vat_amount": 26.3,
      "city_tax": 5.2,
      "ancillaries": 0,
      "rate_paid": 294.54,
      "hotel": "Novotel Paris CDG",
      "duty_reason": "training",
      "night_status": "occupied",
      "vcc_ref": "VCC-8854827",
      "checkin_time": "14:00",
      "checkout_time": "10:00"
    },
    {
      "night": "2026-08-04",
      "room_net": 263.04,
      "vat_amount": 26.3,
      "city_tax": 5.2,
      "ancillaries": 0,
      "rate_paid": 294.54,
      "hotel": "Novotel Paris CDG",
      "duty_reason": "positioning",
      "night_status": "occupied",
      "vcc_ref": "VCC-8854827",
      "checkin_time": "14:00",
      "checkout_time": "10:00"
    }
  ],
  "booking": {
    "booking_id": "RS-8854827",
    "layover_id": "L-514828",
    "duty_id": "D-514827",
    "crew_id": "FRA-1002",
    "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": "automation",
    "requested_by": "rule:roster-watch",
    "created_at": "2026-07-30T14:00:00Z",
    "check_in": "2026-08-02",
    "check_out": "2026-08-05",
    "nights": 3,
    "room_type": "standard",
    "occupancy": 1,
    "lead_time_hours": 72,
    "confirmation_ref": "CNF-854827",
    "cancellation_deadline": "2026-07-31T18:00:00Z",
    "status": "completed",
    "period": "2026-08",
    "total_amount": 899.59
  },
  "duty": {
    "duty_id": "D-514827",
    "crew_id": "FRA-1002",
    "entity_id": "ASL Airlines France",
    "roster_ref": "AIMS/202608/514827",
    "duty_type": "positioning",
    "flight_no": "FPO152",
    "dep_station": "MRS",
    "arr_station": "CDG",
    "duty_start_utc": "2026-08-01T09:40:00Z",
    "duty_end_utc": "2026-08-02T13:11:00Z",
    "duty_hours": 7.12,
    "block_hours": 8.36,
    "source_system": "aims",
    "published_at": "2026-07-27T06:00:00Z",
    "version": 1
  },
  "layover": {
    "layover_id": "L-514828",
    "duty_in": "D-514827",
    "duty_out": "D-514827R",
    "crew_id": "FRA-1002",
    "entity_id": "ASL Airlines France",
    "station": "CDG",
    "rest_starts_utc": "2026-08-02T13:11:00Z",
    "rest_ends_utc": "2026-08-05T08:45:00Z",
    "rest_hours_available": 59.36,
    "sleep_opportunity_hours": 57.39,
    "transfer_in_minutes": 14,
    "transfer_out_minutes": 17,
    "nights": 3,
    "disrupted": 0,
    "period": "2026-08"
  },
  "evaluation": {
    "eval_id": "PE-14828",
    "period": "2026-08",
    "booking_id": "RS-8854827",
    "item_id": "RI-8854827",
    "ruleset": "2026.2",
    "evaluated_at": "2026-07-30T13: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-8854827",
    "booking_id": "RS-8854827",
    "item_id": "RI-8854827",
    "period": "2026-08",
    "issued_at": "2026-07-30T14:00:00Z",
    "issuer": "Routespring card program",
    "limit_amount": 924.59,
    "currency": "EUR",
    "valid_from": "2026-08-02",
    "valid_to": "2026-08-12",
    "grace_days": 7,
    "mcc_lock": "7011 lodging",
    "merchant_lock": "Novotel Paris CDG",
    "auth_count": 3,
    "settled_amount": 883.62,
    "status": "settled",
    "closed_at": "2026-08-07T03:00:00Z"
  },
  "folioDoc": {
    "folio_id": "folio-8854827",
    "booking_id": "RS-8854827",
    "item_id": "RI-8854827",
    "property_id": "P-126",
    "period": "2026-08",
    "folio_number": "CDG260802-7581",
    "guest_name": "M. Bernard",
    "check_in": "2026-08-02",
    "check_out": "2026-08-05",
    "issued_at": "2026-08-05T09:30:00Z",
    "received_at": "2026-08-08T07:00:00Z",
    "received_via": "pms_feed",
    "currency": "EUR",
    "stated_total": 883.62,
    "line_count": 9,
    "days_to_receive": 3.29,
    "disputed": 0
  }
}