Returns Service Tutorials
How to configure the Returns Service
By default, the expiration date offset for a return request is set to 30 days.
Update the expiration date settings
You can update the expiration date offset for a tenant by sending a request to theIn the following example, we are changing the expiration date offset to 14 days.
How to manage return requests
A return can be created both by a customer directly on your business' website, or by an employee on behalf of a customer.
attention
If you want the return-service-specific events to trigger any actions of your choice, configure webhook subscriptions. See the Webhook Service Tutorials for more information.
order_Id
values) exist in the system.Create a return by a customer
On the storefront, a customer fills in the applicable fields in the return request:
orders
reason
mixins
Based on your tenant's configuration settings and customer's oauth token, the remaining fields are populated automatically.
When a customer sends a return request, theinfo
The following set of scopes is granted to a customer group:
returns.returns_read_own returns.returns_manage_own
returns.returns_read
and returns.returns_manage
scopes are only required for employee groups.Create a return on behalf of a customer
To create a return on behalf of a customer, you need to send a request to theinfo
The following set of scopes is required for an employee group:
returns.returns_read returns.returns_manage
returns.returns_read_own
and returns.returns_manage_own
scopes are only required for customer groups.info
approvalStatus
field is automatically populated during the creation of a return and is always set to PENDING
.Update the return request by a customer
Customers can update their return request only when the approval status of the request isPENDING
. When a customer updates a return, the info
The following set of scopes is granted to a customer group:
returns.returns_read_own returns.returns_manage_own
returns.returns_read
and returns.returns_manage
scopes are only required for employee groups.In this scenario, the customer updates the reason for the return.
Update the return status
As an employee, you can update all the fields available during the return creation, as well as theapprovalStatus
and received
fields, by sending a request to the info
The following set of scopes is required for an employee group:
returns.returns_read returns.returns_manage
returns.returns_read_own
and returns.returns_manage_own
scopes are only required for customer groups.In this scenario, the employee updates the approval status of the return request.