Retrieving Customer Invoices

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
User avatar
EARS
Posts: 29
Joined: Mon Oct 31, 2022 4:37 am
Location: Melbourne AU

Retrieving Customer Invoices

Post by EARS » Tue May 09, 2023 11:20 pm

Hi all,

I would like some feedback regarding what others have done when retrieving customer invoices.

API call "GET /api/v1.0/companies/{companyID}/invoices/" appears to retrieve ALL invoices every time.
I was originally hoping to limit retrieval to only those invoices we hadn't seen before... using 'If-Modified-Since'???
But, unless I'm mistaken there doesn't appears to be a date/time value in the returned payload.
So I'm thinking I may need to create a local ERP register of previously seen invoices as a filtering mechanism.
Or is there a better technique available ?

I've also looked at "GET /api/v1.0/companies/{companyID}/invoices/{invoiceID}" however this doesn't answer my question either
as it implies I already known the invoice ID#.

Apologies if this topic has already been raised and answered else where... any help, guidance or advise is much appreciated.

Regards
EARS
Post Reply