Purchase Order Lot Quantities

I am attempting to create a receipt for purchase orders for clients that contains the lots and quantities of the lots received. I see that within the PO query, I am able to add the LotConnection for line items. However, I do not see a quantity per lot. Is there a way to retrieve the quantity per lot for a purchase order?

{
  purchase_order(id: "string", po_number: "string", analyze: true) {
    request_id
    complexity
    data {
      id
      line_items {
        edges {
          node {
            quantity_received
            expiration_lots {
              edges {
                node {
                  name
                }
              }
            }
          }
          cursor
        }
      } 
    }
  }
}

Hello @Nabelops!

Let me investigate if there is a way to achieve that.

I will loop back to you once I have an answer.

Have a nice day!
TomasFD

Hello @Nabelops!

Unfortunately, that information is not visible in the API right now. You could pull it from inventory changes, but that would mean parsing the response, getting the reason field and filtering on your end those that read: ‚ÄúReceived from Purchase Order purchaseOrderName‚ÄĚ.

I will move this post to the Feedback area though and treat it as that if that is ok with you.

I will also forward this feedback to the team.

Kind regards,
TomasFD