Skip to main content

Delete SKU Create from Shopify

POST 

/api/shopify/:integrationInstance/fulfillments/:salesOrderFulfillment/create-from-shopify/:shopifyFulfillment

Replace the SKU fulfillment with Shopify's: the SKU fulfillment is deleted (its stock movements are reversed) and Shopify's fulfillment is recorded in its place with the items and quantities Shopify shipped, so their stock is deducted again. Resolves mismatches where Shopify is the source of truth.

Not yet available to API tokens

This endpoint currently requires session authentication; Personal Access Token scope support is in progress.

Authentication: Requires Bearer token.

Both fulfillments must belong to the same order of this Shopify store; any other pairing returns 403 and nothing is changed.

If none of the items Shopify's fulfillment shipped match a line of the sales order, the request returns 422 and the SKU fulfillment is kept. Link the two fulfillments or update the Shopify tracking instead.

The new fulfillment does not send the customer a shipment notification (Shopify already sent one). Shipping cost recorded on the SKU fulfillment is lost: the response then carries a warning.

A 200 with success: true can still report that Shopify's shipment could not be recorded (for example when it predates the inventory start date); the SKU fulfillment is removed in that case, so check the order's notes for what is still unshipped.

Request​

Responses​

OK

Response Headers
    Content-Type