ReturnReasonsResource
This class is used to send requests to Store Return Reason API Routes. All its method
are available in the JS Client under the medusa.returnReasons
property.
Return reasons are key-value pairs that are used to specify why an order return is being created.
Methods
list
Retrieve a list of Return Reasons. This is useful when implementing a Create Return flow in the storefront.
Example
Parameters
customHeaders
Record<string, any>RequiredCustom headers to attach to the request.
Default: {}
Returns
ResponsePromise
ResponsePromise<StoreReturnReasonsListRes>RequiredResolves to the list of return reasons.
ResponsePromise
ResponsePromise<StoreReturnReasonsListRes>Requiredretrieve
Retrieve a Return Reason's details.
Example
Parameters
id
stringRequiredThe ID of the return reason.
customHeaders
Record<string, any>RequiredCustom headers to attach to the request.
Default: {}
Returns
ResponsePromise
ResponsePromise<StoreReturnReasonsRes>RequiredResolves to the return reason's details.
ResponsePromise
ResponsePromise<StoreReturnReasonsRes>RequiredWas this section helpful?