{
  "item": {
    "item_id": "RI-8855063",
    "period": "2026-08",
    "booking_id": "RS-8855063",
    "duty_id": "D-515063",
    "entity": "ASL Airlines France",
    "legal_entity": "ASL Airlines France SA",
    "crew_name": "M. Fontaine",
    "station": "TLS",
    "property_id": "P-134",
    "hotel": "Ibis Toulouse Blagnac",
    "check_in": "2026-08-14",
    "check_out": "2026-08-17",
    "nights": 3,
    "booking_amount": 813.08,
    "card_auth": 838.08,
    "card_settled": 824.42,
    "folio_amount": 824.42,
    "variance": 0,
    "variance_pct": 0,
    "variance_category": null,
    "match_state": "matched",
    "exception_type": null,
    "state": "resolved",
    "resolution": "legitimate",
    "opened_at": "2026-08-17T02:10:00Z",
    "resolved_at": "2026-08-18T11:00:00Z",
    "final_at": null,
    "final_due_at": "2026-09-16",
    "age_days": 19,
    "auto_resolved": 1
  },
  "cards": [
    {
      "event_id": "CE-9003",
      "item_id": "RI-8855063",
      "booking_id": "RS-8855063",
      "period": "2026-08",
      "vcc_ref": "VCC-8855063",
      "event_type": "issue",
      "amount": null,
      "currency": "EUR",
      "occurred_at": "2026-08-12T09:00:00Z",
      "valid_from": "2026-08-14",
      "valid_to": "2026-08-20",
      "mcc_lock": "7011 lodging",
      "decline_reason": null,
      "issuer_ref": "CNF-855063",
      "source_ref": "feed-2026-08-9003"
    },
    {
      "event_id": "CE-9004",
      "item_id": "RI-8855063",
      "booking_id": "RS-8855063",
      "period": "2026-08",
      "vcc_ref": "VCC-8855063",
      "event_type": "auth",
      "amount": 838.08,
      "currency": "EUR",
      "occurred_at": "2026-08-14T14:20:00Z",
      "valid_from": "2026-08-14",
      "valid_to": "2026-08-20",
      "mcc_lock": "7011 lodging",
      "decline_reason": null,
      "issuer_ref": "CNF-855063",
      "source_ref": "feed-2026-08-9004"
    },
    {
      "event_id": "CE-9005",
      "item_id": "RI-8855063",
      "booking_id": "RS-8855063",
      "period": "2026-08",
      "vcc_ref": "VCC-8855063",
      "event_type": "capture",
      "amount": 824.42,
      "currency": "EUR",
      "occurred_at": "2026-08-17T08:05:00Z",
      "valid_from": "2026-08-14",
      "valid_to": "2026-08-20",
      "mcc_lock": "7011 lodging",
      "decline_reason": null,
      "issuer_ref": "CNF-855063",
      "source_ref": "feed-2026-08-9005"
    },
    {
      "event_id": "CE-9006",
      "item_id": "RI-8855063",
      "booking_id": "RS-8855063",
      "period": "2026-08",
      "vcc_ref": "VCC-8855063",
      "event_type": "settle",
      "amount": 824.42,
      "currency": "EUR",
      "occurred_at": "2026-08-19T03:00:00Z",
      "valid_from": "2026-08-14",
      "valid_to": "2026-08-20",
      "mcc_lock": "7011 lodging",
      "decline_reason": null,
      "issuer_ref": "CNF-855063",
      "source_ref": "feed-2026-08-9006"
    }
  ],
  "folio": [
    {
      "line_id": "FL-RI-8855063-c0",
      "item_id": "RI-8855063",
      "period": "2026-08",
      "line_date": "2026-08-14",
      "line_type": "fee",
      "description": "City / tourist tax",
      "amount": 2.88,
      "disputed": 0,
      "received_at": "2026-08-19T07:00:00Z",
      "source_ref": "folio-8855063",
      "folio_id": "folio-8855063"
    },
    {
      "line_id": "FL-RI-8855063-r0",
      "item_id": "RI-8855063",
      "period": "2026-08",
      "line_date": "2026-08-14",
      "line_type": "room",
      "description": "Room charge",
      "amount": 249.92,
      "disputed": 0,
      "received_at": "2026-08-19T07:00:00Z",
      "source_ref": "folio-8855063",
      "folio_id": "folio-8855063"
    },
    {
      "line_id": "FL-RI-8855063-v0",
      "item_id": "RI-8855063",
      "period": "2026-08",
      "line_date": "2026-08-14",
      "line_type": "tax",
      "description": "VAT 10%",
      "amount": 24.99,
      "disputed": 0,
      "received_at": "2026-08-19T07:00:00Z",
      "source_ref": "folio-8855063",
      "folio_id": "folio-8855063"
    },
    {
      "line_id": "FL-RI-8855063-c1",
      "item_id": "RI-8855063",
      "period": "2026-08",
      "line_date": "2026-08-15",
      "line_type": "fee",
      "description": "City / tourist tax",
      "amount": 2.88,
      "disputed": 0,
      "received_at": "2026-08-19T07:00:00Z",
      "source_ref": "folio-8855063",
      "folio_id": "folio-8855063"
    },
    {
      "line_id": "FL-RI-8855063-r1",
      "item_id": "RI-8855063",
      "period": "2026-08",
      "line_date": "2026-08-15",
      "line_type": "room",
      "description": "Room charge",
      "amount": 236.56,
      "disputed": 0,
      "received_at": "2026-08-19T07:00:00Z",
      "source_ref": "folio-8855063",
      "folio_id": "folio-8855063"
    },
    {
      "line_id": "FL-RI-8855063-v1",
      "item_id": "RI-8855063",
      "period": "2026-08",
      "line_date": "2026-08-15",
      "line_type": "tax",
      "description": "VAT 10%",
      "amount": 23.66,
      "disputed": 0,
      "received_at": "2026-08-19T07:00:00Z",
      "source_ref": "folio-8855063",
      "folio_id": "folio-8855063"
    },
    {
      "line_id": "FL-RI-8855063-c2",
      "item_id": "RI-8855063",
      "period": "2026-08",
      "line_date": "2026-08-16",
      "line_type": "fee",
      "description": "City / tourist tax",
      "amount": 2.88,
      "disputed": 0,
      "received_at": "2026-08-19T07:00:00Z",
      "source_ref": "folio-8855063",
      "folio_id": "folio-8855063"
    },
    {
      "line_id": "FL-RI-8855063-a2",
      "item_id": "RI-8855063",
      "period": "2026-08",
      "line_date": "2026-08-16",
      "line_type": "incidental",
      "description": "Minibar",
      "amount": 11.34,
      "disputed": 0,
      "received_at": "2026-08-19T07:00:00Z",
      "source_ref": "folio-8855063",
      "folio_id": "folio-8855063"
    },
    {
      "line_id": "FL-RI-8855063-r2",
      "item_id": "RI-8855063",
      "period": "2026-08",
      "line_date": "2026-08-16",
      "line_type": "room",
      "description": "Room charge",
      "amount": 244.83,
      "disputed": 0,
      "received_at": "2026-08-19T07:00:00Z",
      "source_ref": "folio-8855063",
      "folio_id": "folio-8855063"
    },
    {
      "line_id": "FL-RI-8855063-v2",
      "item_id": "RI-8855063",
      "period": "2026-08",
      "line_date": "2026-08-16",
      "line_type": "tax",
      "description": "VAT 10%",
      "amount": 24.48,
      "disputed": 0,
      "received_at": "2026-08-19T07:00:00Z",
      "source_ref": "folio-8855063",
      "folio_id": "folio-8855063"
    }
  ],
  "events": [
    {
      "event_id": "RE-RI-8855063-1",
      "item_id": "RI-8855063",
      "period": "2026-08",
      "seq": 1,
      "occurred_at": "2026-08-17T02:10:00Z",
      "event": "opened",
      "actor": "match-engine",
      "actor_type": "rule",
      "note": "Stay complete; reconciliation opened"
    },
    {
      "event_id": "RE-RI-8855063-2",
      "item_id": "RI-8855063",
      "period": "2026-08",
      "seq": 2,
      "occurred_at": "2026-08-19T07:00:00Z",
      "event": "evidence_received",
      "actor": "folio-ingest",
      "actor_type": "rule",
      "note": "Folio received from property"
    },
    {
      "event_id": "RE-RI-8855063-3",
      "item_id": "RI-8855063",
      "period": "2026-08",
      "seq": 3,
      "occurred_at": "2026-08-19T07:05:00Z",
      "event": "matched",
      "actor": "match-engine",
      "actor_type": "rule",
      "note": "Booking, card and folio agree within tolerance"
    },
    {
      "event_id": "RE-RI-8855063-4",
      "item_id": "RI-8855063",
      "period": "2026-08",
      "seq": 4,
      "occurred_at": "2026-08-25T11:00:00Z",
      "event": "resolved",
      "actor": "match-engine",
      "actor_type": "rule",
      "note": "Resolution: legitimate"
    }
  ],
  "ledger": [
    {
      "entry_id": "LE-RI-8855063-5925",
      "item_id": "RI-8855063",
      "period": "2026-08",
      "legal_entity": "ASL Airlines France SA",
      "entry_date": "2026-08-14",
      "entry_type": "pending",
      "amount": 838.08,
      "balance_effect": -838.08,
      "description": "Authorization held — Ibis Toulouse Blagnac",
      "posted_from_period": null
    },
    {
      "entry_id": "LE-RI-8855063-5926",
      "item_id": "RI-8855063",
      "period": "2026-08",
      "legal_entity": "ASL Airlines France SA",
      "entry_date": "2026-08-19",
      "entry_type": "posted",
      "amount": 824.42,
      "balance_effect": 0,
      "description": "Charge posted — Ibis Toulouse Blagnac",
      "posted_from_period": null
    },
    {
      "entry_id": "LE-RI-8855063-5927",
      "item_id": "RI-8855063",
      "period": "2026-08",
      "legal_entity": "ASL Airlines France SA",
      "entry_date": "2026-08-19",
      "entry_type": "released",
      "amount": 13.66,
      "balance_effect": 13.66,
      "description": "Unused authorization released",
      "posted_from_period": null
    }
  ],
  "nights": [
    {
      "night": "2026-08-14",
      "room_net": 249.92,
      "vat_amount": 24.99,
      "city_tax": 2.88,
      "ancillaries": 0,
      "rate_paid": 277.79,
      "hotel": "Ibis Toulouse Blagnac",
      "duty_reason": "overnight",
      "night_status": "occupied",
      "vcc_ref": "VCC-8855063",
      "checkin_time": "05:40",
      "checkout_time": "10:00"
    },
    {
      "night": "2026-08-15",
      "room_net": 236.56,
      "vat_amount": 23.66,
      "city_tax": 2.88,
      "ancillaries": 0,
      "rate_paid": 263.1,
      "hotel": "Ibis Toulouse Blagnac",
      "duty_reason": "overnight",
      "night_status": "occupied",
      "vcc_ref": "VCC-8855063",
      "checkin_time": "05:40",
      "checkout_time": "10:00"
    },
    {
      "night": "2026-08-16",
      "room_net": 244.83,
      "vat_amount": 24.48,
      "city_tax": 2.88,
      "ancillaries": 11.34,
      "rate_paid": 272.19,
      "hotel": "Ibis Toulouse Blagnac",
      "duty_reason": "overnight",
      "night_status": "occupied",
      "vcc_ref": "VCC-8855063",
      "checkin_time": "05:40",
      "checkout_time": "10:00"
    }
  ],
  "booking": {
    "booking_id": "RS-8855063",
    "layover_id": "L-515064",
    "duty_id": "D-515063",
    "crew_id": "FRA-1089",
    "entity_id": "ASL Airlines France",
    "legal_entity": "ASL Airlines France SA",
    "station": "TLS",
    "property_id": "P-134",
    "vendor_id": "VEN-02",
    "contract_id": null,
    "revenue_model": "vendor_net",
    "channel": "travel_desk",
    "requested_by": "U-101",
    "created_at": "2026-08-11T05:40:00Z",
    "check_in": "2026-08-14",
    "check_out": "2026-08-17",
    "nights": 3,
    "room_type": "standard",
    "occupancy": 1,
    "lead_time_hours": 72,
    "confirmation_ref": "CNF-855063",
    "cancellation_deadline": null,
    "status": "completed",
    "period": "2026-08",
    "total_amount": 840.39
  },
  "duty": {
    "duty_id": "D-515063",
    "crew_id": "FRA-1089",
    "entity_id": "ASL Airlines France",
    "roster_ref": "AIMS/202608/515063",
    "duty_type": "overnight",
    "flight_no": "FPO835",
    "dep_station": "CDG",
    "arr_station": "TLS",
    "duty_start_utc": "2026-08-13T18:05:00Z",
    "duty_end_utc": "2026-08-14T04:55:00Z",
    "duty_hours": 8.07,
    "block_hours": 5.99,
    "source_system": "aims",
    "published_at": "2026-08-08T06:00:00Z",
    "version": 1
  },
  "layover": {
    "layover_id": "L-515064",
    "duty_in": "D-515063",
    "duty_out": "D-515063R",
    "crew_id": "FRA-1089",
    "entity_id": "ASL Airlines France",
    "station": "TLS",
    "rest_starts_utc": "2026-08-14T04:55:00Z",
    "rest_ends_utc": "2026-08-17T11:20:00Z",
    "rest_hours_available": 58.47,
    "sleep_opportunity_hours": 57.01,
    "transfer_in_minutes": 10,
    "transfer_out_minutes": 9,
    "nights": 3,
    "disrupted": 0,
    "period": "2026-08"
  },
  "evaluation": {
    "eval_id": "PE-15064",
    "period": "2026-08",
    "booking_id": "RS-8855063",
    "item_id": "RI-8855063",
    "ruleset": "2026.2",
    "evaluated_at": "2026-08-11T05:37:00Z",
    "channel": "travel_desk",
    "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-8855063",
    "booking_id": "RS-8855063",
    "item_id": "RI-8855063",
    "period": "2026-08",
    "issued_at": "2026-08-11T05:40:00Z",
    "issuer": "Routespring card program",
    "limit_amount": 865.39,
    "currency": "EUR",
    "valid_from": "2026-08-14",
    "valid_to": "2026-08-24",
    "grace_days": 7,
    "mcc_lock": "7011 lodging",
    "merchant_lock": "Ibis Toulouse Blagnac",
    "auth_count": 3,
    "settled_amount": 824.42,
    "status": "settled",
    "closed_at": "2026-08-19T03:00:00Z"
  },
  "folioDoc": {
    "folio_id": "folio-8855063",
    "booking_id": "RS-8855063",
    "item_id": "RI-8855063",
    "property_id": "P-134",
    "period": "2026-08",
    "folio_number": "TLS260814-5525",
    "guest_name": "M. Fontaine",
    "check_in": "2026-08-14",
    "check_out": "2026-08-17",
    "issued_at": "2026-08-17T09:30:00Z",
    "received_at": "2026-08-19T07:00:00Z",
    "received_via": "pms_feed",
    "currency": "EUR",
    "stated_total": 824.42,
    "line_count": 10,
    "days_to_receive": 2.29,
    "disputed": 0
  }
}