Skip to main content
Solved

REST API: how do create the General, Billing, and Shipping tab data for a Customer?

  • 5 September 2024
  • 4 replies
  • 39 views

For General: SOAP has GeneralPrimaryContact, GeneralAccountInfo, GeneralAccountAddress, GeneralAccountInfoPhoneType1, GeneralAdditionalAccountInfoPhone1Type, GeneralAdditionalAccountInfoExtRefNbr

For Billing: SOAP has BillingBillToInfo, BillingBillToAddress

For Shipping: SOAP has ShippingShipToInfo, ShippingShipToAddress

Where are these in REST?  Do I need to $expand something to have access?  What are the names?

Also, what the difference between a MainContact and PrimaryContact?

Hi @bpgraves ,
 

To get the contact, address, billing, and shipping details, you need to use expand. Also, use filters to specify conditions like CustomerID, CustomerName or other fields.

 

Please see the example URL provided below.

Method -GET,

Url -  .. /entity/Default/20.200.001/Customer?$expand=MainContact,MainContact/Address,ShippingContact,&$filter=MainContact/Email eq 'ap@altaace.con'


Maybe examples in this chapter can help: https://help.acumatica.com/(W(209))/Help?ScreenId=ShowWiki&pageid=e3e19ea8-4b3e-40e6-954b-1d51e1426062


None of the answers given refer to the names I was asking for or address any differences between MainContact and PrimaryContact.


Hi  @bpgraves ,

  • MainContact: The general and default contact for overall communication, representing the customer or entity at a high level.
  • PrimaryContact: A specific contact for particular purposes, which can vary by transaction type (billing, shipping, etc.).

Reply