Issues trying to get the list of AP Uninvoiced Receipt Lines via API

I am tryin to add Receipt Lines to an invoice via the API. We noticed yesterday that the POST GetAPUninvoicedReceipts call is returning all of the receipts in the receipts array node, but only ever returns the first line from the first receipt in the lines array node. We noticed this because we ran into one where we needed the second line from the fourth receipt.

I tried running the GetAPUninvoicedReceiptsLines as well, to see if I could look through the receipts, and find the correct line. But that only ever errors out (even on the API test page) with the following error:
Object reference not set to an instance of an object. (NullReferenceException).

Anyone have any thoughts on how to get all of the uninvoiced receipt lines so I can loop through them?

Looks like I got this one figured out. I was able to use the GetAPUninvoicedReceipts receipt data to loop through and call the OData GET /Receipts({Company},{VendorNum},{PurPoint},{PackSlip})/RcvDtls API. Using that, I can get each packing slips line data.

Guess I just needed to take a break and stop working on it for a minute… :smiley: