{
  "item": {
    "item_id": "RI-8854836",
    "period": "2026-08",
    "booking_id": "RS-8854836",
    "duty_id": "D-514836",
    "entity": "ASL Airlines France",
    "legal_entity": "ASL Airlines France SA",
    "crew_name": "Y. Perrin",
    "station": "TLS",
    "property_id": "P-134",
    "hotel": "Ibis Toulouse Blagnac",
    "check_in": "2026-08-01",
    "check_out": "2026-08-04",
    "nights": 3,
    "booking_amount": 810.15,
    "card_auth": 835.15,
    "card_settled": 810.15,
    "folio_amount": 810.15,
    "variance": 0,
    "variance_pct": 0,
    "variance_category": null,
    "match_state": "matched",
    "exception_type": null,
    "state": "resolved",
    "resolution": "legitimate",
    "opened_at": "2026-08-04T02:10:00Z",
    "resolved_at": "2026-08-17T11:00:00Z",
    "final_at": null,
    "final_due_at": "2026-09-03",
    "age_days": 5,
    "auto_resolved": 1
  },
  "cards": [
    {
      "event_id": "CE-8089",
      "item_id": "RI-8854836",
      "booking_id": "RS-8854836",
      "period": "2026-08",
      "vcc_ref": "VCC-8854836",
      "event_type": "issue",
      "amount": null,
      "currency": "EUR",
      "occurred_at": "2026-07-30T09:00:00Z",
      "valid_from": "2026-08-01",
      "valid_to": "2026-08-07",
      "mcc_lock": "7011 lodging",
      "decline_reason": null,
      "issuer_ref": "CNF-854836",
      "source_ref": "feed-2026-08-8089"
    },
    {
      "event_id": "CE-8090",
      "item_id": "RI-8854836",
      "booking_id": "RS-8854836",
      "period": "2026-08",
      "vcc_ref": "VCC-8854836",
      "event_type": "auth",
      "amount": 835.15,
      "currency": "EUR",
      "occurred_at": "2026-08-01T14:20:00Z",
      "valid_from": "2026-08-01",
      "valid_to": "2026-08-07",
      "mcc_lock": "7011 lodging",
      "decline_reason": null,
      "issuer_ref": "CNF-854836",
      "source_ref": "feed-2026-08-8090"
    },
    {
      "event_id": "CE-8091",
      "item_id": "RI-8854836",
      "booking_id": "RS-8854836",
      "period": "2026-08",
      "vcc_ref": "VCC-8854836",
      "event_type": "capture",
      "amount": 810.15,
      "currency": "EUR",
      "occurred_at": "2026-08-04T08:05:00Z",
      "valid_from": "2026-08-01",
      "valid_to": "2026-08-07",
      "mcc_lock": "7011 lodging",
      "decline_reason": null,
      "issuer_ref": "CNF-854836",
      "source_ref": "feed-2026-08-8091"
    },
    {
      "event_id": "CE-8092",
      "item_id": "RI-8854836",
      "booking_id": "RS-8854836",
      "period": "2026-08",
      "vcc_ref": "VCC-8854836",
      "event_type": "settle",
      "amount": 810.15,
      "currency": "EUR",
      "occurred_at": "2026-08-06T03:00:00Z",
      "valid_from": "2026-08-01",
      "valid_to": "2026-08-07",
      "mcc_lock": "7011 lodging",
      "decline_reason": null,
      "issuer_ref": "CNF-854836",
      "source_ref": "feed-2026-08-8092"
    }
  ],
  "folio": [
    {
      "line_id": "FL-RI-8854836-c0",
      "item_id": "RI-8854836",
      "period": "2026-08",
      "line_date": "2026-08-01",
      "line_type": "fee",
      "description": "City / tourist tax",
      "amount": 2.88,
      "disputed": 0,
      "received_at": "2026-08-09T07:00:00Z",
      "source_ref": "folio-8854836",
      "folio_id": "folio-8854836"
    },
    {
      "line_id": "FL-RI-8854836-r0",
      "item_id": "RI-8854836",
      "period": "2026-08",
      "line_date": "2026-08-01",
      "line_type": "room",
      "description": "Room charge",
      "amount": 242.88,
      "disputed": 0,
      "received_at": "2026-08-09T07:00:00Z",
      "source_ref": "folio-8854836",
      "folio_id": "folio-8854836"
    },
    {
      "line_id": "FL-RI-8854836-v0",
      "item_id": "RI-8854836",
      "period": "2026-08",
      "line_date": "2026-08-01",
      "line_type": "tax",
      "description": "VAT 10%",
      "amount": 24.29,
      "disputed": 0,
      "received_at": "2026-08-09T07:00:00Z",
      "source_ref": "folio-8854836",
      "folio_id": "folio-8854836"
    },
    {
      "line_id": "FL-RI-8854836-c1",
      "item_id": "RI-8854836",
      "period": "2026-08",
      "line_date": "2026-08-02",
      "line_type": "fee",
      "description": "City / tourist tax",
      "amount": 2.88,
      "disputed": 0,
      "received_at": "2026-08-09T07:00:00Z",
      "source_ref": "folio-8854836",
      "folio_id": "folio-8854836"
    },
    {
      "line_id": "FL-RI-8854836-r1",
      "item_id": "RI-8854836",
      "period": "2026-08",
      "line_date": "2026-08-02",
      "line_type": "room",
      "description": "Room charge",
      "amount": 242.88,
      "disputed": 0,
      "received_at": "2026-08-09T07:00:00Z",
      "source_ref": "folio-8854836",
      "folio_id": "folio-8854836"
    },
    {
      "line_id": "FL-RI-8854836-v1",
      "item_id": "RI-8854836",
      "period": "2026-08",
      "line_date": "2026-08-02",
      "line_type": "tax",
      "description": "VAT 10%",
      "amount": 24.29,
      "disputed": 0,
      "received_at": "2026-08-09T07:00:00Z",
      "source_ref": "folio-8854836",
      "folio_id": "folio-8854836"
    },
    {
      "line_id": "FL-RI-8854836-c2",
      "item_id": "RI-8854836",
      "period": "2026-08",
      "line_date": "2026-08-03",
      "line_type": "fee",
      "description": "City / tourist tax",
      "amount": 2.88,
      "disputed": 0,
      "received_at": "2026-08-09T07:00:00Z",
      "source_ref": "folio-8854836",
      "folio_id": "folio-8854836"
    },
    {
      "line_id": "FL-RI-8854836-r2",
      "item_id": "RI-8854836",
      "period": "2026-08",
      "line_date": "2026-08-03",
      "line_type": "room",
      "description": "Room charge",
      "amount": 242.88,
      "disputed": 0,
      "received_at": "2026-08-09T07:00:00Z",
      "source_ref": "folio-8854836",
      "folio_id": "folio-8854836"
    },
    {
      "line_id": "FL-RI-8854836-v2",
      "item_id": "RI-8854836",
      "period": "2026-08",
      "line_date": "2026-08-03",
      "line_type": "tax",
      "description": "VAT 10%",
      "amount": 24.29,
      "disputed": 0,
      "received_at": "2026-08-09T07:00:00Z",
      "source_ref": "folio-8854836",
      "folio_id": "folio-8854836"
    }
  ],
  "events": [
    {
      "event_id": "RE-RI-8854836-1",
      "item_id": "RI-8854836",
      "period": "2026-08",
      "seq": 1,
      "occurred_at": "2026-08-04T02:10:00Z",
      "event": "opened",
      "actor": "match-engine",
      "actor_type": "rule",
      "note": "Stay complete; reconciliation opened"
    },
    {
      "event_id": "RE-RI-8854836-2",
      "item_id": "RI-8854836",
      "period": "2026-08",
      "seq": 2,
      "occurred_at": "2026-08-06T07:00:00Z",
      "event": "evidence_received",
      "actor": "folio-ingest",
      "actor_type": "rule",
      "note": "Folio received from property"
    },
    {
      "event_id": "RE-RI-8854836-3",
      "item_id": "RI-8854836",
      "period": "2026-08",
      "seq": 3,
      "occurred_at": "2026-08-06T07:05:00Z",
      "event": "matched",
      "actor": "match-engine",
      "actor_type": "rule",
      "note": "Booking, card and folio agree within tolerance"
    },
    {
      "event_id": "RE-RI-8854836-4",
      "item_id": "RI-8854836",
      "period": "2026-08",
      "seq": 4,
      "occurred_at": "2026-08-17T11:00:00Z",
      "event": "resolved",
      "actor": "match-engine",
      "actor_type": "rule",
      "note": "Resolution: legitimate"
    }
  ],
  "ledger": [
    {
      "entry_id": "LE-RI-8854836-5338",
      "item_id": "RI-8854836",
      "period": "2026-08",
      "legal_entity": "ASL Airlines France SA",
      "entry_date": "2026-08-01",
      "entry_type": "pending",
      "amount": 835.15,
      "balance_effect": -835.15,
      "description": "Authorization held — Ibis Toulouse Blagnac",
      "posted_from_period": null
    },
    {
      "entry_id": "LE-RI-8854836-5339",
      "item_id": "RI-8854836",
      "period": "2026-08",
      "legal_entity": "ASL Airlines France SA",
      "entry_date": "2026-08-06",
      "entry_type": "posted",
      "amount": 810.15,
      "balance_effect": 0,
      "description": "Charge posted — Ibis Toulouse Blagnac",
      "posted_from_period": null
    },
    {
      "entry_id": "LE-RI-8854836-5340",
      "item_id": "RI-8854836",
      "period": "2026-08",
      "legal_entity": "ASL Airlines France SA",
      "entry_date": "2026-08-06",
      "entry_type": "released",
      "amount": 25,
      "balance_effect": 25,
      "description": "Unused authorization released",
      "posted_from_period": null
    }
  ],
  "nights": [
    {
      "night": "2026-08-01",
      "room_net": 242.88,
      "vat_amount": 24.29,
      "city_tax": 2.88,
      "ancillaries": 0,
      "rate_paid": 270.05,
      "hotel": "Ibis Toulouse Blagnac",
      "duty_reason": "overnight",
      "night_status": "occupied",
      "vcc_ref": "VCC-8854836",
      "checkin_time": "01:15",
      "checkout_time": "04:30"
    },
    {
      "night": "2026-08-02",
      "room_net": 242.88,
      "vat_amount": 24.29,
      "city_tax": 2.88,
      "ancillaries": 0,
      "rate_paid": 270.05,
      "hotel": "Ibis Toulouse Blagnac",
      "duty_reason": "positioning",
      "night_status": "occupied",
      "vcc_ref": "VCC-8854836",
      "checkin_time": "01:15",
      "checkout_time": "04:30"
    },
    {
      "night": "2026-08-03",
      "room_net": 242.88,
      "vat_amount": 24.29,
      "city_tax": 2.88,
      "ancillaries": 0,
      "rate_paid": 270.05,
      "hotel": "Ibis Toulouse Blagnac",
      "duty_reason": "overnight",
      "night_status": "occupied",
      "vcc_ref": "VCC-8854836",
      "checkin_time": "01:15",
      "checkout_time": "04:30"
    }
  ],
  "booking": {
    "booking_id": "RS-8854836",
    "layover_id": "L-514837",
    "duty_id": "D-514836",
    "crew_id": "FRA-1069",
    "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": "travel_desk",
    "requested_by": "U-103",
    "created_at": "2026-07-31T13:15:00Z",
    "check_in": "2026-08-01",
    "check_out": "2026-08-04",
    "nights": 3,
    "room_type": "standard",
    "occupancy": 1,
    "lead_time_hours": 12,
    "confirmation_ref": "CNF-854836",
    "cancellation_deadline": "2026-07-31T18:00:00Z",
    "status": "completed",
    "period": "2026-08",
    "total_amount": 826.12
  },
  "duty": {
    "duty_id": "D-514836",
    "crew_id": "FRA-1069",
    "entity_id": "ASL Airlines France",
    "roster_ref": "AIMS/202608/514836",
    "duty_type": "overnight",
    "flight_no": "FPO488",
    "dep_station": "LYS",
    "arr_station": "TLS",
    "duty_start_utc": "2026-07-31T09:40:00Z",
    "duty_end_utc": "2026-08-01T00:30:00Z",
    "duty_hours": 9.82,
    "block_hours": 3.97,
    "source_system": "aims",
    "published_at": "2026-07-12T06:00:00Z",
    "version": 1
  },
  "layover": {
    "layover_id": "L-514837",
    "duty_in": "D-514836",
    "duty_out": "D-514836R",
    "crew_id": "FRA-1069",
    "entity_id": "ASL Airlines France",
    "station": "TLS",
    "rest_starts_utc": "2026-08-01T00:30:00Z",
    "rest_ends_utc": "2026-08-04T11:20:00Z",
    "rest_hours_available": 57.86,
    "sleep_opportunity_hours": 56.07,
    "transfer_in_minutes": 10,
    "transfer_out_minutes": 9,
    "nights": 3,
    "disrupted": 0,
    "period": "2026-08"
  },
  "evaluation": {
    "eval_id": "PE-14837",
    "period": "2026-08",
    "booking_id": "RS-8854836",
    "item_id": "RI-8854836",
    "ruleset": "2026.2",
    "evaluated_at": "2026-07-31T13:12:00Z",
    "channel": "automation",
    "traveller_type": "crew",
    "entity": "ASL Airlines France",
    "station": "TLS",
    "outcome": "pass",
    "breach_count": 0,
    "cost_impact": 0,
    "self_served": 0
  },
  "approval": null,
  "breaches": [],
  "changes": [
    {
      "change_id": "BC-1813",
      "booking_id": "RS-8854836",
      "period": "2026-08",
      "occurred_at": "2026-08-01T11:40:00Z",
      "change_type": "cancel_rebook",
      "source": "aims",
      "trigger": "roster_change",
      "modify_attempted": 1,
      "failed_reason": "hotel_cutoff",
      "hours_before_checkin": 14.62,
      "cutoff_hours": 24,
      "cost": 220.92,
      "room_lost": 0,
      "resolved_by": "human",
      "resolved_at": "2026-08-01T22:30:00Z",
      "sla_breached": 0
    }
  ],
  "card": {
    "vcc_ref": "VCC-8854836",
    "booking_id": "RS-8854836",
    "item_id": "RI-8854836",
    "period": "2026-08",
    "issued_at": "2026-07-31T13:15:00Z",
    "issuer": "Routespring card program",
    "limit_amount": 851.12,
    "currency": "EUR",
    "valid_from": "2026-08-01",
    "valid_to": "2026-08-11",
    "grace_days": 7,
    "mcc_lock": "7011 lodging",
    "merchant_lock": "Ibis Toulouse Blagnac",
    "auth_count": 3,
    "settled_amount": 810.15,
    "status": "settled",
    "closed_at": "2026-08-06T03:00:00Z"
  },
  "folioDoc": {
    "folio_id": "folio-8854836",
    "booking_id": "RS-8854836",
    "item_id": "RI-8854836",
    "property_id": "P-134",
    "period": "2026-08",
    "folio_number": "TLS260801-8288",
    "guest_name": "Y. Perrin",
    "check_in": "2026-08-01",
    "check_out": "2026-08-04",
    "issued_at": "2026-08-04T09:30:00Z",
    "received_at": "2026-08-09T07:00:00Z",
    "received_via": "manual",
    "currency": "EUR",
    "stated_total": 810.15,
    "line_count": 9,
    "days_to_receive": 5.29,
    "disputed": 0
  }
}