Adding Line Item to existing order with Shopify Python API

Santa
Tourist
9 0 1

Hi,

I have a python script that I use to pull information from existing orders. I'm wondering if there's a way to add a line item to an order after I pull it?

I'm able to add note attributes with the following:

order.note_attributes.append(shopify.NoteAttribute({'name':'name','value':'value'}) )

 

but I can't figure out how to add a line item.

Does anyone know of a way to do that?

Thanks

0 Likes