orderItemDelete
Remove an order item from an order.
Permanently deletes the specified order item and recalculates order totals. This action cannot be undone.
Possible errors:
- ORDER_NOT_FOUND: Order with the specified ID does not exist
- ORDER_ITEM_NOT_FOUND: Order item does not exist
- ORDER_ITEM_DELETE_ERROR: Failed to delete the order item due to system error
- VALIDATION_ERROR: Invalid order ID or order item ID provided
- FORBIDDEN: Insufficient permissions to modify orders
AUTH: Role=[order.OWNER,order.EDITOR]
orderItemDelete(
orderId: Int!
orderItemId: Int!
): Boolean!
Arguments
orderItemDelete.orderId
● Int!
non-null scalar
Unique identifier of the order containing the item.
Must be a valid order ID that exists in the system.
orderItemDelete.orderItemId
● Int!
non-null scalar
Unique identifier of the order item to delete.
Must be a valid order item ID that belongs to the specified order.
Type
Boolean
scalar
The Boolean
scalar type represents true
or false
.