@plentymarkets/shop-api / doMakeOrderReturn
Function: doMakeOrderReturn() ​
Defined in: api/doMakeOrderReturn/index.ts:28
Method doMakeOrderReturn - Used to execute the order return.
Parameters ​
context ​
PlentysystemsIntegrationContext
params ​
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,
}
});