{
  "item": {
    "item_id": "RI-8853840",
    "period": "2026-08",
    "booking_id": "RS-8853840",
    "duty_id": "D-513840",
    "entity": "ASL Airlines Belgium",
    "legal_entity": "ASL Airlines Belgium NV",
    "crew_name": "H. Declerck",
    "station": "BRU",
    "property_id": "P-118",
    "hotel": "NH Brussels Airport",
    "check_in": "2026-08-17",
    "check_out": "2026-08-20",
    "nights": 3,
    "booking_amount": 1103.54,
    "card_auth": 1128.54,
    "card_settled": 1130.87,
    "folio_amount": 1130.87,
    "variance": 0,
    "variance_pct": 0,
    "variance_category": null,
    "match_state": "matched",
    "exception_type": null,
    "state": "final",
    "resolution": "legitimate",
    "opened_at": "2026-08-20T02:10:00Z",
    "resolved_at": "2026-08-30T11:00:00Z",
    "final_at": "2026-09-19T00:01:00Z",
    "final_due_at": "2026-09-19",
    "age_days": 38,
    "auto_resolved": 1
  },
  "cards": [
    {
      "event_id": "CE-4105",
      "item_id": "RI-8853840",
      "booking_id": "RS-8853840",
      "period": "2026-08",
      "vcc_ref": "VCC-8853840",
      "event_type": "issue",
      "amount": null,
      "currency": "EUR",
      "occurred_at": "2026-08-15T09:00:00Z",
      "valid_from": "2026-08-17",
      "valid_to": "2026-08-23",
      "mcc_lock": "7011 lodging",
      "decline_reason": null,
      "issuer_ref": "CNF-853840",
      "source_ref": "feed-2026-08-4105"
    },
    {
      "event_id": "CE-4106",
      "item_id": "RI-8853840",
      "booking_id": "RS-8853840",
      "period": "2026-08",
      "vcc_ref": "VCC-8853840",
      "event_type": "auth",
      "amount": 1128.54,
      "currency": "EUR",
      "occurred_at": "2026-08-17T14:20:00Z",
      "valid_from": "2026-08-17",
      "valid_to": "2026-08-23",
      "mcc_lock": "7011 lodging",
      "decline_reason": null,
      "issuer_ref": "CNF-853840",
      "source_ref": "feed-2026-08-4106"
    },
    {
      "event_id": "CE-4107",
      "item_id": "RI-8853840",
      "booking_id": "RS-8853840",
      "period": "2026-08",
      "vcc_ref": "VCC-8853840",
      "event_type": "capture",
      "amount": 1130.87,
      "currency": "EUR",
      "occurred_at": "2026-08-20T08:05:00Z",
      "valid_from": "2026-08-17",
      "valid_to": "2026-08-23",
      "mcc_lock": "7011 lodging",
      "decline_reason": null,
      "issuer_ref": "CNF-853840",
      "source_ref": "feed-2026-08-4107"
    },
    {
      "event_id": "CE-4108",
      "item_id": "RI-8853840",
      "booking_id": "RS-8853840",
      "period": "2026-08",
      "vcc_ref": "VCC-8853840",
      "event_type": "settle",
      "amount": 1130.87,
      "currency": "EUR",
      "occurred_at": "2026-08-22T03:00:00Z",
      "valid_from": "2026-08-17",
      "valid_to": "2026-08-23",
      "mcc_lock": "7011 lodging",
      "decline_reason": null,
      "issuer_ref": "CNF-853840",
      "source_ref": "feed-2026-08-4108"
    }
  ],
  "folio": [
    {
      "line_id": "FL-RI-8853840-c0",
      "item_id": "RI-8853840",
      "period": "2026-08",
      "line_date": "2026-08-17",
      "line_type": "fee",
      "description": "City / tourist tax",
      "amount": 4.24,
      "disputed": 0,
      "received_at": "2026-08-24T07:00:00Z",
      "source_ref": "folio-8853840",
      "folio_id": "folio-8853840"
    },
    {
      "line_id": "FL-RI-8853840-r0",
      "item_id": "RI-8853840",
      "period": "2026-08",
      "line_date": "2026-08-17",
      "line_type": "room",
      "description": "Room charge",
      "amount": 335.05,
      "disputed": 0,
      "received_at": "2026-08-24T07:00:00Z",
      "source_ref": "folio-8853840",
      "folio_id": "folio-8853840"
    },
    {
      "line_id": "FL-RI-8853840-v0",
      "item_id": "RI-8853840",
      "period": "2026-08",
      "line_date": "2026-08-17",
      "line_type": "tax",
      "description": "VAT 6%",
      "amount": 20.1,
      "disputed": 0,
      "received_at": "2026-08-24T07:00:00Z",
      "source_ref": "folio-8853840",
      "folio_id": "folio-8853840"
    },
    {
      "line_id": "FL-RI-8853840-a1",
      "item_id": "RI-8853840",
      "period": "2026-08",
      "line_date": "2026-08-18",
      "line_type": "incidental",
      "description": "Breakfast",
      "amount": 27.33,
      "disputed": 0,
      "received_at": "2026-08-24T07:00:00Z",
      "source_ref": "folio-8853840",
      "folio_id": "folio-8853840"
    },
    {
      "line_id": "FL-RI-8853840-r1",
      "item_id": "RI-8853840",
      "period": "2026-08",
      "line_date": "2026-08-18",
      "line_type": "room",
      "description": "Room charge",
      "amount": 354.75,
      "disputed": 0,
      "received_at": "2026-08-24T07:00:00Z",
      "source_ref": "folio-8853840",
      "folio_id": "folio-8853840"
    },
    {
      "line_id": "FL-RI-8853840-v1",
      "item_id": "RI-8853840",
      "period": "2026-08",
      "line_date": "2026-08-18",
      "line_type": "tax",
      "description": "VAT 6%",
      "amount": 21.28,
      "disputed": 0,
      "received_at": "2026-08-24T07:00:00Z",
      "source_ref": "folio-8853840",
      "folio_id": "folio-8853840"
    },
    {
      "line_id": "FL-RI-8853840-c2",
      "item_id": "RI-8853840",
      "period": "2026-08",
      "line_date": "2026-08-19",
      "line_type": "fee",
      "description": "City / tourist tax",
      "amount": 4.24,
      "disputed": 0,
      "received_at": "2026-08-24T07:00:00Z",
      "source_ref": "folio-8853840",
      "folio_id": "folio-8853840"
    },
    {
      "line_id": "FL-RI-8853840-r2",
      "item_id": "RI-8853840",
      "period": "2026-08",
      "line_date": "2026-08-19",
      "line_type": "room",
      "description": "Room charge",
      "amount": 343.28,
      "disputed": 0,
      "received_at": "2026-08-24T07:00:00Z",
      "source_ref": "folio-8853840",
      "folio_id": "folio-8853840"
    },
    {
      "line_id": "FL-RI-8853840-v2",
      "item_id": "RI-8853840",
      "period": "2026-08",
      "line_date": "2026-08-19",
      "line_type": "tax",
      "description": "VAT 6%",
      "amount": 20.6,
      "disputed": 0,
      "received_at": "2026-08-24T07:00:00Z",
      "source_ref": "folio-8853840",
      "folio_id": "folio-8853840"
    }
  ],
  "events": [
    {
      "event_id": "RE-RI-8853840-1",
      "item_id": "RI-8853840",
      "period": "2026-08",
      "seq": 1,
      "occurred_at": "2026-08-20T02:10:00Z",
      "event": "opened",
      "actor": "match-engine",
      "actor_type": "rule",
      "note": "Stay complete; reconciliation opened"
    },
    {
      "event_id": "RE-RI-8853840-2",
      "item_id": "RI-8853840",
      "period": "2026-08",
      "seq": 2,
      "occurred_at": "2026-08-22T07:00:00Z",
      "event": "evidence_received",
      "actor": "folio-ingest",
      "actor_type": "rule",
      "note": "Folio received from property"
    },
    {
      "event_id": "RE-RI-8853840-3",
      "item_id": "RI-8853840",
      "period": "2026-08",
      "seq": 3,
      "occurred_at": "2026-08-22T07:05:00Z",
      "event": "matched",
      "actor": "match-engine",
      "actor_type": "rule",
      "note": "Booking, card and folio agree within tolerance"
    },
    {
      "event_id": "RE-RI-8853840-4",
      "item_id": "RI-8853840",
      "period": "2026-08",
      "seq": 4,
      "occurred_at": "2026-08-24T11:00:00Z",
      "event": "resolved",
      "actor": "match-engine",
      "actor_type": "rule",
      "note": "Resolution: legitimate"
    },
    {
      "event_id": "RE-RI-8853840-5",
      "item_id": "RI-8853840",
      "period": "2026-08",
      "seq": 5,
      "occurred_at": "2026-09-19T00: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-8853840-2723",
      "item_id": "RI-8853840",
      "period": "2026-08",
      "legal_entity": "ASL Airlines Belgium NV",
      "entry_date": "2026-08-17",
      "entry_type": "pending",
      "amount": 1128.54,
      "balance_effect": -1128.54,
      "description": "Authorization held — NH Brussels Airport",
      "posted_from_period": null
    },
    {
      "entry_id": "LE-RI-8853840-2724",
      "item_id": "RI-8853840",
      "period": "2026-08",
      "legal_entity": "ASL Airlines Belgium NV",
      "entry_date": "2026-08-22",
      "entry_type": "posted",
      "amount": 1130.87,
      "balance_effect": 0,
      "description": "Charge posted — NH Brussels Airport",
      "posted_from_period": null
    }
  ],
  "nights": [
    {
      "night": "2026-08-17",
      "room_net": 335.05,
      "vat_amount": 20.1,
      "city_tax": 4.24,
      "ancillaries": 0,
      "rate_paid": 359.39,
      "hotel": "NH Brussels Airport",
      "duty_reason": "overnight",
      "night_status": "occupied",
      "vcc_ref": "VCC-8853840",
      "checkin_time": "05:40",
      "checkout_time": "10:00"
    },
    {
      "night": "2026-08-18",
      "room_net": 354.75,
      "vat_amount": 21.28,
      "city_tax": 0,
      "ancillaries": 27.33,
      "rate_paid": 376.03,
      "hotel": "NH Brussels Airport",
      "duty_reason": "held",
      "night_status": "occupied",
      "vcc_ref": "VCC-8853840",
      "checkin_time": null,
      "checkout_time": null
    },
    {
      "night": "2026-08-19",
      "room_net": 343.28,
      "vat_amount": 20.6,
      "city_tax": 4.24,
      "ancillaries": 0,
      "rate_paid": 368.12,
      "hotel": "NH Brussels Airport",
      "duty_reason": "overnight",
      "night_status": "occupied",
      "vcc_ref": "VCC-8853840",
      "checkin_time": "05:40",
      "checkout_time": "10:00"
    }
  ],
  "booking": {
    "booking_id": "RS-8853840",
    "layover_id": "L-513841",
    "duty_id": "D-513840",
    "crew_id": "BEL-S217",
    "entity_id": "ASL Airlines Belgium",
    "legal_entity": "ASL Airlines Belgium NV",
    "station": "BRU",
    "property_id": "P-118",
    "vendor_id": "VEN-01",
    "contract_id": null,
    "revenue_model": "vendor_net",
    "channel": "staff_portal",
    "requested_by": "U-103",
    "created_at": "2026-08-08T05:40:00Z",
    "check_in": "2026-08-17",
    "check_out": "2026-08-20",
    "nights": 3,
    "room_type": "standard",
    "occupancy": 1,
    "lead_time_hours": 216,
    "confirmation_ref": "CNF-853840",
    "cancellation_deadline": null,
    "status": "completed",
    "period": "2026-08",
    "total_amount": 1146.84
  },
  "duty": {
    "duty_id": "D-513840",
    "crew_id": "BEL-S217",
    "entity_id": "ASL Airlines Belgium",
    "roster_ref": "AIMS/202608/513840",
    "duty_type": "overnight",
    "flight_no": "TAY233",
    "dep_station": "LGG",
    "arr_station": "BRU",
    "duty_start_utc": "2026-08-16T09:40:00Z",
    "duty_end_utc": "2026-08-17T04:52:00Z",
    "duty_hours": 8.82,
    "block_hours": 4.53,
    "source_system": "aims",
    "published_at": "2026-08-01T06:00:00Z",
    "version": 1
  },
  "layover": {
    "layover_id": "L-513841",
    "duty_in": "D-513840",
    "duty_out": "D-513840R",
    "crew_id": "BEL-S217",
    "entity_id": "ASL Airlines Belgium",
    "station": "BRU",
    "rest_starts_utc": "2026-08-17T04:52:00Z",
    "rest_ends_utc": "2026-08-20T08:45:00Z",
    "rest_hours_available": 60.78,
    "sleep_opportunity_hours": 58.67,
    "transfer_in_minutes": 13,
    "transfer_out_minutes": 12,
    "nights": 3,
    "disrupted": 0,
    "period": "2026-08"
  },
  "evaluation": {
    "eval_id": "PE-13841",
    "period": "2026-08",
    "booking_id": "RS-8853840",
    "item_id": "RI-8853840",
    "ruleset": "2026.2",
    "evaluated_at": "2026-08-08T05:37:00Z",
    "channel": "staff_portal",
    "traveller_type": "staff",
    "entity": "ASL Airlines Belgium",
    "station": "BRU",
    "outcome": "hard_refusal",
    "breach_count": 1,
    "cost_impact": 1103.54,
    "self_served": 0
  },
  "approval": null,
  "breaches": [
    {
      "breach_id": "PB-D8312",
      "eval_id": "PE-13841",
      "period": "2026-08",
      "rule_id": "R-ENTITLE",
      "layer": "entitlement",
      "severity": "block",
      "observed": "Overnight at home base BRU",
      "limit_value": "rest away from base only",
      "cost_impact": 1103.54,
      "resolved": "refused",
      "name": "Duty entitlement",
      "authority": "ASL",
      "reference": "ASL OM-A 7.1"
    }
  ],
  "changes": [],
  "card": {
    "vcc_ref": "VCC-8853840",
    "booking_id": "RS-8853840",
    "item_id": "RI-8853840",
    "period": "2026-08",
    "issued_at": "2026-08-08T05:40:00Z",
    "issuer": "Routespring card program",
    "limit_amount": 1171.84,
    "currency": "EUR",
    "valid_from": "2026-08-17",
    "valid_to": "2026-08-27",
    "grace_days": 7,
    "mcc_lock": "7011 lodging",
    "merchant_lock": "NH Brussels Airport",
    "auth_count": 3,
    "settled_amount": 1130.87,
    "status": "authorised",
    "closed_at": "2026-08-22T03:00:00Z"
  },
  "folioDoc": {
    "folio_id": "folio-8853840",
    "booking_id": "RS-8853840",
    "item_id": "RI-8853840",
    "property_id": "P-118",
    "period": "2026-08",
    "folio_number": "BRU260817-3410",
    "guest_name": "H. Declerck",
    "check_in": "2026-08-17",
    "check_out": "2026-08-20",
    "issued_at": "2026-08-20T09:30:00Z",
    "received_at": "2026-08-24T07:00:00Z",
    "received_via": "pms_feed",
    "currency": "EUR",
    "stated_total": 1130.87,
    "line_count": 9,
    "days_to_receive": 4.29,
    "disputed": 0
  }
}