Can you add a referral partner with Python?

Hi,

I am using python to create a new contact but I am wondering if there is any way to add that same contact as a referral partner as well within my python script. Is there any documentation on that?

Thanks!

You can, but how you do it depends on which version fo the API you are using. FYI Affiliate = ReferralPartner.

https://developer.infusionsoft.com/docs/rest/#!/Affiliate/createAffiliateUsingPOST
https://developer.infusionsoft.com/docs/table-schema/