Solved

Why isn't Address included in the api response to the Customer MainContact endpoint?

  • 21 July 2021
  • 2 replies
  • 132 views

According to the Web Service Endpoints page, making an api call to 

Customer?%24top=100&%24skip=0&%24expand=MainContact

Should return the Address data. However, the response does not contain the Address data. It contains all of the other data listed on the Web Service Endpoints page except that. I can see the customer addressed in the UI, but they aren’t coming through in the response. Has anyone else encountered this? Is there another solution to retrieving a list of customer addresses?

Thanks!

 

icon

Best answer by stephenbologna39 22 July 2021, 16:26

View original

2 replies

Userlevel 4
Badge

Hi @RomanE 

 

Assuming you are calling the Default WS Endpoint, try the following:

 

Customer?%24top=100&%24skip=0&%24expand=MainContact/Address

 

This will instruct Acumatica to include the address associated with the MainContact referenced in the expand section of the URL.

Thank you!

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