# Purchase orders Line items-updated\_at received with NULL

**URL:** <https://community.shiphero.com/t/purchase-orders-line-items-updated-at-received-with-null/2534>\
**Category:** GraphQL API\
**Created:** [July 13, 2023, 8:00pm UTC](https://community.shiphero.com/t/purchase-orders-line-items-updated-at-received-with-null/2534 "2023-07-13T20:00:36Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![nareshbiyyam](https://avatars.discourse-cdn.com/v4/letter/n/3bc359/32.png) [@nareshbiyyam](https://community.shiphero.com/u/nareshbiyyam)\
**Post date:** [July 13, 2023, 8:00pm UTC](https://community.shiphero.com/t/purchase-orders-line-items-updated-at-received-with-null/2534/1 "2023-07-13T20:00:36Z")

</div>

Hello @sh-agent

We need your help on figuring out the data issue, as well as the logic for **updated\_at** field in Purchase order-Line Items. As we are using the purchase orders API to pull the line items data, we’re receiving **updated\_at** field as ‘null’. due to this we can’t sort the updated\_at field and we won’t be getting the recently updated data using Endcursor.

Could you provide me the logic to get the recently updated line-items data in purchase orders.

Below is the sample query with result -

query {  
purchase\_orders {  
request\_id  
complexity  
data {  
edges {  
node {  
line\_items(first: 3, sort: “updated\_at”) {  
edges {  
node {  
account\_id  
barcode  
created\_at  
expected\_weight\_in\_lbs  
fulfillment\_status  
id  
legacy\_id  
note  
option\_title  
partner\_line\_item\_id  
po\_id  
po\_number  
price  
product\_id  
product\_name  
quantity  
quantity\_received  
quantity\_rejected  
sell\_ahead  
sku  
updated\_at  
variant\_id  
vendor\_id  
vendor\_sku  
warehouse\_id  
}  
}  
pageInfo {  
startCursor  
endCursor  
hasNextPage  
hasPreviousPage  
}  
}  
}  
}  
pageInfo {  
startCursor  
endCursor  
hasNextPage  
hasPreviousPage  
}  
}  
}  
}

Output - updated\_at received as ‘ **null** ’

 ![image](https://us1.discourse-cdn.com/flex020/uploads/shiphero/original/1X/ed0bf435692eeb966c9656b9399f8219cb4bac93.png)

Please check and advise.

Thank you in advance.

---

<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:** [July 14, 2023, 3:02pm UTC](https://community.shiphero.com/t/purchase-orders-line-items-updated-at-received-with-null/2534/2 "2023-07-14T15:02:33Z")

</div>

Hello @nareshbiyyam,

Can you provide an example where you are experiencing this absence of data?

Kind regards,  
TomasFD

---

<div class="post-metadata">

**Author:** ![nareshbiyyam](https://avatars.discourse-cdn.com/v4/letter/n/3bc359/32.png) [@nareshbiyyam](https://community.shiphero.com/u/nareshbiyyam)\
**Post date:** [July 18, 2023, 4:57pm UTC](https://community.shiphero.com/t/purchase-orders-line-items-updated-at-received-with-null/2534/3 "2023-07-18T16:57:53Z")

</div>

Hi @tomasfd

I’m not sure if I can provide the Purchase order number details, that’s why I graded out the customer data. But here actually I’m trying to pull the Purchase order line items data and It returned me Updated\_at value as null.

Is the expected result, that always we’ll get the Updated\_at value as null or do we receive any timestamp.

Kindly suggest, Since we have a requirement to consume API and I need this value to be populated for determining the delta changes or newly updated data.

Thanks.

---

<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:** [July 19, 2023, 2:52pm UTC](https://community.shiphero.com/t/purchase-orders-line-items-updated-at-received-with-null/2534/4 "2023-07-19T14:52:07Z")

</div>

Hey @nareshbiyyam,

Thanks for hanging in there!

I believe Tomas Is asking for the request id for a call you’re making with the lack of data. Would you be able to share that with us, so we can investigate?

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

Best,  
RayanP
