Skip to main content

revertFulfillmentToDraft

Reverts a fulfillment to draft state in the V2 fulfillments state machine.

Transitions a fulfillment from "allocated" back to "draft" state. Allocated inventory is automatically released during the revert.

Requirements

  • User must have revert_fulfillment_to_draft permission
  • Valid brand context must be provided (via argument or X-Brand-Id header)
  • Fulfillment must exist and be in "allocated" state

Arguments

  • fulfillment_id (required): The ID of the fulfillment to revert
  • order_id (required): The ID of the order the fulfillment belongs to

Behavior

  • Transitions fulfillment from "allocated" to "draft" state
  • Releases all allocated inventory
  • Returns the reverted fulfillment
revertFulfillmentToDraft(
input: RevertFulfillmentToDraftInput!
): OrderFulfillment!

Arguments

revertFulfillmentToDraft.input ● RevertFulfillmentToDraftInput! non-null input common

Parameters for RevertFulfillmentToDraft

Type

OrderFulfillment object orders

This type represents an order fulfillment. An order can have multiple fulfillments, each one associated with a warehouse and a party that fulfilled the order.