Skip to main content
Answer

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

  • July 20, 2021
  • 2 replies
  • 171 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!

 

Best answer by stephenbologna39

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.

2 replies

Forum|alt.badge.img+2

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.


  • Author
  • Freshman I
  • July 22, 2021

Thank you!