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
Resolves to the list of return reasons.
retrieve
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
Resolves to the return reason's details.
Was this section helpful?