AdminReturnsResource
admin/returns.AdminReturnsResource
Methods
cancel
cancel(id
, customHeaders?
): ResponsePromise
<AdminReturnsCancelRes
>
Parameters
id
stringRequiredid of return to cancel
customHeaders
Record<string, any>RequiredDefault: `{}`
Returns
ResponsePromise
<AdminReturnsCancelRes
>
the order for which the return was canceled
Description
cancels a return
list
list(query?
, customHeaders?
): ResponsePromise
<AdminReturnsListRes
>
Parameters
query for searching returns
customHeaders
Record<string, any>RequiredDefault: `{}`
Returns
ResponsePromise
<AdminReturnsListRes
>
a list of returns matching the query
Description
lists returns matching a query
receive
receive(id
, payload
, customHeaders?
): ResponsePromise
<AdminReturnsRes
>
Parameters
id
stringRequiredid of the return to receive.
items to receive and an optional refund amount
customHeaders
Record<string, any>RequiredDefault: `{}`
Returns
ResponsePromise
<AdminReturnsRes
>
the return
Description
receive a return
Was this section helpful?