Skip to main content
Answer

GET PurchaseReceipt using POOrderNbr

  • May 15, 2024
  • 2 replies
  • 53 views

Forum|alt.badge.img+2

I’m trying to use Postman to retrieve a PurchaseReceipt but the only way I’ve been able to do this is by filtering by the ReceiptNbr.  Is there a way to filter by POOrderNbr?

Here's what works successfully:
/entity/Default/22.200.001/PurchaseReceipt?$filter=ReceiptNbr eq 'PR00153430'&$expand=Details

This returns an error ("The parent value for a property access of a property 'POOrderNbr' is not a single value. Property access can only be applied to a single value"):
/entity/Default/22.200.001/PurchaseReceipt?$expand=Details&$filter=Details/POOrderNbr eq 'PO53414'

 

 

Best answer by Vignesh Ponnusamy

@bpgraves,

Alternatively, you can create a Generic Inquiry to filter and list the detail lines. Then map the GI to the endpoint to retrieve it from API.

2 replies

Dmitrii Naumov
Acumatica Moderator
Forum|alt.badge.img+7

@bpgraves filtering on details is not supported


Vignesh Ponnusamy
Acumatica Moderator
Forum|alt.badge.img+5

@bpgraves,

Alternatively, you can create a Generic Inquiry to filter and list the detail lines. Then map the GI to the endpoint to retrieve it from API.