{
  "item": {
    "item_id": "RI-8854619",
    "period": "2026-08",
    "booking_id": "RS-8854619",
    "duty_id": "D-514619",
    "entity": "ASL Airlines Belgium",
    "legal_entity": "ASL Airlines Belgium NV",
    "crew_name": "H. Wouters",
    "station": "BRU",
    "property_id": "P-117",
    "hotel": "Thon Hotel EU",
    "check_in": "2026-08-04",
    "check_out": "2026-08-06",
    "nights": 2,
    "booking_amount": 644.46,
    "card_auth": 669.46,
    "card_settled": 644.46,
    "folio_amount": 644.46,
    "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-17T11:00:00Z",
    "final_at": "2026-09-05T00:01:00Z",
    "final_due_at": "2026-09-05",
    "age_days": 13,
    "auto_resolved": 1
  },
  "cards": [
    {
      "event_id": "CE-7218",
      "item_id": "RI-8854619",
      "booking_id": "RS-8854619",
      "period": "2026-08",
      "vcc_ref": "VCC-8854619",
      "event_type": "issue",
      "amount": null,
      "currency": "EUR",
      "occurred_at": "2026-08-02T09:00:00Z",
      "valid_from": "2026-08-04",
      "valid_to": "2026-08-09",
      "mcc_lock": "7011 lodging",
      "decline_reason": null,
      "issuer_ref": "CNF-854619",
      "source_ref": "feed-2026-08-7218"
    },
    {
      "event_id": "CE-7219",
      "item_id": "RI-8854619",
      "booking_id": "RS-8854619",
      "period": "2026-08",
      "vcc_ref": "VCC-8854619",
      "event_type": "auth",
      "amount": 669.46,
      "currency": "EUR",
      "occurred_at": "2026-08-04T14:20:00Z",
      "valid_from": "2026-08-04",
      "valid_to": "2026-08-09",
      "mcc_lock": "7011 lodging",
      "decline_reason": null,
      "issuer_ref": "CNF-854619",
      "source_ref": "feed-2026-08-7219"
    },
    {
      "event_id": "CE-7220",
      "item_id": "RI-8854619",
      "booking_id": "RS-8854619",
      "period": "2026-08",
      "vcc_ref": "VCC-8854619",
      "event_type": "capture",
      "amount": 644.46,
      "currency": "EUR",
      "occurred_at": "2026-08-06T08:05:00Z",
      "valid_from": "2026-08-04",
      "valid_to": "2026-08-09",
      "mcc_lock": "7011 lodging",
      "decline_reason": null,
      "issuer_ref": "CNF-854619",
      "source_ref": "feed-2026-08-7220"
    },
    {
      "event_id": "CE-7221",
      "item_id": "RI-8854619",
      "booking_id": "RS-8854619",
      "period": "2026-08",
      "vcc_ref": "VCC-8854619",
      "event_type": "settle",
      "amount": 644.46,
      "currency": "EUR",
      "occurred_at": "2026-08-08T03:00:00Z",
      "valid_from": "2026-08-04",
      "valid_to": "2026-08-09",
      "mcc_lock": "7011 lodging",
      "decline_reason": null,
      "issuer_ref": "CNF-854619",
      "source_ref": "feed-2026-08-7221"
    }
  ],
  "folio": [
    {
      "line_id": "FL-RI-8854619-c0",
      "item_id": "RI-8854619",
      "period": "2026-08",
      "line_date": "2026-08-04",
      "line_type": "fee",
      "description": "City / tourist tax",
      "amount": 4.24,
      "disputed": 0,
      "received_at": "2026-08-11T07:00:00Z",
      "source_ref": "folio-8854619",
      "folio_id": "folio-8854619"
    },
    {
      "line_id": "FL-RI-8854619-r0",
      "item_id": "RI-8854619",
      "period": "2026-08",
      "line_date": "2026-08-04",
      "line_type": "room",
      "description": "Room charge",
      "amount": 299.99,
      "disputed": 0,
      "received_at": "2026-08-11T07:00:00Z",
      "source_ref": "folio-8854619",
      "folio_id": "folio-8854619"
    },
    {
      "line_id": "FL-RI-8854619-v0",
      "item_id": "RI-8854619",
      "period": "2026-08",
      "line_date": "2026-08-04",
      "line_type": "tax",
      "description": "VAT 6%",
      "amount": 18,
      "disputed": 0,
      "received_at": "2026-08-11T07:00:00Z",
      "source_ref": "folio-8854619",
      "folio_id": "folio-8854619"
    },
    {
      "line_id": "FL-RI-8854619-c1",
      "item_id": "RI-8854619",
      "period": "2026-08",
      "line_date": "2026-08-05",
      "line_type": "fee",
      "description": "City / tourist tax",
      "amount": 4.24,
      "disputed": 0,
      "received_at": "2026-08-11T07:00:00Z",
      "source_ref": "folio-8854619",
      "folio_id": "folio-8854619"
    },
    {
      "line_id": "FL-RI-8854619-r1",
      "item_id": "RI-8854619",
      "period": "2026-08",
      "line_date": "2026-08-05",
      "line_type": "room",
      "description": "Room charge",
      "amount": 299.99,
      "disputed": 0,
      "received_at": "2026-08-11T07:00:00Z",
      "source_ref": "folio-8854619",
      "folio_id": "folio-8854619"
    },
    {
      "line_id": "FL-RI-8854619-v1",
      "item_id": "RI-8854619",
      "period": "2026-08",
      "line_date": "2026-08-05",
      "line_type": "tax",
      "description": "VAT 6%",
      "amount": 18,
      "disputed": 0,
      "received_at": "2026-08-11T07:00:00Z",
      "source_ref": "folio-8854619",
      "folio_id": "folio-8854619"
    }
  ],
  "events": [
    {
      "event_id": "RE-RI-8854619-1",
      "item_id": "RI-8854619",
      "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-8854619-2",
      "item_id": "RI-8854619",
      "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-8854619-3",
      "item_id": "RI-8854619",
      "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-8854619-4",
      "item_id": "RI-8854619",
      "period": "2026-08",
      "seq": 4,
      "occurred_at": "2026-08-17T11:00:00Z",
      "event": "resolved",
      "actor": "match-engine",
      "actor_type": "rule",
      "note": "Resolution: legitimate"
    },
    {
      "event_id": "RE-RI-8854619-5",
      "item_id": "RI-8854619",
      "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-8854619-4771",
      "item_id": "RI-8854619",
      "period": "2026-08",
      "legal_entity": "ASL Airlines Belgium NV",
      "entry_date": "2026-08-04",
      "entry_type": "pending",
      "amount": 669.46,
      "balance_effect": -669.46,
      "description": "Authorization held — Thon Hotel EU",
      "posted_from_period": null
    },
    {
      "entry_id": "LE-RI-8854619-4772",
      "item_id": "RI-8854619",
      "period": "2026-08",
      "legal_entity": "ASL Airlines Belgium NV",
      "entry_date": "2026-08-08",
      "entry_type": "posted",
      "amount": 644.46,
      "balance_effect": 0,
      "description": "Charge posted — Thon Hotel EU",
      "posted_from_period": null
    },
    {
      "entry_id": "LE-RI-8854619-4773",
      "item_id": "RI-8854619",
      "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-04",
      "room_net": 299.99,
      "vat_amount": 18,
      "city_tax": 4.24,
      "ancillaries": 0,
      "rate_paid": 322.23,
      "hotel": "Thon Hotel EU",
      "duty_reason": "overnight",
      "night_status": "occupied",
      "vcc_ref": "VCC-8854619",
      "checkin_time": "01:15",
      "checkout_time": "10:00"
    },
    {
      "night": "2026-08-05",
      "room_net": 299.99,
      "vat_amount": 18,
      "city_tax": 4.24,
      "ancillaries": 0,
      "rate_paid": 322.23,
      "hotel": "Thon Hotel EU",
      "duty_reason": "overnight",
      "night_status": "occupied",
      "vcc_ref": "VCC-8854619",
      "checkin_time": "01:15",
      "checkout_time": "10:00"
    }
  ],
  "booking": {
    "booking_id": "RS-8854619",
    "layover_id": "L-514620",
    "duty_id": "D-514619",
    "crew_id": "BEL-1019",
    "entity_id": "ASL Airlines Belgium",
    "legal_entity": "ASL Airlines Belgium NV",
    "station": "BRU",
    "property_id": "P-117",
    "vendor_id": null,
    "contract_id": "C-117",
    "revenue_model": "routespring_contract",
    "channel": "crew_app",
    "requested_by": "BEL-1019",
    "created_at": "2026-08-01T01:15:00Z",
    "check_in": "2026-08-04",
    "check_out": "2026-08-06",
    "nights": 2,
    "room_type": "standard",
    "occupancy": 1,
    "lead_time_hours": 72,
    "confirmation_ref": "CNF-854619",
    "cancellation_deadline": "2026-08-03T18:00:00Z",
    "status": "completed",
    "period": "2026-08",
    "total_amount": 660.43
  },
  "duty": {
    "duty_id": "D-514619",
    "crew_id": "BEL-1019",
    "entity_id": "ASL Airlines Belgium",
    "roster_ref": "AIMS/202608/514619",
    "duty_type": "overnight",
    "flight_no": "TAY814",
    "dep_station": "LGG",
    "arr_station": "BRU",
    "duty_start_utc": "2026-08-03T12:15:00Z",
    "duty_end_utc": "2026-08-04T00:22:00Z",
    "duty_hours": 6.95,
    "block_hours": 5,
    "source_system": "aims",
    "published_at": "2026-07-30T06:00:00Z",
    "version": 1
  },
  "layover": {
    "layover_id": "L-514620",
    "duty_in": "D-514619",
    "duty_out": "D-514619R",
    "crew_id": "BEL-1019",
    "entity_id": "ASL Airlines Belgium",
    "station": "BRU",
    "rest_starts_utc": "2026-08-04T00:22:00Z",
    "rest_ends_utc": "2026-08-06T06:00:00Z",
    "rest_hours_available": 35.31,
    "sleep_opportunity_hours": 32.82,
    "transfer_in_minutes": 18,
    "transfer_out_minutes": 21,
    "nights": 2,
    "disrupted": 0,
    "period": "2026-08"
  },
  "evaluation": {
    "eval_id": "PE-14620",
    "period": "2026-08",
    "booking_id": "RS-8854619",
    "item_id": "RI-8854619",
    "ruleset": "2026.2",
    "evaluated_at": "2026-08-01T01:12:00Z",
    "channel": "automation",
    "traveller_type": "crew",
    "entity": "ASL Airlines Belgium",
    "station": "BRU",
    "outcome": "pass",
    "breach_count": 0,
    "cost_impact": 0,
    "self_served": 0
  },
  "approval": null,
  "breaches": [],
  "changes": [],
  "card": {
    "vcc_ref": "VCC-8854619",
    "booking_id": "RS-8854619",
    "item_id": "RI-8854619",
    "period": "2026-08",
    "issued_at": "2026-08-01T01:15:00Z",
    "issuer": "Routespring card program",
    "limit_amount": 685.43,
    "currency": "EUR",
    "valid_from": "2026-08-04",
    "valid_to": "2026-08-13",
    "grace_days": 7,
    "mcc_lock": "7011 lodging",
    "merchant_lock": "Thon Hotel EU",
    "auth_count": 2,
    "settled_amount": 644.46,
    "status": "settled",
    "closed_at": "2026-08-08T03:00:00Z"
  },
  "folioDoc": {
    "folio_id": "folio-8854619",
    "booking_id": "RS-8854619",
    "item_id": "RI-8854619",
    "property_id": "P-117",
    "period": "2026-08",
    "folio_number": "BRU260804-2304",
    "guest_name": "H. Wouters",
    "check_in": "2026-08-04",
    "check_out": "2026-08-06",
    "issued_at": "2026-08-06T09:30:00Z",
    "received_at": "2026-08-11T07:00:00Z",
    "received_via": "manual",
    "currency": "EUR",
    "stated_total": 644.46,
    "line_count": 6,
    "days_to_receive": 5.29,
    "disputed": 0
  }
}