{
  "item": {
    "item_id": "RI-8854071",
    "period": "2026-08",
    "booking_id": "RS-8854071",
    "duty_id": "D-514071",
    "entity": "ASL Airlines Belgium",
    "legal_entity": "ASL Airlines Belgium NV",
    "crew_name": "P. Peeters",
    "station": "JNB",
    "property_id": "P-125",
    "hotel": "InterContinental OR Tambo",
    "check_in": "2026-08-05",
    "check_out": "2026-08-06",
    "nights": 1,
    "booking_amount": 302.37,
    "card_auth": 327.37,
    "card_settled": 302.37,
    "folio_amount": 302.37,
    "variance": 0,
    "variance_pct": 0,
    "variance_category": null,
    "match_state": "matched",
    "exception_type": null,
    "state": "final",
    "resolution": "legitimate",
    "opened_at": "2026-08-06T02:10:00Z",
    "resolved_at": "2026-08-15T11:00:00Z",
    "final_at": "2026-09-05T00:01:00Z",
    "final_due_at": "2026-09-05",
    "age_days": 6,
    "auto_resolved": 1
  },
  "cards": [
    {
      "event_id": "CE-5031",
      "item_id": "RI-8854071",
      "booking_id": "RS-8854071",
      "period": "2026-08",
      "vcc_ref": "VCC-8854071",
      "event_type": "issue",
      "amount": null,
      "currency": "EUR",
      "occurred_at": "2026-08-03T09:00:00Z",
      "valid_from": "2026-08-05",
      "valid_to": "2026-08-09",
      "mcc_lock": "7011 lodging",
      "decline_reason": null,
      "issuer_ref": "CNF-854071",
      "source_ref": "feed-2026-08-5031"
    },
    {
      "event_id": "CE-5032",
      "item_id": "RI-8854071",
      "booking_id": "RS-8854071",
      "period": "2026-08",
      "vcc_ref": "VCC-8854071",
      "event_type": "auth",
      "amount": 327.37,
      "currency": "EUR",
      "occurred_at": "2026-08-05T14:20:00Z",
      "valid_from": "2026-08-05",
      "valid_to": "2026-08-09",
      "mcc_lock": "7011 lodging",
      "decline_reason": null,
      "issuer_ref": "CNF-854071",
      "source_ref": "feed-2026-08-5032"
    },
    {
      "event_id": "CE-5033",
      "item_id": "RI-8854071",
      "booking_id": "RS-8854071",
      "period": "2026-08",
      "vcc_ref": "VCC-8854071",
      "event_type": "capture",
      "amount": 302.37,
      "currency": "EUR",
      "occurred_at": "2026-08-06T08:05:00Z",
      "valid_from": "2026-08-05",
      "valid_to": "2026-08-09",
      "mcc_lock": "7011 lodging",
      "decline_reason": null,
      "issuer_ref": "CNF-854071",
      "source_ref": "feed-2026-08-5033"
    },
    {
      "event_id": "CE-5034",
      "item_id": "RI-8854071",
      "booking_id": "RS-8854071",
      "period": "2026-08",
      "vcc_ref": "VCC-8854071",
      "event_type": "settle",
      "amount": 302.37,
      "currency": "EUR",
      "occurred_at": "2026-08-08T03:00:00Z",
      "valid_from": "2026-08-05",
      "valid_to": "2026-08-09",
      "mcc_lock": "7011 lodging",
      "decline_reason": null,
      "issuer_ref": "CNF-854071",
      "source_ref": "feed-2026-08-5034"
    }
  ],
  "folio": [
    {
      "line_id": "FL-RI-8854071-r0",
      "item_id": "RI-8854071",
      "period": "2026-08",
      "line_date": "2026-08-05",
      "line_type": "room",
      "description": "Room charge",
      "amount": 262.93,
      "disputed": 0,
      "received_at": "2026-08-10T07:00:00Z",
      "source_ref": "folio-8854071",
      "folio_id": "folio-8854071"
    },
    {
      "line_id": "FL-RI-8854071-v0",
      "item_id": "RI-8854071",
      "period": "2026-08",
      "line_date": "2026-08-05",
      "line_type": "tax",
      "description": "VAT 15%",
      "amount": 39.44,
      "disputed": 0,
      "received_at": "2026-08-10T07:00:00Z",
      "source_ref": "folio-8854071",
      "folio_id": "folio-8854071"
    }
  ],
  "events": [
    {
      "event_id": "RE-RI-8854071-1",
      "item_id": "RI-8854071",
      "period": "2026-08",
      "seq": 1,
      "occurred_at": "2026-08-06T02:10:00Z",
      "event": "opened",
      "actor": "match-engine",
      "actor_type": "rule",
      "note": "Stay complete; reconciliation opened"
    },
    {
      "event_id": "RE-RI-8854071-2",
      "item_id": "RI-8854071",
      "period": "2026-08",
      "seq": 2,
      "occurred_at": "2026-08-08T07:00:00Z",
      "event": "evidence_received",
      "actor": "folio-ingest",
      "actor_type": "rule",
      "note": "Folio received from property"
    },
    {
      "event_id": "RE-RI-8854071-3",
      "item_id": "RI-8854071",
      "period": "2026-08",
      "seq": 3,
      "occurred_at": "2026-08-08T07:05:00Z",
      "event": "matched",
      "actor": "match-engine",
      "actor_type": "rule",
      "note": "Booking, card and folio agree within tolerance"
    },
    {
      "event_id": "RE-RI-8854071-4",
      "item_id": "RI-8854071",
      "period": "2026-08",
      "seq": 4,
      "occurred_at": "2026-08-12T11:00:00Z",
      "event": "resolved",
      "actor": "match-engine",
      "actor_type": "rule",
      "note": "Resolution: legitimate"
    },
    {
      "event_id": "RE-RI-8854071-5",
      "item_id": "RI-8854071",
      "period": "2026-08",
      "seq": 5,
      "occurred_at": "2026-09-05T00: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-8854071-3333",
      "item_id": "RI-8854071",
      "period": "2026-08",
      "legal_entity": "ASL Airlines Belgium NV",
      "entry_date": "2026-08-05",
      "entry_type": "pending",
      "amount": 327.37,
      "balance_effect": -327.37,
      "description": "Authorization held — InterContinental OR Tambo",
      "posted_from_period": null
    },
    {
      "entry_id": "LE-RI-8854071-3334",
      "item_id": "RI-8854071",
      "period": "2026-08",
      "legal_entity": "ASL Airlines Belgium NV",
      "entry_date": "2026-08-08",
      "entry_type": "posted",
      "amount": 302.37,
      "balance_effect": 0,
      "description": "Charge posted — InterContinental OR Tambo",
      "posted_from_period": null
    },
    {
      "entry_id": "LE-RI-8854071-3335",
      "item_id": "RI-8854071",
      "period": "2026-08",
      "legal_entity": "ASL Airlines Belgium NV",
      "entry_date": "2026-08-08",
      "entry_type": "released",
      "amount": 25,
      "balance_effect": 25,
      "description": "Unused authorization released",
      "posted_from_period": null
    }
  ],
  "nights": [
    {
      "night": "2026-08-05",
      "room_net": 262.93,
      "vat_amount": 39.44,
      "city_tax": 0,
      "ancillaries": 0,
      "rate_paid": 302.37,
      "hotel": "InterContinental OR Tambo",
      "duty_reason": "overnight",
      "night_status": "occupied",
      "vcc_ref": "VCC-8854071",
      "checkin_time": "05:40",
      "checkout_time": "11:00"
    }
  ],
  "booking": {
    "booking_id": "RS-8854071",
    "layover_id": "L-514072",
    "duty_id": "D-514071",
    "crew_id": "BEL-S210",
    "entity_id": "ASL Airlines Belgium",
    "legal_entity": "ASL Airlines Belgium NV",
    "station": "JNB",
    "property_id": "P-125",
    "vendor_id": "VEN-02",
    "contract_id": null,
    "revenue_model": "vendor_net",
    "channel": "staff_portal",
    "requested_by": "U-102",
    "created_at": "2026-08-04T17:40:00Z",
    "check_in": "2026-08-05",
    "check_out": "2026-08-06",
    "nights": 1,
    "room_type": "standard",
    "occupancy": 1,
    "lead_time_hours": 12,
    "confirmation_ref": "CNF-854071",
    "cancellation_deadline": null,
    "status": "completed",
    "period": "2026-08",
    "total_amount": 318.34
  },
  "duty": {
    "duty_id": "D-514071",
    "crew_id": "BEL-S210",
    "entity_id": "ASL Airlines Belgium",
    "roster_ref": "AIMS/202608/514071",
    "duty_type": "overnight",
    "flight_no": "TAY555",
    "dep_station": "BRU",
    "arr_station": "JNB",
    "duty_start_utc": "2026-08-04T15:30:00Z",
    "duty_end_utc": "2026-08-05T04:21:00Z",
    "duty_hours": 10.34,
    "block_hours": 8.24,
    "source_system": "aims",
    "published_at": "2026-07-20T06:00:00Z",
    "version": 1
  },
  "layover": {
    "layover_id": "L-514072",
    "duty_in": "D-514071",
    "duty_out": "D-514071R",
    "crew_id": "BEL-S210",
    "entity_id": "ASL Airlines Belgium",
    "station": "JNB",
    "rest_starts_utc": "2026-08-05T04:21:00Z",
    "rest_ends_utc": "2026-08-06T11:20:00Z",
    "rest_hours_available": 13.31,
    "sleep_opportunity_hours": 10.27,
    "transfer_in_minutes": 44,
    "transfer_out_minutes": 44,
    "nights": 1,
    "disrupted": 0,
    "period": "2026-08"
  },
  "evaluation": {
    "eval_id": "PE-14072",
    "period": "2026-08",
    "booking_id": "RS-8854071",
    "item_id": "RI-8854071",
    "ruleset": "2026.2",
    "evaluated_at": "2026-08-04T17:37:00Z",
    "channel": "staff_portal",
    "traveller_type": "staff",
    "entity": "ASL Airlines Belgium",
    "station": "JNB",
    "outcome": "soft_breach",
    "breach_count": 1,
    "cost_impact": 29.34,
    "self_served": 0
  },
  "approval": {
    "approval_id": "PA-2940",
    "eval_id": "PE-14072",
    "period": "2026-08",
    "approver": "K. Vermeulen",
    "approver_role": "line_manager",
    "reason": "Rate cap exceeded, no alternative within transfer limit",
    "approved_at": "2026-08-04T17:38:48Z",
    "second_approver": null
  },
  "breaches": [
    {
      "breach_id": "PB-7321",
      "eval_id": "PE-14072",
      "period": "2026-08",
      "rule_id": "R-PREF",
      "layer": "commercial",
      "severity": "approve",
      "observed": "Booked away from preferred order",
      "limit_value": "preferred order",
      "cost_impact": 29.34,
      "resolved": "approved",
      "name": "Preferred property order",
      "authority": "Routespring",
      "reference": null
    }
  ],
  "changes": [
    {
      "change_id": "BC-1685",
      "booking_id": "RS-8854071",
      "period": "2026-08",
      "occurred_at": "2026-08-05T06:12:00Z",
      "change_type": "modify_in_place",
      "source": "aims",
      "trigger": "roster_change",
      "modify_attempted": 1,
      "failed_reason": null,
      "hours_before_checkin": 57.92,
      "cutoff_hours": 24,
      "cost": 12.83,
      "room_lost": 0,
      "resolved_by": "automation",
      "resolved_at": null,
      "sla_breached": 0
    }
  ],
  "card": {
    "vcc_ref": "VCC-8854071",
    "booking_id": "RS-8854071",
    "item_id": "RI-8854071",
    "period": "2026-08",
    "issued_at": "2026-08-04T17:40:00Z",
    "issuer": "Routespring card program",
    "limit_amount": 343.34,
    "currency": "EUR",
    "valid_from": "2026-08-05",
    "valid_to": "2026-08-13",
    "grace_days": 7,
    "mcc_lock": "7011 lodging",
    "merchant_lock": "InterContinental OR Tambo",
    "auth_count": 1,
    "settled_amount": 302.37,
    "status": "settled",
    "closed_at": "2026-08-08T03:00:00Z"
  },
  "folioDoc": {
    "folio_id": "folio-8854071",
    "booking_id": "RS-8854071",
    "item_id": "RI-8854071",
    "property_id": "P-125",
    "period": "2026-08",
    "folio_number": "JNB260805-3668",
    "guest_name": "P. Peeters",
    "check_in": "2026-08-05",
    "check_out": "2026-08-06",
    "issued_at": "2026-08-06T09:30:00Z",
    "received_at": "2026-08-10T07:00:00Z",
    "received_via": "portal",
    "currency": "EUR",
    "stated_total": 302.37,
    "line_count": 2,
    "days_to_receive": 4.29,
    "disputed": 0
  }
}