{
  "item": {
    "item_id": "RI-8854801",
    "period": "2026-08",
    "booking_id": "RS-8854801",
    "duty_id": "D-514801",
    "entity": "ASL Airlines France",
    "legal_entity": "ASL Airlines France SA",
    "crew_name": "O. Marchand",
    "station": "TLS",
    "property_id": "P-134",
    "hotel": "Ibis Toulouse Blagnac",
    "check_in": "2026-08-15",
    "check_out": "2026-08-16",
    "nights": 1,
    "booking_amount": 269.18,
    "card_auth": 294.18,
    "card_settled": 303.76,
    "folio_amount": 303.76,
    "variance": 0,
    "variance_pct": 0,
    "variance_category": null,
    "match_state": "matched",
    "exception_type": null,
    "state": "final",
    "resolution": "legitimate",
    "opened_at": "2026-08-16T02:10:00Z",
    "resolved_at": "2026-08-27T11:00:00Z",
    "final_at": "2026-09-15T00:01:00Z",
    "final_due_at": "2026-09-15",
    "age_days": 5,
    "auto_resolved": 1
  },
  "cards": [
    {
      "event_id": "CE-7950",
      "item_id": "RI-8854801",
      "booking_id": "RS-8854801",
      "period": "2026-08",
      "vcc_ref": "VCC-8854801",
      "event_type": "issue",
      "amount": null,
      "currency": "EUR",
      "occurred_at": "2026-08-13T09:00:00Z",
      "valid_from": "2026-08-15",
      "valid_to": "2026-08-19",
      "mcc_lock": "7011 lodging",
      "decline_reason": null,
      "issuer_ref": "CNF-854801",
      "source_ref": "feed-2026-08-7950"
    },
    {
      "event_id": "CE-7951",
      "item_id": "RI-8854801",
      "booking_id": "RS-8854801",
      "period": "2026-08",
      "vcc_ref": "VCC-8854801",
      "event_type": "auth",
      "amount": 294.18,
      "currency": "EUR",
      "occurred_at": "2026-08-15T14:20:00Z",
      "valid_from": "2026-08-15",
      "valid_to": "2026-08-19",
      "mcc_lock": "7011 lodging",
      "decline_reason": null,
      "issuer_ref": "CNF-854801",
      "source_ref": "feed-2026-08-7951"
    },
    {
      "event_id": "CE-7952",
      "item_id": "RI-8854801",
      "booking_id": "RS-8854801",
      "period": "2026-08",
      "vcc_ref": "VCC-8854801",
      "event_type": "capture",
      "amount": 303.76,
      "currency": "EUR",
      "occurred_at": "2026-08-16T08:05:00Z",
      "valid_from": "2026-08-15",
      "valid_to": "2026-08-19",
      "mcc_lock": "7011 lodging",
      "decline_reason": null,
      "issuer_ref": "CNF-854801",
      "source_ref": "feed-2026-08-7952"
    },
    {
      "event_id": "CE-7953",
      "item_id": "RI-8854801",
      "booking_id": "RS-8854801",
      "period": "2026-08",
      "vcc_ref": "VCC-8854801",
      "event_type": "settle",
      "amount": 303.76,
      "currency": "EUR",
      "occurred_at": "2026-08-18T03:00:00Z",
      "valid_from": "2026-08-15",
      "valid_to": "2026-08-19",
      "mcc_lock": "7011 lodging",
      "decline_reason": null,
      "issuer_ref": "CNF-854801",
      "source_ref": "feed-2026-08-7953"
    }
  ],
  "folio": [
    {
      "line_id": "FL-RI-8854801-c0",
      "item_id": "RI-8854801",
      "period": "2026-08",
      "line_date": "2026-08-15",
      "line_type": "fee",
      "description": "City / tourist tax",
      "amount": 2.88,
      "disputed": 0,
      "received_at": "2026-08-20T07:00:00Z",
      "source_ref": "folio-8854801",
      "folio_id": "folio-8854801"
    },
    {
      "line_id": "FL-RI-8854801-a0",
      "item_id": "RI-8854801",
      "period": "2026-08",
      "line_date": "2026-08-15",
      "line_type": "incidental",
      "description": "Breakfast",
      "amount": 34.58,
      "disputed": 0,
      "received_at": "2026-08-20T07:00:00Z",
      "source_ref": "folio-8854801",
      "folio_id": "folio-8854801"
    },
    {
      "line_id": "FL-RI-8854801-r0",
      "item_id": "RI-8854801",
      "period": "2026-08",
      "line_date": "2026-08-15",
      "line_type": "room",
      "description": "Room charge",
      "amount": 242.09,
      "disputed": 0,
      "received_at": "2026-08-20T07:00:00Z",
      "source_ref": "folio-8854801",
      "folio_id": "folio-8854801"
    },
    {
      "line_id": "FL-RI-8854801-v0",
      "item_id": "RI-8854801",
      "period": "2026-08",
      "line_date": "2026-08-15",
      "line_type": "tax",
      "description": "VAT 10%",
      "amount": 24.21,
      "disputed": 0,
      "received_at": "2026-08-20T07:00:00Z",
      "source_ref": "folio-8854801",
      "folio_id": "folio-8854801"
    }
  ],
  "events": [
    {
      "event_id": "RE-RI-8854801-1",
      "item_id": "RI-8854801",
      "period": "2026-08",
      "seq": 1,
      "occurred_at": "2026-08-16T02:10:00Z",
      "event": "opened",
      "actor": "match-engine",
      "actor_type": "rule",
      "note": "Stay complete; reconciliation opened"
    },
    {
      "event_id": "RE-RI-8854801-2",
      "item_id": "RI-8854801",
      "period": "2026-08",
      "seq": 2,
      "occurred_at": "2026-08-18T07:00:00Z",
      "event": "evidence_received",
      "actor": "folio-ingest",
      "actor_type": "rule",
      "note": "Folio received from property"
    },
    {
      "event_id": "RE-RI-8854801-3",
      "item_id": "RI-8854801",
      "period": "2026-08",
      "seq": 3,
      "occurred_at": "2026-08-18T07:05:00Z",
      "event": "matched",
      "actor": "match-engine",
      "actor_type": "rule",
      "note": "Booking, card and folio agree within tolerance"
    },
    {
      "event_id": "RE-RI-8854801-4",
      "item_id": "RI-8854801",
      "period": "2026-08",
      "seq": 4,
      "occurred_at": "2026-08-27T11:00:00Z",
      "event": "resolved",
      "actor": "match-engine",
      "actor_type": "rule",
      "note": "Resolution: legitimate"
    },
    {
      "event_id": "RE-RI-8854801-5",
      "item_id": "RI-8854801",
      "period": "2026-08",
      "seq": 5,
      "occurred_at": "2026-09-15T00: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-8854801-5245",
      "item_id": "RI-8854801",
      "period": "2026-08",
      "legal_entity": "ASL Airlines France SA",
      "entry_date": "2026-08-15",
      "entry_type": "pending",
      "amount": 294.18,
      "balance_effect": -294.18,
      "description": "Authorization held — Ibis Toulouse Blagnac",
      "posted_from_period": null
    },
    {
      "entry_id": "LE-RI-8854801-5246",
      "item_id": "RI-8854801",
      "period": "2026-08",
      "legal_entity": "ASL Airlines France SA",
      "entry_date": "2026-08-18",
      "entry_type": "posted",
      "amount": 303.76,
      "balance_effect": 0,
      "description": "Charge posted — Ibis Toulouse Blagnac",
      "posted_from_period": null
    }
  ],
  "nights": [
    {
      "night": "2026-08-15",
      "room_net": 242.09,
      "vat_amount": 24.21,
      "city_tax": 2.88,
      "ancillaries": 34.58,
      "rate_paid": 269.18,
      "hotel": "Ibis Toulouse Blagnac",
      "duty_reason": "overnight",
      "night_status": "occupied",
      "vcc_ref": "VCC-8854801",
      "checkin_time": "14:00",
      "checkout_time": "04:30"
    }
  ],
  "booking": {
    "booking_id": "RS-8854801",
    "layover_id": "L-514802",
    "duty_id": "D-514801",
    "crew_id": "FRA-1079",
    "entity_id": "ASL Airlines France",
    "legal_entity": "ASL Airlines France SA",
    "station": "TLS",
    "property_id": "P-134",
    "vendor_id": null,
    "contract_id": "C-134",
    "revenue_model": "airline_contract",
    "channel": "automation",
    "requested_by": "rule:roster-watch",
    "created_at": "2026-08-10T14:00:00Z",
    "check_in": "2026-08-15",
    "check_out": "2026-08-16",
    "nights": 1,
    "room_type": "standard",
    "occupancy": 1,
    "lead_time_hours": 120,
    "confirmation_ref": "CNF-854801",
    "cancellation_deadline": "2026-08-14T18:00:00Z",
    "status": "completed",
    "period": "2026-08",
    "total_amount": 319.73
  },
  "duty": {
    "duty_id": "D-514801",
    "crew_id": "FRA-1079",
    "entity_id": "ASL Airlines France",
    "roster_ref": "AIMS/202608/514801",
    "duty_type": "overnight",
    "flight_no": "FPO210",
    "dep_station": "LYS",
    "arr_station": "TLS",
    "duty_start_utc": "2026-08-14T15:30:00Z",
    "duty_end_utc": "2026-08-15T13:15:00Z",
    "duty_hours": 8,
    "block_hours": 7.11,
    "source_system": "aims",
    "published_at": "2026-07-30T06:00:00Z",
    "version": 1
  },
  "layover": {
    "layover_id": "L-514802",
    "duty_in": "D-514801",
    "duty_out": "D-514801R",
    "crew_id": "FRA-1079",
    "entity_id": "ASL Airlines France",
    "station": "TLS",
    "rest_starts_utc": "2026-08-15T13:15:00Z",
    "rest_ends_utc": "2026-08-16T06:00:00Z",
    "rest_hours_available": 16.83,
    "sleep_opportunity_hours": 14.61,
    "transfer_in_minutes": 10,
    "transfer_out_minutes": 10,
    "nights": 1,
    "disrupted": 0,
    "period": "2026-08"
  },
  "evaluation": {
    "eval_id": "PE-14802",
    "period": "2026-08",
    "booking_id": "RS-8854801",
    "item_id": "RI-8854801",
    "ruleset": "2026.2",
    "evaluated_at": "2026-08-10T13:57:00Z",
    "channel": "travel_desk",
    "traveller_type": "crew",
    "entity": "ASL Airlines France",
    "station": "TLS",
    "outcome": "pass",
    "breach_count": 0,
    "cost_impact": 0,
    "self_served": 0
  },
  "approval": null,
  "breaches": [],
  "changes": [],
  "card": {
    "vcc_ref": "VCC-8854801",
    "booking_id": "RS-8854801",
    "item_id": "RI-8854801",
    "period": "2026-08",
    "issued_at": "2026-08-10T14:00:00Z",
    "issuer": "Routespring card program",
    "limit_amount": 344.73,
    "currency": "EUR",
    "valid_from": "2026-08-15",
    "valid_to": "2026-08-23",
    "grace_days": 7,
    "mcc_lock": "7011 lodging",
    "merchant_lock": "Ibis Toulouse Blagnac",
    "auth_count": 1,
    "settled_amount": 303.76,
    "status": "settled",
    "closed_at": "2026-08-18T03:00:00Z"
  },
  "folioDoc": {
    "folio_id": "folio-8854801",
    "booking_id": "RS-8854801",
    "item_id": "RI-8854801",
    "property_id": "P-134",
    "period": "2026-08",
    "folio_number": "TLS260815-8175",
    "guest_name": "O. Marchand",
    "check_in": "2026-08-15",
    "check_out": "2026-08-16",
    "issued_at": "2026-08-16T09:30:00Z",
    "received_at": "2026-08-20T07:00:00Z",
    "received_via": "email_pdf",
    "currency": "EUR",
    "stated_total": 303.76,
    "line_count": 4,
    "days_to_receive": 4.29,
    "disputed": 0
  }
}