I am trying to find a way to change or remove custom attributes of a line item in an existing order. Our application support received a request from a user who wants to remove information related to medical care from the custom attributes of the line item 30 days after the creation of the order. I found a way to remove attributes from order or draft order, but no way to interact with line item attributes. Is there a way to solve this problem using the Admin GraphQl/Rest API?
Thanks, Nikita
@Nikita_Malyuga Did you ever figure this out?
We’re looking to do the same thing.
Hey @Jamflynt , the current options for editing an order are available in this guide here. https://shopify.dev/docs/apps/fulfillment/order-management-apps/order-editing
Currently removing line item attributes is not possible. What I would recommend here is to use order metafields to store this data as opposed to line item attributes. You’ll have more control over where and how it’s used and it can be deleted more easily without having to edit the order
Hope that helps.
- Kyle G.