Support

Use our Support system


Look for an answer in our Knowledge Base. Submit your requests here.

E-mail / Instant Manager service


support@effectus-software.com
AIM: umgbiz

Phone


1-727-517-3839
#800 (coming soon)

Working hours


Monday-Friday, 9am-5pm EST



Affiliate Add

Affiliate Add

Description

This function is intended to provide you ability to add new affiliate.

API function Information

Info
API Function Name: affiliate_add
API Function Call: http://[your_system_domain_name]/api/affiliate_add/

POST Parameters

Parameter Option Value Type Example Description
User_ID required string 0000000000 User ID.
API_Key required string XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX API key.
login
required string login Login.
password
required string pass Password.
password_conf required
string pass Password confirm.
name required
string Antony Company Name.
sites required
string http//www.google.com Site URL.
status required
numeric 1 Status. Рossible values
affiliate_type required
numeric 1 Affiliate Type. Рossible values
country_id optional numeric 1 Country. Рossible values
state_id
optional numeric 1 State ID. Рossible values
address required
string Some adress Address.
city required string Tokyo City.
postal required numeric 40000 Postal code
categories[] optional array array(1, 2, 3) Categories. Рossible values
fname required string First name First Name.
lname required string Last name Last Name.
email required string some@mail.com Email.
phone required string 1-700-000-000 Phone.
fax optional string 1-700-000-000 Fax.
im_type optional numeric 1 IM type . Рossible values
im optional string 1-700-000-000 IM number.
title optional string Some title Professional Title.
tech_name optional string Some name Technical Contact.
tech_phone
optional string 1-700-000-000 Contact Phone.
tech_email
optional string some@email.com Contact E-mail.
bill_name optional string name Billing Contact.
bill_phone optional string 1-700-000-000 Contact Phone.
bill_email optional string some@email.com Contact E-mail.
payment_type optional numeric 1 Payment type. Рossible values
payment_terms optional numeric 1 Payment terms. Рossible values
payment_details_2 optional string Some details Advance Payment.
tax_id
required numeric 1 Tax ID.
tax_class optional numeric 1 Tax Classification. Рossible values
ref_id optional numeric 1 ID of Sponsor.
ref_share optional numeric 1 Revenue Share. Рossible values
managers[] optional array array(32, 20, 25) Managers list.
notes optional string Some comments Notes.
image optional file Logo image.
notifications optional numeric 1 E-mail Notifications.
terms required

numeric 1 You should accept our Terms and Conditions for proceed.
terms2 required

numeric 1 You should accept our Privacy Policy for proceed.
terms3 required

numeric 1 You should be at least 18 years old to proceed.

Request example


<?php

	// API Function URL
	$api_function_call = 'http://[your_system_domain_name]/api/affiliate_add/';

	// POST parameters array
	$post_params = array(
		'User_ID' => '0000000000',
		'API_Key' => 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
		'login' => 'Login',
		'password' => 1,
		'password_confirm' => 1,
		'name' => 1,
		'sites' => 1,
		'status' => 1,
		'affiliate_type' => 1,
		'country_id ' => 1,
		'state_id' => 1,
		'address' => 'Some adress',
		'city' => 1,
		'postal' => 1,
		'fname' => 'First Name',
		'lname' => 'Last Name',
		'email' => 'some@mail.come',
		'phone' => '1-700-000-000',
		'fax' => '1-700-000-000',
		'im_type' => 1,
		'im' => 00000000,
		'title' => 'Some title',
		'tech_name' => 'Some name',
		'tech_phone' => '1-700-000-000',
		'tech_email' => 'some@mail.com',
		'bill_name' => 'Some Name',
		'bill_phone' => '1-700-000-000',
		'bill_email' => 'some@mail.com',
		'payment_type' => 1,
		'payment_terms' => 1,
		'payment_details_2' => 'Some details',
		'tax_id' => 1,
		'ref_id' => 1,
		'ref_share' => 1,
        'notes' => 'Some notes',
        'notifications ' => 1,
		'terms' => 1,
		'terms2' => 1,
		'terms3' => 1
	);

	$ch = curl_init();

	curl_setopt($ch, CURLOPT_URL, $api_function_call);
	curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
	curl_setopt($ch, CURLOPT_TIMEOUT, 10);
	curl_setopt($ch, CURLOPT_POSTFIELDS, $post_params);

	$aResult = curl_exec($ch);

	curl_close($ch);

	echo '
';
	var_dump( $aResult );
	echo '

';

?>

Response example

The user account has been successfully created.