- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
Menu
- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
updateReturnReasons - Order Module Reference
This documentation provides a reference to the updateReturnReasons
method. This belongs to the Order Module.
Note: You should only use this methods when implementing complex customizations. For common cases, check out available workflows instead.
updateReturnReasons(selector, data, sharedContext?): Promise<OrderReturnReasonDTO[]>#
This method updates existing return reasons matching the specified filters.
Example#
Parameters#
selector
Partial<FilterableOrderReturnReasonProps>The filters specifying which return reason to delete.
selector
Partial<FilterableOrderReturnReasonProps>data
Partial<UpdateOrderReturnReasonDTO>The data to update in the return reasons.
data
Partial<UpdateOrderReturnReasonDTO>Returns#
Promise
Promise<OrderReturnReasonDTO[]>The updated return reasons.
Promise
Promise<OrderReturnReasonDTO[]>updateReturnReasons(id, data, sharedContext?): Promise<OrderReturnReasonDTO>#
This method updates an existing return reason.
Example#
Parameters#
id
stringThe ID of the return reason.
data
Partial<UpdateOrderReturnReasonDTO>The data to update in the return reason.
data
Partial<UpdateOrderReturnReasonDTO>Returns#
Promise
Promise<OrderReturnReasonDTO>The updated return reason.
Promise
Promise<OrderReturnReasonDTO>Was this page helpful?