Get product compatibility

Compute nutritional compatibility live from the label of a product identified by its Tuduu internal identifier. Decode flagId and outcomeId through the Definitions endpoints.

GET
/products/{id}/compatibility
Products
Cost: 60 credits

Response

200
application/json
object

ProductCompatibilityResult

Nutritional compatibility computed live from the product ingredients and label

object

id

Tuduu internal product identifier

integer<int64>

compatibility

object[]

AnalysisResultItem

Single nutritional compatibility result for one lifestyle flag - contains flag and outcome identifiers that can be decoded using the 'Definitions' endpoints to obtain localized descriptions

object

flagId

Lifestyle flag identifier (e.g., vegetarian, vegan, gluten-free) - see 'Definitions' endpoints to decode this ID and get localized descriptions

integer<int16>

outcomeId?

Outcome type identifier indicating the compatibility result - see 'Definitions' endpoints to decode this ID and get localized descriptions. Null when no outcome is determined

integer<uint8> | null
204
application/json

No Content

No schemas are available for this endpoint.

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