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