La soumission d'actualités et la flotte NakBus sont désormais dans le tableau de bord partenaire
Utilisez les mêmes identifiants (e-mail et mot de passe) que pour votre compte développeur pour vous connecter au panneau Nakordoni Partners et y gérer les actualités et votre flotte de bus (NakDriver / NakManager) avec des rôles d'équipe. Vos clés API, points de terminaison et applications restent inchangés, et les pages ici continuent de fonctionner. Ouvrir Nakordoni Partners

← Tous les endpoints

Fuel Report API (send prices) Online

Send the fuel prices you or your users see at a station, so the next driver gets a fresher price. POST a JSON body with the station id from fuel-stations, the prices per grade and when they were seen. Every price is checked: the grade name is matched like the fuel_type parameter (Diesel, ON, Nafta, 95 ...), the currency must be the currency of the station's country or EUR, the price must be plausible for that grade and country, and the observation may be at most 6 hours old. A price that differs by more than 15 % from the price we hold waits (pending) until a second, independent account reports the same price within 6 hours. A checked price joins our station data; it never replaces a newer price we already hold. Limits per API key: 30 reports per hour, 200 per 24 hours, and one report per station and grade per 30 minutes. Use dry=true while you build your integration: the same checks run and you get the same answer, but the price is not used.

POST https://nakordoni.eu/api/v2/data/fuel-report — classe de quota: report

ParamètreDescription
station_id(JSON body, required) Our station id: data.stations[].id from fuel-stations (or fuel-cheapest).
prices(JSON body, required) List of {grade, price, currency}, at most 17. grade: a canonical grade (diesel, e5, e10, lpg, biocng ...) or a local pump name (see fuel-grades). price: price per litre (per kg for CNG, LNG, Bio-CNG and Bio-LNG). currency: ISO code (PLN, EUR, CZK ...), the station's local currency or EUR.
observed_at(JSON body, optional) When the price was seen, ISO 8601 with offset, at most 6 hours ago, not in the future. Default: now.
dry(JSON body or query, optional) true / 1 = test call: all checks run and the answer is the same, but the price is not used. Counts against the limits.

Champs de la réponse — à l’intérieur de l’objet data de l’enveloppe. [] indique une liste : data.items[].name est donc le champ name de chaque élément. Un champ vaut null, est absent ou est une liste vide quand nous n’avons pas de valeur — jamais un espace réservé.

ChampDescription
data.accepted[]Grades whose price was accepted.
data.pending[]Grades whose price differs by more than 15 % from ours: kept until a second account confirms it within 6 hours.
data.rejected[]{grade, reason}. reason: unknown_grade, duplicate_grade, bad_price, currency_mismatch, implausible_price, price_too_high, price_too_low, rate_limited (this key sent this grade for this station less than 30 minutes ago).
data.station_idThe station the report was stored for (a merged duplicate answers with the station it was merged into).
data.observed_atThe observation time used, UTC.
data.drytrue for a test call (nothing used).
errors400 bad_json, bad_station_id, bad_prices, too_many_prices, bad_observed_at, observed_at_too_old; 404 station_not_found; 429 rate_limited (hourly or daily cap, or every grade of the report within 30 minutes) with retry_after seconds and a Retry-After header.
curl -X POST "https://nakordoni.eu/api/v2/data/fuel-report" \
  -H "Authorization: Bearer NKD-DEV-XXXX-XXXX-XXXX" \
  -H "Content-Type: application/json" \
  -d '{
    "station_id": 72571,
    "observed_at": "2026-10-31T14:05:00+01:00",
    "dry": true,
    "prices": [
        {
            "grade": "diesel",
            "price": 7.99,
            "currency": "PLN"
        },
        {
            "grade": "95",
            "price": 6.49,
            "currency": "PLN"
        }
    ]
}'
🔑 Connectez-vous en tant que développeur pour essayer cet endpoint en direct dans le sandbox — 10 appels de test gratuits par produit et par jour. Connexion

Mis à jour