Resolve a product by EAN

Znajdź pakowany produkt spożywczy na podstawie jego kodu EAN i pobierz jego wewnętrzny identyfikator Tuduu, tytuł, markę, składniki oraz format etykiety. Tylko język włoski: ten punkt końcowy zwraca kod 406 dla każdej innej wartości Accept-Language, ponieważ główny katalog zawiera dane włoskie.

GET
/products/ean/{ean}
Products
Koszt: 10 kredytów

Odpowiedź

200
application/json
object

ProductResult

Podstawowe informacje o produkcie z głównego katalogu produktów Tuduu

object

id

Wewnętrzny identyfikator produktu Tuduu

integer<int64>

title?

Tytuł produktu. W przypadku braku używana jest nazwa handlowa. Wartość null, gdy jest nieznana

string | null

brand?

Marka. Wartość null, gdy jest nieznana

string | null

ingredients?

Lista składników jako pojedynczy nieprzetworzony ciąg znaków, w formie wydrukowanej na etykiecie. Wartość null, gdy jest nieznana

string | null

format?

Format etykiety / rozmiar opakowania (np. „500 g”). Wartość null, gdy jest nieznany

string | null
204
application/json

No Content

Dla tego punktu końcowego nie są dostępne żadne schematy.

401
application/json
object

Unauthorized

ConnectProblemDetails

object

type?

string

title?

string

status?

integer<int32>

detail?

string

instance?

string

requestId?

string

traceId?

string
403
application/json
object

Forbidden

ConnectProblemDetails

object

type?

string

title?

string

status?

integer<int32>

detail?

string

instance?

string

requestId?

string

traceId?

string
406
application/json
object

Not Acceptable

ConnectProblemDetails

object

type?

string

title?

string

status?

integer<int32>

detail?

string

instance?

string

requestId?

string

traceId?

string
422
application/json
object

Unprocessable Entity

ConnectProblemDetails

object

type?

string

title?

string

status?

integer<int32>

detail?

string

instance?

string

requestId?

string

traceId?

string
429
application/json
object

Too Many Requests (APIM)

ConnectProblemDetails

object

type?

string

title?

string

status?

integer<int32>

detail?

string

instance?

string

requestId?

string

traceId?

string
500
application/json
object

Internal Server Error

ConnectProblemDetails

object

type?

string

title?

string

status?

integer<int32>

detail?

string

instance?

string

requestId?

string

traceId?

string
502
application/json
object

Bad Gateway (APIM)

ConnectProblemDetails

object

type?

string

title?

string

status?

integer<int32>

detail?

string

instance?

string

requestId?

string

traceId?

string
504
application/json
object

Gateway Timeout (APIM)

ConnectProblemDetails

object

type?

string

title?

string

status?

integer<int32>

detail?

string

instance?

string

requestId?

string

traceId?

string