Discussions
ComboOrder error when payment amount is over the invoice balance
4 months ago by null
When executing a POST HTTP Call to the ComboOrder api for submitting an open invoice payment I get a generic error (Object reference not set to an instance of an object.) if the payment amount is over/more than the balance.
- Why the error we get is a generic one instead of describing what is really happening?
- Testing this scenario from within the iMIS UI, I see that a new invoice (Description = PrePay) including the exceeded payment amount is automatically created, why the API behaves different?
{"$type":"Asi.Soa.Core.DataContracts.ValidationResultsData, Asi.Contracts","Errors":{"$type":"Asi.Soa.Core.DataContracts.ValidationResultDataCollection, Asi.Contracts","$values":[{"$type":"Asi.Soa.Core.DataContracts.ValidationResultData, Asi.Contracts","Message":" \r\n Object reference not set to an instance of an object."}]},"Warnings":{"$type":"Asi.Soa.Core.DataContracts.ValidationResultDataCollection, Asi.Contracts","$values":[]}};
Thanks,
Diego