# What is "partner\_line\_item\_id"

**URL:** <https://community.shiphero.com/t/what-is-partner-line-item-id/759>\
**Category:** GraphQL API\
**Created:** [September 8, 2020, 11:33am UTC](https://community.shiphero.com/t/what-is-partner-line-item-id/759 "2020-09-08T11:33:38Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![khungersumit](https://sea2.discourse-cdn.com/flex020/user_avatar/community.shiphero.com/khungersumit/32/215_2.png) [@khungersumit](https://community.shiphero.com/u/khungersumit)\
**Post date:** [September 8, 2020, 11:33am UTC](https://community.shiphero.com/t/what-is-partner-line-item-id/759/1 "2020-09-08T11:33:39Z")

</div>

Hi

Could you please let me know what is **partner\_line\_item\_id**.  
I tried to create an order I guess it is a must supplied field in **line\_items** of order.

For example: here is one of my line items of an order.  
**sku: "Keyboard001"**  
**partner\_line\_item\_id: "Keyboard001**

The order created successfully with the above information, when I tried to create order again with the same line item information,  
I am getting the following error  
“errors”: [  
{  
**"message": “partner\_line\_item\_id Keyboard001 already exist”,**  
“operation”: “order\_create”,  
“field”: “order\_create”,  
“request\_id”: “5f576aed6f8e3aa840eb9c0a”,  
“code”: 9  
}  
]

---

<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:** [September 8, 2020, 1:07pm UTC](https://community.shiphero.com/t/what-is-partner-line-item-id/759/2 "2020-09-08T13:07:01Z")

</div>

Hi @khungersumit!  
The **partner\_line\_item\_id:** is a unique identifier that you have to assign to line items when creating an order. It has to be unique across all of the line items from all the orders.  
It works as an identifier for all of the line items on the account, so it cannot be repeated  
Please let me know if that doesn’t help answer the question or I could explain better  
Thanks in advance!  
Tom

---

<div class="post-metadata">

**Author:** ![khungersumit](https://sea2.discourse-cdn.com/flex020/user_avatar/community.shiphero.com/khungersumit/32/215_2.png) [@khungersumit](https://community.shiphero.com/u/khungersumit)\
**Post date:** [September 8, 2020, 1:12pm UTC](https://community.shiphero.com/t/what-is-partner-line-item-id/759/3 "2020-09-08T13:12:34Z")

</div>

Hi @tomasw

It means If I have 100 orders and each order has 2 line item then I will have to make/supply 200 unique **partner\_line\_item\_id** in each line item.

Can we also provide the “productId” or “variantId” OR that is our choice, but it has to be unique across all line items of all orders.

---

<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:** [September 8, 2020, 1:22pm UTC](https://community.shiphero.com/t/what-is-partner-line-item-id/759/4 "2020-09-08T13:22:12Z")

</div>

That is correct!  
I see that some users set it to be something like `order_id`+`item_id` or some combination that then they are able to find a purpose for it.  
But it has to be unique across all line items of all orders.

---

<div class="post-metadata">

**Author:** ![luisglerr](https://avatars.discourse-cdn.com/v4/letter/l/e9c0ed/32.png) [@luisglerr](https://community.shiphero.com/u/luisglerr)\
**Post date:** [August 4, 2022, 5:59pm UTC](https://community.shiphero.com/t/what-is-partner-line-item-id/759/5 "2022-08-04T17:59:02Z")

</div>

in the case of an order with more than 2 items how are they added to the Graphql object to create the order

should the line\_items property be duplicated on the object?

---

<div class="post-metadata">

**Author:** ![sh-agent](https://avatars.discourse-cdn.com/v4/letter/s/e47774/32.png) [@sh-agent](https://community.shiphero.com/u/sh-agent)\
**Post date:** [August 4, 2022, 8:43pm UTC](https://community.shiphero.com/t/what-is-partner-line-item-id/759/6 "2022-08-04T20:43:18Z")

</div>

Hey @luisglerr,

You would input your line items like this:

```auto
line_items: [
        {
          sku: "WT09-XS-Yellow"
          quantity: 1
          partner_line_item_id: "1124586877891122"
          price: "34.00"
        }
        {
          sku: "RK2"
          quantity: 1
          partner_line_item_id: "11245868778911225"
          price: "42.00"
        }
      ]

```

Please let me know if you have any questions or concerns!

Best,  
RayanP
