The aim of this case is to identify how to form REST request properly in order to create Bill with status "Balanced"
Our client is using our application, which creates requests and put data to Acumatica. Client asked if we can create invoices with status "Balanced". I checked such request with our Test Acumatica environment and it was easy to implement.
My request successfully worked and created Bill in Acumatica with status "Balanced"
However, when we do same request with client's Acumatica we get this error :
"exceptionMessage": "Bill.CashDiscountDate: 'Cash Discount Date' cannot be empty.\nBill.DueDate: 'Due Date' cannot be empty.\nBill.LocationID: 'Location' cannot be empty.\nBill.Terms: 'Terms' cannot be empty.\nBill.Vendor: 'Vendor' cannot be empty.\nBill.VendorRef: 'Vendor Ref.' cannot be empty.\nInserting
I searched and found that this error is caused by this field
When I removed it from the request it successfully worked.
My question is : what is the possible difference between our Acumatica and client's Acumatica,
because as I mentioned above same requests with Hold field are working with our system, while during
work with client's Acumatica we get this error, but when we remove "Hold" field from the request, it perfectly works
and creates Bill in system.
I also searched and found that it can be achieved by setting “Hold Documents on Entry” checkbox to false value on the “AP Preferences” (AP101000), but it did not help.
I checked client's endpoint, all fields that we need to work with are present.
What should be done to make it work with client's Acumatica same as with our environment ?
Best answer by jininView original