{
  "item": {
    "item_id": "RI-8854984",
    "period": "2026-08",
    "booking_id": "RS-8854984",
    "duty_id": "D-514984",
    "entity": "ASL Airlines France",
    "legal_entity": "ASL Airlines France SA",
    "crew_name": "E. Aubert",
    "station": "LYS",
    "property_id": "P-130",
    "hotel": "Comfort Hotel Lyon",
    "check_in": "2026-08-19",
    "check_out": "2026-08-23",
    "nights": 4,
    "booking_amount": 1100.92,
    "card_auth": 1125.92,
    "card_settled": 1389.89,
    "folio_amount": 1389.89,
    "variance": 237.26,
    "variance_pct": 21.55,
    "variance_category": "tax_fees",
    "match_state": "variance",
    "exception_type": "amount_variance",
    "state": "resolved",
    "resolution": "charged_to_crew",
    "opened_at": "2026-08-23T02:10:00Z",
    "resolved_at": "2026-09-03T11:00:00Z",
    "final_at": null,
    "final_due_at": "2026-09-22",
    "age_days": 33,
    "auto_resolved": 0
  },
  "cards": [
    {
      "event_id": "CE-8682",
      "item_id": "RI-8854984",
      "booking_id": "RS-8854984",
      "period": "2026-08",
      "vcc_ref": "VCC-8854984",
      "event_type": "issue",
      "amount": null,
      "currency": "EUR",
      "occurred_at": "2026-08-17T09:00:00Z",
      "valid_from": "2026-08-19",
      "valid_to": "2026-08-26",
      "mcc_lock": "7011 lodging",
      "decline_reason": null,
      "issuer_ref": "CNF-854984",
      "source_ref": "feed-2026-08-8682"
    },
    {
      "event_id": "CE-8683",
      "item_id": "RI-8854984",
      "booking_id": "RS-8854984",
      "period": "2026-08",
      "vcc_ref": "VCC-8854984",
      "event_type": "auth",
      "amount": 1125.92,
      "currency": "EUR",
      "occurred_at": "2026-08-19T14:20:00Z",
      "valid_from": "2026-08-19",
      "valid_to": "2026-08-26",
      "mcc_lock": "7011 lodging",
      "decline_reason": null,
      "issuer_ref": "CNF-854984",
      "source_ref": "feed-2026-08-8683"
    },
    {
      "event_id": "CE-8684",
      "item_id": "RI-8854984",
      "booking_id": "RS-8854984",
      "period": "2026-08",
      "vcc_ref": "VCC-8854984",
      "event_type": "capture",
      "amount": 1389.89,
      "currency": "EUR",
      "occurred_at": "2026-08-23T08:05:00Z",
      "valid_from": "2026-08-19",
      "valid_to": "2026-08-26",
      "mcc_lock": "7011 lodging",
      "decline_reason": null,
      "issuer_ref": "CNF-854984",
      "source_ref": "feed-2026-08-8684"
    },
    {
      "event_id": "CE-8685",
      "item_id": "RI-8854984",
      "booking_id": "RS-8854984",
      "period": "2026-08",
      "vcc_ref": "VCC-8854984",
      "event_type": "settle",
      "amount": 1389.89,
      "currency": "EUR",
      "occurred_at": "2026-08-25T03:00:00Z",
      "valid_from": "2026-08-19",
      "valid_to": "2026-08-26",
      "mcc_lock": "7011 lodging",
      "decline_reason": null,
      "issuer_ref": "CNF-854984",
      "source_ref": "feed-2026-08-8685"
    }
  ],
  "folio": [
    {
      "line_id": "FL-RI-8854984-c0",
      "item_id": "RI-8854984",
      "period": "2026-08",
      "line_date": "2026-08-19",
      "line_type": "fee",
      "description": "City / tourist tax",
      "amount": 3.3,
      "disputed": 0,
      "received_at": "2026-08-25T07:00:00Z",
      "source_ref": "folio-8854984",
      "folio_id": "folio-8854984"
    },
    {
      "line_id": "FL-RI-8854984-r0",
      "item_id": "RI-8854984",
      "period": "2026-08",
      "line_date": "2026-08-19",
      "line_type": "room",
      "description": "Room charge",
      "amount": 247.21,
      "disputed": 0,
      "received_at": "2026-08-25T07:00:00Z",
      "source_ref": "folio-8854984",
      "folio_id": "folio-8854984"
    },
    {
      "line_id": "FL-RI-8854984-v0",
      "item_id": "RI-8854984",
      "period": "2026-08",
      "line_date": "2026-08-19",
      "line_type": "tax",
      "description": "VAT 10%",
      "amount": 24.72,
      "disputed": 0,
      "received_at": "2026-08-25T07:00:00Z",
      "source_ref": "folio-8854984",
      "folio_id": "folio-8854984"
    },
    {
      "line_id": "FL-RI-8854984-c1",
      "item_id": "RI-8854984",
      "period": "2026-08",
      "line_date": "2026-08-20",
      "line_type": "fee",
      "description": "City / tourist tax",
      "amount": 3.3,
      "disputed": 0,
      "received_at": "2026-08-25T07:00:00Z",
      "source_ref": "folio-8854984",
      "folio_id": "folio-8854984"
    },
    {
      "line_id": "FL-RI-8854984-a1",
      "item_id": "RI-8854984",
      "period": "2026-08",
      "line_date": "2026-08-20",
      "line_type": "incidental",
      "description": "Parking",
      "amount": 24.25,
      "disputed": 0,
      "received_at": "2026-08-25T07:00:00Z",
      "source_ref": "folio-8854984",
      "folio_id": "folio-8854984"
    },
    {
      "line_id": "FL-RI-8854984-r1",
      "item_id": "RI-8854984",
      "period": "2026-08",
      "line_date": "2026-08-20",
      "line_type": "room",
      "description": "Room charge",
      "amount": 247.21,
      "disputed": 0,
      "received_at": "2026-08-25T07:00:00Z",
      "source_ref": "folio-8854984",
      "folio_id": "folio-8854984"
    },
    {
      "line_id": "FL-RI-8854984-v1",
      "item_id": "RI-8854984",
      "period": "2026-08",
      "line_date": "2026-08-20",
      "line_type": "tax",
      "description": "VAT 10%",
      "amount": 24.72,
      "disputed": 0,
      "received_at": "2026-08-25T07:00:00Z",
      "source_ref": "folio-8854984",
      "folio_id": "folio-8854984"
    },
    {
      "line_id": "FL-RI-8854984-c2",
      "item_id": "RI-8854984",
      "period": "2026-08",
      "line_date": "2026-08-21",
      "line_type": "fee",
      "description": "City / tourist tax",
      "amount": 3.3,
      "disputed": 0,
      "received_at": "2026-08-25T07:00:00Z",
      "source_ref": "folio-8854984",
      "folio_id": "folio-8854984"
    },
    {
      "line_id": "FL-RI-8854984-a2",
      "item_id": "RI-8854984",
      "period": "2026-08",
      "line_date": "2026-08-21",
      "line_type": "incidental",
      "description": "Late checkout",
      "amount": 27.46,
      "disputed": 0,
      "received_at": "2026-08-25T07:00:00Z",
      "source_ref": "folio-8854984",
      "folio_id": "folio-8854984"
    },
    {
      "line_id": "FL-RI-8854984-r2",
      "item_id": "RI-8854984",
      "period": "2026-08",
      "line_date": "2026-08-21",
      "line_type": "room",
      "description": "Room charge",
      "amount": 247.21,
      "disputed": 0,
      "received_at": "2026-08-25T07:00:00Z",
      "source_ref": "folio-8854984",
      "folio_id": "folio-8854984"
    },
    {
      "line_id": "FL-RI-8854984-v2",
      "item_id": "RI-8854984",
      "period": "2026-08",
      "line_date": "2026-08-21",
      "line_type": "tax",
      "description": "VAT 10%",
      "amount": 24.72,
      "disputed": 0,
      "received_at": "2026-08-25T07:00:00Z",
      "source_ref": "folio-8854984",
      "folio_id": "folio-8854984"
    },
    {
      "line_id": "FL-RI-8854984-c3",
      "item_id": "RI-8854984",
      "period": "2026-08",
      "line_date": "2026-08-22",
      "line_type": "fee",
      "description": "City / tourist tax",
      "amount": 3.3,
      "disputed": 0,
      "received_at": "2026-08-25T07:00:00Z",
      "source_ref": "folio-8854984",
      "folio_id": "folio-8854984"
    },
    {
      "line_id": "FL-RI-8854984-r3",
      "item_id": "RI-8854984",
      "period": "2026-08",
      "line_date": "2026-08-22",
      "line_type": "room",
      "description": "Room charge",
      "amount": 247.21,
      "disputed": 0,
      "received_at": "2026-08-25T07:00:00Z",
      "source_ref": "folio-8854984",
      "folio_id": "folio-8854984"
    },
    {
      "line_id": "FL-RI-8854984-v3",
      "item_id": "RI-8854984",
      "period": "2026-08",
      "line_date": "2026-08-22",
      "line_type": "tax",
      "description": "VAT 10%",
      "amount": 24.72,
      "disputed": 0,
      "received_at": "2026-08-25T07:00:00Z",
      "source_ref": "folio-8854984",
      "folio_id": "folio-8854984"
    },
    {
      "line_id": "FL-RI-8854984-x",
      "item_id": "RI-8854984",
      "period": "2026-08",
      "line_date": "2026-08-23",
      "line_type": "adjustment",
      "description": "Destination fee",
      "amount": 237.26,
      "disputed": 0,
      "received_at": "2026-08-25T07:00:00Z",
      "source_ref": "folio-8854984",
      "folio_id": "folio-8854984"
    }
  ],
  "events": [
    {
      "event_id": "RE-RI-8854984-1",
      "item_id": "RI-8854984",
      "period": "2026-08",
      "seq": 1,
      "occurred_at": "2026-08-23T02:10:00Z",
      "event": "opened",
      "actor": "match-engine",
      "actor_type": "rule",
      "note": "Stay complete; reconciliation opened"
    },
    {
      "event_id": "RE-RI-8854984-2",
      "item_id": "RI-8854984",
      "period": "2026-08",
      "seq": 2,
      "occurred_at": "2026-08-25T07:00:00Z",
      "event": "evidence_received",
      "actor": "folio-ingest",
      "actor_type": "rule",
      "note": "Folio received from property"
    },
    {
      "event_id": "RE-RI-8854984-3",
      "item_id": "RI-8854984",
      "period": "2026-08",
      "seq": 3,
      "occurred_at": "2026-08-25T07:05:00Z",
      "event": "variance_detected",
      "actor": "match-engine",
      "actor_type": "rule",
      "note": "amount variance — 237.26 EUR"
    },
    {
      "event_id": "RE-RI-8854984-4",
      "item_id": "RI-8854984",
      "period": "2026-08",
      "seq": 4,
      "occurred_at": "2026-08-26T10:20:00Z",
      "event": "category_assigned",
      "actor": "A. Sheshadri",
      "actor_type": "human",
      "note": "Categorised as tax fees"
    },
    {
      "event_id": "RE-RI-8854984-5",
      "item_id": "RI-8854984",
      "period": "2026-08",
      "seq": 5,
      "occurred_at": "2026-09-04T11:00:00Z",
      "event": "resolved",
      "actor": "P. Costa",
      "actor_type": "human",
      "note": "Resolution: charged_to_crew"
    }
  ],
  "ledger": [
    {
      "entry_id": "LE-RI-8854984-5718",
      "item_id": "RI-8854984",
      "period": "2026-08",
      "legal_entity": "ASL Airlines France SA",
      "entry_date": "2026-08-19",
      "entry_type": "pending",
      "amount": 1125.92,
      "balance_effect": -1125.92,
      "description": "Authorization held — Comfort Hotel Lyon",
      "posted_from_period": null
    },
    {
      "entry_id": "LE-RI-8854984-5719",
      "item_id": "RI-8854984",
      "period": "2026-08",
      "legal_entity": "ASL Airlines France SA",
      "entry_date": "2026-08-25",
      "entry_type": "posted",
      "amount": 1389.89,
      "balance_effect": 0,
      "description": "Charge posted — Comfort Hotel Lyon",
      "posted_from_period": null
    }
  ],
  "nights": [
    {
      "night": "2026-08-19",
      "room_net": 247.21,
      "vat_amount": 24.72,
      "city_tax": 3.3,
      "ancillaries": 0,
      "rate_paid": 275.23,
      "hotel": "Comfort Hotel Lyon",
      "duty_reason": "overnight",
      "night_status": "occupied",
      "vcc_ref": "VCC-8854984",
      "checkin_time": "15:00",
      "checkout_time": "08:15"
    },
    {
      "night": "2026-08-20",
      "room_net": 247.21,
      "vat_amount": 24.72,
      "city_tax": 3.3,
      "ancillaries": 24.25,
      "rate_paid": 275.23,
      "hotel": "Comfort Hotel Lyon",
      "duty_reason": "overnight",
      "night_status": "occupied",
      "vcc_ref": "VCC-8854984",
      "checkin_time": "15:00",
      "checkout_time": "08:15"
    },
    {
      "night": "2026-08-21",
      "room_net": 247.21,
      "vat_amount": 24.72,
      "city_tax": 3.3,
      "ancillaries": 27.46,
      "rate_paid": 275.23,
      "hotel": "Comfort Hotel Lyon",
      "duty_reason": "overnight",
      "night_status": "occupied",
      "vcc_ref": "VCC-8854984",
      "checkin_time": "15:00",
      "checkout_time": "08:15"
    },
    {
      "night": "2026-08-22",
      "room_net": 247.21,
      "vat_amount": 24.72,
      "city_tax": 3.3,
      "ancillaries": 0,
      "rate_paid": 275.23,
      "hotel": "Comfort Hotel Lyon",
      "duty_reason": "positioning",
      "night_status": "occupied",
      "vcc_ref": "VCC-8854984",
      "checkin_time": "15:00",
      "checkout_time": "08:15"
    }
  ],
  "booking": {
    "booking_id": "RS-8854984",
    "layover_id": "L-514985",
    "duty_id": "D-514984",
    "crew_id": "FRA-1046",
    "entity_id": "ASL Airlines France",
    "legal_entity": "ASL Airlines France SA",
    "station": "LYS",
    "property_id": "P-130",
    "vendor_id": null,
    "contract_id": "C-130",
    "revenue_model": "routespring_contract",
    "channel": "travel_desk",
    "requested_by": "U-102",
    "created_at": "2026-08-19T03:00:00Z",
    "check_in": "2026-08-19",
    "check_out": "2026-08-23",
    "nights": 4,
    "room_type": "standard",
    "occupancy": 1,
    "lead_time_hours": 12,
    "confirmation_ref": "CNF-854984",
    "cancellation_deadline": "2026-08-18T18:00:00Z",
    "status": "completed",
    "period": "2026-08",
    "total_amount": 1168.6
  },
  "duty": {
    "duty_id": "D-514984",
    "crew_id": "FRA-1046",
    "entity_id": "ASL Airlines France",
    "roster_ref": "AIMS/202608/514984",
    "duty_type": "overnight",
    "flight_no": "FPO243",
    "dep_station": "MRS",
    "arr_station": "LYS",
    "duty_start_utc": "2026-08-18T12:15:00Z",
    "duty_end_utc": "2026-08-19T14:15:00Z",
    "duty_hours": 8.08,
    "block_hours": 6.15,
    "source_system": "aims",
    "published_at": "2026-08-11T06:00:00Z",
    "version": 1
  },
  "layover": {
    "layover_id": "L-514985",
    "duty_in": "D-514984",
    "duty_out": "D-514984R",
    "crew_id": "FRA-1046",
    "entity_id": "ASL Airlines France",
    "station": "LYS",
    "rest_starts_utc": "2026-08-19T14:15:00Z",
    "rest_ends_utc": "2026-08-23T08:45:00Z",
    "rest_hours_available": 79.06,
    "sleep_opportunity_hours": 76.88,
    "transfer_in_minutes": 10,
    "transfer_out_minutes": 10,
    "nights": 4,
    "disrupted": 0,
    "period": "2026-08"
  },
  "evaluation": {
    "eval_id": "PE-14985",
    "period": "2026-08",
    "booking_id": "RS-8854984",
    "item_id": "RI-8854984",
    "ruleset": "2026.2",
    "evaluated_at": "2026-08-19T02:57:00Z",
    "channel": "travel_desk",
    "traveller_type": "crew",
    "entity": "ASL Airlines France",
    "station": "LYS",
    "outcome": "soft_breach",
    "breach_count": 1,
    "cost_impact": 100.07,
    "self_served": 0
  },
  "approval": null,
  "breaches": [
    {
      "breach_id": "PB-7736",
      "eval_id": "PE-14985",
      "period": "2026-08",
      "rule_id": "R-WINDOW",
      "layer": "commercial",
      "severity": "warn",
      "observed": "0.5 days",
      "limit_value": "48 hours",
      "cost_impact": 100.07,
      "resolved": "auto_allowed",
      "name": "Advance booking window",
      "authority": "ASL",
      "reference": null
    }
  ],
  "changes": [
    {
      "change_id": "BC-1836",
      "booking_id": "RS-8854984",
      "period": "2026-08",
      "occurred_at": "2026-08-19T06:12:00Z",
      "change_type": "modify_in_place",
      "source": "travel_desk",
      "trigger": "roster_change",
      "modify_attempted": 1,
      "failed_reason": null,
      "hours_before_checkin": 61.31,
      "cutoff_hours": 18,
      "cost": 11.02,
      "room_lost": 0,
      "resolved_by": "automation",
      "resolved_at": null,
      "sla_breached": 0
    }
  ],
  "card": {
    "vcc_ref": "VCC-8854984",
    "booking_id": "RS-8854984",
    "item_id": "RI-8854984",
    "period": "2026-08",
    "issued_at": "2026-08-19T03:00:00Z",
    "issuer": "Routespring card program",
    "limit_amount": 1193.6,
    "currency": "EUR",
    "valid_from": "2026-08-19",
    "valid_to": "2026-08-30",
    "grace_days": 7,
    "mcc_lock": "7011 lodging",
    "merchant_lock": "Comfort Hotel Lyon",
    "auth_count": 4,
    "settled_amount": 1152.63,
    "status": "settled",
    "closed_at": "2026-08-25T03:00:00Z"
  },
  "folioDoc": {
    "folio_id": "folio-8854984",
    "booking_id": "RS-8854984",
    "item_id": "RI-8854984",
    "property_id": "P-130",
    "period": "2026-08",
    "folio_number": "LYS260819-1114",
    "guest_name": "E. Aubert",
    "check_in": "2026-08-19",
    "check_out": "2026-08-23",
    "issued_at": "2026-08-23T09:30:00Z",
    "received_at": "2026-08-25T07:00:00Z",
    "received_via": "email_pdf",
    "currency": "EUR",
    "stated_total": 1389.89,
    "line_count": 15,
    "days_to_receive": 2.29,
    "disputed": 0
  }
}