@plentymarkets/shop-api / doMakeOrderReturn
Function: doMakeOrderReturn() ​
Method doMakeOrderReturn - Used to execute the order return.
Parameters ​
• context: PlentysystemsIntegrationContext
• params: MakeOrderReturnParams
params: a string derived from the url of the order
Returns ​
Order
Remarks ​
- Calls /rest/storefront/returns
- Method should be used to execute the order return.
Example ​
ts
const { data } = await useSdk().plentysystems.doMakeOrderReturn({
orderId: 123456,
orderAccessKey: 'ABCDEFGH',
110: {
quantitiy: 2,
returnReasonId: 1,
}
});