{
  "item": {
    "item_id": "RI-8855221",
    "period": "2026-08",
    "booking_id": "RS-8855221",
    "duty_id": "D-515221",
    "entity": "ASL Airlines France",
    "legal_entity": "ASL Airlines France SA",
    "crew_name": "G. Marchand",
    "station": "LYS",
    "property_id": "P-129",
    "hotel": "NH Lyon Airport",
    "check_in": "2026-08-03",
    "check_out": "2026-08-07",
    "nights": 4,
    "booking_amount": 1209.94,
    "card_auth": 1234.94,
    "card_settled": 1238.51,
    "folio_amount": 1238.51,
    "variance": 0,
    "variance_pct": 0,
    "variance_category": null,
    "match_state": "matched",
    "exception_type": null,
    "state": "resolved",
    "resolution": "legitimate",
    "opened_at": "2026-08-07T02:10:00Z",
    "resolved_at": "2026-08-09T11:00:00Z",
    "final_at": null,
    "final_due_at": "2026-09-06",
    "age_days": 32,
    "auto_resolved": 1
  },
  "cards": [
    {
      "event_id": "CE-9633",
      "item_id": "RI-8855221",
      "booking_id": "RS-8855221",
      "period": "2026-08",
      "vcc_ref": "VCC-8855221",
      "event_type": "issue",
      "amount": null,
      "currency": "EUR",
      "occurred_at": "2026-08-01T09:00:00Z",
      "valid_from": "2026-08-03",
      "valid_to": "2026-08-10",
      "mcc_lock": "7011 lodging",
      "decline_reason": null,
      "issuer_ref": "CNF-855221",
      "source_ref": "feed-2026-08-9633"
    },
    {
      "event_id": "CE-9634",
      "item_id": "RI-8855221",
      "booking_id": "RS-8855221",
      "period": "2026-08",
      "vcc_ref": "VCC-8855221",
      "event_type": "auth",
      "amount": 1234.94,
      "currency": "EUR",
      "occurred_at": "2026-08-03T14:20:00Z",
      "valid_from": "2026-08-03",
      "valid_to": "2026-08-10",
      "mcc_lock": "7011 lodging",
      "decline_reason": null,
      "issuer_ref": "CNF-855221",
      "source_ref": "feed-2026-08-9634"
    },
    {
      "event_id": "CE-9635",
      "item_id": "RI-8855221",
      "booking_id": "RS-8855221",
      "period": "2026-08",
      "vcc_ref": "VCC-8855221",
      "event_type": "capture",
      "amount": 1238.51,
      "currency": "EUR",
      "occurred_at": "2026-08-07T08:05:00Z",
      "valid_from": "2026-08-03",
      "valid_to": "2026-08-10",
      "mcc_lock": "7011 lodging",
      "decline_reason": null,
      "issuer_ref": "CNF-855221",
      "source_ref": "feed-2026-08-9635"
    },
    {
      "event_id": "CE-9636",
      "item_id": "RI-8855221",
      "booking_id": "RS-8855221",
      "period": "2026-08",
      "vcc_ref": "VCC-8855221",
      "event_type": "settle",
      "amount": 1238.51,
      "currency": "EUR",
      "occurred_at": "2026-08-09T03:00:00Z",
      "valid_from": "2026-08-03",
      "valid_to": "2026-08-10",
      "mcc_lock": "7011 lodging",
      "decline_reason": null,
      "issuer_ref": "CNF-855221",
      "source_ref": "feed-2026-08-9636"
    }
  ],
  "folio": [
    {
      "line_id": "FL-RI-8855221-c0",
      "item_id": "RI-8855221",
      "period": "2026-08",
      "line_date": "2026-08-03",
      "line_type": "fee",
      "description": "City / tourist tax",
      "amount": 3.3,
      "disputed": 0,
      "received_at": "2026-08-11T07:00:00Z",
      "source_ref": "folio-8855221",
      "folio_id": "folio-8855221"
    },
    {
      "line_id": "FL-RI-8855221-r0",
      "item_id": "RI-8855221",
      "period": "2026-08",
      "line_date": "2026-08-03",
      "line_type": "room",
      "description": "Room charge",
      "amount": 257.69,
      "disputed": 0,
      "received_at": "2026-08-11T07:00:00Z",
      "source_ref": "folio-8855221",
      "folio_id": "folio-8855221"
    },
    {
      "line_id": "FL-RI-8855221-v0",
      "item_id": "RI-8855221",
      "period": "2026-08",
      "line_date": "2026-08-03",
      "line_type": "tax",
      "description": "VAT 10%",
      "amount": 25.77,
      "disputed": 0,
      "received_at": "2026-08-11T07:00:00Z",
      "source_ref": "folio-8855221",
      "folio_id": "folio-8855221"
    },
    {
      "line_id": "FL-RI-8855221-c1",
      "item_id": "RI-8855221",
      "period": "2026-08",
      "line_date": "2026-08-04",
      "line_type": "fee",
      "description": "City / tourist tax",
      "amount": 3.3,
      "disputed": 0,
      "received_at": "2026-08-11T07:00:00Z",
      "source_ref": "folio-8855221",
      "folio_id": "folio-8855221"
    },
    {
      "line_id": "FL-RI-8855221-a1",
      "item_id": "RI-8855221",
      "period": "2026-08",
      "line_date": "2026-08-04",
      "line_type": "incidental",
      "description": "Late checkout",
      "amount": 28.57,
      "disputed": 0,
      "received_at": "2026-08-11T07:00:00Z",
      "source_ref": "folio-8855221",
      "folio_id": "folio-8855221"
    },
    {
      "line_id": "FL-RI-8855221-r1",
      "item_id": "RI-8855221",
      "period": "2026-08",
      "line_date": "2026-08-04",
      "line_type": "room",
      "description": "Room charge",
      "amount": 281.46,
      "disputed": 0,
      "received_at": "2026-08-11T07:00:00Z",
      "source_ref": "folio-8855221",
      "folio_id": "folio-8855221"
    },
    {
      "line_id": "FL-RI-8855221-v1",
      "item_id": "RI-8855221",
      "period": "2026-08",
      "line_date": "2026-08-04",
      "line_type": "tax",
      "description": "VAT 10%",
      "amount": 28.15,
      "disputed": 0,
      "received_at": "2026-08-11T07:00:00Z",
      "source_ref": "folio-8855221",
      "folio_id": "folio-8855221"
    },
    {
      "line_id": "FL-RI-8855221-r2",
      "item_id": "RI-8855221",
      "period": "2026-08",
      "line_date": "2026-08-05",
      "line_type": "room",
      "description": "Room charge",
      "amount": 287.11,
      "disputed": 0,
      "received_at": "2026-08-11T07:00:00Z",
      "source_ref": "folio-8855221",
      "folio_id": "folio-8855221"
    },
    {
      "line_id": "FL-RI-8855221-v2",
      "item_id": "RI-8855221",
      "period": "2026-08",
      "line_date": "2026-08-05",
      "line_type": "tax",
      "description": "VAT 10%",
      "amount": 28.71,
      "disputed": 0,
      "received_at": "2026-08-11T07:00:00Z",
      "source_ref": "folio-8855221",
      "folio_id": "folio-8855221"
    },
    {
      "line_id": "FL-RI-8855221-c3",
      "item_id": "RI-8855221",
      "period": "2026-08",
      "line_date": "2026-08-06",
      "line_type": "fee",
      "description": "City / tourist tax",
      "amount": 3.3,
      "disputed": 0,
      "received_at": "2026-08-11T07:00:00Z",
      "source_ref": "folio-8855221",
      "folio_id": "folio-8855221"
    },
    {
      "line_id": "FL-RI-8855221-r3",
      "item_id": "RI-8855221",
      "period": "2026-08",
      "line_date": "2026-08-06",
      "line_type": "room",
      "description": "Room charge",
      "amount": 264.68,
      "disputed": 0,
      "received_at": "2026-08-11T07:00:00Z",
      "source_ref": "folio-8855221",
      "folio_id": "folio-8855221"
    },
    {
      "line_id": "FL-RI-8855221-v3",
      "item_id": "RI-8855221",
      "period": "2026-08",
      "line_date": "2026-08-06",
      "line_type": "tax",
      "description": "VAT 10%",
      "amount": 26.47,
      "disputed": 0,
      "received_at": "2026-08-11T07:00:00Z",
      "source_ref": "folio-8855221",
      "folio_id": "folio-8855221"
    }
  ],
  "events": [
    {
      "event_id": "RE-RI-8855221-1",
      "item_id": "RI-8855221",
      "period": "2026-08",
      "seq": 1,
      "occurred_at": "2026-08-07T02:10:00Z",
      "event": "opened",
      "actor": "match-engine",
      "actor_type": "rule",
      "note": "Stay complete; reconciliation opened"
    },
    {
      "event_id": "RE-RI-8855221-2",
      "item_id": "RI-8855221",
      "period": "2026-08",
      "seq": 2,
      "occurred_at": "2026-08-09T07:00:00Z",
      "event": "evidence_received",
      "actor": "folio-ingest",
      "actor_type": "rule",
      "note": "Folio received from property"
    },
    {
      "event_id": "RE-RI-8855221-3",
      "item_id": "RI-8855221",
      "period": "2026-08",
      "seq": 3,
      "occurred_at": "2026-08-09T07:05:00Z",
      "event": "matched",
      "actor": "match-engine",
      "actor_type": "rule",
      "note": "Booking, card and folio agree within tolerance"
    },
    {
      "event_id": "RE-RI-8855221-4",
      "item_id": "RI-8855221",
      "period": "2026-08",
      "seq": 4,
      "occurred_at": "2026-08-17T11:00:00Z",
      "event": "resolved",
      "actor": "match-engine",
      "actor_type": "rule",
      "note": "Resolution: legitimate"
    }
  ],
  "ledger": [
    {
      "entry_id": "LE-RI-8855221-6340",
      "item_id": "RI-8855221",
      "period": "2026-08",
      "legal_entity": "ASL Airlines France SA",
      "entry_date": "2026-08-03",
      "entry_type": "pending",
      "amount": 1234.94,
      "balance_effect": -1234.94,
      "description": "Authorization held — NH Lyon Airport",
      "posted_from_period": null
    },
    {
      "entry_id": "LE-RI-8855221-6341",
      "item_id": "RI-8855221",
      "period": "2026-08",
      "legal_entity": "ASL Airlines France SA",
      "entry_date": "2026-08-09",
      "entry_type": "posted",
      "amount": 1238.51,
      "balance_effect": 0,
      "description": "Charge posted — NH Lyon Airport",
      "posted_from_period": null
    }
  ],
  "nights": [
    {
      "night": "2026-08-03",
      "room_net": 257.69,
      "vat_amount": 25.77,
      "city_tax": 3.3,
      "ancillaries": 0,
      "rate_paid": 286.76,
      "hotel": "NH Lyon Airport",
      "duty_reason": "positioning",
      "night_status": "occupied",
      "vcc_ref": "VCC-8855221",
      "checkin_time": "15:00",
      "checkout_time": "08:15"
    },
    {
      "night": "2026-08-04",
      "room_net": 281.46,
      "vat_amount": 28.15,
      "city_tax": 3.3,
      "ancillaries": 28.57,
      "rate_paid": 312.91,
      "hotel": "NH Lyon Airport",
      "duty_reason": "overnight",
      "night_status": "occupied",
      "vcc_ref": "VCC-8855221",
      "checkin_time": "15:00",
      "checkout_time": "08:15"
    },
    {
      "night": "2026-08-05",
      "room_net": 287.11,
      "vat_amount": 28.71,
      "city_tax": 0,
      "ancillaries": 0,
      "rate_paid": 315.82,
      "hotel": "NH Lyon Airport",
      "duty_reason": "held",
      "night_status": "occupied",
      "vcc_ref": "VCC-8855221",
      "checkin_time": null,
      "checkout_time": null
    },
    {
      "night": "2026-08-06",
      "room_net": 264.68,
      "vat_amount": 26.47,
      "city_tax": 3.3,
      "ancillaries": 0,
      "rate_paid": 294.45,
      "hotel": "NH Lyon Airport",
      "duty_reason": "overnight",
      "night_status": "occupied",
      "vcc_ref": "VCC-8855221",
      "checkin_time": "15:00",
      "checkout_time": "08:15"
    }
  ],
  "booking": {
    "booking_id": "RS-8855221",
    "layover_id": "L-515222",
    "duty_id": "D-515221",
    "crew_id": "FRA-1067",
    "entity_id": "ASL Airlines France",
    "legal_entity": "ASL Airlines France SA",
    "station": "LYS",
    "property_id": "P-129",
    "vendor_id": "VEN-02",
    "contract_id": null,
    "revenue_model": "vendor_net",
    "channel": "automation",
    "requested_by": "rule:roster-watch",
    "created_at": "2026-07-31T15:00:00Z",
    "check_in": "2026-08-03",
    "check_out": "2026-08-07",
    "nights": 4,
    "room_type": "standard",
    "occupancy": 1,
    "lead_time_hours": 72,
    "confirmation_ref": "CNF-855221",
    "cancellation_deadline": null,
    "status": "completed",
    "period": "2026-08",
    "total_amount": 1254.48
  },
  "duty": {
    "duty_id": "D-515221",
    "crew_id": "FRA-1067",
    "entity_id": "ASL Airlines France",
    "roster_ref": "AIMS/202608/515221",
    "duty_type": "positioning",
    "flight_no": "FPO275",
    "dep_station": "CDG",
    "arr_station": "LYS",
    "duty_start_utc": "2026-08-02T15:30:00Z",
    "duty_end_utc": "2026-08-03T14:10:00Z",
    "duty_hours": 6.3,
    "block_hours": 6.86,
    "source_system": "aims",
    "published_at": "2026-07-14T06:00:00Z",
    "version": 1
  },
  "layover": {
    "layover_id": "L-515222",
    "duty_in": "D-515221",
    "duty_out": "D-515221R",
    "crew_id": "FRA-1067",
    "entity_id": "ASL Airlines France",
    "station": "LYS",
    "rest_starts_utc": "2026-08-03T14:10:00Z",
    "rest_ends_utc": "2026-08-07T06:00:00Z",
    "rest_hours_available": 80.36,
    "sleep_opportunity_hours": 78.58,
    "transfer_in_minutes": 15,
    "transfer_out_minutes": 17,
    "nights": 4,
    "disrupted": 0,
    "period": "2026-08"
  },
  "evaluation": {
    "eval_id": "PE-15222",
    "period": "2026-08",
    "booking_id": "RS-8855221",
    "item_id": "RI-8855221",
    "ruleset": "2026.2",
    "evaluated_at": "2026-07-31T14:57:00Z",
    "channel": "automation",
    "traveller_type": "crew",
    "entity": "ASL Airlines France",
    "station": "LYS",
    "outcome": "pass",
    "breach_count": 0,
    "cost_impact": 0,
    "self_served": 0
  },
  "approval": null,
  "breaches": [],
  "changes": [],
  "card": {
    "vcc_ref": "VCC-8855221",
    "booking_id": "RS-8855221",
    "item_id": "RI-8855221",
    "period": "2026-08",
    "issued_at": "2026-07-31T15:00:00Z",
    "issuer": "Routespring card program",
    "limit_amount": 1279.48,
    "currency": "EUR",
    "valid_from": "2026-08-03",
    "valid_to": "2026-08-14",
    "grace_days": 7,
    "mcc_lock": "7011 lodging",
    "merchant_lock": "NH Lyon Airport",
    "auth_count": 4,
    "settled_amount": 1238.51,
    "status": "settled",
    "closed_at": "2026-08-09T03:00:00Z"
  },
  "folioDoc": {
    "folio_id": "folio-8855221",
    "booking_id": "RS-8855221",
    "item_id": "RI-8855221",
    "property_id": "P-129",
    "period": "2026-08",
    "folio_number": "LYS260803-3056",
    "guest_name": "G. Marchand",
    "check_in": "2026-08-03",
    "check_out": "2026-08-07",
    "issued_at": "2026-08-07T09:30:00Z",
    "received_at": "2026-08-11T07:00:00Z",
    "received_via": "portal",
    "currency": "EUR",
    "stated_total": 1238.51,
    "line_count": 12,
    "days_to_receive": 4.29,
    "disputed": 0
  }
}