Skip to main content
← All developer updates
improvement

revertFulfillmentToAllocated Refuses Draft Fulfillments

revertFulfillmentToAllocated used to accept a draft fulfillment. The fulfillment moved to allocated without claiming any stock, so Available to Sell was too high. The mutation now accepts only fulfillments that are ready, in progress, or failed to fulfill.

It returns a 422 for every other state. A draft fulfillment gets a message that it does not hold inventory and should be allocated instead. An allocated fulfillment gets a message that it is already allocated. If your integration calls this mutation on drafts, allocate them instead. Ready, in progress, and failed to fulfill fulfillments behave as before.