{
  "item": {
    "item_id": "RI-8854350",
    "period": "2026-08",
    "booking_id": "RS-8854350",
    "duty_id": "D-514350",
    "entity": "ASL Airlines Belgium",
    "legal_entity": "ASL Airlines Belgium NV",
    "crew_name": "H. De Smet",
    "station": "HKG",
    "property_id": "P-120",
    "hotel": "Regal Airport Hotel",
    "check_in": "2026-08-21",
    "check_out": "2026-08-24",
    "nights": 3,
    "booking_amount": 893.43,
    "card_auth": 918.43,
    "card_settled": 927.46,
    "folio_amount": 927.46,
    "variance": 0,
    "variance_pct": 0,
    "variance_category": null,
    "match_state": "matched",
    "exception_type": null,
    "state": "resolved",
    "resolution": "legitimate",
    "opened_at": "2026-08-24T02:10:00Z",
    "resolved_at": "2026-08-29T11:00:00Z",
    "final_at": null,
    "final_due_at": "2026-09-23",
    "age_days": 10,
    "auto_resolved": 1
  },
  "cards": [
    {
      "event_id": "CE-6149",
      "item_id": "RI-8854350",
      "booking_id": "RS-8854350",
      "period": "2026-08",
      "vcc_ref": "VCC-8854350",
      "event_type": "issue",
      "amount": null,
      "currency": "EUR",
      "occurred_at": "2026-08-19T09:00:00Z",
      "valid_from": "2026-08-21",
      "valid_to": "2026-08-27",
      "mcc_lock": "7011 lodging",
      "decline_reason": null,
      "issuer_ref": "CNF-854350",
      "source_ref": "feed-2026-08-6149"
    },
    {
      "event_id": "CE-6150",
      "item_id": "RI-8854350",
      "booking_id": "RS-8854350",
      "period": "2026-08",
      "vcc_ref": "VCC-8854350",
      "event_type": "auth",
      "amount": 918.43,
      "currency": "EUR",
      "occurred_at": "2026-08-21T14:20:00Z",
      "valid_from": "2026-08-21",
      "valid_to": "2026-08-27",
      "mcc_lock": "7011 lodging",
      "decline_reason": null,
      "issuer_ref": "CNF-854350",
      "source_ref": "feed-2026-08-6150"
    },
    {
      "event_id": "CE-6151",
      "item_id": "RI-8854350",
      "booking_id": "RS-8854350",
      "period": "2026-08",
      "vcc_ref": "VCC-8854350",
      "event_type": "capture",
      "amount": 927.46,
      "currency": "EUR",
      "occurred_at": "2026-08-24T08:05:00Z",
      "valid_from": "2026-08-21",
      "valid_to": "2026-08-27",
      "mcc_lock": "7011 lodging",
      "decline_reason": null,
      "issuer_ref": "CNF-854350",
      "source_ref": "feed-2026-08-6151"
    },
    {
      "event_id": "CE-6152",
      "item_id": "RI-8854350",
      "booking_id": "RS-8854350",
      "period": "2026-08",
      "vcc_ref": "VCC-8854350",
      "event_type": "settle",
      "amount": 927.46,
      "currency": "EUR",
      "occurred_at": "2026-08-26T03:00:00Z",
      "valid_from": "2026-08-21",
      "valid_to": "2026-08-27",
      "mcc_lock": "7011 lodging",
      "decline_reason": null,
      "issuer_ref": "CNF-854350",
      "source_ref": "feed-2026-08-6152"
    }
  ],
  "folio": [
    {
      "line_id": "FL-RI-8854350-r0",
      "item_id": "RI-8854350",
      "period": "2026-08",
      "line_date": "2026-08-21",
      "line_type": "room",
      "description": "Room charge",
      "amount": 297.81,
      "disputed": 0,
      "received_at": "2026-08-27T07:00:00Z",
      "source_ref": "folio-8854350",
      "folio_id": "folio-8854350"
    },
    {
      "line_id": "FL-RI-8854350-r1",
      "item_id": "RI-8854350",
      "period": "2026-08",
      "line_date": "2026-08-22",
      "line_type": "room",
      "description": "Room charge",
      "amount": 297.81,
      "disputed": 0,
      "received_at": "2026-08-27T07:00:00Z",
      "source_ref": "folio-8854350",
      "folio_id": "folio-8854350"
    },
    {
      "line_id": "FL-RI-8854350-a2",
      "item_id": "RI-8854350",
      "period": "2026-08",
      "line_date": "2026-08-23",
      "line_type": "incidental",
      "description": "Parking",
      "amount": 34.03,
      "disputed": 0,
      "received_at": "2026-08-27T07:00:00Z",
      "source_ref": "folio-8854350",
      "folio_id": "folio-8854350"
    },
    {
      "line_id": "FL-RI-8854350-r2",
      "item_id": "RI-8854350",
      "period": "2026-08",
      "line_date": "2026-08-23",
      "line_type": "room",
      "description": "Room charge",
      "amount": 297.81,
      "disputed": 0,
      "received_at": "2026-08-27T07:00:00Z",
      "source_ref": "folio-8854350",
      "folio_id": "folio-8854350"
    }
  ],
  "events": [
    {
      "event_id": "RE-RI-8854350-1",
      "item_id": "RI-8854350",
      "period": "2026-08",
      "seq": 1,
      "occurred_at": "2026-08-24T02:10:00Z",
      "event": "opened",
      "actor": "match-engine",
      "actor_type": "rule",
      "note": "Stay complete; reconciliation opened"
    },
    {
      "event_id": "RE-RI-8854350-2",
      "item_id": "RI-8854350",
      "period": "2026-08",
      "seq": 2,
      "occurred_at": "2026-08-26T07:00:00Z",
      "event": "evidence_received",
      "actor": "folio-ingest",
      "actor_type": "rule",
      "note": "Folio received from property"
    },
    {
      "event_id": "RE-RI-8854350-3",
      "item_id": "RI-8854350",
      "period": "2026-08",
      "seq": 3,
      "occurred_at": "2026-08-26T07:05:00Z",
      "event": "matched",
      "actor": "match-engine",
      "actor_type": "rule",
      "note": "Booking, card and folio agree within tolerance"
    },
    {
      "event_id": "RE-RI-8854350-4",
      "item_id": "RI-8854350",
      "period": "2026-08",
      "seq": 4,
      "occurred_at": "2026-08-29T11:00:00Z",
      "event": "resolved",
      "actor": "match-engine",
      "actor_type": "rule",
      "note": "Resolution: legitimate"
    }
  ],
  "ledger": [
    {
      "entry_id": "LE-RI-8854350-4062",
      "item_id": "RI-8854350",
      "period": "2026-08",
      "legal_entity": "ASL Airlines Belgium NV",
      "entry_date": "2026-08-21",
      "entry_type": "pending",
      "amount": 918.43,
      "balance_effect": -918.43,
      "description": "Authorization held — Regal Airport Hotel",
      "posted_from_period": null
    },
    {
      "entry_id": "LE-RI-8854350-4063",
      "item_id": "RI-8854350",
      "period": "2026-08",
      "legal_entity": "ASL Airlines Belgium NV",
      "entry_date": "2026-08-26",
      "entry_type": "posted",
      "amount": 927.46,
      "balance_effect": 0,
      "description": "Charge posted — Regal Airport Hotel",
      "posted_from_period": null
    }
  ],
  "nights": [
    {
      "night": "2026-08-21",
      "room_net": 297.81,
      "vat_amount": 0,
      "city_tax": 0,
      "ancillaries": 0,
      "rate_paid": 297.81,
      "hotel": "Regal Airport Hotel",
      "duty_reason": "overnight",
      "night_status": "occupied",
      "vcc_ref": "VCC-8854350",
      "checkin_time": "22:30",
      "checkout_time": "11:00"
    },
    {
      "night": "2026-08-22",
      "room_net": 297.81,
      "vat_amount": 0,
      "city_tax": 0,
      "ancillaries": 0,
      "rate_paid": 297.81,
      "hotel": "Regal Airport Hotel",
      "duty_reason": "overnight",
      "night_status": "occupied",
      "vcc_ref": "VCC-8854350",
      "checkin_time": "22:30",
      "checkout_time": "11:00"
    },
    {
      "night": "2026-08-23",
      "room_net": 297.81,
      "vat_amount": 0,
      "city_tax": 0,
      "ancillaries": 34.03,
      "rate_paid": 297.81,
      "hotel": "Regal Airport Hotel",
      "duty_reason": "overnight",
      "night_status": "occupied",
      "vcc_ref": "VCC-8854350",
      "checkin_time": "22:30",
      "checkout_time": "11:00"
    }
  ],
  "booking": {
    "booking_id": "RS-8854350",
    "layover_id": "L-514351",
    "duty_id": "D-514350",
    "crew_id": "BEL-1050",
    "entity_id": "ASL Airlines Belgium",
    "legal_entity": "ASL Airlines Belgium NV",
    "station": "HKG",
    "property_id": "P-120",
    "vendor_id": null,
    "contract_id": "C-120",
    "revenue_model": "airline_contract",
    "channel": "travel_desk",
    "requested_by": "U-101",
    "created_at": "2026-08-21T10:30:00Z",
    "check_in": "2026-08-21",
    "check_out": "2026-08-24",
    "nights": 3,
    "room_type": "standard",
    "occupancy": 1,
    "lead_time_hours": 12,
    "confirmation_ref": "CNF-854350",
    "cancellation_deadline": "2026-08-20T18:00:00Z",
    "status": "completed",
    "period": "2026-08",
    "total_amount": 943.43
  },
  "duty": {
    "duty_id": "D-514350",
    "crew_id": "BEL-1050",
    "entity_id": "ASL Airlines Belgium",
    "roster_ref": "AIMS/202608/514350",
    "duty_type": "overnight",
    "flight_no": "TAY429",
    "dep_station": "LGG",
    "arr_station": "HKG",
    "duty_start_utc": "2026-08-20T12:15:00Z",
    "duty_end_utc": "2026-08-21T20:59:00Z",
    "duty_hours": 11.81,
    "block_hours": 5.04,
    "source_system": "aims",
    "published_at": "2026-08-11T06:00:00Z",
    "version": 1
  },
  "layover": {
    "layover_id": "L-514351",
    "duty_in": "D-514350",
    "duty_out": "D-514350R",
    "crew_id": "BEL-1050",
    "entity_id": "ASL Airlines Belgium",
    "station": "HKG",
    "rest_starts_utc": "2026-08-21T20:59:00Z",
    "rest_ends_utc": "2026-08-24T08:45:00Z",
    "rest_hours_available": 62.21,
    "sleep_opportunity_hours": 58.79,
    "transfer_in_minutes": 56,
    "transfer_out_minutes": 61,
    "nights": 3,
    "disrupted": 0,
    "period": "2026-08"
  },
  "evaluation": {
    "eval_id": "PE-14351",
    "period": "2026-08",
    "booking_id": "RS-8854350",
    "item_id": "RI-8854350",
    "ruleset": "2026.2",
    "evaluated_at": "2026-08-21T10:27:00Z",
    "channel": "automation",
    "traveller_type": "crew",
    "entity": "ASL Airlines Belgium",
    "station": "HKG",
    "outcome": "soft_breach",
    "breach_count": 1,
    "cost_impact": 80.69,
    "self_served": 0
  },
  "approval": null,
  "breaches": [
    {
      "breach_id": "PB-7464",
      "eval_id": "PE-14351",
      "period": "2026-08",
      "rule_id": "R-WINDOW",
      "layer": "commercial",
      "severity": "warn",
      "observed": "0.5 days",
      "limit_value": "48 hours",
      "cost_impact": 80.69,
      "resolved": "auto_allowed",
      "name": "Advance booking window",
      "authority": "ASL",
      "reference": null
    }
  ],
  "changes": [
    {
      "change_id": "BC-1732",
      "booking_id": "RS-8854350",
      "period": "2026-08",
      "occurred_at": "2026-08-22T21:05:00Z",
      "change_type": "cancel_rebook",
      "source": "aims",
      "trigger": "crew_swap",
      "modify_attempted": 1,
      "failed_reason": "no_availability",
      "hours_before_checkin": 34.28,
      "cutoff_hours": 18,
      "cost": 244.99,
      "room_lost": 1,
      "resolved_by": "human",
      "resolved_at": "2026-08-22T12:55:00Z",
      "sla_breached": 0
    }
  ],
  "card": {
    "vcc_ref": "VCC-8854350",
    "booking_id": "RS-8854350",
    "item_id": "RI-8854350",
    "period": "2026-08",
    "issued_at": "2026-08-21T10:30:00Z",
    "issuer": "Routespring card program",
    "limit_amount": 968.43,
    "currency": "EUR",
    "valid_from": "2026-08-21",
    "valid_to": "2026-08-31",
    "grace_days": 7,
    "mcc_lock": "7011 lodging",
    "merchant_lock": "Regal Airport Hotel",
    "auth_count": 3,
    "settled_amount": 927.46,
    "status": "authorised",
    "closed_at": "2026-08-26T03:00:00Z"
  },
  "folioDoc": {
    "folio_id": "folio-8854350",
    "booking_id": "RS-8854350",
    "item_id": "RI-8854350",
    "property_id": "P-120",
    "period": "2026-08",
    "folio_number": "HKG260821-4077",
    "guest_name": "H. De Smet",
    "check_in": "2026-08-21",
    "check_out": "2026-08-24",
    "issued_at": "2026-08-24T09:30:00Z",
    "received_at": "2026-08-27T07:00:00Z",
    "received_via": "email_pdf",
    "currency": "EUR",
    "stated_total": 927.46,
    "line_count": 4,
    "days_to_receive": 3.29,
    "disputed": 0
  }
}