Page 1 of 1
[Patched] Error with job / customer invoices endpoint
Posted: Sun Dec 06, 2020 8:05 pm
by gavynj
Hi there,
This query has been working fine up until around 2am (NZDT) this morning:
/api/v1.0/companies/{companyID}/jobs/{jobID}/invoices/{invoiceID}?columns=ID,Type,IsCredit,IsVoided,Retention
If I remove Retention from the columns parameter it works, but obviously doesn't return the Retention object.
A 500 error is now returned:
Code: Select all
{
"error": "Could not process your request. Please contact support."
}
What has changed? Our 1am import ran fine, but not since.
I will likely just remove the columns parameter so that everything is returned but would be good to know what's going on.
Cheers,
Gavyn
Re: Error with job / customer invoices endpoint
Posted: Sun Dec 06, 2020 10:12 pm
by gavynj
Further to this, it looks like all Retention data is currently showing as 0 via the API, even though the website shows the correct value:
Code: Select all
"Retention": {
"ExTax": 0,
"IncTax": 0
}
Previously imported data for the invoice I'm testing with:
Code: Select all
"Retention": {
"ExTax": 432.76,
"IncTax": 497.67
}
Re: Error with job / customer invoices endpoint
Posted: Sun Dec 06, 2020 11:30 pm
by rick.lan
Hi Gavyn,
Thank you for your message, this is caused by the latest changes we had in our core system, we are investigating the issue now and will release a patch ASAP.
cheers,
Re: Error with job / customer invoices endpoint
Posted: Mon Dec 07, 2020 6:05 am
by vaughan
This issue should now be fixed.
Please let us know if you encounter any further issues.
Re: Error with job / customer invoices endpoint
Posted: Mon Dec 07, 2020 6:52 am
by gavynj
Thanks, the query no longer returns an error, but all the retention values still seem to be $0.
Let me know if you want an examples.
Re: Error with job / customer invoices endpoint
Posted: Mon Dec 07, 2020 7:23 am
by Muqeet
Hello Gavyn,
We are investigating the issue on our end, we will let you know with any updates soon.
Re: [Patched] Error with job / customer invoices endpoint
Posted: Fri Oct 15, 2021 8:41 am
by csjohnst
Was there ever a resolution to this?
We've just come across the same
Re: [Patched] Error with job / customer invoices endpoint
Posted: Sun Oct 17, 2021 11:24 pm
by robbertcha
Hi csjohnst,
The problem has been fixed, but do you mind to provide us your build details and the invoice ID you looking at via private message? because it seems working fine on our end.
By the way, 'customerInvoices' endpoint is deprecated (we are still support it if any mistakes), please use another new endpoint for invoice.
Except credits are not yet included in the new endpoints, we have support for regular invoices like, tax invoice, progress claims etc. In addition to that we also have full support of retention claims.
New Invoice Endpoint
https://developer.simprogroup.com/apido ... 3103f46fd3
Re: [Patched] Error with job / customer invoices endpoint
Posted: Tue Oct 19, 2021 11:20 pm
by robbertcha
Hi all,
We are investigating the issue on our end now, and patch it on next release, thanks for your waiting.
API release updates
viewtopic.php?f=3&t=1568