API Create Sales Order Return reponse "Not Enough Qty Available, Qty Available Will Go Negative!"
Hello all, please help me.
I try create SO with API but response always Not Enough Qty Available, Qty Available Will Go Negative!, i try again with another InventoryID but response is same.
I try create SO in Acumatica and works
i try in Acumatica Cloud ERP 2021 R2 Build 21.205.0063
Page 1 / 1
@abdi Okay Great, you identified the root cause of this issue. Thanks for sharing the update.
Hi @jinin and @Naveen B The problem is customization create by vendor
#FYI this API run in production mode but not run in staging mode, I will import customization from production
Thanks all for help
Yes @abdi API JSON request looks good and it is confirmed that issue causing from your customisation.
Do you have many customizations involved on the Sales Order screen?
Yes @abdi .
Please check your customization. Comment the code base one by one and identify the issue.
Hi @jinin The API runs when unpublished, so this issue is caused by customization?
Unpublish the packages and verify with the API call.
You can republish the package once you are done with the verification.
As I mentioned above, the Order creation API call, will not validate the Qty.
Share your Request JSON also for a review.
Hi @jinin I have unpublished and republished, the result is still the same
@Naveen B
Hi @abdiHave you checked Availability of those Stock items?
Hi @abdi As per your screenshot, you have done customization on this screen, can you please unpublish the package and check once?
Hi @jinin
Yes, I have tried and it works, and it uses the same product
Hi @abdi
By default, Acumatica will not validate the qty when we create an order through API. Can you please try on the SO screen to create an order with the same product?