Item condition

Default values for item condition in the backend are not provided; however, it is possible to manage them on the client side. Like we are doing it with our app by setting the default value for item condition to "not damaged". If no additional conditions are specified through the backend, the conditions will not be displayed.

Adding predefined item conditions

You can add translatable itemConditions to the returnConfiguration via API. The translation depends on the locale of the user using this endpoint and the tenantLocaleConfiguration as a fallback.

Using item conditions in itemReturns

A user of our api can use this predefined conditions or provide their own ones when creating or updating itemReturnLineItem of an itemReturn. The translatable condition can be provided like this example:

itemConditionLocalized = { de_DE: 'gefällt nicht', en_US: 'do not like' }

When getting this itemReturn via REST oder GQL, you will receive an additional field called itemCondition which contains only the translated value. This translation depends on the users locale.

Getting and setting this values via REST:\

Last updated