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 Edit

Affiliate Edit

Description

This function is intended to provide you ability to edit affiliate info.

API function Information

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

POST Parameters

Parameter Option Value Type Example Description
User_ID required string 0000000000 User ID.
API_Key required string XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX API key.
id required numeric 1 Affiliate ID.
login
required string Admin Login.
password
required string password New password.
password_conf required
string password Password confirm.
name required
string Antony Company Name.
sites required
string http://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 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 second name Last Name.
email required string some@email.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 000000000 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 1-700-000-000 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 ID of Sponsor.
ref_share optional numeric 1 Revenue Share. Рossible values
managers[] optional array array(1, 2 , 3) Managers list.
notes optional string some notes Notes.
image optional file Logo image.
remove optional numeric 1 Remove logo image.
notifications optional numeric 1 E-mail Notifications.

Request example


<?php

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

	// POST parameters array
	$post_params = array(
		'User_ID' => '0000000000',
		'API_Key' => 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
        'id' => 1
		'login' => 'Login',
		'password' => 1,
		'password_conf' => 1,
		'name' => 1,
		'sites' => 1,
		'status' => 1,
		'affiliate_type' => 1,
		'country_id ' => 1,
		'state_id' => 1,
		'address' => 'Some adress',
		'city' => 1,
		'postal' => 1,
		'categories[]' => array(1, 2, 3),
		'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,
        'tax_class' => 1,
		'ref_id' => 1,
		'ref_share' => 1,
        'managers[]' => array(1, 2, 3),
        'notes' => 'Some notes',
        'remove' => 1,
        'notifications ' => 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 updated.