Returns
A return is when a consumer sends a purchased product back to the retailer for a refund, exchange, or store credit. The return process typically involves either bringing the items to the store in person or initiating an online return.
There are two types of return:
Announced returns (the consumer notifies the retailer in advance about the return)
Unannounced returns (the consumer returns an item without prior notification)
For both types, an item return job needs to include items that could be returned from the original order.
Item return job
An itemReturnJob is the main entity in the returns process. It contains all potential itemReturns associated with a placed order. It encompasses all items eligible for return (and those not eligible) and tracks the items actually returned. During interactions with the itemReturnJob, validations ensure that only items handed over in the given order can be returned in the handed-over quantities.
An itemReturnJob is automatically created after the handover process. fulfillmenttools then sends a notification with the ITEM_RETURN_JOB_CREATED event. If the handover feature isn't used, the itemReturnJob can be created via the item return jobs REST API.
The itemReturnJob starts with an OPEN status. The returnableLineItems list contains all handover items eligible for return. The itemReturnJob includes all items from all handovers related to the original order, even if the order was split into multiple pick jobs.
Use the endpoint below to get all item return jobs:
GET https://{YOUR_TENANT_NAME}.api.fulfillmenttools.com/api/itemreturnjobsItem return
An itemReturn represents all items actually returned within the associated itemReturnJob. You must have a valid itemReturnJob before creating an itemReturn.
While adding or updating an itemReturn within an existing itemReturnJob, item validations ensure that the returned quantity doesn't exceed the delivered and previously returned amounts.
Line items are returned by creating a new itemReturn entity within an existing itemReturnJob. This is done using the following API call:
This call creates a preannounced itemReturn with an initial status of OPEN, which can be updated later as required. Entries in returnedLineItems reference line items from the returnableLineItems array of the parent itemReturnJob, and entries in returnedNotReturnableLineItems reference line items from its notReturnableLineItems array. An itemReturn must contain at least one entry in either array. The request must also include the current itemReturnJobVersion to prevent concurrent modifications.
The status of an itemReturnJob doesn't automatically change to FINISHED, even if all of its returnedLineItems are ACCEPTED. You must update the itemReturnJob status explicitly via an API call. This action triggers an ITEM_RETURN_JOB_UPDATED event.
Triggering a refund
A refund is triggered when the refund and status fields of a specific returnedLineItem are updated. This is accomplished using the following PATCH request, which requires the current itemReturnJobVersion. For more details, see the Returns endpoints article.
You can also trigger the refund event via Backoffice. You'll need to have the allowTriggerRefund setting in the return configuration set to true to do this.
Returnable and non-returnable items
Some items can't be returned, for example, customized items or items from special offers. For this reason, an itemReturnJob has two arrays: returnableLineItems and notReturnableLineItems.
When fulfillmenttools automatically creates an itemReturnJob, it fills both arrays. By default, fulfillmenttools places items in returnableLineItems. An item is placed in notReturnableLineItems only if it was part of a related service job with the itemsReturnable flag set to false.
If items are marked as handed over during the handover process with a handedOverQuantity of at least 1, the delivered field corresponds to the handedOverQuantity. If there is no handover job, or none of its items have a handedOverQuantity of at least 1, fulfillmenttools fills the arrays with the items from the related pick job. In this case, the delivered field corresponds to the picked quantity.
The array determines whether a line item is returnable. The returnable field holds the quantity that can still be returned. For line items in returnableLineItems, this is the difference between delivered and returned. For line items in notReturnableLineItems, it's always 0.
An itemReturn reflects the same split: returnedLineItems contains returned items from returnableLineItems, and returnedNotReturnableLineItems contains returned items from notReturnableLineItems. The returned field counts the returned quantity regardless of which array records the returned item.
Move line items between arrays
A line item's array isn't fixed. If a non-returnable item is to be accepted as a regular return, for example, as a goodwill gesture, its line item can be moved to returnableLineItems. From then on, it's handled like any other returnable item, and a refund can be triggered for it. Line items can also be moved in the opposite direction. Both directions use actions on the itemReturnJob: CHANGE_LINE_ITEMS_TO_RETURNABLE_IN_ITEM_RETURN_JOB and CHANGE_LINE_ITEMS_TO_NOT_RETURNABLE_IN_ITEM_RETURN_JOB.
As long as a line item is used in an item return, it can't be moved, even after the item return is finished. To move it, remove it from the item return or cancel the item return. Once the itemReturnJob is finished, its item returns can't be changed anymore, and the line item can no longer be removed. Other line items of the same itemReturnJob aren't affected and can still be moved. How to handle a non-returnable item that has already been returned is described in the Accept or reject non-returnable items section.
After a move, the returnable field matches the target array: 0 in notReturnableLineItems, and the difference between delivered and returned in returnableLineItems.
The following request moves a line item to returnableLineItems:
Accept or reject non-returnable items
A returned non-returnable item is either rejected or accepted. Both decisions update the item's status in returnedNotReturnableLineItems. The following request rejects the item:
Setting the status to ACCEPTED instead records that the item is taken back. The item remains non-returnable: its returnable field stays 0, and no refund can be triggered for it. You can still change the status later.
To accept a non-returnable item as a regular return with a refund, for example, as a goodwill gesture, the item has to become returnable first. To do that, follow the steps below:
Remove the item from the item return
Replace the returned non-returnable line items of the item return without the item.
Move the line item to the returnable items
Move the line item to returnableLineItems.
Add the item to the returned line items
Add the item to returnedLineItems with the status ACCEPTED. The request replaces all entries in returnedLineItems, so include the existing entries as well. Otherwise, they're removed.
A refund can then be triggered as described in the Triggering a refund section.
Return configuration
The return configuration endpoint lets you provide default inputs for your returns. These inputs are then displayed in the Store Operations app and Backoffice. These can be for:
The example below shows the endpoint you need to use to update the configuration, along with an example request that includes all three options.
You can also deactivate camera scanning by setting RETURNING_CAMERA_SCANNING_DISABLED to FALSE.
Return reasons
Return reasons help you specify why a consumer has returned certain items as you process the return.
For example, you could add the reasons below to the return configuration:
Item doesn't fit
Item didn't match description
Item damaged
You can pass reasons when creating an itemReturn through the API. Default reasons are optional when passing reasons into an itemReturn.
Default values for return reasons in the backend
Default values for return reasons in the backend aren't provided. However, you can manage return reasons on the client side. For example, in the Store Operations app, the default return reason is No reason. If no additional reasons are specified in the backend, the return reasons will not be displayed.
API users can use predefined return reasons or provide their own when creating or updating an itemReturnLineItem on an itemReturn.
Returned item conditions
Upon receiving the returned item, the item's condition is assessed, eligibility is verified under the return policy, and a suitable resolution is provided (for example, a refund or store credit). This requires the ability to create a return manually.
When accepting returned items, the condition of the items can be defined. In the Store Operations app, the default condition is set to Not damaged. However, the backend doesn't define a default value.
Localized itemConditions can be added to the returnConfiguration via return configuration.
The translation depends on the user's locale for this endpoint and the tenantLocaleConfiguration.
Decision reasons
Decision reasons allow staff to specify why a returned item was accepted, rejected, or put on hold when setting the status of a returned line item.
You can pass reasons when updating a returned line item through the API. Predefined decision reasons are optional when setting a returned line item's status.
Setting RETURNING_DECISION_ACCEPT_PRESELECTED to TRUE in the remote configuration preselects accept as the decision.
Default values for decision reasons in the backend
Default values for decision reasons in the backend aren't provided. However, you can manage decision reasons on the client side. If no decision reasons are configured in the backend, none will be displayed.
API users can use predefined decision reasons or provide their own when updating a returnedLineItem's status.
Announced returns
Announced returns are return requests a consumer registers before the physical package arrives at the facility. Announced returns include the items and details the consumer provides, such as the return reason and item condition.
The return announcement is transferred from the shop, and an itemReturn is created in the associated itemReturnJob with the status ANNOUNCED. This job can be updated until it is confirmed.
These details are made available in Backoffice and the Store Operations app, where announced returns can be searched for, optionally using a barcode from the return label if provided. The user can also check and, if necessary, edit those details and confirm the return.
When you confirm the return, the status changes from ANNOUNCED to COMPLETED, and you can't make further changes after confirmation.
Create an announced return
To create and complete an announced return, follow the steps below.
Find the itemReturnJobId for the order
Query the GET endpoint using the tenantOrderId and facilityId
From the response, take the id for the matching the tenantOrderId as the itemReturnJobId.
Create the announced return
Create an announced return using the below endpoint. An announced return must have the status of ANNOUNCED.
You need to include the reference of the facility the item(s) are being returned to in the returnFacilityRef, as well as at least one entry in returnedLineItems or returnedNotReturnableLineItems.
Each returned line item must include the tenantArticleId and a line item status (for example, OPEN).
itemConditionLocalized and reasons are optional.
You can check the return in Backoffice. Open the Network view and select Returns in the sidebar. Then, filter by Announced in the Return status. You should see your newly created return job in the table.
Edit any information before confirmation (optional)
Edits can be made in the Returns app. You can:
Adjust quantities.
Replace or correct items within the same order.
Update reasons or conditions (if applicable).
Add missing items from the same order, if necessary.
Confirm the return using the Returns app
Review the item summary and details.
Confirm the return.
When you confirm the return, the status changes from
ANNOUNCEDtoCOMPLETED, and you can't make further changes after confirmation.
Unannounced returns
An unannounced return is when a consumer returns an item without notifying you in advance. This usually happens in a store. Use the Returns app to manage the return process. See the Returns in the Store Operations app article for more information.
Last updated
Was this helpful?

