{
  "item": {
    "item_id": "RI-8855153",
    "period": "2026-08",
    "booking_id": "RS-8855153",
    "duty_id": "D-515153",
    "entity": "ASL Airlines France",
    "legal_entity": "ASL Airlines France SA",
    "crew_name": "L. Roussel",
    "station": "CDG",
    "property_id": "P-127",
    "hotel": "Pullman Paris CDG",
    "check_in": "2026-08-29",
    "check_out": "2026-08-31",
    "nights": 2,
    "booking_amount": 645,
    "card_auth": 670,
    "card_settled": 645,
    "folio_amount": 645,
    "variance": 0,
    "variance_pct": 0,
    "variance_category": null,
    "match_state": "matched",
    "exception_type": null,
    "state": "final",
    "resolution": "legitimate",
    "opened_at": "2026-08-31T02:10:00Z",
    "resolved_at": "2026-09-02T11:00:00Z",
    "final_at": "2026-09-30T00:01:00Z",
    "final_due_at": "2026-09-30",
    "age_days": 38,
    "auto_resolved": 1
  },
  "cards": [
    {
      "event_id": "CE-9359",
      "item_id": "RI-8855153",
      "booking_id": "RS-8855153",
      "period": "2026-08",
      "vcc_ref": "VCC-8855153",
      "event_type": "issue",
      "amount": null,
      "currency": "EUR",
      "occurred_at": "2026-08-27T09:00:00Z",
      "valid_from": "2026-08-29",
      "valid_to": "2026-09-03",
      "mcc_lock": "7011 lodging",
      "decline_reason": null,
      "issuer_ref": "CNF-855153",
      "source_ref": "feed-2026-08-9359"
    },
    {
      "event_id": "CE-9360",
      "item_id": "RI-8855153",
      "booking_id": "RS-8855153",
      "period": "2026-08",
      "vcc_ref": "VCC-8855153",
      "event_type": "auth",
      "amount": 670,
      "currency": "EUR",
      "occurred_at": "2026-08-29T14:20:00Z",
      "valid_from": "2026-08-29",
      "valid_to": "2026-09-03",
      "mcc_lock": "7011 lodging",
      "decline_reason": null,
      "issuer_ref": "CNF-855153",
      "source_ref": "feed-2026-08-9360"
    },
    {
      "event_id": "CE-9361",
      "item_id": "RI-8855153",
      "booking_id": "RS-8855153",
      "period": "2026-08",
      "vcc_ref": "VCC-8855153",
      "event_type": "capture",
      "amount": 645,
      "currency": "EUR",
      "occurred_at": "2026-08-31T08:05:00Z",
      "valid_from": "2026-08-29",
      "valid_to": "2026-09-03",
      "mcc_lock": "7011 lodging",
      "decline_reason": null,
      "issuer_ref": "CNF-855153",
      "source_ref": "feed-2026-08-9361"
    },
    {
      "event_id": "CE-9362",
      "item_id": "RI-8855153",
      "booking_id": "RS-8855153",
      "period": "2026-08",
      "vcc_ref": "VCC-8855153",
      "event_type": "settle",
      "amount": 645,
      "currency": "EUR",
      "occurred_at": "2026-09-02T03:00:00Z",
      "valid_from": "2026-08-29",
      "valid_to": "2026-09-03",
      "mcc_lock": "7011 lodging",
      "decline_reason": null,
      "issuer_ref": "CNF-855153",
      "source_ref": "feed-2026-08-9362"
    }
  ],
  "folio": [
    {
      "line_id": "FL-RI-8855153-c0",
      "item_id": "RI-8855153",
      "period": "2026-08",
      "line_date": "2026-08-29",
      "line_type": "fee",
      "description": "City / tourist tax",
      "amount": 5.2,
      "disputed": 0,
      "received_at": "2026-09-05T07:00:00Z",
      "source_ref": "folio-8855153",
      "folio_id": "folio-8855153"
    },
    {
      "line_id": "FL-RI-8855153-r0",
      "item_id": "RI-8855153",
      "period": "2026-08",
      "line_date": "2026-08-29",
      "line_type": "room",
      "description": "Room charge",
      "amount": 290.83,
      "disputed": 0,
      "received_at": "2026-09-05T07:00:00Z",
      "source_ref": "folio-8855153",
      "folio_id": "folio-8855153"
    },
    {
      "line_id": "FL-RI-8855153-v0",
      "item_id": "RI-8855153",
      "period": "2026-08",
      "line_date": "2026-08-29",
      "line_type": "tax",
      "description": "VAT 10%",
      "amount": 29.08,
      "disputed": 0,
      "received_at": "2026-09-05T07:00:00Z",
      "source_ref": "folio-8855153",
      "folio_id": "folio-8855153"
    },
    {
      "line_id": "FL-RI-8855153-c1",
      "item_id": "RI-8855153",
      "period": "2026-08",
      "line_date": "2026-08-30",
      "line_type": "fee",
      "description": "City / tourist tax",
      "amount": 5.2,
      "disputed": 0,
      "received_at": "2026-09-05T07:00:00Z",
      "source_ref": "folio-8855153",
      "folio_id": "folio-8855153"
    },
    {
      "line_id": "FL-RI-8855153-r1",
      "item_id": "RI-8855153",
      "period": "2026-08",
      "line_date": "2026-08-30",
      "line_type": "room",
      "description": "Room charge",
      "amount": 286.08,
      "disputed": 0,
      "received_at": "2026-09-05T07:00:00Z",
      "source_ref": "folio-8855153",
      "folio_id": "folio-8855153"
    },
    {
      "line_id": "FL-RI-8855153-v1",
      "item_id": "RI-8855153",
      "period": "2026-08",
      "line_date": "2026-08-30",
      "line_type": "tax",
      "description": "VAT 10%",
      "amount": 28.61,
      "disputed": 0,
      "received_at": "2026-09-05T07:00:00Z",
      "source_ref": "folio-8855153",
      "folio_id": "folio-8855153"
    }
  ],
  "events": [
    {
      "event_id": "RE-RI-8855153-1",
      "item_id": "RI-8855153",
      "period": "2026-08",
      "seq": 1,
      "occurred_at": "2026-08-31T02:10:00Z",
      "event": "opened",
      "actor": "match-engine",
      "actor_type": "rule",
      "note": "Stay complete; reconciliation opened"
    },
    {
      "event_id": "RE-RI-8855153-2",
      "item_id": "RI-8855153",
      "period": "2026-08",
      "seq": 2,
      "occurred_at": "2026-09-02T07:00:00Z",
      "event": "evidence_received",
      "actor": "folio-ingest",
      "actor_type": "rule",
      "note": "Folio received from property"
    },
    {
      "event_id": "RE-RI-8855153-3",
      "item_id": "RI-8855153",
      "period": "2026-08",
      "seq": 3,
      "occurred_at": "2026-09-02T07:05:00Z",
      "event": "matched",
      "actor": "match-engine",
      "actor_type": "rule",
      "note": "Booking, card and folio agree within tolerance"
    },
    {
      "event_id": "RE-RI-8855153-4",
      "item_id": "RI-8855153",
      "period": "2026-08",
      "seq": 4,
      "occurred_at": "2026-09-03T11:00:00Z",
      "event": "resolved",
      "actor": "match-engine",
      "actor_type": "rule",
      "note": "Resolution: legitimate"
    },
    {
      "event_id": "RE-RI-8855153-5",
      "item_id": "RI-8855153",
      "period": "2026-08",
      "seq": 5,
      "occurred_at": "2026-09-30T00: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-8855153-6162",
      "item_id": "RI-8855153",
      "period": "2026-08",
      "legal_entity": "ASL Airlines France SA",
      "entry_date": "2026-08-29",
      "entry_type": "pending",
      "amount": 670,
      "balance_effect": -670,
      "description": "Authorization held — Pullman Paris CDG",
      "posted_from_period": null
    },
    {
      "entry_id": "LE-RI-8855153-6163",
      "item_id": "RI-8855153",
      "period": "2026-08",
      "legal_entity": "ASL Airlines France SA",
      "entry_date": "2026-09-02",
      "entry_type": "posted",
      "amount": 645,
      "balance_effect": 0,
      "description": "Charge posted — Pullman Paris CDG",
      "posted_from_period": null
    },
    {
      "entry_id": "LE-RI-8855153-6164",
      "item_id": "RI-8855153",
      "period": "2026-08",
      "legal_entity": "ASL Airlines France SA",
      "entry_date": "2026-09-02",
      "entry_type": "released",
      "amount": 25,
      "balance_effect": 25,
      "description": "Unused authorization released",
      "posted_from_period": null
    }
  ],
  "nights": [
    {
      "night": "2026-08-29",
      "room_net": 290.83,
      "vat_amount": 29.08,
      "city_tax": 5.2,
      "ancillaries": 0,
      "rate_paid": 325.11,
      "hotel": "Pullman Paris CDG",
      "duty_reason": "overnight",
      "night_status": "occupied",
      "vcc_ref": "VCC-8855153",
      "checkin_time": "16:00",
      "checkout_time": "12:00"
    },
    {
      "night": "2026-08-30",
      "room_net": 286.08,
      "vat_amount": 28.61,
      "city_tax": 5.2,
      "ancillaries": 0,
      "rate_paid": 319.89,
      "hotel": "Pullman Paris CDG",
      "duty_reason": "overnight",
      "night_status": "occupied",
      "vcc_ref": "VCC-8855153",
      "checkin_time": "16:00",
      "checkout_time": "12:00"
    }
  ],
  "booking": {
    "booking_id": "RS-8855153",
    "layover_id": "L-515154",
    "duty_id": "D-515153",
    "crew_id": "FRA-1030",
    "entity_id": "ASL Airlines France",
    "legal_entity": "ASL Airlines France SA",
    "station": "CDG",
    "property_id": "P-127",
    "vendor_id": "VEN-04",
    "contract_id": null,
    "revenue_model": "vendor_commission",
    "channel": "automation",
    "requested_by": "rule:roster-watch",
    "created_at": "2026-08-29T04:00:00Z",
    "check_in": "2026-08-29",
    "check_out": "2026-08-31",
    "nights": 2,
    "room_type": "standard",
    "occupancy": 1,
    "lead_time_hours": 12,
    "confirmation_ref": "CNF-855153",
    "cancellation_deadline": null,
    "status": "completed",
    "period": "2026-08",
    "total_amount": 660.97
  },
  "duty": {
    "duty_id": "D-515153",
    "crew_id": "FRA-1030",
    "entity_id": "ASL Airlines France",
    "roster_ref": "AIMS/202608/515153",
    "duty_type": "overnight",
    "flight_no": "FPO481",
    "dep_station": "MRS",
    "arr_station": "CDG",
    "duty_start_utc": "2026-08-28T15:30:00Z",
    "duty_end_utc": "2026-08-29T15:11:00Z",
    "duty_hours": 7.52,
    "block_hours": 6.37,
    "source_system": "aims",
    "published_at": "2026-08-12T06:00:00Z",
    "version": 1
  },
  "layover": {
    "layover_id": "L-515154",
    "duty_in": "D-515153",
    "duty_out": "D-515153R",
    "crew_id": "FRA-1030",
    "entity_id": "ASL Airlines France",
    "station": "CDG",
    "rest_starts_utc": "2026-08-29T15:11:00Z",
    "rest_ends_utc": "2026-08-31T11:20:00Z",
    "rest_hours_available": 39.69,
    "sleep_opportunity_hours": 37.39,
    "transfer_in_minutes": 14,
    "transfer_out_minutes": 12,
    "nights": 2,
    "disrupted": 0,
    "period": "2026-08"
  },
  "evaluation": {
    "eval_id": "PE-15154",
    "period": "2026-08",
    "booking_id": "RS-8855153",
    "item_id": "RI-8855153",
    "ruleset": "2026.2",
    "evaluated_at": "2026-08-29T03:57:00Z",
    "channel": "automation",
    "traveller_type": "crew",
    "entity": "ASL Airlines France",
    "station": "CDG",
    "outcome": "soft_breach",
    "breach_count": 2,
    "cost_impact": 116.58,
    "self_served": 0
  },
  "approval": null,
  "breaches": [
    {
      "breach_id": "PB-7810",
      "eval_id": "PE-15154",
      "period": "2026-08",
      "rule_id": "R-SOURCE",
      "layer": "commercial",
      "severity": "warn",
      "observed": "GDS / last-room",
      "limit_value": "contract > bedbank > GDS",
      "cost_impact": 94.46,
      "resolved": "auto_allowed",
      "name": "Inventory order",
      "authority": "Routespring",
      "reference": null
    },
    {
      "breach_id": "PB-7811",
      "eval_id": "PE-15154",
      "period": "2026-08",
      "rule_id": "R-WINDOW",
      "layer": "commercial",
      "severity": "warn",
      "observed": "0.5 days",
      "limit_value": "48 hours",
      "cost_impact": 22.12,
      "resolved": "auto_allowed",
      "name": "Advance booking window",
      "authority": "ASL",
      "reference": null
    }
  ],
  "changes": [
    {
      "change_id": "BC-1855",
      "booking_id": "RS-8855153",
      "period": "2026-08",
      "occurred_at": "2026-08-29T06:12:00Z",
      "change_type": "modify_in_place",
      "source": "aims",
      "trigger": "roster_change",
      "modify_attempted": 1,
      "failed_reason": null,
      "hours_before_checkin": 87.1,
      "cutoff_hours": 24,
      "cost": 15.13,
      "room_lost": 0,
      "resolved_by": "automation",
      "resolved_at": null,
      "sla_breached": 0
    }
  ],
  "card": {
    "vcc_ref": "VCC-8855153",
    "booking_id": "RS-8855153",
    "item_id": "RI-8855153",
    "period": "2026-08",
    "issued_at": "2026-08-29T04:00:00Z",
    "issuer": "Routespring card program",
    "limit_amount": 685.97,
    "currency": "EUR",
    "valid_from": "2026-08-29",
    "valid_to": "2026-09-07",
    "grace_days": 7,
    "mcc_lock": "7011 lodging",
    "merchant_lock": "Pullman Paris CDG",
    "auth_count": 2,
    "settled_amount": 645,
    "status": "settled",
    "closed_at": "2026-09-02T03:00:00Z"
  },
  "folioDoc": {
    "folio_id": "folio-8855153",
    "booking_id": "RS-8855153",
    "item_id": "RI-8855153",
    "property_id": "P-127",
    "period": "2026-08",
    "folio_number": "CDG260829-7911",
    "guest_name": "L. Roussel",
    "check_in": "2026-08-29",
    "check_out": "2026-08-31",
    "issued_at": "2026-08-31T09:30:00Z",
    "received_at": "2026-09-05T07:00:00Z",
    "received_via": "portal",
    "currency": "EUR",
    "stated_total": 645,
    "line_count": 6,
    "days_to_receive": 5.29,
    "disputed": 0
  }
}