Page 1 of 1

Create payments endpoint failing to allow payment to work with Xero integration

Posted: Thu Feb 02, 2023 12:43 am
by Audem
Hi Simpro Dev Team

I am adding a payment via the API, see the request and receipt below. But when we go to sync that payment (which fully matches the invoice in Simpro, it gives an error with the Xero integration "More than one matching invoice found for payment. Cannot apply payment."

I have recorded a detailed video showing each step and demonstrating the issue as I have reproduced it for this video. No confidential info is shown in the video, I just demonstrate the error. https://d.pr/v/G3zrOo/MgTbaz29va.

Build URL: audem.simprosuite.com
API call:

Code: Select all

{
    "Payment": {
        "PaymentMethod": 16,
        "DepositAccount": "Stripe (via Jotform)",
        "Date": "2023-02-02",
        "FinanceCharge": 0.32,
        "CheckNo": "pi_3MWqUKEDZ9ldJXcj0w98pVdC",
        "Details": "Paid via stripe via jotform"
    },
    "Notes": "Paid via stripe via jotform",
    "Invoices": [
        {
            "Invoice": 407536,
            "Amount": 1.00
        }
    ]
}
Any help would be amazing, as I do not think there is anything we can do to fix this.

Thanks
Matthew

Re: Create payments endpoint failing to allow payment to work with Xero integration

Posted: Wed Feb 22, 2023 12:49 am
by Sindre
Hi Matthew,
Sorry for our late reply.

I've had a look out your build and tried to see if there had been multiple payments being created through api that might have caused issues but I could not find anything.

When posting the payments through api make sure that the api is not called more than once in your code to avoid duplicate payments which might cause problems with you XERO integration.

If the payments have been created as usual using the API and it has not created duplicates I'm unable to help you unfortunately. We do not have access or knowledge to trouble shoot your Xero integration.

If you are still having problems with duplicate invoices matching your payment in simPRO please contact the customer support and include the video and workflow that you submitted originally.

Regards