ActiveCampaign / example-reseller_account_manage

ActiveCampaign Reseller Account Custom API Script: Add account, template, generate log-in link, and more.
3 stars 5 forks source link

Free Trial #2

Open rayflores opened 8 years ago

rayflores commented 8 years ago

Any way to add a free trial via the API? under the reseller account?

pevans commented 8 years ago

Not at this time, I'm afraid.

molinto commented 8 years ago

Should be able to, just set the plan to 0 (zero) on ac.api("account/add", $data) endpoint.

Eg: https://github.com/ActiveCampaign/example-reseller_account_manage/blob/master/index.php#L108

Explained in the reseller api docs here: https://www.activecampaign.com/partner/api/example.php?call=account_add

I use it in my package all the time (nodeJs): https://github.com/molinto/activecampaign-reseller/blob/master/lib/reseller.js#L86

Sharry

rayflores commented 8 years ago

:+1: that's where I ended up... the fact that it is looking for the list of plans, then $_POSTed value, but sets it for the 'free' one... i found the same thing while digging through this example. Thanks Sharry!