Forum
Community Login
Infusionsoft Community
Welcome, Guest
Please Login or Register.    Lost Password?
Go to bottom Post Reply Favoured: 0
TOPIC: Affiliates/referrals
#6707
wdepartment (User)
Fresh Boarder
Posts: 2
graphgraph
User Offline Click here to see the profile of this user
Affiliates/referrals 4 Months ago Karma: 0  
I am trying to add affiliate referrals when someone is signing up through the API, but cannot find documentation on how to do this. Any help is appreciated. Thanks.
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#6709
InfusionPros.com (User)
Expert Boarder
Posts: 50
graphgraph
User Offline Click here to see the profile of this user
Re:Affiliates/referrals 4 Months ago Karma: 3  
 
Report to moderator   Logged Logged  
 
Infusionsoft Integration and Setup Services
Infusionpros llc
http://infusionpros.com
infusionpros@gmail.com

Steve
  The administrator has disabled public write access.
#6719
wdepartment (User)
Fresh Boarder
Posts: 2
graphgraph
User Offline Click here to see the profile of this user
Re:Affiliates/referrals 4 Months ago Karma: 0  
thanks for your reply, but that's not exactly what I'm looking for.

given the affiliate id, when someone signs up how do I mark that new contact as an affiliate referral? In other words, where do I pass the affiliate id to the API to track this? thanks.
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#7897
djcrazysk8er (User)
Fresh Boarder
Posts: 3
graphgraph
User Offline Click here to see the profile of this user
Re:Affiliates/referrals 1 Month, 2 Weeks ago Karma: 0  
Here is how I am doing it using the API.

$dateSet = date("Ymd",mktime(0, 0, 0, date("m"), date("d"), date("Y")));
$referral = array(
'ContactId'=>$user_infusionsoft_id,
'AffiliateId'=>$affiliate_id,
'DateSet'=>$dateSet,
'Source'=>"Website",
'Type'=>"2"
);
$connId = $app->dsAdd("Referral",$referral);
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#8465
TimTurner (User)
Senior Boarder
Posts: 27
graphgraph
User Online Now Click here to see the profile of this user
Re:Affiliates/referrals 1 Week, 4 Days ago Karma: 1  
For the referral table...

Can you tell me what Type = 2 is vs. Type = 1 or any other types....

I don't see an explanation of the possible types in the api field documentation.

This page:
http://www.infusionsoft.com/fusebox/api/field_access.php?table=Referral

Tells nothing of what types should be used.
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#8479
miked (User)
Infusionite
Posts: 200
graphgraph
User Offline Click here to see the profile of this user
Re:Affiliates/referrals 1 Week, 4 Days ago Karma: 12  
From api_field_access.xml:

Referral Types
0 = cookie
1 = permanent
2 = manual
 
Report to moderator   Logged Logged  
 
"Marketing" Team Lead
Software Engineer II
  The administrator has disabled public write access.
#8529
techportal (User)
CMAC
Posts: 226
graphgraph
User Offline Click here to see the profile of this user
Re:Affiliates/referrals 1 Week ago Karma: 7  
djcrazysk8er wrote:
$dateSet = date("Ymd",mktime(0, 0, 0, date("m"), date("d"), date("Y")));

Why not just:
Code: :

 $dateSet date("Ymd");



In your example, you are calling the date() function 4 times and the mktime() once, only to then discard everything in favor of date("Ymd"):

Best,
Bob
 
Report to moderator   Logged Logged  
 
Last Edit: 2009/11/14 01:08 By techportal.
 
Bob Keen
https://www.InfusionWP.com - TurboCharge InfusionSoft with WordPress Membership Sites!

http://www.infusionsoftkunaki.com - Full Kunaki/Infusionsoft Gateway Solution

http://infusionsoft1clickupsell.com/ - Don't miss a launch and don't lose a single sale
  The administrator has disabled public write access.
Go to top Post Reply
Powered by FireBoardget the latest posts directly to your desktop