'lead_source_id' in infusionsoft returns "null"

I’m using current version of infusionsoft, How to retrieve “lead_source_id” from the contact? Or how to set “lead_source_id” manually in infusionsoft free trial account?

Hi @Divya_R, lead_source_id is an optional property so if you’re using the Retrieve a Contact endpoint you’ll need to append ?optional_properties=lead_source_id to your request URL so that the lead source Id will be included in the response.

In order to set the lead source id, you would set the lead_source_id property on the contact when using the Create a Contact or Update a Contact endpoints. Please note that once this field is set you are not able to change it.