{
  "item": {
    "item_id": "RI-8854738",
    "period": "2026-08",
    "booking_id": "RS-8854738",
    "duty_id": "D-514738",
    "entity": "ASL Airlines France",
    "legal_entity": "ASL Airlines France SA",
    "crew_name": "R. Fontaine",
    "station": "MAD",
    "property_id": "P-136",
    "hotel": "Novotel Madrid Barajas",
    "check_in": "2026-08-03",
    "check_out": "2026-08-04",
    "nights": 1,
    "booking_amount": 320.94,
    "card_auth": 345.94,
    "card_settled": 320.94,
    "folio_amount": 320.94,
    "variance": 0,
    "variance_pct": 0,
    "variance_category": null,
    "match_state": "matched",
    "exception_type": null,
    "state": "final",
    "resolution": "legitimate",
    "opened_at": "2026-08-04T02:10:00Z",
    "resolved_at": "2026-08-14T11:00:00Z",
    "final_at": "2026-09-03T00:01:00Z",
    "final_due_at": "2026-09-03",
    "age_days": 26,
    "auto_resolved": 1
  },
  "cards": [
    {
      "event_id": "CE-7695",
      "item_id": "RI-8854738",
      "booking_id": "RS-8854738",
      "period": "2026-08",
      "vcc_ref": "VCC-8854738",
      "event_type": "issue",
      "amount": null,
      "currency": "EUR",
      "occurred_at": "2026-08-01T09:00:00Z",
      "valid_from": "2026-08-03",
      "valid_to": "2026-08-07",
      "mcc_lock": "7011 lodging",
      "decline_reason": null,
      "issuer_ref": "CNF-854738",
      "source_ref": "feed-2026-08-7695"
    },
    {
      "event_id": "CE-7696",
      "item_id": "RI-8854738",
      "booking_id": "RS-8854738",
      "period": "2026-08",
      "vcc_ref": "VCC-8854738",
      "event_type": "auth",
      "amount": 345.94,
      "currency": "EUR",
      "occurred_at": "2026-08-03T14:20:00Z",
      "valid_from": "2026-08-03",
      "valid_to": "2026-08-07",
      "mcc_lock": "7011 lodging",
      "decline_reason": null,
      "issuer_ref": "CNF-854738",
      "source_ref": "feed-2026-08-7696"
    },
    {
      "event_id": "CE-7697",
      "item_id": "RI-8854738",
      "booking_id": "RS-8854738",
      "period": "2026-08",
      "vcc_ref": "VCC-8854738",
      "event_type": "capture",
      "amount": 320.94,
      "currency": "EUR",
      "occurred_at": "2026-08-04T08:05:00Z",
      "valid_from": "2026-08-03",
      "valid_to": "2026-08-07",
      "mcc_lock": "7011 lodging",
      "decline_reason": null,
      "issuer_ref": "CNF-854738",
      "source_ref": "feed-2026-08-7697"
    },
    {
      "event_id": "CE-7698",
      "item_id": "RI-8854738",
      "booking_id": "RS-8854738",
      "period": "2026-08",
      "vcc_ref": "VCC-8854738",
      "event_type": "settle",
      "amount": 320.94,
      "currency": "EUR",
      "occurred_at": "2026-08-06T03:00:00Z",
      "valid_from": "2026-08-03",
      "valid_to": "2026-08-07",
      "mcc_lock": "7011 lodging",
      "decline_reason": null,
      "issuer_ref": "CNF-854738",
      "source_ref": "feed-2026-08-7698"
    }
  ],
  "folio": [
    {
      "line_id": "FL-RI-8854738-r0",
      "item_id": "RI-8854738",
      "period": "2026-08",
      "line_date": "2026-08-03",
      "line_type": "room",
      "description": "Room charge",
      "amount": 291.76,
      "disputed": 0,
      "received_at": "2026-08-06T07:00:00Z",
      "source_ref": "folio-8854738",
      "folio_id": "folio-8854738"
    },
    {
      "line_id": "FL-RI-8854738-v0",
      "item_id": "RI-8854738",
      "period": "2026-08",
      "line_date": "2026-08-03",
      "line_type": "tax",
      "description": "VAT 10%",
      "amount": 29.18,
      "disputed": 0,
      "received_at": "2026-08-06T07:00:00Z",
      "source_ref": "folio-8854738",
      "folio_id": "folio-8854738"
    }
  ],
  "events": [
    {
      "event_id": "RE-RI-8854738-1",
      "item_id": "RI-8854738",
      "period": "2026-08",
      "seq": 1,
      "occurred_at": "2026-08-04T02:10:00Z",
      "event": "opened",
      "actor": "match-engine",
      "actor_type": "rule",
      "note": "Stay complete; reconciliation opened"
    },
    {
      "event_id": "RE-RI-8854738-2",
      "item_id": "RI-8854738",
      "period": "2026-08",
      "seq": 2,
      "occurred_at": "2026-08-06T07:00:00Z",
      "event": "evidence_received",
      "actor": "folio-ingest",
      "actor_type": "rule",
      "note": "Folio received from property"
    },
    {
      "event_id": "RE-RI-8854738-3",
      "item_id": "RI-8854738",
      "period": "2026-08",
      "seq": 3,
      "occurred_at": "2026-08-06T07:05:00Z",
      "event": "matched",
      "actor": "match-engine",
      "actor_type": "rule",
      "note": "Booking, card and folio agree within tolerance"
    },
    {
      "event_id": "RE-RI-8854738-4",
      "item_id": "RI-8854738",
      "period": "2026-08",
      "seq": 4,
      "occurred_at": "2026-08-08T11:00:00Z",
      "event": "resolved",
      "actor": "match-engine",
      "actor_type": "rule",
      "note": "Resolution: legitimate"
    },
    {
      "event_id": "RE-RI-8854738-5",
      "item_id": "RI-8854738",
      "period": "2026-08",
      "seq": 5,
      "occurred_at": "2026-09-03T00: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-8854738-5080",
      "item_id": "RI-8854738",
      "period": "2026-08",
      "legal_entity": "ASL Airlines France SA",
      "entry_date": "2026-08-03",
      "entry_type": "pending",
      "amount": 345.94,
      "balance_effect": -345.94,
      "description": "Authorization held — Novotel Madrid Barajas",
      "posted_from_period": null
    },
    {
      "entry_id": "LE-RI-8854738-5081",
      "item_id": "RI-8854738",
      "period": "2026-08",
      "legal_entity": "ASL Airlines France SA",
      "entry_date": "2026-08-06",
      "entry_type": "posted",
      "amount": 320.94,
      "balance_effect": 0,
      "description": "Charge posted — Novotel Madrid Barajas",
      "posted_from_period": null
    },
    {
      "entry_id": "LE-RI-8854738-5082",
      "item_id": "RI-8854738",
      "period": "2026-08",
      "legal_entity": "ASL Airlines France SA",
      "entry_date": "2026-08-06",
      "entry_type": "released",
      "amount": 25,
      "balance_effect": 25,
      "description": "Unused authorization released",
      "posted_from_period": null
    }
  ],
  "nights": [
    {
      "night": "2026-08-03",
      "room_net": 291.76,
      "vat_amount": 29.18,
      "city_tax": 0,
      "ancillaries": 0,
      "rate_paid": 320.94,
      "hotel": "Novotel Madrid Barajas",
      "duty_reason": "positioning",
      "night_status": "occupied",
      "vcc_ref": "VCC-8854738",
      "checkin_time": "16:00",
      "checkout_time": "04:30"
    }
  ],
  "booking": {
    "booking_id": "RS-8854738",
    "layover_id": "L-514739",
    "duty_id": "D-514738",
    "crew_id": "FRA-1065",
    "entity_id": "ASL Airlines France",
    "legal_entity": "ASL Airlines France SA",
    "station": "MAD",
    "property_id": "P-136",
    "vendor_id": "VEN-04",
    "contract_id": null,
    "revenue_model": "vendor_commission",
    "channel": "travel_desk",
    "requested_by": "U-101",
    "created_at": "2026-07-31T16:00:00Z",
    "check_in": "2026-08-03",
    "check_out": "2026-08-04",
    "nights": 1,
    "room_type": "standard",
    "occupancy": 1,
    "lead_time_hours": 72,
    "confirmation_ref": "CNF-854738",
    "cancellation_deadline": null,
    "status": "completed",
    "period": "2026-08",
    "total_amount": 336.91
  },
  "duty": {
    "duty_id": "D-514738",
    "crew_id": "FRA-1065",
    "entity_id": "ASL Airlines France",
    "roster_ref": "AIMS/202608/514738",
    "duty_type": "positioning",
    "flight_no": "FPO781",
    "dep_station": "CDG",
    "arr_station": "MAD",
    "duty_start_utc": "2026-08-02T15:30:00Z",
    "duty_end_utc": "2026-08-03T15:02:00Z",
    "duty_hours": 11.38,
    "block_hours": 5.66,
    "source_system": "aims",
    "published_at": "2026-07-14T06:00:00Z",
    "version": 1
  },
  "layover": {
    "layover_id": "L-514739",
    "duty_in": "D-514738",
    "duty_out": "D-514738R",
    "crew_id": "FRA-1065",
    "entity_id": "ASL Airlines France",
    "station": "MAD",
    "rest_starts_utc": "2026-08-03T15:02:00Z",
    "rest_ends_utc": "2026-08-04T11:20:00Z",
    "rest_hours_available": 16.23,
    "sleep_opportunity_hours": 13.79,
    "transfer_in_minutes": 23,
    "transfer_out_minutes": 24,
    "nights": 1,
    "disrupted": 0,
    "period": "2026-08"
  },
  "evaluation": {
    "eval_id": "PE-14739",
    "period": "2026-08",
    "booking_id": "RS-8854738",
    "item_id": "RI-8854738",
    "ruleset": "2026.2",
    "evaluated_at": "2026-07-31T15:57:00Z",
    "channel": "automation",
    "traveller_type": "crew",
    "entity": "ASL Airlines France",
    "station": "MAD",
    "outcome": "pass",
    "breach_count": 0,
    "cost_impact": 0,
    "self_served": 0
  },
  "approval": null,
  "breaches": [],
  "changes": [],
  "card": {
    "vcc_ref": "VCC-8854738",
    "booking_id": "RS-8854738",
    "item_id": "RI-8854738",
    "period": "2026-08",
    "issued_at": "2026-07-31T16:00:00Z",
    "issuer": "Routespring card program",
    "limit_amount": 361.91,
    "currency": "EUR",
    "valid_from": "2026-08-03",
    "valid_to": "2026-08-11",
    "grace_days": 7,
    "mcc_lock": "7011 lodging",
    "merchant_lock": "Novotel Madrid Barajas",
    "auth_count": 1,
    "settled_amount": 320.94,
    "status": "settled",
    "closed_at": "2026-08-06T03:00:00Z"
  },
  "folioDoc": {
    "folio_id": "folio-8854738",
    "booking_id": "RS-8854738",
    "item_id": "RI-8854738",
    "property_id": "P-136",
    "period": "2026-08",
    "folio_number": "MAD260803-4206",
    "guest_name": "R. Fontaine",
    "check_in": "2026-08-03",
    "check_out": "2026-08-04",
    "issued_at": "2026-08-04T09:30:00Z",
    "received_at": "2026-08-06T07:00:00Z",
    "received_via": "email_pdf",
    "currency": "EUR",
    "stated_total": 320.94,
    "line_count": 2,
    "days_to_receive": 2.29,
    "disputed": 0
  }
}