{
  "item": {
    "item_id": "RI-8853974",
    "period": "2026-08",
    "booking_id": "RS-8853974",
    "duty_id": "D-513974",
    "entity": "ASL Airlines Belgium",
    "legal_entity": "ASL Airlines Belgium NV",
    "crew_name": "E. Maes",
    "station": "DXB",
    "property_id": "P-123",
    "hotel": "Le Meridien Dubai",
    "check_in": "2026-08-01",
    "check_out": "2026-08-02",
    "nights": 1,
    "booking_amount": 326.81,
    "card_auth": 351.81,
    "card_settled": 326.81,
    "folio_amount": 326.81,
    "variance": 0,
    "variance_pct": 0,
    "variance_category": null,
    "match_state": "matched",
    "exception_type": null,
    "state": "final",
    "resolution": "legitimate",
    "opened_at": "2026-08-02T02:10:00Z",
    "resolved_at": "2026-08-16T11:00:00Z",
    "final_at": "2026-09-01T00:01:00Z",
    "final_due_at": "2026-09-01",
    "age_days": 21,
    "auto_resolved": 1
  },
  "cards": [
    {
      "event_id": "CE-4642",
      "item_id": "RI-8853974",
      "booking_id": "RS-8853974",
      "period": "2026-08",
      "vcc_ref": "VCC-8853974",
      "event_type": "issue",
      "amount": null,
      "currency": "EUR",
      "occurred_at": "2026-07-30T09:00:00Z",
      "valid_from": "2026-08-01",
      "valid_to": "2026-08-05",
      "mcc_lock": "7011 lodging",
      "decline_reason": null,
      "issuer_ref": "CNF-853974",
      "source_ref": "feed-2026-08-4642"
    },
    {
      "event_id": "CE-4643",
      "item_id": "RI-8853974",
      "booking_id": "RS-8853974",
      "period": "2026-08",
      "vcc_ref": "VCC-8853974",
      "event_type": "auth",
      "amount": 351.81,
      "currency": "EUR",
      "occurred_at": "2026-08-01T14:20:00Z",
      "valid_from": "2026-08-01",
      "valid_to": "2026-08-05",
      "mcc_lock": "7011 lodging",
      "decline_reason": null,
      "issuer_ref": "CNF-853974",
      "source_ref": "feed-2026-08-4643"
    },
    {
      "event_id": "CE-4644",
      "item_id": "RI-8853974",
      "booking_id": "RS-8853974",
      "period": "2026-08",
      "vcc_ref": "VCC-8853974",
      "event_type": "capture",
      "amount": 326.81,
      "currency": "EUR",
      "occurred_at": "2026-08-02T08:05:00Z",
      "valid_from": "2026-08-01",
      "valid_to": "2026-08-05",
      "mcc_lock": "7011 lodging",
      "decline_reason": null,
      "issuer_ref": "CNF-853974",
      "source_ref": "feed-2026-08-4644"
    },
    {
      "event_id": "CE-4645",
      "item_id": "RI-8853974",
      "booking_id": "RS-8853974",
      "period": "2026-08",
      "vcc_ref": "VCC-8853974",
      "event_type": "settle",
      "amount": 326.81,
      "currency": "EUR",
      "occurred_at": "2026-08-04T03:00:00Z",
      "valid_from": "2026-08-01",
      "valid_to": "2026-08-05",
      "mcc_lock": "7011 lodging",
      "decline_reason": null,
      "issuer_ref": "CNF-853974",
      "source_ref": "feed-2026-08-4645"
    }
  ],
  "folio": [
    {
      "line_id": "FL-RI-8853974-c0",
      "item_id": "RI-8853974",
      "period": "2026-08",
      "line_date": "2026-08-01",
      "line_type": "fee",
      "description": "City / tourist tax",
      "amount": 5,
      "disputed": 0,
      "received_at": "2026-08-08T07:00:00Z",
      "source_ref": "folio-8853974",
      "folio_id": "folio-8853974"
    },
    {
      "line_id": "FL-RI-8853974-r0",
      "item_id": "RI-8853974",
      "period": "2026-08",
      "line_date": "2026-08-01",
      "line_type": "room",
      "description": "Room charge",
      "amount": 306.49,
      "disputed": 0,
      "received_at": "2026-08-08T07:00:00Z",
      "source_ref": "folio-8853974",
      "folio_id": "folio-8853974"
    },
    {
      "line_id": "FL-RI-8853974-v0",
      "item_id": "RI-8853974",
      "period": "2026-08",
      "line_date": "2026-08-01",
      "line_type": "tax",
      "description": "VAT 5%",
      "amount": 15.32,
      "disputed": 0,
      "received_at": "2026-08-08T07:00:00Z",
      "source_ref": "folio-8853974",
      "folio_id": "folio-8853974"
    }
  ],
  "events": [
    {
      "event_id": "RE-RI-8853974-1",
      "item_id": "RI-8853974",
      "period": "2026-08",
      "seq": 1,
      "occurred_at": "2026-08-02T02:10:00Z",
      "event": "opened",
      "actor": "match-engine",
      "actor_type": "rule",
      "note": "Stay complete; reconciliation opened"
    },
    {
      "event_id": "RE-RI-8853974-2",
      "item_id": "RI-8853974",
      "period": "2026-08",
      "seq": 2,
      "occurred_at": "2026-08-04T07:00:00Z",
      "event": "evidence_received",
      "actor": "folio-ingest",
      "actor_type": "rule",
      "note": "Folio received from property"
    },
    {
      "event_id": "RE-RI-8853974-3",
      "item_id": "RI-8853974",
      "period": "2026-08",
      "seq": 3,
      "occurred_at": "2026-08-04T07:05:00Z",
      "event": "matched",
      "actor": "match-engine",
      "actor_type": "rule",
      "note": "Booking, card and folio agree within tolerance"
    },
    {
      "event_id": "RE-RI-8853974-4",
      "item_id": "RI-8853974",
      "period": "2026-08",
      "seq": 4,
      "occurred_at": "2026-08-13T11:00:00Z",
      "event": "resolved",
      "actor": "match-engine",
      "actor_type": "rule",
      "note": "Resolution: legitimate"
    },
    {
      "event_id": "RE-RI-8853974-5",
      "item_id": "RI-8853974",
      "period": "2026-08",
      "seq": 5,
      "occurred_at": "2026-09-01T00: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-8853974-3079",
      "item_id": "RI-8853974",
      "period": "2026-08",
      "legal_entity": "ASL Airlines Belgium NV",
      "entry_date": "2026-08-01",
      "entry_type": "pending",
      "amount": 351.81,
      "balance_effect": -351.81,
      "description": "Authorization held — Le Meridien Dubai",
      "posted_from_period": null
    },
    {
      "entry_id": "LE-RI-8853974-3080",
      "item_id": "RI-8853974",
      "period": "2026-08",
      "legal_entity": "ASL Airlines Belgium NV",
      "entry_date": "2026-08-04",
      "entry_type": "posted",
      "amount": 326.81,
      "balance_effect": 0,
      "description": "Charge posted — Le Meridien Dubai",
      "posted_from_period": null
    },
    {
      "entry_id": "LE-RI-8853974-3081",
      "item_id": "RI-8853974",
      "period": "2026-08",
      "legal_entity": "ASL Airlines Belgium NV",
      "entry_date": "2026-08-04",
      "entry_type": "released",
      "amount": 25,
      "balance_effect": 25,
      "description": "Unused authorization released",
      "posted_from_period": null
    }
  ],
  "nights": [
    {
      "night": "2026-08-01",
      "room_net": 306.49,
      "vat_amount": 15.32,
      "city_tax": 5,
      "ancillaries": 0,
      "rate_paid": 326.81,
      "hotel": "Le Meridien Dubai",
      "duty_reason": "irops",
      "night_status": "occupied",
      "vcc_ref": "VCC-8853974",
      "checkin_time": "22:30",
      "checkout_time": "11:00"
    }
  ],
  "booking": {
    "booking_id": "RS-8853974",
    "layover_id": "L-513975",
    "duty_id": "D-513974",
    "crew_id": "BEL-1052",
    "entity_id": "ASL Airlines Belgium",
    "legal_entity": "ASL Airlines Belgium NV",
    "station": "DXB",
    "property_id": "P-123",
    "vendor_id": "VEN-01",
    "contract_id": null,
    "revenue_model": "vendor_net",
    "channel": "automation",
    "requested_by": "rule:roster-watch",
    "created_at": "2026-08-01T10:30:00Z",
    "check_in": "2026-08-01",
    "check_out": "2026-08-02",
    "nights": 1,
    "room_type": "standard",
    "occupancy": 1,
    "lead_time_hours": 12,
    "confirmation_ref": "CNF-853974",
    "cancellation_deadline": null,
    "status": "completed",
    "period": "2026-08",
    "total_amount": 342.78
  },
  "duty": {
    "duty_id": "D-513974",
    "crew_id": "BEL-1052",
    "entity_id": "ASL Airlines Belgium",
    "roster_ref": "AIMS/202608/513974",
    "duty_type": "irops",
    "flight_no": "TAY170",
    "dep_station": "BRU",
    "arr_station": "DXB",
    "duty_start_utc": "2026-07-31T12:15:00Z",
    "duty_end_utc": "2026-08-01T21:07:00Z",
    "duty_hours": 8.22,
    "block_hours": 7.61,
    "source_system": "aims",
    "published_at": "2026-07-14T06:00:00Z",
    "version": 1
  },
  "layover": {
    "layover_id": "L-513975",
    "duty_in": "D-513974",
    "duty_out": "D-513974R",
    "crew_id": "BEL-1052",
    "entity_id": "ASL Airlines Belgium",
    "station": "DXB",
    "rest_starts_utc": "2026-08-01T21:07:00Z",
    "rest_ends_utc": "2026-08-02T08:45:00Z",
    "rest_hours_available": 17.86,
    "sleep_opportunity_hours": 14.6,
    "transfer_in_minutes": 48,
    "transfer_out_minutes": 53,
    "nights": 1,
    "disrupted": 1,
    "period": "2026-08"
  },
  "evaluation": {
    "eval_id": "PE-13975",
    "period": "2026-08",
    "booking_id": "RS-8853974",
    "item_id": "RI-8853974",
    "ruleset": "2026.2",
    "evaluated_at": "2026-08-01T10:27:00Z",
    "channel": "crew_app",
    "traveller_type": "crew",
    "entity": "ASL Airlines Belgium",
    "station": "DXB",
    "outcome": "pass",
    "breach_count": 0,
    "cost_impact": 0,
    "self_served": 1
  },
  "approval": null,
  "breaches": [],
  "changes": [
    {
      "change_id": "BC-1667",
      "booking_id": "RS-8853974",
      "period": "2026-08",
      "occurred_at": "2026-08-01T06:12:00Z",
      "change_type": "cancel_rebook",
      "source": "aims",
      "trigger": "irops",
      "modify_attempted": 1,
      "failed_reason": "no_availability",
      "hours_before_checkin": 52.33,
      "cutoff_hours": 24,
      "cost": 230.01,
      "room_lost": 1,
      "resolved_by": "human",
      "resolved_at": "2026-08-01T12:55:00Z",
      "sla_breached": 0
    }
  ],
  "card": {
    "vcc_ref": "VCC-8853974",
    "booking_id": "RS-8853974",
    "item_id": "RI-8853974",
    "period": "2026-08",
    "issued_at": "2026-08-01T10:30:00Z",
    "issuer": "Routespring card program",
    "limit_amount": 367.78,
    "currency": "EUR",
    "valid_from": "2026-08-01",
    "valid_to": "2026-08-09",
    "grace_days": 7,
    "mcc_lock": "7011 lodging",
    "merchant_lock": "Le Meridien Dubai",
    "auth_count": 1,
    "settled_amount": 326.81,
    "status": "settled",
    "closed_at": "2026-08-04T03:00:00Z"
  },
  "folioDoc": {
    "folio_id": "folio-8853974",
    "booking_id": "RS-8853974",
    "item_id": "RI-8853974",
    "property_id": "P-123",
    "period": "2026-08",
    "folio_number": "DXB260801-1109",
    "guest_name": "E. Maes",
    "check_in": "2026-08-01",
    "check_out": "2026-08-02",
    "issued_at": "2026-08-02T09:30:00Z",
    "received_at": "2026-08-08T07:00:00Z",
    "received_via": "pms_feed",
    "currency": "EUR",
    "stated_total": 326.81,
    "line_count": 3,
    "days_to_receive": 6.29,
    "disputed": 0
  }
}