Question

Adding Vendor GL Account field via REST API

  • 14 June 2023
  • 2 replies
  • 72 views

I’m attempting to add a new Vendor via the REST API. I receive the error:

DiscTakenAcctID: 'Cash Discount Account' cannot be empty

This is a required field located under the GL Accounts tab. However, the field does not appear when getting the list of Vendors via the REST API. How should the JSON be structured to include this field when adding a new Vendor via the REST API?


2 replies

Userlevel 3
Badge

I suggest defaulting this in the Vendor Class that you are using for these new Vendors. This way you don’t need to explicitly set it in your API call.

 

Userlevel 7
Badge +4

@cjprindle, You can extend the default endpoint and add GLAccount fields to it. For more details on extending the endpoint kindly refer, 

Feel free to post if you have any questions/doubts.

Good Luck,

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