# Shipment\_Create Line\_item\_ids format

**URL:** <https://community.shiphero.com/t/shipment-create-line-item-ids-format/1212>\
**Category:** Getting Started\
**Created:** [March 22, 2021, 2:35pm UTC](https://community.shiphero.com/t/shipment-create-line-item-ids-format/1212 "2021-03-22T14:35:07Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![BrownMFG](https://avatars.discourse-cdn.com/v4/letter/b/7c8e57/32.png) [@BrownMFG](https://community.shiphero.com/u/BrownMFG)\
**Post date:** [March 22, 2021, 2:35pm UTC](https://community.shiphero.com/t/shipment-create-line-item-ids-format/1212/1 "2021-03-22T14:35:08Z")

</div>

How do I format the line\_item\_ids section of th eShipment\_Create mutation when I have more than one item? The example in the documentation only has one item like line\_item\_ids: “111223344”. I tried separating them with a comma like line\_item\_ids: “111223344”, “111223344” but got a syntax error expecting a name for the second item id.

---

<div class="post-metadata">

**Author:** ![tomasw](https://sea2.discourse-cdn.com/flex020/user_avatar/community.shiphero.com/tomasw/32/248_2.png) [@tomasw](https://community.shiphero.com/u/tomasw)\
**Post date:** [March 23, 2021, 1:04pm UTC](https://community.shiphero.com/t/shipment-create-line-item-ids-format/1212/2 "2021-03-23T13:04:24Z")

</div>

Hi @BrownMFG!  
Try sending them as an array:

`line_items: [{ line_item_id: "111223344", quantity: 1 },{ line_item_id: "111223345", quantity: 1 }]`

Please let us know if that still doesn’t work.  
Thanks in advance!  
Tom

---

<div class="post-metadata">

**Author:** ![BrownMFG](https://avatars.discourse-cdn.com/v4/letter/b/7c8e57/32.png) [@BrownMFG](https://community.shiphero.com/u/BrownMFG)\
**Post date:** [March 23, 2021, 1:47pm UTC](https://community.shiphero.com/t/shipment-create-line-item-ids-format/1212/3 "2021-03-23T13:47:50Z")

</div>

Hi @tomasw,  
That call did succeed but in Shiphero, the shipment says there is only one item in the shipment when I sent two. Do you know why that is? The request id is 6059f09bb09d2ec31ed32613.

---

<div class="post-metadata">

**Author:** ![tomasw](https://sea2.discourse-cdn.com/flex020/user_avatar/community.shiphero.com/tomasw/32/248_2.png) [@tomasw](https://community.shiphero.com/u/tomasw)\
**Post date:** [March 30, 2021, 1:40pm UTC](https://community.shiphero.com/t/shipment-create-line-item-ids-format/1212/4 "2021-03-30T13:40:01Z")

</div>

Hi @BrownMFG!  
I apologize for the delayed response about this

Try by separating the line\_item\_ids with {}

It looks like for that `request_id` it has:

`line_items: [{ line_item_id: "TGluZUl0ZW06NDk0MDE5NTUz", quantity: 1 ,line_item_id: "TGluZUl0ZW06NDk0MDE5NTUy", quantity: 1 }]`

And should be

`line_items: [{ line_item_id: "TGluZUl0ZW06NDk0MDE5NTUz", quantity: 1} ,{ line_item_id: "TGluZUl0ZW06NDk0MDE5NTUy", quantity: 1 }]`

Let us know if that still doesn’t work  
Thanks again!  
Tom

---

<div class="post-metadata">

**Author:** ![BrownMFG](https://avatars.discourse-cdn.com/v4/letter/b/7c8e57/32.png) [@BrownMFG](https://community.shiphero.com/u/BrownMFG)\
**Post date:** [March 30, 2021, 6:55pm UTC](https://community.shiphero.com/t/shipment-create-line-item-ids-format/1212/5 "2021-03-30T18:55:03Z")

</div>

Hi @tomasw ,  
That seems to have worked! Thank you very much.
