Skip to main content

removeOrderItem

Remove an item from an order. This mutation allows you to remove an existing order item. You need to provide the ID of the order item you want to remove. The mutation will return the status of the operation and the name of the removed item. If the order item with the provided ID does not exist, it will raise an 'Order item not found' error.

Parameters:

NameTypeDescription
idIDID of the order item to remove

Errors:

ErrorDescription
Order item not foundThe order item with the provided ID does not exist

Returns:

NameTypeDescription
statusStatusResultEnumStatus of the operation
removed_itemStringThe name of the removed item
removeOrderItem(
input: RemoveOrderItemInput!
): RemoveOrderItemPayload

Arguments

removeOrderItem.input ● RemoveOrderItemInput! non-null input

Parameters for RemoveOrderItem

Type

RemoveOrderItemPayload object

Autogenerated return type of RemoveOrderItem.