Trimiterea știrilor și flota NakBus se află acum în panoul de partener
Folosiți același cont de autentificare (e-mail și parolă) ca pentru contul de dezvoltator pentru a vă conecta la panoul Nakordoni Partners și pentru a gestiona acolo știrile și flota de autobuze (NakDriver / NakManager), cu roluri de echipă. Cheile API, endpoint-urile și aplicațiile dvs. rămân neschimbate, iar paginile de aici continuă să funcționeze. Deschide Nakordoni Partners

← Toate endpointurile

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 — clasă de cotă: report

ParametruDescriere
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.

Câmpurile răspunsului — în interiorul obiectului data din plicul răspunsului. [] marchează o listă, deci data.items[].name este câmpul name al fiecărui element. Un câmp este null, lipsește sau este o listă goală atunci când nu avem o valoare — niciodată un substitut.

CâmpDescriere
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"
        }
    ]
}'
🔑 Autentifică-te ca dezvoltator pentru a încerca acest endpoint live în sandbox — 10 apeluri de test gratuite pe produs pe zi. Autentificare

Actualizat