Add SKU to line item on draft order with custom products

I often do custom orders (draft) with custom and unique products.

I can’t add a SKU to these products from the draft page. My bookkeeping system requires SKU on all products to be able to handle it automatically.

So - can Flow add a static SKU number to all line items on a draft order that does not have a SKU already?

Hi @PureTime ,

I’m not aware of any part of the Shopify Admin API that can add SKUs to line items. They are part of the product/variant data model. When it is used on a line item, it is being referenced from the Variant that is on the line item.

You may need to look at creating a custom product/variant for each unique order for it to have a SKU. Is there another field the bookkeeping could use instead?

Hope that helps!

Yeah - but creating a product each time just for one draft order is a bit of waste of time.
The bookkeeping system cannot handle anything else.

But it would be nice to create a custom product in draft order and then just also state the SKU there.

Hi @PureTime ,

If you are fine with using a third party app to add SKU to custom product on draft order, I think my app can help with this.

The app name is Draftable (https://apps.shopify.com/draft-helper) , which has a free plan you can try out. After installing, you can go to your draft order detail page, click “More actions” > “Edit custom item info” , and edit the SKU for the custom product, and click “Apply changes” to save the change.

Edit sku of custom product

The app also contains several other features related to draft orders which might help on your draft order operations (eg: update line item properties, rearrange etc).

(It is possible to update SKU in the Shopify Admin API , check https://shopify.dev/docs/api/admin-graphql/2025-01/mutations/draftOrderUpdate))

Hope this can help!

Axel Kee (developer of the Draft Order Helper app)