However, when requesting this specific PO via the GraphQL API, every line item is still marked “pending.” Here’s the request_id for the example PO: 647b750fc374cc486951472e.
May we get some insight into why this is happening?
Updating this thread as well with the response I received.
The issue of having the line items return statuses such as “received” or “under received” will not be done. That is a calculation that is done on our front end. Therefore, no table exists in our database with that information to pull. You can discern that value through the API by comparing the expected and received quantity.
Please let me know if you have any questions or concerns.
May I get some context into why this won’t be done? May we get some insight into this calculation you are doing on the frontend since no table exists in your db to pull this info?
The above reply is the context I was given when asked. I think the reasoning behind that decision is that you’re able to tell if a line item is “under received”, “received”, or “over received” using the Public API already.
Ex:
if the quantity expected is 50 but you’ve received 40, it’s under received.
if the quantity expected is 50 but you’ve received 50, it’s received.
if the quantity expected is 50 but you’ve received 60, it’s over received.
Please let me know if you have any questions or concerns.