InfusionSoft API Lead Source

1.4k views Asked by At

I've inherited some code involving InfusionSoft API. I cannot find anywhere in the documentation where they got the name for the field inf_field_Email, or any other field names.

Tried: I've looked through the source code of their API with XML RPC, tried to signup on their forums but I cannot post, and I cant find in the documentation where these field names might be. Is there a list for these field names? Does anyone know where these field names might be?

I can: create a Contact with an email fine, but I can't figure out how to add the LeadSource. Can I use a URL parameter or POST value?

This is doing a cURL call:

    <?php

    // ...

    $postData = array(
        'inf_form_xid' => $this->formId,
        'infusionsoft_version' => $this->version,
        'referrer' => 'https://'. $this->appName . '.infusionsoft.com/app/form/iframe/' . $this->formId,
        'inf_field_Email' => $email, 
        'inf_field_LeadSource' => 'TEST: "LeadSource"',
        'inf_field_Lead_Source' => 'TEST: "Lead_Source"'
    );

In fact, as I look at type this, it almost appears as if the previous person loaded an iframe with a pre-built form and used that to post data. Hmmm.

1

There are 1 answers

1
Bradley Ullery On BEST ANSWER

This code is submitting an Infusionsoft web form. This is not considered Infusionsoft API development and you will not find any documentation on the Infusionsoft API site.

When adding the Lead Source to a web form, Infusionsoft will show a select control with the id/name of "inf_field_LeadSourceId".

In order to add the Lead Source data to Infusionsoft, you will need to update the web form to include the Lead Source field. The web form is most likely in a Campaign Builder Campaign or a legacy web form (if it is really old).