HomeGuidesAPI ReferenceChangelogDiscussions
GuidesiMIS ProfessionaliMIS EnterpriseClient SupportLog In
Discussions
These docs are for v20.3.44. Click to read the latest docs for v20.3.192.

Discussions

Ask a Question
Back to All

ComboOrder error when payment amount is over the invoice balance

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.

  1. Why the error we get is a generic one instead of describing what is really happening?
  2. 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

Contact us
Copyright © Advanced Solutions International, All rights reserved.