I am trying to create a new customer in Acumatica using the API URL https://acumatica.ipaas.com/AcumaticaERP/entity/default/22.200.001/Customer. The request body that I am using is as follows:
However, I am getting the following error message:
"error": "Inserting 'Customer' record raised at least one error. Please review the errors.; DiscTakenAcctID: 'Cash Discount Account' cannot be empty."
The DiscTakenAcctID field in the request body is set to the ID of a valid cash discount account. I am not sure why I am getting this error.
Can anyone help me troubleshoot this issue?
Page 1 / 1
cash discount accounts are a required field in customer setup.
Double check your customer class and ensure you have a default cash discount account and default cash discount subaccount.
Most clients never use these, especially in construction where I primarily live, its related to discount credit terms (ex. 2/15 net 30 terms offering a 2% discount if a customer pays in 15 days).
Holdover from the system primarily being designed for retail / distribution.
@testingDev,
You can try the suggestion by @jsheehan56.
If you don’t want to default the Cash Discount Account, you can extend the default endpoint and map the GL Account fields and send them in the PUT request.
Below are a few screenshot of the steps,
Create an entity within Customer entity to map the GL Account fields
Map the Cash Discount Field to the entity created in the previous step
Use the payload like below to set the field when creating the Customer,
Feel free to post if you have any questions. Good Luck.!
Please Review the Customer Profile
Under GL Accounts Tab / Cash Discount Account (GL ACCOUNT CODE) Field is required
To minimized this error update your Customer Class and put GL Code on the Cash Discount Field, every time you will create a new customer it will automatically have GL Code on the field.