Skip to main content
Answer

What is the endpoint to pull all contract data?

  • August 18, 2021
  • 5 replies
  • 135 views

I can’t seem to find the endpoint to pull all the contracts in the database. I specifically need a list of all contract ids and the associated customer.

I’d appreciate it if someone could endpoint me in the right direction!

Best answer by Naveen Boga

@RomanE  You can create a same Generic Inquiry with parameter as “Customer ID” and then configure the endpoint for this GI, so that you can fetch the Contract details based on the Customer ID.

 

Let me know if you have any queries.

5 replies

Naveen Boga
Captain II
Forum|alt.badge.img+19
  • Captain II
  • August 19, 2021

Hi @RomanE  Are you looking for this?


  • Author
  • Freshman I
  • August 19, 2021

@Naveen B yes!!! Is there an api endpoint to get that exact report? The only contract related endpoint I could find was ContractUsage and it doesn’t seem to have the same data.


Naveen Boga
Captain II
Forum|alt.badge.img+19
  • Captain II
  • Answer
  • August 19, 2021

@RomanE  You can create a same Generic Inquiry with parameter as “Customer ID” and then configure the endpoint for this GI, so that you can fetch the Contract details based on the Customer ID.

 

Let me know if you have any queries.


  • Author
  • Freshman I
  • August 19, 2021

@Naveen B is there a way to get all the contracts in one api call without having to query by Customer ID?


Naveen Boga
Captain II
Forum|alt.badge.img+19
  • Captain II
  • August 19, 2021

Yes @RomanE  We can do that.

In the same GI, for the “Customer ID” make it is an optional like (If user select the customer ID, then GI will shows that particular CustomerID contract details if NOT select GI will show all the customers contracts)