- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
Menu
- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
deleteOrderLineItems - Order Module Reference
This documentation provides a reference to the deleteOrderLineItems
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.
deleteOrderLineItems(itemIds, sharedContext?): Promise<void>#
This method deletes line items by their IDs.
Example#
Parameters#
itemIds
string[]The IDs of the line items to delete.
Returns#
Promise
Promise<void>Resolves when the line items are deleted successfully.
deleteOrderLineItems(itemId, sharedContext?): Promise<void>#
This method deletes a line item by its ID.
Example#
Parameters#
itemId
stringThe line item's ID.
Returns#
Promise
Promise<void>Resolves when the line item is deleted successfully.
deleteOrderLineItems(selector, sharedContext?): Promise<void>#
This method deletes line items that match the specified filters.
Example#
Parameters#
selector
Partial<FilterableOrderLineItemProps>The filters specifying which line items to delete.
selector
Partial<FilterableOrderLineItemProps>Returns#
Promise
Promise<void>Resolves when the line items are deleted successfully.
Was this page helpful?