{
  "p": {
    "provider_id": "TP-101",
    "name": "East Midlands Airport Coaches",
    "station": "EMA",
    "country": "GB",
    "contract_id": "TC-101",
    "contract_start": "2026-01-01",
    "contract_end": "2027-06-30",
    "status": "active",
    "rate_model": "per_transfer",
    "base_rate": 142.64,
    "currency": "EUR",
    "vehicle_types": "Minibus 8, Coach 16, Sedan 3",
    "capacity_max": 16,
    "meet_and_greet": 1,
    "flight_tracking": 1,
    "sla_minutes": 30,
    "contact_name": "Liam Byrne",
    "contact_email": "ops@eastmidlandstransfers.com",
    "contact_phone": "+37 1560502",
    "notes": null
  },
  "contract": {
    "contract_id": "TC-101",
    "provider_id": "TP-101",
    "station": "EMA",
    "entity_scope": "ALL",
    "start_date": "2026-01-01",
    "end_date": "2027-06-30",
    "currency": "EUR",
    "sla_minutes": 30,
    "waiting_time_included_minutes": 30,
    "waiting_time_rate": 42.91,
    "night_surcharge_pct": 10,
    "airport_access_fee": 4.32,
    "cancellation_hours": 12,
    "no_show_charge_pct": 100,
    "payment_terms": "Net 45, invoice",
    "payment_terms_days": 30,
    "flight_tracking_required": 1,
    "meet_and_greet_included": 1,
    "sla_penalty_pct": 10,
    "auto_renew": 0,
    "renewal_notice_days": 90,
    "signed_on": "2025-11-30",
    "signed_by": "R. Menon",
    "status": "active"
  },
  "contacts": [
    {
      "contact_id": "TCT-6",
      "provider_id": "TP-101",
      "role": "account_manager",
      "name": "Niall Moreau",
      "email": "account@eastmidlandsairp.example",
      "phone": "+41 62 1930506",
      "hours": "Mon–Fri 09:00–17:00",
      "primary_contact": 1
    },
    {
      "contact_id": "TCT-9",
      "provider_id": "TP-101",
      "role": "billing",
      "name": "Diego Sato",
      "email": "billing@eastmidlandsairp.example",
      "phone": "+37 57 8516805",
      "hours": "Mon–Fri 09:00–17:00",
      "primary_contact": 0
    },
    {
      "contact_id": "TCT-7",
      "provider_id": "TP-101",
      "role": "dispatch",
      "name": "Liam Faber",
      "email": "dispatch@eastmidlandsairp.example",
      "phone": "+39 93 8583215",
      "hours": "24/7",
      "primary_contact": 0
    },
    {
      "contact_id": "TCT-8",
      "provider_id": "TP-101",
      "role": "night_desk",
      "name": "Karl Byrne",
      "email": "night@eastmidlandsairp.example",
      "phone": "+33 12 1859794",
      "hours": "22:00–06:00",
      "primary_contact": 0
    },
    {
      "contact_id": "TCT-10",
      "provider_id": "TP-101",
      "role": "operations",
      "name": "Marc Faber",
      "email": "operations@eastmidlandsairp.example",
      "phone": "+36 43 6951041",
      "hours": "Mon–Sun 06:00–22:00",
      "primary_contact": 0
    }
  ],
  "tariffs": [
    {
      "tariff_id": "TT-7",
      "contract_id": "TC-101",
      "provider_id": "TP-101",
      "vehicle_class": "sedan",
      "seats_max": 3,
      "rate_basis": "per_transfer",
      "rate": 106.31,
      "currency": "EUR",
      "applies_from": "06:00",
      "applies_to": "22:00",
      "min_charge": 85.05,
      "note": null
    },
    {
      "tariff_id": "TT-8",
      "contract_id": "TC-101",
      "provider_id": "TP-101",
      "vehicle_class": "sedan",
      "seats_max": 3,
      "rate_basis": "per_transfer",
      "rate": 129.91,
      "currency": "EUR",
      "applies_from": "22:00",
      "applies_to": "06:00",
      "min_charge": 95.68,
      "note": "Night tariff. Most crew transfers fall in this window."
    },
    {
      "tariff_id": "TT-9",
      "contract_id": "TC-101",
      "provider_id": "TP-101",
      "vehicle_class": "mpv",
      "seats_max": 6,
      "rate_basis": "per_transfer",
      "rate": 140.09,
      "currency": "EUR",
      "applies_from": "06:00",
      "applies_to": "22:00",
      "min_charge": 112.07,
      "note": null
    },
    {
      "tariff_id": "TT-10",
      "contract_id": "TC-101",
      "provider_id": "TP-101",
      "vehicle_class": "mpv",
      "seats_max": 6,
      "rate_basis": "per_transfer",
      "rate": 158.64,
      "currency": "EUR",
      "applies_from": "22:00",
      "applies_to": "06:00",
      "min_charge": 126.08,
      "note": "Night tariff. Most crew transfers fall in this window."
    },
    {
      "tariff_id": "TT-11",
      "contract_id": "TC-101",
      "provider_id": "TP-101",
      "vehicle_class": "minibus",
      "seats_max": 12,
      "rate_basis": "per_transfer",
      "rate": 217.36,
      "currency": "EUR",
      "applies_from": "06:00",
      "applies_to": "22:00",
      "min_charge": 173.89,
      "note": null
    },
    {
      "tariff_id": "TT-12",
      "contract_id": "TC-101",
      "provider_id": "TP-101",
      "vehicle_class": "minibus",
      "seats_max": 12,
      "rate_basis": "per_transfer",
      "rate": 251.08,
      "currency": "EUR",
      "applies_from": "22:00",
      "applies_to": "06:00",
      "min_charge": 195.62,
      "note": "Night tariff. Most crew transfers fall in this window."
    }
  ],
  "fleet": [
    {
      "fleet_id": "TF-5",
      "provider_id": "TP-101",
      "vehicle_class": "sedan",
      "seats": 3,
      "count_total": 13,
      "count_dedicated": 0,
      "wheelchair_accessible": 0,
      "luggage_capacity": "2 cases",
      "avg_age_years": 1.9,
      "note": null
    },
    {
      "fleet_id": "TF-6",
      "provider_id": "TP-101",
      "vehicle_class": "mpv",
      "seats": 6,
      "count_total": 8,
      "count_dedicated": 0,
      "wheelchair_accessible": 0,
      "luggage_capacity": "6 cases",
      "avg_age_years": 5.45,
      "note": null
    },
    {
      "fleet_id": "TF-7",
      "provider_id": "TP-101",
      "vehicle_class": "minibus",
      "seats": 12,
      "count_total": 10,
      "count_dedicated": 4,
      "wheelchair_accessible": 1,
      "luggage_capacity": "14 cases",
      "avg_age_years": 1.29,
      "note": null
    },
    {
      "fleet_id": "TF-8",
      "provider_id": "TP-101",
      "vehicle_class": "coach",
      "seats": 30,
      "count_total": 2,
      "count_dedicated": 0,
      "wheelchair_accessible": 1,
      "luggage_capacity": "34 cases",
      "avg_age_years": 3.33,
      "note": null
    }
  ],
  "audits": [
    {
      "audit_id": "TAU-2",
      "provider_id": "TP-101",
      "audited_on": "2026-05-08",
      "auditor": "ASL Ground Safety",
      "operator_licence_ref": "GB-PSV-35897",
      "licence_expiry": "2027-09-07",
      "insurance_ref": "INS-618896",
      "insurance_expiry": "2027-04-20",
      "insured_value": 14000000,
      "driver_vetting_ok": 1,
      "drug_alcohol_policy_ok": 0,
      "vehicle_inspection_ok": 0,
      "gps_tracking_ok": 1,
      "score": 2.2,
      "outcome": "fail",
      "actions": "No drug and alcohol testing policy on file. Vehicle inspection records incomplete.",
      "reinspect_due": "2026-08-06"
    }
  ],
  "use": {
    "legs": 334,
    "cost": 51577.03,
    "cost_per_leg": 154.42224550898203,
    "seats": 978,
    "late_pct": 8.682634730538922,
    "delay_total": 1097,
    "rest_impact": 552,
    "failures": 6,
    "pooled": 33
  },
  "byPeriod": [
    {
      "period": "2026-03",
      "legs": 356,
      "cost": 54270.57,
      "late_pct": 10.112359550561798
    },
    {
      "period": "2026-04",
      "legs": 328,
      "cost": 49956.62,
      "late_pct": 9.451219512195122
    },
    {
      "period": "2026-05",
      "legs": 336,
      "cost": 51453.05,
      "late_pct": 9.226190476190476
    },
    {
      "period": "2026-06",
      "legs": 358,
      "cost": 54626.79,
      "late_pct": 10.893854748603353
    },
    {
      "period": "2026-07",
      "legs": 350,
      "cost": 53792.99,
      "late_pct": 7.142857142857143
    },
    {
      "period": "2026-08",
      "legs": 334,
      "cost": 51577.03,
      "late_pct": 8.682634730538922
    }
  ]
}