{
  "item": {
    "item_id": "RI-8854583",
    "period": "2026-08",
    "booking_id": "RS-8854583",
    "duty_id": "D-514583",
    "entity": "ASL Airlines Belgium",
    "legal_entity": "ASL Airlines Belgium NV",
    "crew_name": "L. Lambert",
    "station": "JNB",
    "property_id": "P-124",
    "hotel": "Protea OR Tambo",
    "check_in": "2026-08-21",
    "check_out": "2026-08-24",
    "nights": 3,
    "booking_amount": 706.06,
    "card_auth": 731.06,
    "card_settled": 733.41,
    "folio_amount": 733.41,
    "variance": 0,
    "variance_pct": 0,
    "variance_category": null,
    "match_state": "matched",
    "exception_type": null,
    "state": "final",
    "resolution": "legitimate",
    "opened_at": "2026-08-24T02:10:00Z",
    "resolved_at": "2026-09-02T11:00:00Z",
    "final_at": "2026-09-23T00:01:00Z",
    "final_due_at": "2026-09-23",
    "age_days": 39,
    "auto_resolved": 1
  },
  "cards": [
    {
      "event_id": "CE-7074",
      "item_id": "RI-8854583",
      "booking_id": "RS-8854583",
      "period": "2026-08",
      "vcc_ref": "VCC-8854583",
      "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-854583",
      "source_ref": "feed-2026-08-7074"
    },
    {
      "event_id": "CE-7075",
      "item_id": "RI-8854583",
      "booking_id": "RS-8854583",
      "period": "2026-08",
      "vcc_ref": "VCC-8854583",
      "event_type": "auth",
      "amount": 731.06,
      "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-854583",
      "source_ref": "feed-2026-08-7075"
    },
    {
      "event_id": "CE-7076",
      "item_id": "RI-8854583",
      "booking_id": "RS-8854583",
      "period": "2026-08",
      "vcc_ref": "VCC-8854583",
      "event_type": "capture",
      "amount": 733.41,
      "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-854583",
      "source_ref": "feed-2026-08-7076"
    },
    {
      "event_id": "CE-7077",
      "item_id": "RI-8854583",
      "booking_id": "RS-8854583",
      "period": "2026-08",
      "vcc_ref": "VCC-8854583",
      "event_type": "settle",
      "amount": 733.41,
      "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-854583",
      "source_ref": "feed-2026-08-7077"
    }
  ],
  "folio": [
    {
      "line_id": "FL-RI-8854583-a0",
      "item_id": "RI-8854583",
      "period": "2026-08",
      "line_date": "2026-08-21",
      "line_type": "incidental",
      "description": "Parking",
      "amount": 27.35,
      "disputed": 0,
      "received_at": "2026-08-27T07:00:00Z",
      "source_ref": "folio-8854583",
      "folio_id": "folio-8854583"
    },
    {
      "line_id": "FL-RI-8854583-r0",
      "item_id": "RI-8854583",
      "period": "2026-08",
      "line_date": "2026-08-21",
      "line_type": "room",
      "description": "Room charge",
      "amount": 212.08,
      "disputed": 0,
      "received_at": "2026-08-27T07:00:00Z",
      "source_ref": "folio-8854583",
      "folio_id": "folio-8854583"
    },
    {
      "line_id": "FL-RI-8854583-v0",
      "item_id": "RI-8854583",
      "period": "2026-08",
      "line_date": "2026-08-21",
      "line_type": "tax",
      "description": "VAT 15%",
      "amount": 31.81,
      "disputed": 0,
      "received_at": "2026-08-27T07:00:00Z",
      "source_ref": "folio-8854583",
      "folio_id": "folio-8854583"
    },
    {
      "line_id": "FL-RI-8854583-r1",
      "item_id": "RI-8854583",
      "period": "2026-08",
      "line_date": "2026-08-22",
      "line_type": "room",
      "description": "Room charge",
      "amount": 201,
      "disputed": 0,
      "received_at": "2026-08-27T07:00:00Z",
      "source_ref": "folio-8854583",
      "folio_id": "folio-8854583"
    },
    {
      "line_id": "FL-RI-8854583-v1",
      "item_id": "RI-8854583",
      "period": "2026-08",
      "line_date": "2026-08-22",
      "line_type": "tax",
      "description": "VAT 15%",
      "amount": 30.15,
      "disputed": 0,
      "received_at": "2026-08-27T07:00:00Z",
      "source_ref": "folio-8854583",
      "folio_id": "folio-8854583"
    },
    {
      "line_id": "FL-RI-8854583-r2",
      "item_id": "RI-8854583",
      "period": "2026-08",
      "line_date": "2026-08-23",
      "line_type": "room",
      "description": "Room charge",
      "amount": 200.89,
      "disputed": 0,
      "received_at": "2026-08-27T07:00:00Z",
      "source_ref": "folio-8854583",
      "folio_id": "folio-8854583"
    },
    {
      "line_id": "FL-RI-8854583-v2",
      "item_id": "RI-8854583",
      "period": "2026-08",
      "line_date": "2026-08-23",
      "line_type": "tax",
      "description": "VAT 15%",
      "amount": 30.13,
      "disputed": 0,
      "received_at": "2026-08-27T07:00:00Z",
      "source_ref": "folio-8854583",
      "folio_id": "folio-8854583"
    }
  ],
  "events": [
    {
      "event_id": "RE-RI-8854583-1",
      "item_id": "RI-8854583",
      "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-8854583-2",
      "item_id": "RI-8854583",
      "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-8854583-3",
      "item_id": "RI-8854583",
      "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-8854583-4",
      "item_id": "RI-8854583",
      "period": "2026-08",
      "seq": 4,
      "occurred_at": "2026-09-03T11:00:00Z",
      "event": "resolved",
      "actor": "match-engine",
      "actor_type": "rule",
      "note": "Resolution: legitimate"
    },
    {
      "event_id": "RE-RI-8854583-5",
      "item_id": "RI-8854583",
      "period": "2026-08",
      "seq": 5,
      "occurred_at": "2026-09-23T00: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-8854583-4673",
      "item_id": "RI-8854583",
      "period": "2026-08",
      "legal_entity": "ASL Airlines Belgium NV",
      "entry_date": "2026-08-21",
      "entry_type": "pending",
      "amount": 731.06,
      "balance_effect": -731.06,
      "description": "Authorization held — Protea OR Tambo",
      "posted_from_period": null
    },
    {
      "entry_id": "LE-RI-8854583-4674",
      "item_id": "RI-8854583",
      "period": "2026-08",
      "legal_entity": "ASL Airlines Belgium NV",
      "entry_date": "2026-08-26",
      "entry_type": "posted",
      "amount": 733.41,
      "balance_effect": 0,
      "description": "Charge posted — Protea OR Tambo",
      "posted_from_period": null
    }
  ],
  "nights": [
    {
      "night": "2026-08-21",
      "room_net": 212.08,
      "vat_amount": 31.81,
      "city_tax": 0,
      "ancillaries": 27.35,
      "rate_paid": 243.89,
      "hotel": "Protea OR Tambo",
      "duty_reason": "overnight",
      "night_status": "occupied",
      "vcc_ref": "VCC-8854583",
      "checkin_time": "05:40",
      "checkout_time": "11:00"
    },
    {
      "night": "2026-08-22",
      "room_net": 201,
      "vat_amount": 30.15,
      "city_tax": 0,
      "ancillaries": 0,
      "rate_paid": 231.15,
      "hotel": "Protea OR Tambo",
      "duty_reason": "overnight",
      "night_status": "occupied",
      "vcc_ref": "VCC-8854583",
      "checkin_time": "05:40",
      "checkout_time": "11:00"
    },
    {
      "night": "2026-08-23",
      "room_net": 200.89,
      "vat_amount": 30.13,
      "city_tax": 0,
      "ancillaries": 0,
      "rate_paid": 231.02,
      "hotel": "Protea OR Tambo",
      "duty_reason": "positioning",
      "night_status": "occupied",
      "vcc_ref": "VCC-8854583",
      "checkin_time": "05:40",
      "checkout_time": "11:00"
    }
  ],
  "booking": {
    "booking_id": "RS-8854583",
    "layover_id": "L-514584",
    "duty_id": "D-514583",
    "crew_id": "BEL-1045",
    "entity_id": "ASL Airlines Belgium",
    "legal_entity": "ASL Airlines Belgium NV",
    "station": "JNB",
    "property_id": "P-124",
    "vendor_id": "VEN-04",
    "contract_id": null,
    "revenue_model": "vendor_commission",
    "channel": "crew_app",
    "requested_by": "BEL-1045",
    "created_at": "2026-08-16T05:40:00Z",
    "check_in": "2026-08-21",
    "check_out": "2026-08-24",
    "nights": 3,
    "room_type": "standard",
    "occupancy": 1,
    "lead_time_hours": 120,
    "confirmation_ref": "CNF-854583",
    "cancellation_deadline": null,
    "status": "completed",
    "period": "2026-08",
    "total_amount": 749.38
  },
  "duty": {
    "duty_id": "D-514583",
    "crew_id": "BEL-1045",
    "entity_id": "ASL Airlines Belgium",
    "roster_ref": "AIMS/202608/514583",
    "duty_type": "overnight",
    "flight_no": "TAY692",
    "dep_station": "LGG",
    "arr_station": "JNB",
    "duty_start_utc": "2026-08-20T12:15:00Z",
    "duty_end_utc": "2026-08-21T04:19:00Z",
    "duty_hours": 8.39,
    "block_hours": 3.78,
    "source_system": "aims",
    "published_at": "2026-08-13T06:00:00Z",
    "version": 1
  },
  "layover": {
    "layover_id": "L-514584",
    "duty_in": "D-514583",
    "duty_out": "D-514583R",
    "crew_id": "BEL-1045",
    "entity_id": "ASL Airlines Belgium",
    "station": "JNB",
    "rest_starts_utc": "2026-08-21T04:19:00Z",
    "rest_ends_utc": "2026-08-24T11:20:00Z",
    "rest_hours_available": 58.77,
    "sleep_opportunity_hours": 55.63,
    "transfer_in_minutes": 46,
    "transfer_out_minutes": 43,
    "nights": 3,
    "disrupted": 0,
    "period": "2026-08"
  },
  "evaluation": {
    "eval_id": "PE-14584",
    "period": "2026-08",
    "booking_id": "RS-8854583",
    "item_id": "RI-8854583",
    "ruleset": "2026.2",
    "evaluated_at": "2026-08-16T05:37:00Z",
    "channel": "crew_app",
    "traveller_type": "crew",
    "entity": "ASL Airlines Belgium",
    "station": "JNB",
    "outcome": "soft_breach",
    "breach_count": 1,
    "cost_impact": 27.35,
    "self_served": 0
  },
  "approval": null,
  "breaches": [
    {
      "breach_id": "PB-7570",
      "eval_id": "PE-14584",
      "period": "2026-08",
      "rule_id": "R-ANC",
      "layer": "commercial",
      "severity": "warn",
      "observed": "27.35 EUR uncovered",
      "limit_value": "breakfast, wifi",
      "cost_impact": 27.35,
      "resolved": "auto_allowed",
      "name": "Covered ancillaries",
      "authority": "ASL",
      "reference": null
    }
  ],
  "changes": [],
  "card": {
    "vcc_ref": "VCC-8854583",
    "booking_id": "RS-8854583",
    "item_id": "RI-8854583",
    "period": "2026-08",
    "issued_at": "2026-08-16T05:40:00Z",
    "issuer": "Routespring card program",
    "limit_amount": 774.38,
    "currency": "EUR",
    "valid_from": "2026-08-21",
    "valid_to": "2026-08-31",
    "grace_days": 7,
    "mcc_lock": "7011 lodging",
    "merchant_lock": "Protea OR Tambo",
    "auth_count": 3,
    "settled_amount": 733.41,
    "status": "settled",
    "closed_at": "2026-08-26T03:00:00Z"
  },
  "folioDoc": {
    "folio_id": "folio-8854583",
    "booking_id": "RS-8854583",
    "item_id": "RI-8854583",
    "property_id": "P-124",
    "period": "2026-08",
    "folio_number": "JNB260821-5187",
    "guest_name": "L. Lambert",
    "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": 733.41,
    "line_count": 7,
    "days_to_receive": 3.29,
    "disputed": 0
  }
}