{
  "item": {
    "item_id": "RI-8854815",
    "period": "2026-08",
    "booking_id": "RS-8854815",
    "duty_id": "D-514815",
    "entity": "ASL Airlines France",
    "legal_entity": "ASL Airlines France SA",
    "crew_name": "A. Berger",
    "station": "TLS",
    "property_id": "P-133",
    "hotel": "Pullman Toulouse Airport",
    "check_in": "2026-08-08",
    "check_out": "2026-08-11",
    "nights": 3,
    "booking_amount": 742.32,
    "card_auth": 767.32,
    "card_settled": 742.32,
    "folio_amount": 742.32,
    "variance": 0,
    "variance_pct": 0,
    "variance_category": null,
    "match_state": "matched",
    "exception_type": null,
    "state": "final",
    "resolution": "legitimate",
    "opened_at": "2026-08-11T02:10:00Z",
    "resolved_at": "2026-08-22T11:00:00Z",
    "final_at": "2026-09-10T00:01:00Z",
    "final_due_at": "2026-09-10",
    "age_days": 32,
    "auto_resolved": 1
  },
  "cards": [
    {
      "event_id": "CE-8005",
      "item_id": "RI-8854815",
      "booking_id": "RS-8854815",
      "period": "2026-08",
      "vcc_ref": "VCC-8854815",
      "event_type": "issue",
      "amount": null,
      "currency": "EUR",
      "occurred_at": "2026-08-06T09:00:00Z",
      "valid_from": "2026-08-08",
      "valid_to": "2026-08-14",
      "mcc_lock": "7011 lodging",
      "decline_reason": null,
      "issuer_ref": "CNF-854815",
      "source_ref": "feed-2026-08-8005"
    },
    {
      "event_id": "CE-8006",
      "item_id": "RI-8854815",
      "booking_id": "RS-8854815",
      "period": "2026-08",
      "vcc_ref": "VCC-8854815",
      "event_type": "auth",
      "amount": 767.32,
      "currency": "EUR",
      "occurred_at": "2026-08-08T14:20:00Z",
      "valid_from": "2026-08-08",
      "valid_to": "2026-08-14",
      "mcc_lock": "7011 lodging",
      "decline_reason": null,
      "issuer_ref": "CNF-854815",
      "source_ref": "feed-2026-08-8006"
    },
    {
      "event_id": "CE-8007",
      "item_id": "RI-8854815",
      "booking_id": "RS-8854815",
      "period": "2026-08",
      "vcc_ref": "VCC-8854815",
      "event_type": "capture",
      "amount": 742.32,
      "currency": "EUR",
      "occurred_at": "2026-08-11T08:05:00Z",
      "valid_from": "2026-08-08",
      "valid_to": "2026-08-14",
      "mcc_lock": "7011 lodging",
      "decline_reason": null,
      "issuer_ref": "CNF-854815",
      "source_ref": "feed-2026-08-8007"
    },
    {
      "event_id": "CE-8008",
      "item_id": "RI-8854815",
      "booking_id": "RS-8854815",
      "period": "2026-08",
      "vcc_ref": "VCC-8854815",
      "event_type": "settle",
      "amount": 742.32,
      "currency": "EUR",
      "occurred_at": "2026-08-13T03:00:00Z",
      "valid_from": "2026-08-08",
      "valid_to": "2026-08-14",
      "mcc_lock": "7011 lodging",
      "decline_reason": null,
      "issuer_ref": "CNF-854815",
      "source_ref": "feed-2026-08-8008"
    }
  ],
  "folio": [
    {
      "line_id": "FL-RI-8854815-c0",
      "item_id": "RI-8854815",
      "period": "2026-08",
      "line_date": "2026-08-08",
      "line_type": "fee",
      "description": "City / tourist tax",
      "amount": 2.88,
      "disputed": 0,
      "received_at": "2026-08-13T07:00:00Z",
      "source_ref": "folio-8854815",
      "folio_id": "folio-8854815"
    },
    {
      "line_id": "FL-RI-8854815-r0",
      "item_id": "RI-8854815",
      "period": "2026-08",
      "line_date": "2026-08-08",
      "line_type": "room",
      "description": "Room charge",
      "amount": 210.69,
      "disputed": 0,
      "received_at": "2026-08-13T07:00:00Z",
      "source_ref": "folio-8854815",
      "folio_id": "folio-8854815"
    },
    {
      "line_id": "FL-RI-8854815-v0",
      "item_id": "RI-8854815",
      "period": "2026-08",
      "line_date": "2026-08-08",
      "line_type": "tax",
      "description": "VAT 10%",
      "amount": 21.07,
      "disputed": 0,
      "received_at": "2026-08-13T07:00:00Z",
      "source_ref": "folio-8854815",
      "folio_id": "folio-8854815"
    },
    {
      "line_id": "FL-RI-8854815-c1",
      "item_id": "RI-8854815",
      "period": "2026-08",
      "line_date": "2026-08-09",
      "line_type": "fee",
      "description": "City / tourist tax",
      "amount": 2.88,
      "disputed": 0,
      "received_at": "2026-08-13T07:00:00Z",
      "source_ref": "folio-8854815",
      "folio_id": "folio-8854815"
    },
    {
      "line_id": "FL-RI-8854815-r1",
      "item_id": "RI-8854815",
      "period": "2026-08",
      "line_date": "2026-08-09",
      "line_type": "room",
      "description": "Room charge",
      "amount": 219.55,
      "disputed": 0,
      "received_at": "2026-08-13T07:00:00Z",
      "source_ref": "folio-8854815",
      "folio_id": "folio-8854815"
    },
    {
      "line_id": "FL-RI-8854815-v1",
      "item_id": "RI-8854815",
      "period": "2026-08",
      "line_date": "2026-08-09",
      "line_type": "tax",
      "description": "VAT 10%",
      "amount": 21.95,
      "disputed": 0,
      "received_at": "2026-08-13T07:00:00Z",
      "source_ref": "folio-8854815",
      "folio_id": "folio-8854815"
    },
    {
      "line_id": "FL-RI-8854815-c2",
      "item_id": "RI-8854815",
      "period": "2026-08",
      "line_date": "2026-08-10",
      "line_type": "fee",
      "description": "City / tourist tax",
      "amount": 2.88,
      "disputed": 0,
      "received_at": "2026-08-13T07:00:00Z",
      "source_ref": "folio-8854815",
      "folio_id": "folio-8854815"
    },
    {
      "line_id": "FL-RI-8854815-r2",
      "item_id": "RI-8854815",
      "period": "2026-08",
      "line_date": "2026-08-10",
      "line_type": "room",
      "description": "Room charge",
      "amount": 236.75,
      "disputed": 0,
      "received_at": "2026-08-13T07:00:00Z",
      "source_ref": "folio-8854815",
      "folio_id": "folio-8854815"
    },
    {
      "line_id": "FL-RI-8854815-v2",
      "item_id": "RI-8854815",
      "period": "2026-08",
      "line_date": "2026-08-10",
      "line_type": "tax",
      "description": "VAT 10%",
      "amount": 23.67,
      "disputed": 0,
      "received_at": "2026-08-13T07:00:00Z",
      "source_ref": "folio-8854815",
      "folio_id": "folio-8854815"
    }
  ],
  "events": [
    {
      "event_id": "RE-RI-8854815-1",
      "item_id": "RI-8854815",
      "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-8854815-2",
      "item_id": "RI-8854815",
      "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-8854815-3",
      "item_id": "RI-8854815",
      "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-8854815-4",
      "item_id": "RI-8854815",
      "period": "2026-08",
      "seq": 4,
      "occurred_at": "2026-08-19T11:00:00Z",
      "event": "resolved",
      "actor": "match-engine",
      "actor_type": "rule",
      "note": "Resolution: legitimate"
    },
    {
      "event_id": "RE-RI-8854815-5",
      "item_id": "RI-8854815",
      "period": "2026-08",
      "seq": 5,
      "occurred_at": "2026-09-10T00: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-8854815-5282",
      "item_id": "RI-8854815",
      "period": "2026-08",
      "legal_entity": "ASL Airlines France SA",
      "entry_date": "2026-08-08",
      "entry_type": "pending",
      "amount": 767.32,
      "balance_effect": -767.32,
      "description": "Authorization held — Pullman Toulouse Airport",
      "posted_from_period": null
    },
    {
      "entry_id": "LE-RI-8854815-5283",
      "item_id": "RI-8854815",
      "period": "2026-08",
      "legal_entity": "ASL Airlines France SA",
      "entry_date": "2026-08-13",
      "entry_type": "posted",
      "amount": 742.32,
      "balance_effect": 0,
      "description": "Charge posted — Pullman Toulouse Airport",
      "posted_from_period": null
    },
    {
      "entry_id": "LE-RI-8854815-5284",
      "item_id": "RI-8854815",
      "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-08",
      "room_net": 210.69,
      "vat_amount": 21.07,
      "city_tax": 2.88,
      "ancillaries": 0,
      "rate_paid": 234.64,
      "hotel": "Pullman Toulouse Airport",
      "duty_reason": "overnight",
      "night_status": "no_show",
      "vcc_ref": "VCC-8854815",
      "checkin_time": "16:00",
      "checkout_time": "12:00"
    },
    {
      "night": "2026-08-09",
      "room_net": 219.55,
      "vat_amount": 21.95,
      "city_tax": 2.88,
      "ancillaries": 0,
      "rate_paid": 244.38,
      "hotel": "Pullman Toulouse Airport",
      "duty_reason": "overnight",
      "night_status": "occupied",
      "vcc_ref": "VCC-8854815",
      "checkin_time": "16:00",
      "checkout_time": "12:00"
    },
    {
      "night": "2026-08-10",
      "room_net": 236.75,
      "vat_amount": 23.67,
      "city_tax": 2.88,
      "ancillaries": 0,
      "rate_paid": 263.3,
      "hotel": "Pullman Toulouse Airport",
      "duty_reason": "overnight",
      "night_status": "occupied",
      "vcc_ref": "VCC-8854815",
      "checkin_time": "16:00",
      "checkout_time": "12:00"
    }
  ],
  "booking": {
    "booking_id": "RS-8854815",
    "layover_id": "L-514816",
    "duty_id": "D-514815",
    "crew_id": "FRA-1011",
    "entity_id": "ASL Airlines France",
    "legal_entity": "ASL Airlines France SA",
    "station": "TLS",
    "property_id": "P-133",
    "vendor_id": "VEN-02",
    "contract_id": null,
    "revenue_model": "vendor_net",
    "channel": "automation",
    "requested_by": "rule:roster-watch",
    "created_at": "2026-08-06T16:00:00Z",
    "check_in": "2026-08-08",
    "check_out": "2026-08-11",
    "nights": 3,
    "room_type": "standard",
    "occupancy": 1,
    "lead_time_hours": 48,
    "confirmation_ref": "CNF-854815",
    "cancellation_deadline": null,
    "status": "completed",
    "period": "2026-08",
    "total_amount": 758.29
  },
  "duty": {
    "duty_id": "D-514815",
    "crew_id": "FRA-1011",
    "entity_id": "ASL Airlines France",
    "roster_ref": "AIMS/202608/514815",
    "duty_type": "overnight",
    "flight_no": "FPO435",
    "dep_station": "CDG",
    "arr_station": "TLS",
    "duty_start_utc": "2026-08-07T18:05:00Z",
    "duty_end_utc": "2026-08-08T15:03:00Z",
    "duty_hours": 7.76,
    "block_hours": 7.41,
    "source_system": "aims",
    "published_at": "2026-08-02T06:00:00Z",
    "version": 1
  },
  "layover": {
    "layover_id": "L-514816",
    "duty_in": "D-514815",
    "duty_out": "D-514815R",
    "crew_id": "FRA-1011",
    "entity_id": "ASL Airlines France",
    "station": "TLS",
    "rest_starts_utc": "2026-08-08T15:03:00Z",
    "rest_ends_utc": "2026-08-11T06:00:00Z",
    "rest_hours_available": 59.86,
    "sleep_opportunity_hours": 57.34,
    "transfer_in_minutes": 22,
    "transfer_out_minutes": 21,
    "nights": 3,
    "disrupted": 0,
    "period": "2026-08"
  },
  "evaluation": {
    "eval_id": "PE-14816",
    "period": "2026-08",
    "booking_id": "RS-8854815",
    "item_id": "RI-8854815",
    "ruleset": "2026.2",
    "evaluated_at": "2026-08-06T15:57:00Z",
    "channel": "automation",
    "traveller_type": "crew",
    "entity": "ASL Airlines France",
    "station": "TLS",
    "outcome": "soft_breach",
    "breach_count": 1,
    "cost_impact": 91.33,
    "self_served": 0
  },
  "approval": {
    "approval_id": "PA-3055",
    "eval_id": "PE-14816",
    "period": "2026-08",
    "approver": "R. Menon",
    "approver_role": "travel_desk",
    "reason": "Rate cap exceeded, no alternative within transfer limit",
    "approved_at": "2026-08-06T15:58:48Z",
    "second_approver": null
  },
  "breaches": [
    {
      "breach_id": "PB-7660",
      "eval_id": "PE-14816",
      "period": "2026-08",
      "rule_id": "R-PREF",
      "layer": "commercial",
      "severity": "approve",
      "observed": "Booked away from preferred order",
      "limit_value": "preferred order",
      "cost_impact": 91.33,
      "resolved": "approved",
      "name": "Preferred property order",
      "authority": "Routespring",
      "reference": null
    }
  ],
  "changes": [],
  "card": {
    "vcc_ref": "VCC-8854815",
    "booking_id": "RS-8854815",
    "item_id": "RI-8854815",
    "period": "2026-08",
    "issued_at": "2026-08-06T16:00:00Z",
    "issuer": "Routespring card program",
    "limit_amount": 783.29,
    "currency": "EUR",
    "valid_from": "2026-08-08",
    "valid_to": "2026-08-18",
    "grace_days": 7,
    "mcc_lock": "7011 lodging",
    "merchant_lock": "Pullman Toulouse Airport",
    "auth_count": 3,
    "settled_amount": 742.32,
    "status": "settled",
    "closed_at": "2026-08-13T03:00:00Z"
  },
  "folioDoc": {
    "folio_id": "folio-8854815",
    "booking_id": "RS-8854815",
    "item_id": "RI-8854815",
    "property_id": "P-133",
    "period": "2026-08",
    "folio_number": "TLS260808-6259",
    "guest_name": "A. Berger",
    "check_in": "2026-08-08",
    "check_out": "2026-08-11",
    "issued_at": "2026-08-11T09:30:00Z",
    "received_at": "2026-08-13T07:00:00Z",
    "received_via": "portal",
    "currency": "EUR",
    "stated_total": 742.32,
    "line_count": 9,
    "days_to_receive": 2.29,
    "disputed": 0
  }
}