ReturnsResource
This class is used to send requests to Store Return API Routes. All its method
are available in the JS Client under the medusa.returns
property.
A return can be created by a customer to return items in an order.
Related Guide: How to create a return in a storefront.
Methods
create
Create a return for an order. If a return shipping method is specified, the return is automatically fulfilled.
Example
Parameters
The data of the return to be created.
customHeaders
Record<string, any>RequiredCustom headers to attach to the request.
Default: {}
Returns
ResponsePromise
ResponsePromise<StoreReturnsRes>RequiredResolves to the return's details.
ResponsePromise
ResponsePromise<StoreReturnsRes>RequiredWas this section helpful?