{
  "item": {
    "item_id": "RI-8854714",
    "period": "2026-08",
    "booking_id": "RS-8854714",
    "duty_id": "D-514714",
    "entity": "ASL Airlines France",
    "legal_entity": "ASL Airlines France SA",
    "crew_name": "B. Moreau",
    "station": "MRS",
    "property_id": "P-131",
    "hotel": "Best Western Marseille Airport",
    "check_in": "2026-08-09",
    "check_out": "2026-08-11",
    "nights": 2,
    "booking_amount": 615.64,
    "card_auth": 640.64,
    "card_settled": 615.64,
    "folio_amount": 615.64,
    "variance": 0,
    "variance_pct": 0,
    "variance_category": null,
    "match_state": "matched",
    "exception_type": null,
    "state": "resolved",
    "resolution": "legitimate",
    "opened_at": "2026-08-11T02:10:00Z",
    "resolved_at": "2026-08-17T11:00:00Z",
    "final_at": null,
    "final_due_at": "2026-09-10",
    "age_days": 39,
    "auto_resolved": 1
  },
  "cards": [
    {
      "event_id": "CE-7600",
      "item_id": "RI-8854714",
      "booking_id": "RS-8854714",
      "period": "2026-08",
      "vcc_ref": "VCC-8854714",
      "event_type": "issue",
      "amount": null,
      "currency": "EUR",
      "occurred_at": "2026-08-07T09:00:00Z",
      "valid_from": "2026-08-09",
      "valid_to": "2026-08-14",
      "mcc_lock": "7011 lodging",
      "decline_reason": null,
      "issuer_ref": "CNF-854714",
      "source_ref": "feed-2026-08-7600"
    },
    {
      "event_id": "CE-7601",
      "item_id": "RI-8854714",
      "booking_id": "RS-8854714",
      "period": "2026-08",
      "vcc_ref": "VCC-8854714",
      "event_type": "auth",
      "amount": 640.64,
      "currency": "EUR",
      "occurred_at": "2026-08-09T14:20:00Z",
      "valid_from": "2026-08-09",
      "valid_to": "2026-08-14",
      "mcc_lock": "7011 lodging",
      "decline_reason": null,
      "issuer_ref": "CNF-854714",
      "source_ref": "feed-2026-08-7601"
    },
    {
      "event_id": "CE-7602",
      "item_id": "RI-8854714",
      "booking_id": "RS-8854714",
      "period": "2026-08",
      "vcc_ref": "VCC-8854714",
      "event_type": "capture",
      "amount": 615.64,
      "currency": "EUR",
      "occurred_at": "2026-08-11T08:05:00Z",
      "valid_from": "2026-08-09",
      "valid_to": "2026-08-14",
      "mcc_lock": "7011 lodging",
      "decline_reason": null,
      "issuer_ref": "CNF-854714",
      "source_ref": "feed-2026-08-7602"
    },
    {
      "event_id": "CE-7603",
      "item_id": "RI-8854714",
      "booking_id": "RS-8854714",
      "period": "2026-08",
      "vcc_ref": "VCC-8854714",
      "event_type": "settle",
      "amount": 615.64,
      "currency": "EUR",
      "occurred_at": "2026-08-13T03:00:00Z",
      "valid_from": "2026-08-09",
      "valid_to": "2026-08-14",
      "mcc_lock": "7011 lodging",
      "decline_reason": null,
      "issuer_ref": "CNF-854714",
      "source_ref": "feed-2026-08-7603"
    }
  ],
  "folio": [
    {
      "line_id": "FL-RI-8854714-c0",
      "item_id": "RI-8854714",
      "period": "2026-08",
      "line_date": "2026-08-09",
      "line_type": "fee",
      "description": "City / tourist tax",
      "amount": 3.3,
      "disputed": 0,
      "received_at": "2026-08-16T07:00:00Z",
      "source_ref": "folio-8854714",
      "folio_id": "folio-8854714"
    },
    {
      "line_id": "FL-RI-8854714-r0",
      "item_id": "RI-8854714",
      "period": "2026-08",
      "line_date": "2026-08-09",
      "line_type": "room",
      "description": "Room charge",
      "amount": 257.96,
      "disputed": 0,
      "received_at": "2026-08-16T07:00:00Z",
      "source_ref": "folio-8854714",
      "folio_id": "folio-8854714"
    },
    {
      "line_id": "FL-RI-8854714-v0",
      "item_id": "RI-8854714",
      "period": "2026-08",
      "line_date": "2026-08-09",
      "line_type": "tax",
      "description": "VAT 10%",
      "amount": 25.8,
      "disputed": 0,
      "received_at": "2026-08-16T07:00:00Z",
      "source_ref": "folio-8854714",
      "folio_id": "folio-8854714"
    },
    {
      "line_id": "FL-RI-8854714-c1",
      "item_id": "RI-8854714",
      "period": "2026-08",
      "line_date": "2026-08-10",
      "line_type": "fee",
      "description": "City / tourist tax",
      "amount": 3.3,
      "disputed": 0,
      "received_at": "2026-08-16T07:00:00Z",
      "source_ref": "folio-8854714",
      "folio_id": "folio-8854714"
    },
    {
      "line_id": "FL-RI-8854714-r1",
      "item_id": "RI-8854714",
      "period": "2026-08",
      "line_date": "2026-08-10",
      "line_type": "room",
      "description": "Room charge",
      "amount": 295.71,
      "disputed": 0,
      "received_at": "2026-08-16T07:00:00Z",
      "source_ref": "folio-8854714",
      "folio_id": "folio-8854714"
    },
    {
      "line_id": "FL-RI-8854714-v1",
      "item_id": "RI-8854714",
      "period": "2026-08",
      "line_date": "2026-08-10",
      "line_type": "tax",
      "description": "VAT 10%",
      "amount": 29.57,
      "disputed": 0,
      "received_at": "2026-08-16T07:00:00Z",
      "source_ref": "folio-8854714",
      "folio_id": "folio-8854714"
    }
  ],
  "events": [
    {
      "event_id": "RE-RI-8854714-1",
      "item_id": "RI-8854714",
      "period": "2026-08",
      "seq": 1,
      "occurred_at": "2026-08-11T02:10:00Z",
      "event": "opened",
      "actor": "match-engine",
      "actor_type": "rule",
      "note": "Stay complete; reconciliation opened"
    },
    {
      "event_id": "RE-RI-8854714-2",
      "item_id": "RI-8854714",
      "period": "2026-08",
      "seq": 2,
      "occurred_at": "2026-08-13T07:00:00Z",
      "event": "evidence_received",
      "actor": "folio-ingest",
      "actor_type": "rule",
      "note": "Folio received from property"
    },
    {
      "event_id": "RE-RI-8854714-3",
      "item_id": "RI-8854714",
      "period": "2026-08",
      "seq": 3,
      "occurred_at": "2026-08-13T07:05:00Z",
      "event": "matched",
      "actor": "match-engine",
      "actor_type": "rule",
      "note": "Booking, card and folio agree within tolerance"
    },
    {
      "event_id": "RE-RI-8854714-4",
      "item_id": "RI-8854714",
      "period": "2026-08",
      "seq": 4,
      "occurred_at": "2026-08-16T11:00:00Z",
      "event": "resolved",
      "actor": "match-engine",
      "actor_type": "rule",
      "note": "Resolution: legitimate"
    }
  ],
  "ledger": [
    {
      "entry_id": "LE-RI-8854714-5016",
      "item_id": "RI-8854714",
      "period": "2026-08",
      "legal_entity": "ASL Airlines France SA",
      "entry_date": "2026-08-09",
      "entry_type": "pending",
      "amount": 640.64,
      "balance_effect": -640.64,
      "description": "Authorization held — Best Western Marseille Airport",
      "posted_from_period": null
    },
    {
      "entry_id": "LE-RI-8854714-5017",
      "item_id": "RI-8854714",
      "period": "2026-08",
      "legal_entity": "ASL Airlines France SA",
      "entry_date": "2026-08-13",
      "entry_type": "posted",
      "amount": 615.64,
      "balance_effect": 0,
      "description": "Charge posted — Best Western Marseille Airport",
      "posted_from_period": null
    },
    {
      "entry_id": "LE-RI-8854714-5018",
      "item_id": "RI-8854714",
      "period": "2026-08",
      "legal_entity": "ASL Airlines France SA",
      "entry_date": "2026-08-13",
      "entry_type": "released",
      "amount": 25,
      "balance_effect": 25,
      "description": "Unused authorization released",
      "posted_from_period": null
    }
  ],
  "nights": [
    {
      "night": "2026-08-09",
      "room_net": 257.96,
      "vat_amount": 25.8,
      "city_tax": 3.3,
      "ancillaries": 0,
      "rate_paid": 287.06,
      "hotel": "Best Western Marseille Airport",
      "duty_reason": "training",
      "night_status": "occupied",
      "vcc_ref": "VCC-8854714",
      "checkin_time": "16:00",
      "checkout_time": "12:00"
    },
    {
      "night": "2026-08-10",
      "room_net": 295.71,
      "vat_amount": 29.57,
      "city_tax": 3.3,
      "ancillaries": 0,
      "rate_paid": 328.58,
      "hotel": "Best Western Marseille Airport",
      "duty_reason": "overnight",
      "night_status": "no_show",
      "vcc_ref": "VCC-8854714",
      "checkin_time": "16:00",
      "checkout_time": "12:00"
    }
  ],
  "booking": {
    "booking_id": "RS-8854714",
    "layover_id": "L-514715",
    "duty_id": "D-514714",
    "crew_id": "FRA-1084",
    "entity_id": "ASL Airlines France",
    "legal_entity": "ASL Airlines France SA",
    "station": "MRS",
    "property_id": "P-131",
    "vendor_id": "VEN-04",
    "contract_id": null,
    "revenue_model": "vendor_commission",
    "channel": "crew_app",
    "requested_by": "FRA-1084",
    "created_at": "2026-08-09T04:00:00Z",
    "check_in": "2026-08-09",
    "check_out": "2026-08-11",
    "nights": 2,
    "room_type": "standard",
    "occupancy": 1,
    "lead_time_hours": 12,
    "confirmation_ref": "CNF-854714",
    "cancellation_deadline": null,
    "status": "no_show",
    "period": "2026-08",
    "total_amount": 631.61
  },
  "duty": {
    "duty_id": "D-514714",
    "crew_id": "FRA-1084",
    "entity_id": "ASL Airlines France",
    "roster_ref": "AIMS/202608/514714",
    "duty_type": "training",
    "flight_no": "FPO494",
    "dep_station": "LYS",
    "arr_station": "MRS",
    "duty_start_utc": "2026-08-08T18:05:00Z",
    "duty_end_utc": "2026-08-09T15:07:00Z",
    "duty_hours": 11.73,
    "block_hours": 6.29,
    "source_system": "aims",
    "published_at": "2026-07-30T06:00:00Z",
    "version": 1
  },
  "layover": {
    "layover_id": "L-514715",
    "duty_in": "D-514714",
    "duty_out": "D-514714R",
    "crew_id": "FRA-1084",
    "entity_id": "ASL Airlines France",
    "station": "MRS",
    "rest_starts_utc": "2026-08-09T15:07:00Z",
    "rest_ends_utc": "2026-08-11T08:45:00Z",
    "rest_hours_available": 40.07,
    "sleep_opportunity_hours": 37.6,
    "transfer_in_minutes": 18,
    "transfer_out_minutes": 20,
    "nights": 2,
    "disrupted": 0,
    "period": "2026-08"
  },
  "evaluation": {
    "eval_id": "PE-14715",
    "period": "2026-08",
    "booking_id": "RS-8854714",
    "item_id": "RI-8854714",
    "ruleset": "2026.2",
    "evaluated_at": "2026-08-09T03:57:00Z",
    "channel": "automation",
    "traveller_type": "crew",
    "entity": "ASL Airlines France",
    "station": "MRS",
    "outcome": "soft_breach",
    "breach_count": 2,
    "cost_impact": 156.33,
    "self_served": 0
  },
  "approval": {
    "approval_id": "PA-3045",
    "eval_id": "PE-14715",
    "period": "2026-08",
    "approver": "P. Costa",
    "approver_role": "travel_desk",
    "reason": "Single-night stay, sourcing not economic",
    "approved_at": "2026-08-09T03:58:48Z",
    "second_approver": null
  },
  "breaches": [
    {
      "breach_id": "PB-7625",
      "eval_id": "PE-14715",
      "period": "2026-08",
      "rule_id": "R-PREF",
      "layer": "commercial",
      "severity": "approve",
      "observed": "Booked away from preferred order",
      "limit_value": "preferred order",
      "cost_impact": 105.39,
      "resolved": "approved",
      "name": "Preferred property order",
      "authority": "Routespring",
      "reference": null
    },
    {
      "breach_id": "PB-7626",
      "eval_id": "PE-14715",
      "period": "2026-08",
      "rule_id": "R-SOURCE",
      "layer": "commercial",
      "severity": "warn",
      "observed": "GDS / last-room",
      "limit_value": "contract > bedbank > GDS",
      "cost_impact": 50.94,
      "resolved": "auto_allowed",
      "name": "Inventory order",
      "authority": "Routespring",
      "reference": null
    }
  ],
  "changes": [
    {
      "change_id": "BC-1795",
      "booking_id": "RS-8854714",
      "period": "2026-08",
      "occurred_at": "2026-08-09T17:22:00Z",
      "change_type": "cancel_rebook",
      "source": "aims",
      "trigger": "roster_change",
      "modify_attempted": 1,
      "failed_reason": "hotel_cutoff",
      "hours_before_checkin": 1.36,
      "cutoff_hours": 24,
      "cost": 213.87,
      "room_lost": 1,
      "resolved_by": "human",
      "resolved_at": "2026-08-09T18:40:00Z",
      "sla_breached": 0
    }
  ],
  "card": {
    "vcc_ref": "VCC-8854714",
    "booking_id": "RS-8854714",
    "item_id": "RI-8854714",
    "period": "2026-08",
    "issued_at": "2026-08-09T04:00:00Z",
    "issuer": "Routespring card program",
    "limit_amount": 656.61,
    "currency": "EUR",
    "valid_from": "2026-08-09",
    "valid_to": "2026-08-18",
    "grace_days": 7,
    "mcc_lock": "7011 lodging",
    "merchant_lock": "Best Western Marseille Airport",
    "auth_count": 2,
    "settled_amount": 615.64,
    "status": "settled",
    "closed_at": "2026-08-13T03:00:00Z"
  },
  "folioDoc": {
    "folio_id": "folio-8854714",
    "booking_id": "RS-8854714",
    "item_id": "RI-8854714",
    "property_id": "P-131",
    "period": "2026-08",
    "folio_number": "MRS260809-5312",
    "guest_name": "B. Moreau",
    "check_in": "2026-08-09",
    "check_out": "2026-08-11",
    "issued_at": "2026-08-11T09:30:00Z",
    "received_at": "2026-08-16T07:00:00Z",
    "received_via": "pms_feed",
    "currency": "EUR",
    "stated_total": 615.64,
    "line_count": 6,
    "days_to_receive": 5.29,
    "disputed": 0
  }
}