This function allows you to add a sale data for a specfic affiliate. To use this function, you must make a SOAP call with the following parameters:
NuSOAP Example
This example continues from the main article NuSOAP Example:
$values = Array(
'username' => 'tmmtest',
'password' => 'fdsafdsa',
'firstname' => 'tester',
'lastname' => 'testtest',
'email' => 'test321@test.com',
'company' => 'testing co.',
'url' => 'test.com',
'tel' => '123-1234',
'icq' => '',
'aim' => '',
'msn' => '',
'address1' => '123 main st',
'address2' => '',
'city' => 'anytown',
'state' => 'nj',
'country' => 'usa',
'zip_code' => 12345,
'tax_id_or_ssn' => '',
'ref' => '',
'minimum_payout' => '50'
);
$result = $client->call('add_affs', $values, 'offeritapiadmin_wsdl');
Sample Output
You will get a response similar to the following for each of the affiliate's sales:
Array
Array
(
[0] => Array
(
[result] => 1
[loginid] => 5
)
)