Quickstart - Call To Action
How to implement a Call To Action to Setle in your app
Retrieve Client Credentials
Check that you received a client_id
and client_secret
from the Setle team. We will assume it is for the production environment.
Haven’t received the credentials yet? Please contact the Setle team and read more about Client Credentials.
Retrieve an Access Token
With these Client Credentials, you can now fetch a new Access Token. Use the /v1/oauth/token
API endpoint details.
Send a POST request to this endpoint with the Client ID and Client Secret to obtain the Bearer token.
Sample Request:
Once obtained, use the Bearer token in the headers for subsequent requests.
Retrieve Property Data
You now have a valid token. Let’s use it to retrieve property data.
Add the Access Token to the Authorization header as shown below:
Then, call the Estate List /v1/estate/list
endpoint to retrieve a list of properties along with their details.
Processing Property Data
Now that you have retrieved property data, here are some tips on processing it:
- CRM Type: The
estate_provider_type
attribute indicates the CRM type linked to the property. - External ID: Use this attribute to match the ID from the CRM system with property information in Setle.
- Mapping: Use
estate_provider_type
andexternal_id
to correctly map property data in your system. - Renovation Availability: If the property has a
quality_label
of D, it is not suitable for renovation. In this case, disable the button leading to the renovation page. - CTA Implementation: The
referral_link
attribute can be used to add a Call-To-Action (CTA) to the client’s website, guiding users to specific information or actions.