{
  "item": {
    "item_id": "RI-8854909",
    "period": "2026-08",
    "booking_id": "RS-8854909",
    "duty_id": "D-514909",
    "entity": "ASL Airlines France",
    "legal_entity": "ASL Airlines France SA",
    "crew_name": "D. Bernard",
    "station": "TLS",
    "property_id": "P-133",
    "hotel": "Pullman Toulouse Airport",
    "check_in": "2026-08-28",
    "check_out": "2026-09-01",
    "nights": 4,
    "booking_amount": 1075.39,
    "card_auth": 1100.39,
    "card_settled": 1127.16,
    "folio_amount": 1127.16,
    "variance": 0,
    "variance_pct": 0,
    "variance_category": null,
    "match_state": "matched",
    "exception_type": null,
    "state": "final",
    "resolution": "legitimate",
    "opened_at": "2026-09-01T02:10:00Z",
    "resolved_at": "2026-09-08T11:00:00Z",
    "final_at": "2026-10-01T00:01:00Z",
    "final_due_at": "2026-10-01",
    "age_days": 15,
    "auto_resolved": 1
  },
  "cards": [
    {
      "event_id": "CE-8382",
      "item_id": "RI-8854909",
      "booking_id": "RS-8854909",
      "period": "2026-08",
      "vcc_ref": "VCC-8854909",
      "event_type": "issue",
      "amount": null,
      "currency": "EUR",
      "occurred_at": "2026-08-26T09:00:00Z",
      "valid_from": "2026-08-28",
      "valid_to": "2026-09-04",
      "mcc_lock": "7011 lodging",
      "decline_reason": null,
      "issuer_ref": "CNF-854909",
      "source_ref": "feed-2026-08-8382"
    },
    {
      "event_id": "CE-8383",
      "item_id": "RI-8854909",
      "booking_id": "RS-8854909",
      "period": "2026-08",
      "vcc_ref": "VCC-8854909",
      "event_type": "auth",
      "amount": 1100.39,
      "currency": "EUR",
      "occurred_at": "2026-08-28T14:20:00Z",
      "valid_from": "2026-08-28",
      "valid_to": "2026-09-04",
      "mcc_lock": "7011 lodging",
      "decline_reason": null,
      "issuer_ref": "CNF-854909",
      "source_ref": "feed-2026-08-8383"
    },
    {
      "event_id": "CE-8384",
      "item_id": "RI-8854909",
      "booking_id": "RS-8854909",
      "period": "2026-08",
      "vcc_ref": "VCC-8854909",
      "event_type": "capture",
      "amount": 1127.16,
      "currency": "EUR",
      "occurred_at": "2026-09-01T08:05:00Z",
      "valid_from": "2026-08-28",
      "valid_to": "2026-09-04",
      "mcc_lock": "7011 lodging",
      "decline_reason": null,
      "issuer_ref": "CNF-854909",
      "source_ref": "feed-2026-08-8384"
    },
    {
      "event_id": "CE-8385",
      "item_id": "RI-8854909",
      "booking_id": "RS-8854909",
      "period": "2026-08",
      "vcc_ref": "VCC-8854909",
      "event_type": "settle",
      "amount": 1127.16,
      "currency": "EUR",
      "occurred_at": "2026-09-03T03:00:00Z",
      "valid_from": "2026-08-28",
      "valid_to": "2026-09-04",
      "mcc_lock": "7011 lodging",
      "decline_reason": null,
      "issuer_ref": "CNF-854909",
      "source_ref": "feed-2026-08-8385"
    }
  ],
  "folio": [
    {
      "line_id": "FL-RI-8854909-c0",
      "item_id": "RI-8854909",
      "period": "2026-08",
      "line_date": "2026-08-28",
      "line_type": "fee",
      "description": "City / tourist tax",
      "amount": 2.88,
      "disputed": 0,
      "received_at": "2026-09-07T07:00:00Z",
      "source_ref": "folio-8854909",
      "folio_id": "folio-8854909"
    },
    {
      "line_id": "FL-RI-8854909-r0",
      "item_id": "RI-8854909",
      "period": "2026-08",
      "line_date": "2026-08-28",
      "line_type": "room",
      "description": "Room charge",
      "amount": 245.04,
      "disputed": 0,
      "received_at": "2026-09-07T07:00:00Z",
      "source_ref": "folio-8854909",
      "folio_id": "folio-8854909"
    },
    {
      "line_id": "FL-RI-8854909-v0",
      "item_id": "RI-8854909",
      "period": "2026-08",
      "line_date": "2026-08-28",
      "line_type": "tax",
      "description": "VAT 10%",
      "amount": 24.5,
      "disputed": 0,
      "received_at": "2026-09-07T07:00:00Z",
      "source_ref": "folio-8854909",
      "folio_id": "folio-8854909"
    },
    {
      "line_id": "FL-RI-8854909-a1",
      "item_id": "RI-8854909",
      "period": "2026-08",
      "line_date": "2026-08-29",
      "line_type": "incidental",
      "description": "Late checkout",
      "amount": 16.72,
      "disputed": 0,
      "received_at": "2026-09-07T07:00:00Z",
      "source_ref": "folio-8854909",
      "folio_id": "folio-8854909"
    },
    {
      "line_id": "FL-RI-8854909-r1",
      "item_id": "RI-8854909",
      "period": "2026-08",
      "line_date": "2026-08-29",
      "line_type": "room",
      "description": "Room charge",
      "amount": 233.58,
      "disputed": 0,
      "received_at": "2026-09-07T07:00:00Z",
      "source_ref": "folio-8854909",
      "folio_id": "folio-8854909"
    },
    {
      "line_id": "FL-RI-8854909-v1",
      "item_id": "RI-8854909",
      "period": "2026-08",
      "line_date": "2026-08-29",
      "line_type": "tax",
      "description": "VAT 10%",
      "amount": 23.36,
      "disputed": 0,
      "received_at": "2026-09-07T07:00:00Z",
      "source_ref": "folio-8854909",
      "folio_id": "folio-8854909"
    },
    {
      "line_id": "FL-RI-8854909-c2",
      "item_id": "RI-8854909",
      "period": "2026-08",
      "line_date": "2026-08-30",
      "line_type": "fee",
      "description": "City / tourist tax",
      "amount": 2.88,
      "disputed": 0,
      "received_at": "2026-09-07T07:00:00Z",
      "source_ref": "folio-8854909",
      "folio_id": "folio-8854909"
    },
    {
      "line_id": "FL-RI-8854909-r2",
      "item_id": "RI-8854909",
      "period": "2026-08",
      "line_date": "2026-08-30",
      "line_type": "room",
      "description": "Room charge",
      "amount": 234.59,
      "disputed": 0,
      "received_at": "2026-09-07T07:00:00Z",
      "source_ref": "folio-8854909",
      "folio_id": "folio-8854909"
    },
    {
      "line_id": "FL-RI-8854909-v2",
      "item_id": "RI-8854909",
      "period": "2026-08",
      "line_date": "2026-08-30",
      "line_type": "tax",
      "description": "VAT 10%",
      "amount": 23.46,
      "disputed": 0,
      "received_at": "2026-09-07T07:00:00Z",
      "source_ref": "folio-8854909",
      "folio_id": "folio-8854909"
    },
    {
      "line_id": "FL-RI-8854909-c3",
      "item_id": "RI-8854909",
      "period": "2026-08",
      "line_date": "2026-08-31",
      "line_type": "fee",
      "description": "City / tourist tax",
      "amount": 2.88,
      "disputed": 0,
      "received_at": "2026-09-07T07:00:00Z",
      "source_ref": "folio-8854909",
      "folio_id": "folio-8854909"
    },
    {
      "line_id": "FL-RI-8854909-a3",
      "item_id": "RI-8854909",
      "period": "2026-08",
      "line_date": "2026-08-31",
      "line_type": "incidental",
      "description": "Restaurant",
      "amount": 35.05,
      "disputed": 0,
      "received_at": "2026-09-07T07:00:00Z",
      "source_ref": "folio-8854909",
      "folio_id": "folio-8854909"
    },
    {
      "line_id": "FL-RI-8854909-r3",
      "item_id": "RI-8854909",
      "period": "2026-08",
      "line_date": "2026-08-31",
      "line_type": "room",
      "description": "Room charge",
      "amount": 256.56,
      "disputed": 0,
      "received_at": "2026-09-07T07:00:00Z",
      "source_ref": "folio-8854909",
      "folio_id": "folio-8854909"
    },
    {
      "line_id": "FL-RI-8854909-v3",
      "item_id": "RI-8854909",
      "period": "2026-08",
      "line_date": "2026-08-31",
      "line_type": "tax",
      "description": "VAT 10%",
      "amount": 25.66,
      "disputed": 0,
      "received_at": "2026-09-07T07:00:00Z",
      "source_ref": "folio-8854909",
      "folio_id": "folio-8854909"
    }
  ],
  "events": [
    {
      "event_id": "RE-RI-8854909-1",
      "item_id": "RI-8854909",
      "period": "2026-08",
      "seq": 1,
      "occurred_at": "2026-09-01T02:10:00Z",
      "event": "opened",
      "actor": "match-engine",
      "actor_type": "rule",
      "note": "Stay complete; reconciliation opened"
    },
    {
      "event_id": "RE-RI-8854909-2",
      "item_id": "RI-8854909",
      "period": "2026-08",
      "seq": 2,
      "occurred_at": "2026-09-03T07:00:00Z",
      "event": "evidence_received",
      "actor": "folio-ingest",
      "actor_type": "rule",
      "note": "Folio received from property"
    },
    {
      "event_id": "RE-RI-8854909-3",
      "item_id": "RI-8854909",
      "period": "2026-08",
      "seq": 3,
      "occurred_at": "2026-09-03T07:05:00Z",
      "event": "matched",
      "actor": "match-engine",
      "actor_type": "rule",
      "note": "Booking, card and folio agree within tolerance"
    },
    {
      "event_id": "RE-RI-8854909-4",
      "item_id": "RI-8854909",
      "period": "2026-08",
      "seq": 4,
      "occurred_at": "2026-09-12T11:00:00Z",
      "event": "resolved",
      "actor": "match-engine",
      "actor_type": "rule",
      "note": "Resolution: legitimate"
    },
    {
      "event_id": "RE-RI-8854909-5",
      "item_id": "RI-8854909",
      "period": "2026-08",
      "seq": 5,
      "occurred_at": "2026-10-01T00: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-8854909-5522",
      "item_id": "RI-8854909",
      "period": "2026-08",
      "legal_entity": "ASL Airlines France SA",
      "entry_date": "2026-08-28",
      "entry_type": "pending",
      "amount": 1100.39,
      "balance_effect": -1100.39,
      "description": "Authorization held — Pullman Toulouse Airport",
      "posted_from_period": null
    },
    {
      "entry_id": "LE-RI-8854909-5523",
      "item_id": "RI-8854909",
      "period": "2026-08",
      "legal_entity": "ASL Airlines France SA",
      "entry_date": "2026-09-03",
      "entry_type": "posted",
      "amount": 1127.16,
      "balance_effect": 0,
      "description": "Charge posted — Pullman Toulouse Airport",
      "posted_from_period": null
    }
  ],
  "nights": [
    {
      "night": "2026-08-28",
      "room_net": 245.04,
      "vat_amount": 24.5,
      "city_tax": 2.88,
      "ancillaries": 0,
      "rate_paid": 272.42,
      "hotel": "Pullman Toulouse Airport",
      "duty_reason": "training",
      "night_status": "occupied",
      "vcc_ref": "VCC-8854909",
      "checkin_time": "14:00",
      "checkout_time": "08:15"
    },
    {
      "night": "2026-08-29",
      "room_net": 233.58,
      "vat_amount": 23.36,
      "city_tax": 0,
      "ancillaries": 16.72,
      "rate_paid": 256.94,
      "hotel": "Pullman Toulouse Airport",
      "duty_reason": "held",
      "night_status": "occupied",
      "vcc_ref": "VCC-8854909",
      "checkin_time": null,
      "checkout_time": null
    },
    {
      "night": "2026-08-30",
      "room_net": 234.59,
      "vat_amount": 23.46,
      "city_tax": 2.88,
      "ancillaries": 0,
      "rate_paid": 260.93,
      "hotel": "Pullman Toulouse Airport",
      "duty_reason": "overnight",
      "night_status": "occupied",
      "vcc_ref": "VCC-8854909",
      "checkin_time": "14:00",
      "checkout_time": "08:15"
    },
    {
      "night": "2026-08-31",
      "room_net": 256.56,
      "vat_amount": 25.66,
      "city_tax": 2.88,
      "ancillaries": 35.05,
      "rate_paid": 285.1,
      "hotel": "Pullman Toulouse Airport",
      "duty_reason": "positioning",
      "night_status": "occupied",
      "vcc_ref": "VCC-8854909",
      "checkin_time": "14:00",
      "checkout_time": "08:15"
    }
  ],
  "booking": {
    "booking_id": "RS-8854909",
    "layover_id": "L-514910",
    "duty_id": "D-514909",
    "crew_id": "FRA-1014",
    "entity_id": "ASL Airlines France",
    "legal_entity": "ASL Airlines France SA",
    "station": "TLS",
    "property_id": "P-133",
    "vendor_id": "VEN-04",
    "contract_id": null,
    "revenue_model": "vendor_commission",
    "channel": "automation",
    "requested_by": "rule:roster-watch",
    "created_at": "2026-08-23T14:00:00Z",
    "check_in": "2026-08-28",
    "check_out": "2026-09-01",
    "nights": 4,
    "room_type": "standard",
    "occupancy": 1,
    "lead_time_hours": 120,
    "confirmation_ref": "CNF-854909",
    "cancellation_deadline": null,
    "status": "completed",
    "period": "2026-08",
    "total_amount": 1143.13
  },
  "duty": {
    "duty_id": "D-514909",
    "crew_id": "FRA-1014",
    "entity_id": "ASL Airlines France",
    "roster_ref": "AIMS/202608/514909",
    "duty_type": "training",
    "flight_no": "FPO255",
    "dep_station": "MRS",
    "arr_station": "TLS",
    "duty_start_utc": "2026-08-27T09:40:00Z",
    "duty_end_utc": "2026-08-28T13:03:00Z",
    "duty_hours": 10.06,
    "block_hours": 4.6,
    "source_system": "aims",
    "published_at": "2026-08-18T06:00:00Z",
    "version": 1
  },
  "layover": {
    "layover_id": "L-514910",
    "duty_in": "D-514909",
    "duty_out": "D-514909R",
    "crew_id": "FRA-1014",
    "entity_id": "ASL Airlines France",
    "station": "TLS",
    "rest_starts_utc": "2026-08-28T13:03:00Z",
    "rest_ends_utc": "2026-09-01T08:45:00Z",
    "rest_hours_available": 82.89,
    "sleep_opportunity_hours": 80.58,
    "transfer_in_minutes": 22,
    "transfer_out_minutes": 25,
    "nights": 4,
    "disrupted": 0,
    "period": "2026-08"
  },
  "evaluation": {
    "eval_id": "PE-14910",
    "period": "2026-08",
    "booking_id": "RS-8854909",
    "item_id": "RI-8854909",
    "ruleset": "2026.2",
    "evaluated_at": "2026-08-23T13:57:00Z",
    "channel": "automation",
    "traveller_type": "crew",
    "entity": "ASL Airlines France",
    "station": "TLS",
    "outcome": "pass",
    "breach_count": 0,
    "cost_impact": 0,
    "self_served": 0
  },
  "approval": null,
  "breaches": [],
  "changes": [],
  "card": {
    "vcc_ref": "VCC-8854909",
    "booking_id": "RS-8854909",
    "item_id": "RI-8854909",
    "period": "2026-08",
    "issued_at": "2026-08-23T14:00:00Z",
    "issuer": "Routespring card program",
    "limit_amount": 1168.13,
    "currency": "EUR",
    "valid_from": "2026-08-28",
    "valid_to": "2026-09-08",
    "grace_days": 7,
    "mcc_lock": "7011 lodging",
    "merchant_lock": "Pullman Toulouse Airport",
    "auth_count": 4,
    "settled_amount": 1127.16,
    "status": "settled",
    "closed_at": "2026-09-03T03:00:00Z"
  },
  "folioDoc": {
    "folio_id": "folio-8854909",
    "booking_id": "RS-8854909",
    "item_id": "RI-8854909",
    "property_id": "P-133",
    "period": "2026-08",
    "folio_number": "TLS260828-8509",
    "guest_name": "D. Bernard",
    "check_in": "2026-08-28",
    "check_out": "2026-09-01",
    "issued_at": "2026-09-01T09:30:00Z",
    "received_at": "2026-09-07T07:00:00Z",
    "received_via": "email_pdf",
    "currency": "EUR",
    "stated_total": 1127.16,
    "line_count": 13,
    "days_to_receive": 6.29,
    "disputed": 0
  }
}