Unable to insert customer invoice payment via the API

Posts about the simPRO API. Help/support/how-to etc.
Forum rules
  • Check the documentation first. Before posting questions, please check the documentation to ensure it doesn't already cover what you need.
  • No spam. All automated messages, advertisements, and links to competitor websites will be deleted immediately.
  • Post in relevant sub-forums only. Messages posted in the wrong topic area will be removed and placed in the correct sub-forum by moderators.
  • Respect other users. No flaming or abusing fellow forum members. Users who continue to post inflammatory, abusive comments will be deleted from the forum after two warnings are issued by moderators.
  • Harassment. No threats or harassment of other users will be tolerated. Any instance of threatening or harassing behavior is grounds for deletion from the forums.
  • Adult content. No profanity or pornography is allowed. Posts containing adult material will be deleted.
  • Bandwidth. All images and signatures must be 500 x 500 pixels or smaller. Posts containing over-sized images and signatures will be removed.
  • Illegal content. No re-posting of copyrighted materials or other illegal content is allowed. Any posts containing illegal content or copyrighted materials will be deleted.
Post Reply
harris
Posts: 3
Joined: Fri Dec 06, 2019 1:13 am

Unable to insert customer invoice payment via the API

Post by harris » Fri Dec 09, 2022 2:06 am

Hi team,

We have been seeing errors where we are unable to insert customer invoice payments via the API (method:CustomerPaymentInsert) , despite the invoice existing in Simpro (both in the UI and via the API using method: AccRecInvoiceRetrieve.

The API URL we use is below:
https://...simprosuite.com/api/

The API error is below:

Code: Select all

   "error": {
        "faultCode": 0,
        "faultString": "The procedure failed to execute because Argument \"Invoices\" contained the following invoice numbers that don't exist:61132"
    },
This issue only happens to some invoices, looking at the invoices to which their payments were successfully applied, we could not see meaningful differences between them which could have caused this issue.

Would you be able to assist?

Thanks
Harris
Sindre
Posts: 493
Joined: Wed Apr 20, 2022 4:51 am
Location: Brisbane

Re: Unable to insert customer invoice payment via the API

Post by Sindre » Sun Dec 11, 2022 11:07 pm

Hi Harris,
Could you please send me a private message with your build details as well as the endpoint URL and request body you are using and I can help you debugging the customer payment issue.

Thank you

Regards
Sindre
API Developer | Simpro Software Group
Post Reply