Hi Everyone!
I am trying to integrate our rental software’s (Point of rental) API with Make.com. I have reviewed their documentation but am having trouble understanding how to implement filtering.
**THE DOCUMENTATION: ** HERE
DATA I HAVE: ContactID
DATA I WANT: ContractID
GOAL: My goal is to get the contRact ID by using the ContactID.
Currently I have it set up, so we use the contactid to then get the customer id. I was trying to then use some piece of the customerid or another id it returned to find the contract id to get that information. I added screenshots of both the set ups and i replaced the real api key with APIKEY for security.
WHAT I HAVE TRIED:
I have tried to use their “Retrieve a list of Contracts” and filter through using the id by doing https://api.pointofrental.com/v1/apikey/contracts?ContactId==2345. I have also tried to add it as a Query by making the name ContactID and the value 2345. I have tried doing these both included and one at a time. I don’t get an error back, i just get given unfiltered data.
This was their example in the api docs of using filtering:
Basic Filter Below is a general example of a filter that would retrieve customers with the name of ‘John Doe’:
GET /apikey/customers
X-Filter: [
{
‘field’: ‘Name’,
‘type’: ‘==’,
‘value’: ‘John Doe’
}
]
Second example:
GET /apikey/customers
X-Filter: [
{
‘type’: ‘AND’,
‘value’: [
{
‘field’: ‘Emails.Email’,
‘type’: ‘NOTNULL’,
},
{
‘field’: ‘CreatedDateTime’,
‘type’: ‘>’,
‘value’: ‘2024-01-01T00:00:00Z’
}
]
}
]
what the customer module gives back:
SECOND MODULE // CUSTOMER ID
FIRST MODULE // CONTACT ID