Hi SIMPRO,
I've looked at the API documentation and it appears you have to pass in each get to the API with the individual customer ID to get the contracts pertaining to that customer.
Is it possible to just call the entire table? Or this the only way of getting contracts?
/api/v1.0/companies/{companyID}/customers/{customerID}/contracts/
http://developer.simprogroup.com/apidoc ... d558e57567
Retrieving Contract Records All Question
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.
-
Tiago Valente
- Posts: 89
- Joined: Wed Sep 25, 2019 4:30 am
Re: Retrieving Contract Records All Question
Hi Tiago,
Currently that's the only way to load customer contracts, one at a time. We could work on an endpoint which would list all contracts with customer IDs in future, like /customerInvoices, etc
I am moving this topic to feature requests.
Currently that's the only way to load customer contracts, one at a time. We could work on an endpoint which would list all contracts with customer IDs in future, like /customerInvoices, etc
I am moving this topic to feature requests.
Muqeet
API Developer | simPRO Software Group
API Developer | simPRO Software Group
-
Tiago Valente
- Posts: 89
- Joined: Wed Sep 25, 2019 4:30 am
Re: Retrieving Contract Records All Question
Thank you
I'll loop each of the records.
Will the contracts be specific to the company IDs or that's irrelevant? Jobs are specific to the company IDs for instance
I'll loop each of the records.
Will the contracts be specific to the company IDs or that's irrelevant? Jobs are specific to the company IDs for instance
Re: Retrieving Contract Records All Question
There is no relevance between contracts and companies. Contract is directly related to a customer.
Muqeet
API Developer | simPRO Software Group
API Developer | simPRO Software Group
-
Tiago Valente
- Posts: 89
- Joined: Wed Sep 25, 2019 4:30 am
Re: Retrieving Contract Records All Question
Thought so, thanks for confirming
-
gavinhodge
- Posts: 28
- Joined: Mon Apr 27, 2020 1:27 am
Re: Retrieving Contract Records All Question
Hi, I'd like to add my +1 to this feature request. I have a customer wanting to export an up-to-date list of contracts, and it's not currently practical via the API when a request per-customer is required.
Thanks in advance,
Gavin.
Thanks in advance,
Gavin.
DEVELOPER CENTER