- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
Menu
- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
cancel - Order Module Reference
This documentation provides a reference to the cancel
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.
cancel(orderId, sharedContext?): Promise<OrderDTO[]>#
This method sets the status of orders to canceled
.
Example#
Parameters#
orderId
string[]The orders' IDs.
Returns#
Promise
Promise<OrderDTO[]>The canceled orders.
Promise
Promise<OrderDTO[]>cancel(orderId, sharedContext?): Promise<OrderDTO>#
This method sets the status of an order to canceled
.
Example#
Parameters#
orderId
stringThe order's ID.
Returns#
Promise
Promise<OrderDTO>Represents the completion of an asynchronous operation
Promise
Promise<OrderDTO>Was this page helpful?