@plentymarkets/shop-api / getReturnReasons
Function: getReturnReasons() ​
getReturnReasons(
context
):Promise
<Data
<OrderReturnsResponse
>>
Method getReturnReasons - get return reasons
Parameters ​
• context: PlentysystemsIntegrationContext
Returns ​
Promise
<Data
<OrderReturnsResponse
>>
Promise<{data: OrderReturnReason}>
Remarks ​
calls /rest/storefront/return/reasons endpoint
Example ​
ts
const { data, error } = await useAsyncData(() => sdk.plentysystems.getReturnReasons());