{
  "item": {
    "item_id": "RI-8855177",
    "period": "2026-08",
    "booking_id": "RS-8855177",
    "duty_id": "D-515177",
    "entity": "ASL Airlines France",
    "legal_entity": "ASL Airlines France SA",
    "crew_name": "B. Aubert",
    "station": "LYS",
    "property_id": "P-129",
    "hotel": "NH Lyon Airport",
    "check_in": "2026-08-17",
    "check_out": "2026-08-21",
    "nights": 4,
    "booking_amount": 1082.36,
    "card_auth": 1107.36,
    "card_settled": 1162.79,
    "folio_amount": 1162.79,
    "variance": 0,
    "variance_pct": 0,
    "variance_category": null,
    "match_state": "matched",
    "exception_type": null,
    "state": "final",
    "resolution": "legitimate",
    "opened_at": "2026-08-21T02:10:00Z",
    "resolved_at": "2026-08-24T11:00:00Z",
    "final_at": "2026-09-20T00:01:00Z",
    "final_due_at": "2026-09-20",
    "age_days": 12,
    "auto_resolved": 1
  },
  "cards": [
    {
      "event_id": "CE-9455",
      "item_id": "RI-8855177",
      "booking_id": "RS-8855177",
      "period": "2026-08",
      "vcc_ref": "VCC-8855177",
      "event_type": "issue",
      "amount": null,
      "currency": "EUR",
      "occurred_at": "2026-08-15T09:00:00Z",
      "valid_from": "2026-08-17",
      "valid_to": "2026-08-24",
      "mcc_lock": "7011 lodging",
      "decline_reason": null,
      "issuer_ref": "CNF-855177",
      "source_ref": "feed-2026-08-9455"
    },
    {
      "event_id": "CE-9456",
      "item_id": "RI-8855177",
      "booking_id": "RS-8855177",
      "period": "2026-08",
      "vcc_ref": "VCC-8855177",
      "event_type": "auth",
      "amount": 1107.36,
      "currency": "EUR",
      "occurred_at": "2026-08-17T14:20:00Z",
      "valid_from": "2026-08-17",
      "valid_to": "2026-08-24",
      "mcc_lock": "7011 lodging",
      "decline_reason": null,
      "issuer_ref": "CNF-855177",
      "source_ref": "feed-2026-08-9456"
    },
    {
      "event_id": "CE-9457",
      "item_id": "RI-8855177",
      "booking_id": "RS-8855177",
      "period": "2026-08",
      "vcc_ref": "VCC-8855177",
      "event_type": "capture",
      "amount": 1162.79,
      "currency": "EUR",
      "occurred_at": "2026-08-21T08:05:00Z",
      "valid_from": "2026-08-17",
      "valid_to": "2026-08-24",
      "mcc_lock": "7011 lodging",
      "decline_reason": null,
      "issuer_ref": "CNF-855177",
      "source_ref": "feed-2026-08-9457"
    },
    {
      "event_id": "CE-9458",
      "item_id": "RI-8855177",
      "booking_id": "RS-8855177",
      "period": "2026-08",
      "vcc_ref": "VCC-8855177",
      "event_type": "settle",
      "amount": 1162.79,
      "currency": "EUR",
      "occurred_at": "2026-08-23T03:00:00Z",
      "valid_from": "2026-08-17",
      "valid_to": "2026-08-24",
      "mcc_lock": "7011 lodging",
      "decline_reason": null,
      "issuer_ref": "CNF-855177",
      "source_ref": "feed-2026-08-9458"
    }
  ],
  "folio": [
    {
      "line_id": "FL-RI-8855177-c0",
      "item_id": "RI-8855177",
      "period": "2026-08",
      "line_date": "2026-08-17",
      "line_type": "fee",
      "description": "City / tourist tax",
      "amount": 3.3,
      "disputed": 0,
      "received_at": "2026-08-24T07:00:00Z",
      "source_ref": "folio-8855177",
      "folio_id": "folio-8855177"
    },
    {
      "line_id": "FL-RI-8855177-a0",
      "item_id": "RI-8855177",
      "period": "2026-08",
      "line_date": "2026-08-17",
      "line_type": "incidental",
      "description": "Minibar",
      "amount": 20.61,
      "disputed": 0,
      "received_at": "2026-08-24T07:00:00Z",
      "source_ref": "folio-8855177",
      "folio_id": "folio-8855177"
    },
    {
      "line_id": "FL-RI-8855177-r0",
      "item_id": "RI-8855177",
      "period": "2026-08",
      "line_date": "2026-08-17",
      "line_type": "room",
      "description": "Room charge",
      "amount": 242.99,
      "disputed": 0,
      "received_at": "2026-08-24T07:00:00Z",
      "source_ref": "folio-8855177",
      "folio_id": "folio-8855177"
    },
    {
      "line_id": "FL-RI-8855177-v0",
      "item_id": "RI-8855177",
      "period": "2026-08",
      "line_date": "2026-08-17",
      "line_type": "tax",
      "description": "VAT 10%",
      "amount": 24.3,
      "disputed": 0,
      "received_at": "2026-08-24T07:00:00Z",
      "source_ref": "folio-8855177",
      "folio_id": "folio-8855177"
    },
    {
      "line_id": "FL-RI-8855177-c1",
      "item_id": "RI-8855177",
      "period": "2026-08",
      "line_date": "2026-08-18",
      "line_type": "fee",
      "description": "City / tourist tax",
      "amount": 3.3,
      "disputed": 0,
      "received_at": "2026-08-24T07:00:00Z",
      "source_ref": "folio-8855177",
      "folio_id": "folio-8855177"
    },
    {
      "line_id": "FL-RI-8855177-r1",
      "item_id": "RI-8855177",
      "period": "2026-08",
      "line_date": "2026-08-18",
      "line_type": "room",
      "description": "Room charge",
      "amount": 242.99,
      "disputed": 0,
      "received_at": "2026-08-24T07:00:00Z",
      "source_ref": "folio-8855177",
      "folio_id": "folio-8855177"
    },
    {
      "line_id": "FL-RI-8855177-v1",
      "item_id": "RI-8855177",
      "period": "2026-08",
      "line_date": "2026-08-18",
      "line_type": "tax",
      "description": "VAT 10%",
      "amount": 24.3,
      "disputed": 0,
      "received_at": "2026-08-24T07:00:00Z",
      "source_ref": "folio-8855177",
      "folio_id": "folio-8855177"
    },
    {
      "line_id": "FL-RI-8855177-c2",
      "item_id": "RI-8855177",
      "period": "2026-08",
      "line_date": "2026-08-19",
      "line_type": "fee",
      "description": "City / tourist tax",
      "amount": 3.3,
      "disputed": 0,
      "received_at": "2026-08-24T07:00:00Z",
      "source_ref": "folio-8855177",
      "folio_id": "folio-8855177"
    },
    {
      "line_id": "FL-RI-8855177-a2",
      "item_id": "RI-8855177",
      "period": "2026-08",
      "line_date": "2026-08-19",
      "line_type": "incidental",
      "description": "Parking",
      "amount": 25.79,
      "disputed": 0,
      "received_at": "2026-08-24T07:00:00Z",
      "source_ref": "folio-8855177",
      "folio_id": "folio-8855177"
    },
    {
      "line_id": "FL-RI-8855177-r2",
      "item_id": "RI-8855177",
      "period": "2026-08",
      "line_date": "2026-08-19",
      "line_type": "room",
      "description": "Room charge",
      "amount": 242.99,
      "disputed": 0,
      "received_at": "2026-08-24T07:00:00Z",
      "source_ref": "folio-8855177",
      "folio_id": "folio-8855177"
    },
    {
      "line_id": "FL-RI-8855177-v2",
      "item_id": "RI-8855177",
      "period": "2026-08",
      "line_date": "2026-08-19",
      "line_type": "tax",
      "description": "VAT 10%",
      "amount": 24.3,
      "disputed": 0,
      "received_at": "2026-08-24T07:00:00Z",
      "source_ref": "folio-8855177",
      "folio_id": "folio-8855177"
    },
    {
      "line_id": "FL-RI-8855177-c3",
      "item_id": "RI-8855177",
      "period": "2026-08",
      "line_date": "2026-08-20",
      "line_type": "fee",
      "description": "City / tourist tax",
      "amount": 3.3,
      "disputed": 0,
      "received_at": "2026-08-24T07:00:00Z",
      "source_ref": "folio-8855177",
      "folio_id": "folio-8855177"
    },
    {
      "line_id": "FL-RI-8855177-a3",
      "item_id": "RI-8855177",
      "period": "2026-08",
      "line_date": "2026-08-20",
      "line_type": "incidental",
      "description": "Restaurant",
      "amount": 34.03,
      "disputed": 0,
      "received_at": "2026-08-24T07:00:00Z",
      "source_ref": "folio-8855177",
      "folio_id": "folio-8855177"
    },
    {
      "line_id": "FL-RI-8855177-r3",
      "item_id": "RI-8855177",
      "period": "2026-08",
      "line_date": "2026-08-20",
      "line_type": "room",
      "description": "Room charge",
      "amount": 242.99,
      "disputed": 0,
      "received_at": "2026-08-24T07:00:00Z",
      "source_ref": "folio-8855177",
      "folio_id": "folio-8855177"
    },
    {
      "line_id": "FL-RI-8855177-v3",
      "item_id": "RI-8855177",
      "period": "2026-08",
      "line_date": "2026-08-20",
      "line_type": "tax",
      "description": "VAT 10%",
      "amount": 24.3,
      "disputed": 0,
      "received_at": "2026-08-24T07:00:00Z",
      "source_ref": "folio-8855177",
      "folio_id": "folio-8855177"
    }
  ],
  "events": [
    {
      "event_id": "RE-RI-8855177-1",
      "item_id": "RI-8855177",
      "period": "2026-08",
      "seq": 1,
      "occurred_at": "2026-08-21T02:10:00Z",
      "event": "opened",
      "actor": "match-engine",
      "actor_type": "rule",
      "note": "Stay complete; reconciliation opened"
    },
    {
      "event_id": "RE-RI-8855177-2",
      "item_id": "RI-8855177",
      "period": "2026-08",
      "seq": 2,
      "occurred_at": "2026-08-23T07:00:00Z",
      "event": "evidence_received",
      "actor": "folio-ingest",
      "actor_type": "rule",
      "note": "Folio received from property"
    },
    {
      "event_id": "RE-RI-8855177-3",
      "item_id": "RI-8855177",
      "period": "2026-08",
      "seq": 3,
      "occurred_at": "2026-08-23T07:05:00Z",
      "event": "matched",
      "actor": "match-engine",
      "actor_type": "rule",
      "note": "Booking, card and folio agree within tolerance"
    },
    {
      "event_id": "RE-RI-8855177-4",
      "item_id": "RI-8855177",
      "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-8855177-5",
      "item_id": "RI-8855177",
      "period": "2026-08",
      "seq": 5,
      "occurred_at": "2026-09-20T00: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-8855177-6222",
      "item_id": "RI-8855177",
      "period": "2026-08",
      "legal_entity": "ASL Airlines France SA",
      "entry_date": "2026-08-17",
      "entry_type": "pending",
      "amount": 1107.36,
      "balance_effect": -1107.36,
      "description": "Authorization held — NH Lyon Airport",
      "posted_from_period": null
    },
    {
      "entry_id": "LE-RI-8855177-6223",
      "item_id": "RI-8855177",
      "period": "2026-08",
      "legal_entity": "ASL Airlines France SA",
      "entry_date": "2026-08-23",
      "entry_type": "posted",
      "amount": 1162.79,
      "balance_effect": 0,
      "description": "Charge posted — NH Lyon Airport",
      "posted_from_period": null
    }
  ],
  "nights": [
    {
      "night": "2026-08-17",
      "room_net": 242.99,
      "vat_amount": 24.3,
      "city_tax": 3.3,
      "ancillaries": 20.61,
      "rate_paid": 270.59,
      "hotel": "NH Lyon Airport",
      "duty_reason": "positioning",
      "night_status": "occupied",
      "vcc_ref": "VCC-8855177",
      "checkin_time": "14:00",
      "checkout_time": "08:15"
    },
    {
      "night": "2026-08-18",
      "room_net": 242.99,
      "vat_amount": 24.3,
      "city_tax": 3.3,
      "ancillaries": 0,
      "rate_paid": 270.59,
      "hotel": "NH Lyon Airport",
      "duty_reason": "overnight",
      "night_status": "occupied",
      "vcc_ref": "VCC-8855177",
      "checkin_time": "14:00",
      "checkout_time": "08:15"
    },
    {
      "night": "2026-08-19",
      "room_net": 242.99,
      "vat_amount": 24.3,
      "city_tax": 3.3,
      "ancillaries": 25.79,
      "rate_paid": 270.59,
      "hotel": "NH Lyon Airport",
      "duty_reason": "overnight",
      "night_status": "occupied",
      "vcc_ref": "VCC-8855177",
      "checkin_time": "14:00",
      "checkout_time": "08:15"
    },
    {
      "night": "2026-08-20",
      "room_net": 242.99,
      "vat_amount": 24.3,
      "city_tax": 3.3,
      "ancillaries": 34.03,
      "rate_paid": 270.59,
      "hotel": "NH Lyon Airport",
      "duty_reason": "positioning",
      "night_status": "occupied",
      "vcc_ref": "VCC-8855177",
      "checkin_time": "14:00",
      "checkout_time": "08:15"
    }
  ],
  "booking": {
    "booking_id": "RS-8855177",
    "layover_id": "L-515178",
    "duty_id": "D-515177",
    "crew_id": "FRA-1010",
    "entity_id": "ASL Airlines France",
    "legal_entity": "ASL Airlines France SA",
    "station": "LYS",
    "property_id": "P-129",
    "vendor_id": null,
    "contract_id": "C-129",
    "revenue_model": "airline_contract",
    "channel": "automation",
    "requested_by": "rule:roster-watch",
    "created_at": "2026-08-17T02:00:00Z",
    "check_in": "2026-08-17",
    "check_out": "2026-08-21",
    "nights": 4,
    "room_type": "standard",
    "occupancy": 1,
    "lead_time_hours": 12,
    "confirmation_ref": "CNF-855177",
    "cancellation_deadline": "2026-08-16T18:00:00Z",
    "status": "completed",
    "period": "2026-08",
    "total_amount": 1178.76
  },
  "duty": {
    "duty_id": "D-515177",
    "crew_id": "FRA-1010",
    "entity_id": "ASL Airlines France",
    "roster_ref": "AIMS/202608/515177",
    "duty_type": "positioning",
    "flight_no": "FPO566",
    "dep_station": "MRS",
    "arr_station": "LYS",
    "duty_start_utc": "2026-08-16T18:05:00Z",
    "duty_end_utc": "2026-08-17T13:10:00Z",
    "duty_hours": 11,
    "block_hours": 3.99,
    "source_system": "aims",
    "published_at": "2026-08-09T06:00:00Z",
    "version": 1
  },
  "layover": {
    "layover_id": "L-515178",
    "duty_in": "D-515177",
    "duty_out": "D-515177R",
    "crew_id": "FRA-1010",
    "entity_id": "ASL Airlines France",
    "station": "LYS",
    "rest_starts_utc": "2026-08-17T13:10:00Z",
    "rest_ends_utc": "2026-08-21T08:45:00Z",
    "rest_hours_available": 82.24,
    "sleep_opportunity_hours": 80.2,
    "transfer_in_minutes": 15,
    "transfer_out_minutes": 13,
    "nights": 4,
    "disrupted": 0,
    "period": "2026-08"
  },
  "evaluation": {
    "eval_id": "PE-15178",
    "period": "2026-08",
    "booking_id": "RS-8855177",
    "item_id": "RI-8855177",
    "ruleset": "2026.2",
    "evaluated_at": "2026-08-17T01:57:00Z",
    "channel": "automation",
    "traveller_type": "crew",
    "entity": "ASL Airlines France",
    "station": "LYS",
    "outcome": "pass",
    "breach_count": 0,
    "cost_impact": 0,
    "self_served": 0
  },
  "approval": null,
  "breaches": [],
  "changes": [
    {
      "change_id": "BC-1859",
      "booking_id": "RS-8855177",
      "period": "2026-08",
      "occurred_at": "2026-08-17T06:12:00Z",
      "change_type": "modify_in_place",
      "source": "aims",
      "trigger": "roster_change",
      "modify_attempted": 1,
      "failed_reason": null,
      "hours_before_checkin": 87.29,
      "cutoff_hours": 18,
      "cost": 13.04,
      "room_lost": 0,
      "resolved_by": "automation",
      "resolved_at": null,
      "sla_breached": 0
    }
  ],
  "card": {
    "vcc_ref": "VCC-8855177",
    "booking_id": "RS-8855177",
    "item_id": "RI-8855177",
    "period": "2026-08",
    "issued_at": "2026-08-17T02:00:00Z",
    "issuer": "Routespring card program",
    "limit_amount": 1203.76,
    "currency": "EUR",
    "valid_from": "2026-08-17",
    "valid_to": "2026-08-28",
    "grace_days": 7,
    "mcc_lock": "7011 lodging",
    "merchant_lock": "NH Lyon Airport",
    "auth_count": 4,
    "settled_amount": 1162.79,
    "status": "settled",
    "closed_at": "2026-08-23T03:00:00Z"
  },
  "folioDoc": {
    "folio_id": "folio-8855177",
    "booking_id": "RS-8855177",
    "item_id": "RI-8855177",
    "property_id": "P-129",
    "period": "2026-08",
    "folio_number": "LYS260817-4007",
    "guest_name": "B. Aubert",
    "check_in": "2026-08-17",
    "check_out": "2026-08-21",
    "issued_at": "2026-08-21T09:30:00Z",
    "received_at": "2026-08-24T07:00:00Z",
    "received_via": "pms_feed",
    "currency": "EUR",
    "stated_total": 1162.79,
    "line_count": 15,
    "days_to_receive": 3.29,
    "disputed": 0
  }
}