Return Reasons
This page is outdated. Please go to our new documentation under https://docs.fulfillmenttools.com/documentation.
Return reasons should help our customers to specify why certain items have been returned by the customer while creating an ItemReturn
. In order to get pre-defined return reasons, these reasons can be added to the given ReturnConfiguration (1)
These reasons can be passed while creating an ItemReturn
through the API. Having default reasons is optional and not mandatory for passing reasons into an ItemReturn
. (2)
Adding predefined return reasons
You can add translatable availableReturnReasons
to the returnConfiguration
via API.
The translation depends on the locale of the user using this endpoint and the tenantLocaleConfiguration as a fallback.
This part of the API is in Beta status. For details please check the api-release-life-cycle documentation.Returns the current return configuration for the tenant.
Return config found.
Your user is not allowed to operate against this API instance
Your user, although recognized, is not authorized to use this endpoint
Entity not found
GET /api/configurations/return HTTP/1.1
Host: your-tenant-name.api.fulfillmenttools.com
Authorization: Bearer JWT
Accept: */*
{
"returnTypeConfiguration": {
"type": "RETURN"
},
"availableItemConditions": [],
"availableReturnReasons": [
{
"reasonLocalized": {
"de_DE": "Beschädigt",
"en_US": "Damaged"
},
"identifier": "A"
}
],
"allowTriggerRefund": false,
"created": "2020-02-03T08:45:51.525Z",
"lastModified": "2020-02-03T09:45:51.525Z",
"version": 42
}
This part of the API is in Beta status. For details please check the api-release-life-cycle documentation.Updates the return configuration for the tenant. If no configuration exists, it will be created.
ReturnConfiguration
This part of the API is deprecated. For details please check the api-release-life-cycle documentation.Enable or disable legacy returns. Use returnTypeConfiguration instead
true
AvailableItemCondition
AvailableReturnReason
If true, a refund can be triggered. If false, the endpoints to trigger a refund are disabled.
false
The return configuration was successfully updated.
The return configuration was successfully created.
Invalid input. See response for details
Your user is not allowed to operate against this API instance
Your user, although recognized, is not authorized to use this endpoint
Entity version conflict
PUT /api/configurations/return HTTP/1.1
Host: your-tenant-name.api.fulfillmenttools.com
Authorization: Bearer JWT
Content-Type: application/json
Accept: */*
Content-Length: 221
{
"returnTypeConfiguration": {
"type": "RETURN"
},
"availableItemConditions": [],
"availableReturnReasons": [],
"allowTriggerRefund": false,
"created": "2020-02-03T08:45:51.525Z",
"lastModified": "2020-02-03T09:45:51.525Z",
"version": 42
}
{
"returnTypeConfiguration": {
"type": "RETURN"
},
"availableItemConditions": [],
"availableReturnReasons": [
{
"reasonLocalized": {
"de_DE": "Beschädigt",
"en_US": "Damaged"
},
"identifier": "A"
}
],
"allowTriggerRefund": false,
"created": "2020-02-03T08:45:51.525Z",
"lastModified": "2020-02-03T09:45:51.525Z",
"version": 42
}
Using return reasons in ItemReturns
A user of our API can use this predefined return reasons or provide their own ones when creating or updating the ItemReturnLineItem
of an ItemReturn
.
The localized return reason can be provided like this example:
localizedReason = { de_DE: 'Falsche Farbe', en_US: 'Wrong color' }
When getting this ItemReturn via REST oder GQL, you will receive an additional field called reason
which contains only the localized value. This translation depends on the users locale.
Getting and setting these values via REST:
Platform for which to list artifacts
All available artifacts for the selected platform
The given platform is invalid
Your user is not allowed to operate against this API instance
Your user, although recognized, is not authorized to use this endpoint
GET / HTTP/1.1
Host: %%HOST%%
Authorization: Bearer YOUR_OAUTH2_TOKEN
Accept: */*
{
"artifacts": [
{
"buildDate": "2020-02-03T08:45:50.525Z",
"download": {
"expiration": "2020-02-03T08:45:50.525Z",
"url": "text"
},
"versionCode": 42,
"versionName": "1.0.42"
}
],
"platform": "android"
}
item return job to read the item return for
entity to start after
number of entities to show
25
Get all item returns for a given item return job
Your user is not allowed to operate against this API instance
Your user, although recognized, is not authorized to use this endpoint
Entity not found
GET / HTTP/1.1
Host: %%HOST%%
Authorization: Bearer YOUR_OAUTH2_TOKEN
Accept: */*
[]
item return job to read the item return for
id of the item return you want to read
entity to start after
number of entities to show
25
Get a specific item return
Your user is not allowed to operate against this API instance
Your user, although recognized, is not authorized to use this endpoint
Entity not found
GET / HTTP/1.1
Host: %%HOST%%
Authorization: Bearer YOUR_OAUTH2_TOKEN
Accept: */*
{
"id": "text",
"created": "2020-02-03T08:45:51.525Z",
"lastModified": "2020-02-03T09:45:51.525Z",
"returnFacilityRef": "text",
"status": "ANNOUNCED",
"tenantOrderId": "text",
"scannableCodes": [
"text"
],
"returnedLineItems": [
{
"itemConditionLocalized": {
"de_DE": "Bschädigt",
"en_US": "Damaged"
},
"itemConditionComment": "Upper corner damaged",
"tenantArticleId": "a69006ba-7100-4b4d-a610-1ca28016a4eb",
"scannedCodes": [
"text"
],
"status": "OPEN",
"reasons": []
}
]
}
id of the Item Return Job
id of the Item Return
Updated entity
Your user is not allowed to operate against this API instance
Your user, although recognized, is not authorized to use this endpoint
Entity not found
POST / HTTP/1.1
Host: %%HOST%%
Authorization: Bearer YOUR_OAUTH2_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 70
{
"name": "STATUS_CHANGE",
"itemReturnJobVersion": 1,
"status": "ANNOUNCED"
}
{
"id": "text",
"processRef": "text",
"originFacilityRefs": [
"text"
],
"status": "OPEN",
"tenantOrderId": "text",
"consumerAddresses": [
{
"additionalAddressInfo": "to care of: Mrs. Müller",
"city": "Langenfeld",
"country": "DE",
"province": "NRW",
"customAttributes": {},
"houseNumber": "42a",
"phoneNumbers": [
{
"customAttributes": {},
"label": "text",
"type": "MOBILE",
"value": "text"
}
],
"postalCode": "40764",
"street": "Hauptstr."
}
],
"scannableCodes": [
"text"
],
"shortId": "AS12",
"returnableLineItems": [
{
"article": {
"customAttributes": {},
"imageUrl": "text",
"tenantArticleId": "4711",
"title": "Cologne Water",
"weight": 1,
"attributes": [
{
"category": "descriptive",
"key": "%%subtitle%%",
"priority": 100,
"value": "585er Gold"
}
]
},
"delivered": 1,
"scannableCodes": [
"text"
]
}
],
"itemReturns": [],
"anonymized": false,
"created": "2020-02-03T08:45:51.525Z",
"lastModified": "2020-02-03T09:45:51.525Z",
"version": 42
}
Last updated
Was this helpful?