> ## Documentation Index
> Fetch the complete documentation index at: https://developers.redo.com/llms.txt
> Use this file to discover all available pages before exploring further.

# FulfillmentGroupCancelInput

> How to cancel a fulfillment group: the whole order, or some units of its items.

**idempotencyKey** `String`

Retry an item cancel with the same key to finish it without cancelling or refunding twice. 1 to 400 characters. A whole-order cancel is safe to retry without one.

**items** `[\[FulfillmentGroupCancelItemInput!\]](/docs/api-reference/v3/reference/shipping/fulfillment-group-cancel-item-input)`

Units to cancel and refund, up to 250 lines, leaving the rest to ship. Omit to cancel the whole order. Units that would leave nothing on the group cancel the whole order. Only marketplaces that can cancel single items allow it (Shopify today); others return ITEM\_CANCEL\_NOT\_SUPPORTED.

**fields**

**lineItemId** `ID!` *required*

The line item's id, `FulfillmentOrderLineItem.id` on the group.

**quantity** `Int!` *required*

How many of its units to cancel, at least 1.

**notifyCustomer** `Boolean`

Email the customer about the cancel. Defaults to false for a whole order and true for items, as in the app.

**reason** `[OrderCancelReason](/docs/api-reference/v3/reference/shipping/order-cancel-reason)`

Why the order is cancelled. Used when the whole order is cancelled. Defaults to OTHER.

**refund** `Boolean`

Refund the customer. Defaults to true. Cancelling single items always refunds them, so false returns REFUND\_REQUIRED.

**restock** `Boolean`

Return the units to the marketplace's inventory. Defaults to true for a whole order and false for items. When Redo owns the origin's inventory (WMS source of truth), a whole order always restocks and items never do.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.