- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
Menu
- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
undoLastChange - Order Module Reference
This documentation provides a reference to the undoLastChange
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.
This method reverts an order to its last change and keep the order changes and actions not applied.
Example#
Parameters#
orderId
stringThe order's ID.
The last order change status to revert to.
Returns#
Promise
Promise<void>Resolves when the order is undone.
Was this page helpful?