I’m just starting to learn GraphQL and following the schema documentation has been very helpful. I can create an order using the order_create mutation as long as only 1 line item exists. How do I put in more than 1 line_items in the mutation? I use Insomnia and the editor keeps warning me about not allowing duplicates inside the line_items object.
Curly brackets for each line item inside square brackets for an array is how it’s done. You can have 2 of the same SKU, which we don’t recommend unless they differ in price. Each line item must have its own partner_line_item_id
I hope this helps! Let me know if you have further questions!
@tomasfd Thank you for the explanation and sample code. Regarding the partner_line_item_id, is that an unique id for the order or is it unique across the account?