Hi Team.
We recently integrated Simpro and as part of it we are pulling the invoices based on the if-modified-since header. We went this approach as per the forum suggestion. Now we ended up having another issue. When the job status is modified/changed, it also updates the related invoices. This misleading to pull the older invoices.
How do we avoid this? any suggestions would be highly appreciated.
Thanks,
How to avoid old invoices being pulled?
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.
-
avinash.walkerscott
- Posts: 17
- Joined: Tue Mar 26, 2024 8:49 pm
- Location: New Zealand
How to avoid old invoices being pulled?
Cheers
Avinash
Avinash
-
SimproAPITeam
- Posts: 831
- Joined: Wed May 01, 2024 2:31 am
Re: How to avoid old invoices being pulled?
Hi Avinash,
I've tested this by changing the status on a related job through Simpro and the API. I can not see that the status update is changing the modified date of an invoice. I tested with some other fields as well without affecting invoices.
Could it be that you are making an updating the invoices in the same workflow?
If you are still having issues please send some more information with some examples of your workflow.
Regards
I've tested this by changing the status on a related job through Simpro and the API. I can not see that the status update is changing the modified date of an invoice. I tested with some other fields as well without affecting invoices.
Could it be that you are making an updating the invoices in the same workflow?
If you are still having issues please send some more information with some examples of your workflow.
Regards
Simpro API Team | Simpro Software Group
-
avinash.walkerscott
- Posts: 17
- Joined: Tue Mar 26, 2024 8:49 pm
- Location: New Zealand
Re: How to avoid old invoices being pulled?
Hi team.
It happened again. I have attached the log with details.
Its only the Job has been modified but the invoices are pulled over with the job modified date.
We are using the one of the request headers to pull the invoices:
If-Modified-Since: Wed, 11 Jul 2024 08:20:24 +12
Log file link: https://file.io/6F5IUMB7UeYj
Thanks,
It happened again. I have attached the log with details.
Its only the Job has been modified but the invoices are pulled over with the job modified date.
We are using the one of the request headers to pull the invoices:
If-Modified-Since: Wed, 11 Jul 2024 08:20:24 +12
Log file link: https://file.io/6F5IUMB7UeYj
Thanks,
Cheers
Avinash
Avinash
-
SimproAPITeam
- Posts: 831
- Joined: Wed May 01, 2024 2:31 am
Re: How to avoid old invoices being pulled?
Hi Avinash,
Can you please share the Simpro build details via private message so we can raise an investigation ticket internally.
Regards.
Can you please share the Simpro build details via private message so we can raise an investigation ticket internally.
Regards.
Simpro API Team | Simpro Software Group
-
avinash.walkerscott
- Posts: 17
- Joined: Tue Mar 26, 2024 8:49 pm
- Location: New Zealand
Re: How to avoid old invoices being pulled?
Hi,
Can you help me with finding the details you needed? Where in Simpro I will find the details about the build.
Thanks,
Can you help me with finding the details you needed? Where in Simpro I will find the details about the build.
Thanks,
Cheers
Avinash
Avinash
-
SimproAPITeam
- Posts: 831
- Joined: Wed May 01, 2024 2:31 am
Re: How to avoid old invoices being pulled?
Hi,
It's part of the url when you log into Simpro. Usually your company name or similar.
Regards
It's part of the url when you log into Simpro. Usually your company name or similar.
Regards
Simpro API Team | Simpro Software Group
DEVELOPER CENTER