Solved

How do you access Purchasing Details via API?

  • 30 January 2024
  • 2 replies
  • 42 views

I’m trying to view the details of a PO that’s linked to a SO line. My API call, {{api_base_uri}}/SalesOrder/SO|SO00000051?$expand=Details, works just fine. However, when I try {{api_base_uri}}/SalesOrder/SO|SO00000051?$expand=Details,Details/PurchasingDetails, I get an error stating “the given key was not present in the dictionary”. 

 

I may have been misinformed on this being the correct key, but there’s nothing online covering this topic. 

Can I please get some help? 

 

Context: I’m trying to create a collection run in Postman that creates an SO + PO, then PO links their lines. I’m on 2023 R1. 

icon

Best answer by dcomerford 30 January 2024, 18:50

View original

2 replies

Userlevel 7
Badge +12

That error is telling you thst it cannot find the Object PurchasingDetails which version of the End Point are you using as the Default 22.200.001 has this in it 

The older version dont have this object

 

@dcomerford Thanks for the reply. That was it. My api_base_uri was 17.200.001. Changing it to 22.200.001 fixed the issue. 

 

Reply


About Acumatica ERP system
Acumatica Cloud ERP provides the best business management solution for transforming your company to thrive in the new digital economy. Built on a future-proof platform with open architecture for rapid integrations, scalability, and ease of use, Acumatica delivers unparalleled value to small and midmarket organizations. Connected Business. Delivered.
© 2008 — 2024  Acumatica, Inc. All rights reserved