- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
Menu
- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
updateOrders - Order Module Reference
This documentation provides a reference to the updateOrders
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.
updateOrders(data, sharedContext?): Promise<OrderDTO[]>#
This method updates existing orders. The order IDs are specified in each order object.
Example#
Parameters#
data
UpdateOrderDTO[]The attributes to update in the order.
data
UpdateOrderDTO[]Returns#
Promise
Promise<OrderDTO[]>The updated orders.
Promise
Promise<OrderDTO[]>updateOrders(orderId, data, sharedContext?): Promise<OrderDTO>#
This method updates existing orders.
Example#
Parameters#
orderId
stringThe ID of the order to update.
data
UpdateOrderDTOThe attributes to update in the order.
data
UpdateOrderDTOReturns#
Promise
Promise<OrderDTO>The updated orders.
Promise
Promise<OrderDTO>updateOrders(selector, data, sharedContext?): Promise<OrderDTO[]>#
This method updates existing orders matching the specified filters.
Example#
Parameters#
selector
Partial<FilterableOrderProps>The filters specifying which orders to update.
selector
Partial<FilterableOrderProps>data
UpdateOrderDTOThe attributes to update in the orders.
data
UpdateOrderDTOReturns#
Promise
Promise<OrderDTO[]>The updated orders.
Promise
Promise<OrderDTO[]>Was this page helpful?