I am trying to set IP country from a user's IP address but the API is responding that "ip_country" is a read-only field. How do I structure the payload to the api so that ip_country gets set? Do I use the field "ip_address"?
As mentioned here - HubSpot Community - Sunset: IP addresses will be sunset from all, as of 29th May, 2019 we have sunset IP addresses from all HubSpot APIs to maintain the privacy of contacts within HubSpot database. This means that you wouldn't be able to access it via APIs.
As mentioned here - HubSpot Community - Sunset: IP addresses will be sunset from all, as of 29th May, 2019 we have sunset IP addresses from all HubSpot APIs to maintain the privacy of contacts within HubSpot database. This means that you wouldn't be able to access it via APIs.
Actually this is a bit unclear to me since the question here is not about IP address but IP country. According to the page you linked to the following is true:
"Geo-location data (e.g. city, state, region, country, timezone, etc.) derived from the IP address will continue to remain accessible via the API and on contact records within HubSpot."
Can we send IP data to Hubspot and pull IP country from the Contacts API?