{
  "item": {
    "item_id": "RI-8854782",
    "period": "2026-08",
    "booking_id": "RS-8854782",
    "duty_id": "D-514782",
    "entity": "ASL Airlines France",
    "legal_entity": "ASL Airlines France SA",
    "crew_name": "T. Lefevre",
    "station": "MAD",
    "property_id": "P-135",
    "hotel": "Melia Barajas",
    "check_in": "2026-08-03",
    "check_out": "2026-08-06",
    "nights": 3,
    "booking_amount": 992.34,
    "card_auth": 1017.34,
    "card_settled": 1023.1,
    "folio_amount": 1023.1,
    "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-20T11:00:00Z",
    "final_at": "2026-09-05T00:01:00Z",
    "final_due_at": "2026-09-05",
    "age_days": 9,
    "auto_resolved": 1
  },
  "cards": [
    {
      "event_id": "CE-7873",
      "item_id": "RI-8854782",
      "booking_id": "RS-8854782",
      "period": "2026-08",
      "vcc_ref": "VCC-8854782",
      "event_type": "issue",
      "amount": null,
      "currency": "EUR",
      "occurred_at": "2026-08-01T09:00:00Z",
      "valid_from": "2026-08-03",
      "valid_to": "2026-08-09",
      "mcc_lock": "7011 lodging",
      "decline_reason": null,
      "issuer_ref": "CNF-854782",
      "source_ref": "feed-2026-08-7873"
    },
    {
      "event_id": "CE-7874",
      "item_id": "RI-8854782",
      "booking_id": "RS-8854782",
      "period": "2026-08",
      "vcc_ref": "VCC-8854782",
      "event_type": "auth",
      "amount": 1017.34,
      "currency": "EUR",
      "occurred_at": "2026-08-03T14:20:00Z",
      "valid_from": "2026-08-03",
      "valid_to": "2026-08-09",
      "mcc_lock": "7011 lodging",
      "decline_reason": null,
      "issuer_ref": "CNF-854782",
      "source_ref": "feed-2026-08-7874"
    },
    {
      "event_id": "CE-7875",
      "item_id": "RI-8854782",
      "booking_id": "RS-8854782",
      "period": "2026-08",
      "vcc_ref": "VCC-8854782",
      "event_type": "capture",
      "amount": 1023.1,
      "currency": "EUR",
      "occurred_at": "2026-08-06T08:05:00Z",
      "valid_from": "2026-08-03",
      "valid_to": "2026-08-09",
      "mcc_lock": "7011 lodging",
      "decline_reason": null,
      "issuer_ref": "CNF-854782",
      "source_ref": "feed-2026-08-7875"
    },
    {
      "event_id": "CE-7876",
      "item_id": "RI-8854782",
      "booking_id": "RS-8854782",
      "period": "2026-08",
      "vcc_ref": "VCC-8854782",
      "event_type": "settle",
      "amount": 1023.1,
      "currency": "EUR",
      "occurred_at": "2026-08-08T03:00:00Z",
      "valid_from": "2026-08-03",
      "valid_to": "2026-08-09",
      "mcc_lock": "7011 lodging",
      "decline_reason": null,
      "issuer_ref": "CNF-854782",
      "source_ref": "feed-2026-08-7876"
    }
  ],
  "folio": [
    {
      "line_id": "FL-RI-8854782-a0",
      "item_id": "RI-8854782",
      "period": "2026-08",
      "line_date": "2026-08-03",
      "line_type": "incidental",
      "description": "Late checkout",
      "amount": 30.76,
      "disputed": 0,
      "received_at": "2026-08-10T07:00:00Z",
      "source_ref": "folio-8854782",
      "folio_id": "folio-8854782"
    },
    {
      "line_id": "FL-RI-8854782-r0",
      "item_id": "RI-8854782",
      "period": "2026-08",
      "line_date": "2026-08-03",
      "line_type": "room",
      "description": "Room charge",
      "amount": 282.09,
      "disputed": 0,
      "received_at": "2026-08-10T07:00:00Z",
      "source_ref": "folio-8854782",
      "folio_id": "folio-8854782"
    },
    {
      "line_id": "FL-RI-8854782-v0",
      "item_id": "RI-8854782",
      "period": "2026-08",
      "line_date": "2026-08-03",
      "line_type": "tax",
      "description": "VAT 10%",
      "amount": 28.21,
      "disputed": 0,
      "received_at": "2026-08-10T07:00:00Z",
      "source_ref": "folio-8854782",
      "folio_id": "folio-8854782"
    },
    {
      "line_id": "FL-RI-8854782-r1",
      "item_id": "RI-8854782",
      "period": "2026-08",
      "line_date": "2026-08-04",
      "line_type": "room",
      "description": "Room charge",
      "amount": 307.27,
      "disputed": 0,
      "received_at": "2026-08-10T07:00:00Z",
      "source_ref": "folio-8854782",
      "folio_id": "folio-8854782"
    },
    {
      "line_id": "FL-RI-8854782-v1",
      "item_id": "RI-8854782",
      "period": "2026-08",
      "line_date": "2026-08-04",
      "line_type": "tax",
      "description": "VAT 10%",
      "amount": 30.73,
      "disputed": 0,
      "received_at": "2026-08-10T07:00:00Z",
      "source_ref": "folio-8854782",
      "folio_id": "folio-8854782"
    },
    {
      "line_id": "FL-RI-8854782-r2",
      "item_id": "RI-8854782",
      "period": "2026-08",
      "line_date": "2026-08-05",
      "line_type": "room",
      "description": "Room charge",
      "amount": 312.76,
      "disputed": 0,
      "received_at": "2026-08-10T07:00:00Z",
      "source_ref": "folio-8854782",
      "folio_id": "folio-8854782"
    },
    {
      "line_id": "FL-RI-8854782-v2",
      "item_id": "RI-8854782",
      "period": "2026-08",
      "line_date": "2026-08-05",
      "line_type": "tax",
      "description": "VAT 10%",
      "amount": 31.28,
      "disputed": 0,
      "received_at": "2026-08-10T07:00:00Z",
      "source_ref": "folio-8854782",
      "folio_id": "folio-8854782"
    }
  ],
  "events": [
    {
      "event_id": "RE-RI-8854782-1",
      "item_id": "RI-8854782",
      "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-8854782-2",
      "item_id": "RI-8854782",
      "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-8854782-3",
      "item_id": "RI-8854782",
      "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-8854782-4",
      "item_id": "RI-8854782",
      "period": "2026-08",
      "seq": 4,
      "occurred_at": "2026-08-15T11:00:00Z",
      "event": "resolved",
      "actor": "match-engine",
      "actor_type": "rule",
      "note": "Resolution: legitimate"
    },
    {
      "event_id": "RE-RI-8854782-5",
      "item_id": "RI-8854782",
      "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-8854782-5192",
      "item_id": "RI-8854782",
      "period": "2026-08",
      "legal_entity": "ASL Airlines France SA",
      "entry_date": "2026-08-03",
      "entry_type": "pending",
      "amount": 1017.34,
      "balance_effect": -1017.34,
      "description": "Authorization held — Melia Barajas",
      "posted_from_period": null
    },
    {
      "entry_id": "LE-RI-8854782-5193",
      "item_id": "RI-8854782",
      "period": "2026-08",
      "legal_entity": "ASL Airlines France SA",
      "entry_date": "2026-08-08",
      "entry_type": "posted",
      "amount": 1023.1,
      "balance_effect": 0,
      "description": "Charge posted — Melia Barajas",
      "posted_from_period": null
    }
  ],
  "nights": [
    {
      "night": "2026-08-03",
      "room_net": 282.09,
      "vat_amount": 28.21,
      "city_tax": 0,
      "ancillaries": 30.76,
      "rate_paid": 310.3,
      "hotel": "Melia Barajas",
      "duty_reason": "positioning",
      "night_status": "occupied",
      "vcc_ref": "VCC-8854782",
      "checkin_time": "01:15",
      "checkout_time": "08:15"
    },
    {
      "night": "2026-08-04",
      "room_net": 307.27,
      "vat_amount": 30.73,
      "city_tax": 0,
      "ancillaries": 0,
      "rate_paid": 338,
      "hotel": "Melia Barajas",
      "duty_reason": "overnight",
      "night_status": "occupied",
      "vcc_ref": "VCC-8854782",
      "checkin_time": "01:15",
      "checkout_time": "08:15"
    },
    {
      "night": "2026-08-05",
      "room_net": 312.76,
      "vat_amount": 31.28,
      "city_tax": 0,
      "ancillaries": 0,
      "rate_paid": 344.04,
      "hotel": "Melia Barajas",
      "duty_reason": "training",
      "night_status": "occupied",
      "vcc_ref": "VCC-8854782",
      "checkin_time": "01:15",
      "checkout_time": "08:15"
    }
  ],
  "booking": {
    "booking_id": "RS-8854782",
    "layover_id": "L-514783",
    "duty_id": "D-514782",
    "crew_id": "FRA-1040",
    "entity_id": "ASL Airlines France",
    "legal_entity": "ASL Airlines France SA",
    "station": "MAD",
    "property_id": "P-135",
    "vendor_id": "VEN-01",
    "contract_id": null,
    "revenue_model": "vendor_net",
    "channel": "automation",
    "requested_by": "rule:roster-watch",
    "created_at": "2026-08-02T01:15:00Z",
    "check_in": "2026-08-03",
    "check_out": "2026-08-06",
    "nights": 3,
    "room_type": "standard",
    "occupancy": 1,
    "lead_time_hours": 24,
    "confirmation_ref": "CNF-854782",
    "cancellation_deadline": null,
    "status": "completed",
    "period": "2026-08",
    "total_amount": 1039.07
  },
  "duty": {
    "duty_id": "D-514782",
    "crew_id": "FRA-1040",
    "entity_id": "ASL Airlines France",
    "roster_ref": "AIMS/202608/514782",
    "duty_type": "positioning",
    "flight_no": "FPO653",
    "dep_station": "MRS",
    "arr_station": "MAD",
    "duty_start_utc": "2026-08-02T15:30:00Z",
    "duty_end_utc": "2026-08-03T00:26:00Z",
    "duty_hours": 11.6,
    "block_hours": 5.77,
    "source_system": "aims",
    "published_at": "2026-07-30T06:00:00Z",
    "version": 1
  },
  "layover": {
    "layover_id": "L-514783",
    "duty_in": "D-514782",
    "duty_out": "D-514782R",
    "crew_id": "FRA-1040",
    "entity_id": "ASL Airlines France",
    "station": "MAD",
    "rest_starts_utc": "2026-08-03T00:26:00Z",
    "rest_ends_utc": "2026-08-06T11:20:00Z",
    "rest_hours_available": 58.34,
    "sleep_opportunity_hours": 56.45,
    "transfer_in_minutes": 14,
    "transfer_out_minutes": 15,
    "nights": 3,
    "disrupted": 0,
    "period": "2026-08"
  },
  "evaluation": {
    "eval_id": "PE-14783",
    "period": "2026-08",
    "booking_id": "RS-8854782",
    "item_id": "RI-8854782",
    "ruleset": "2026.2",
    "evaluated_at": "2026-08-02T01:12:00Z",
    "channel": "travel_desk",
    "traveller_type": "crew",
    "entity": "ASL Airlines France",
    "station": "MAD",
    "outcome": "soft_breach",
    "breach_count": 2,
    "cost_impact": 126.04,
    "self_served": 0
  },
  "approval": {
    "approval_id": "PA-3054",
    "eval_id": "PE-14783",
    "period": "2026-08",
    "approver": "R. Menon",
    "approver_role": "travel_desk",
    "reason": "Single-night stay, sourcing not economic",
    "approved_at": "2026-08-02T01:13:48Z",
    "second_approver": null
  },
  "breaches": [
    {
      "breach_id": "PB-7654",
      "eval_id": "PE-14783",
      "period": "2026-08",
      "rule_id": "R-PREF",
      "layer": "commercial",
      "severity": "approve",
      "observed": "Booked away from preferred order",
      "limit_value": "preferred order",
      "cost_impact": 61.45,
      "resolved": "approved",
      "name": "Preferred property order",
      "authority": "Routespring",
      "reference": null
    },
    {
      "breach_id": "PB-7655",
      "eval_id": "PE-14783",
      "period": "2026-08",
      "rule_id": "R-WINDOW",
      "layer": "commercial",
      "severity": "warn",
      "observed": "1 days",
      "limit_value": "48 hours",
      "cost_impact": 64.59,
      "resolved": "auto_allowed",
      "name": "Advance booking window",
      "authority": "ASL",
      "reference": null
    }
  ],
  "changes": [],
  "card": {
    "vcc_ref": "VCC-8854782",
    "booking_id": "RS-8854782",
    "item_id": "RI-8854782",
    "period": "2026-08",
    "issued_at": "2026-08-02T01:15:00Z",
    "issuer": "Routespring card program",
    "limit_amount": 1064.07,
    "currency": "EUR",
    "valid_from": "2026-08-03",
    "valid_to": "2026-08-13",
    "grace_days": 7,
    "mcc_lock": "7011 lodging",
    "merchant_lock": "Melia Barajas",
    "auth_count": 3,
    "settled_amount": 1023.1,
    "status": "settled",
    "closed_at": "2026-08-08T03:00:00Z"
  },
  "folioDoc": {
    "folio_id": "folio-8854782",
    "booking_id": "RS-8854782",
    "item_id": "RI-8854782",
    "property_id": "P-135",
    "period": "2026-08",
    "folio_number": "MAD260803-9727",
    "guest_name": "T. Lefevre",
    "check_in": "2026-08-03",
    "check_out": "2026-08-06",
    "issued_at": "2026-08-06T09:30:00Z",
    "received_at": "2026-08-10T07:00:00Z",
    "received_via": "pms_feed",
    "currency": "EUR",
    "stated_total": 1023.1,
    "line_count": 7,
    "days_to_receive": 4.29,
    "disputed": 0
  }
}