Ga naar inhoud
BlueNova Virtual Airlines Plugins Partner Portal smartCARS · VA Flight Ops

API docs

Website API-contract

Alleen nodig als je VA de flight-status API nog moet bouwen. De plugin zelf is gratis; dit is documentatie / bridge-voorbeeld.

Auth

Stuur de piloot smartCARS-sessie als Bearer-token. Zelfde auth-model als andere community script-calls.

Scope

Statusupdates gelden voor geboekte schedule/charter-vluchten van de ingelogde piloot (plus jullie VA-regels). Plugin 1.6+ stuurt ook arrived + mid-flight ETA.

Bearer = smartCARS session token van de piloot-login.

Endpoints

GET /flights/status/bookings GET /flights/status?kind=schedule|charter&id={id} GET /flights/status/history?kind=...&id=...&limit=12 POST /flights/status { "kind": "schedule", "id": 123, "status": "on_time|updated|delayed|cancelled|arrived", "etd": "14:30", "eta": "16:05" }

Statussen: on_time (groen), updated (oranje), delayed (rood), cancelled (rood), arrived (ATA; bolletje volgt vertrekkleur). eta is verplicht/handig bij updated/delayed/arrived (nieuwe ETA of ATA).

BlueNova referentie: api/smartcars.php + includes/va-flight-status.php.

PHP-bridge voorbeeld

Voorbeeld dat je op je VA-website kunt aanpassen als je niet de volledige BlueNova-stack hebt.

Snel testen

Boek een vlucht → open VA Flight Ops in smartCARS → Refresh → wijzig ETD/status → Save. Werkt via je community script-URL zodra de API bestaat.

/main>