Funnel Service


Funnel Service is used to add contacts to your sequences


FunnelService.achieveGoal

Returns the result of a goal being achieved.

Required Parameters

Parameter Name Type Definition
key String Your Infusionsoft API key
Integration string The integration name of the goal
Call Name string The call name of the goal
contactId int The id of the contact you want to add to a sequence.

Sample Request

<?xml version='1.0' encoding='UTF-8'?>
<methodCall>
  <methodName>FunnelService.achieveGoal</methodName>
  <params>
    <param>
      <value><string>privateKey</string></value>
    </param>
    <param>
      <value><string>Integration</string></value>
    </param>
    <param>
      <value><string>CallName</string></value>
    </param>
    <param>
      <value><int>contactId</int></value>
    </param>
  </params>
</methodCall>

Sample Response

<?xml version='1.0' encoding='UTF-8'?>
<methodResponse>
  <params>
    <param>
      <value>
        <array>
          <data>
            <value>
              <struct>
                 <member>
                     <name>success</name>
                     <value><boolean>1</boolean></value>
                  </member>
                  <member>
                     <name>msg</name>
                     <value></value>
                  </member>
                  <member>
                     <name>funnelId</name>
                     <value><i4>175</i4></value>
                  </member>
                  <member>
                      <name>goalId</name>
                      <value><i4>3</i4></value>
                  </member>
                  <member>
                      <name>flowStart</name>
                      <value><array><data>
                           <value>
                             <struct>
                               <member>
                                 <name>success</name>
                                 <value><boolean>1</boolean></value>
                               </member>
                               <member>
                                 <name>msg</name>
                                 <value></value>
                               </member>
                               <member>
                                 <name>flowId</name>
                                 <value><i4>10</i4></value>
                               </member>
                             </struct>
                           </value>
                         </data>
                       </array>
                     </value>
                   </member>
           -        <member>
                     <name>flowStop</name>
                     <value>
                     <array>
                       <data>
                         <value>
                           <struct>
                             <member>
                               <name>success</name>
                               <value><boolean>0</boolean></value>
                             </member>
                             <member>
                               <name>msg</name>
                               <value>No Sequences were configured to be stopped by this Goal.</value>
                             </member>
                             <member>
                               <name>flowId</name>
                               <value><i4>0</i4></value>
                              </member>
                           </struct>
                         </value>
                       </data>
                     </array>
                   </value>
                 </member>
               </struct>
             </value>
           </data>
         </array>
       </value>
     </param>
   </params>
 </methodResponse>

PHP iSDK Sample

$Integration = 'test';
$callName = 'goal';
$cid = 123;

$app->achieveGoal($Integration, $callName, $cid);