Wish the API had something it doesn't? Post here!
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.
-
Simon Clendon
- Posts: 39
- Joined: Mon Nov 09, 2020 7:57 pm
Post
by Simon Clendon » Mon Oct 11, 2021 10:34 pm
How do I retrieve the invoice associated with a customer credit? None of the APIs return a link but the invoice is available on the UI. Am I missing something obvious?
- /api/v1.0/companies/{companyID}/customerInvoices/{customerInvoiceID}
- /api/v1.0/companies/{companyID}/invoices/

- Credit.jpg (71.31 KiB) Viewed 13260 times
-
robbertcha
- Posts: 416
- Joined: Thu Apr 15, 2021 10:07 pm
Post
by robbertcha » Mon Oct 11, 2021 10:45 pm
Hi Simon,
Customer Credit is not available on invoice API endpoint at the moment. I'll move this topic to feature request and send you an update when this feature is added and released, thank you.
Thanks.
Robbert
API Developer | simPRO Software Group
-
Simon Clendon
- Posts: 39
- Joined: Mon Nov 09, 2020 7:57 pm
Post
by Simon Clendon » Mon Oct 11, 2021 10:51 pm
Thanks, Robbert.
Credits are available on the customerInvoices API, though. I have no problem getting credits but I can't work out how to find the invoice the credit is against. In my screen shot above I want to get invoice 18.
-
robbertcha
- Posts: 416
- Joined: Thu Apr 15, 2021 10:07 pm
Post
by robbertcha » Tue Oct 12, 2021 1:00 am
Hi Simon,
For some technical issues, we intend to create a new separate endpoint for credit note instead of adding 'IsCredit' column on invoice endpoint, but you still can identify whether the invoice is credit via customerInvoice endpoint.
And also, we will send you an update when this feature is updated and released, thank you.
Robbert
API Developer | simPRO Software Group
-
Simon Clendon
- Posts: 39
- Joined: Mon Nov 09, 2020 7:57 pm
Post
by Simon Clendon » Tue Oct 12, 2021 1:18 am
Hi Robbert,
I know how to identify an invoice as credit or not - that's not the issue. My problem is I have a credit and I need to find out what invoice it is associated with.
In my screen shot I am showing a credit note with ID 30007. Note that the circled invoice ID is 18. The API that returns details on the credit note with ID 30007 does not include a field for with invoice ID value 18. That is what I need.
Clearly it is possible to get it because the UI displays it no problem.
-
Muqeet
- Posts: 772
- Joined: Mon Dec 03, 2018 3:24 am
Post
by Muqeet » Tue Oct 12, 2021 11:52 pm
Hello Simon,
I understand that you are looking for an association between an invoice and a credit note. Although you can identify, if an invoice is a regular invoice or a credit note, there is still no way in rest API where the information is exposed about retrieving an invoice for a credit note. That's precisely the reason why Robbert moved this topic to a feature request.
Muqeet
API Developer | simPRO Software Group
-
Simon Clendon
- Posts: 39
- Joined: Mon Nov 09, 2020 7:57 pm
Post
by Simon Clendon » Thu Oct 14, 2021 12:40 am
Thanks, Muqeet. It wasn't clear to me what was being moved to feature requests - the invoice API being able to pull credits, or the customerInvoices API not returning the associated invoice ID for credits. Both are desirable but the second is what I am after
