Adding new Variant to CalulatedOrder with CustomAttributes

I am trying to add a new LineItem to an existing Order. I tried orderEditBegin mutiation, which yielded CalucaltedOrder and I can add ProductVariant using orderEditAddVariant mutation, however, the CalculatedLineItem now present in the CalculatedOrder has CustomAttributes empty and I cannot find a way to add those.
There is also a possibility to use another mutation to add CustomVariant, but it doesn’t seem to allow specifying sku for the resulting LineItem.
So, is there a way to add extra LineItem with sku and non-empty CustomAttributes to an existing Order?

  1. Start an Order Edit Session 2.Add a Custom Item (Manual Line Item with Custom Attributes) 3.Commit the Order Edit

Hey @Leon_Czolgosz,

The current options for editing orders are here: Edit existing orders

Currently, none of the available mutations inputs enable adding custom attributes to the variant, or custom items.

A couple of options would be to use the orderUpdate mutation to add order level custom attributes. Alternatively, storing custom data in order metafields may work as well.

But this won’t allow adding sku to the new ListItem, will it?

For others who might be interested in this, using GQL API 2025-07:
1). I tried adding a tag to a LineItem and it does not work.
2). I tried adding a metafield to a LineItem and it does not work.

So LineItems which do have custom attributes have had them attached at the point when the order was being created?

Thanks for sharing the testing you have been doing.

You are correct, for line items this has to be done at the time of order creation.