# Purchase\_order\_update with new line items

**URL:** <https://community.shiphero.com/t/purchase-order-update-with-new-line-items/750>\
**Category:** GraphQL API\
**Created:** [September 4, 2020, 2:58pm UTC](https://community.shiphero.com/t/purchase-order-update-with-new-line-items/750 "2020-09-04T14:58:07Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![lpedretti](https://avatars.discourse-cdn.com/v4/letter/l/7ea924/32.png) [@lpedretti](https://community.shiphero.com/u/lpedretti)\
**Post date:** [September 4, 2020, 2:58pm UTC](https://community.shiphero.com/t/purchase-order-update-with-new-line-items/750/1 "2020-09-04T14:58:07Z")

</div>

Hi

I’m running a mutation to update a PO, however if i add a line item it seems to break.

mutation {  
purchase\_order\_update ( data: { line\_items:[{sku:“9454513215464”, quantity:400, price:“2.22”},  
{sku:“759321539248”, quantity:500, price:“8”}]  
discount:“0”  
shipping\_price:“0”  
po\_id:“UHVyY2hhc2VPcmRlcjo1NjU2MzU=” } ) {  
request\_id  
complexity  
purchase\_order {  
id  
po\_number  
warehouse\_id  
vendor\_id  
po\_date  
fulfillment\_status  
created\_at  
line\_items{  
edges{  
node{  
sku  
quantity  
}

}

}

}

```
    }
            }

```

Already checked, both sku’s are there, however the error is

{  
“errors”: [  
{  
“message”: “Invalid SKU 9454513215464, no line item exists for the purchase order 565635”,  
“operation”: “purchase\_order\_update”,  
“field”: “purchase\_order\_update”,  
“request\_id”: “5f5255d3c86f1f8397263392”,  
“code”: 5  
}  
],  
“data”: {  
“purchase\_order\_update”: null  
}  
}

How can i add a line item to the purchase order?

I already searched through the schema using Altair but there seems to be no mutation for this operation.

Thanx!

---

<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 4, 2020, 3:37pm UTC](https://community.shiphero.com/t/purchase-order-update-with-new-line-items/750/2 "2020-09-04T15:37:56Z")

</div>

Hi @lpedretti!  
That is because currently, we don’t allow new products to be added to the PO with that mutation, we only allow already added products to get updated.  
I logged a Feature Request for this to be added. It will be a mutation similar yo what we have for orders --\> `order_add_line_items` Mutation (in this case `purchase_order_add_line_items` Mutation)  
I will let you know as soon as I have a response for this, in the meantime, you will need to add new products using the app and then if you want to edit quantities for existing SKUs the `purchase_order_update` will work.  
Thanks in advance!  
Tom

---

<div class="post-metadata">

**Author:** ![Edwin](https://avatars.discourse-cdn.com/v4/letter/e/73ab20/32.png) [@Edwin](https://community.shiphero.com/u/Edwin)\
**Post date:** [October 22, 2021, 9:11am UTC](https://community.shiphero.com/t/purchase-order-update-with-new-line-items/750/3 "2021-10-22T09:11:57Z")

</div>

Hi ShipHero team, may we know the estimated timeframe for the launch of this feature? We are in the midst of integrating ShipHero with our systems and being able to add or delete lines from POs is a critical part of our workflow.

Fingers-crossed that given that the feature request was raised a year ago, it would be sometime soon.

---

<div class="post-metadata">

**Author:** ![Theresa](https://sea2.discourse-cdn.com/flex020/user_avatar/community.shiphero.com/theresa/32/377_2.png) [@Theresa](https://community.shiphero.com/u/Theresa)\
**Post date:** [October 26, 2021, 6:09pm UTC](https://community.shiphero.com/t/purchase-order-update-with-new-line-items/750/4 "2021-10-26T18:09:39Z")

</div>

I will check on this

---

<div class="post-metadata">

**Author:** ![Edwin](https://avatars.discourse-cdn.com/v4/letter/e/73ab20/32.png) [@Edwin](https://community.shiphero.com/u/Edwin)\
**Post date:** [November 16, 2021, 8:46pm UTC](https://community.shiphero.com/t/purchase-order-update-with-new-line-items/750/6 "2021-11-16T20:46:05Z")

</div>

Hi Theresa are there updates?

---

<div class="post-metadata">

**Author:** ![tomasfd](https://avatars.discourse-cdn.com/v4/letter/t/5daacb/32.png) [@tomasfd](https://community.shiphero.com/u/tomasfd)\
**Post date:** [November 18, 2021, 3:12pm UTC](https://community.shiphero.com/t/purchase-order-update-with-new-line-items/750/7 "2021-11-18T15:12:32Z")

</div>

Hello @Edwin!  
Unfortunately, there are still no updates on the ETA.  
I will request one and let you know as soon as I get an answer from the team.  
Have a great day!  
Tomas
