Offerit API Set Subaffiliate Status

From Offerit
Jump to: navigation, search
Offerit
SOAP API (*deprecated*)
API
Add Affiliate
Add Affiliate Sale
Add Offer
Approve Transaction
Creative Types
Decode Offeritcode
Deny Transaction
Disable Affiliate Landing Page
Edit Affiliate Sale
Enable Affiliate Landing Page
Get Affiliate Stats
Get Allowed Affiliates
Get Landing Page Details
Get Offer Details
Get Offer List
Get Profit Loss Report
List Affiliate Details
List Affiliate Subaffiliates
Ping
Set Affiliate Status
Set SubAffiliate Status
Set Member Details
Record Affiliate Click

This function allows you to set the status for a specfic affiliate. To use this function, you must make a SOAP call with the following parameters:

  • affid - (required) The ID of the affiliate.
  • subaff - (required) The id of the sub affiliate you want changed.
  • status - (required) Can pass in values 0 or 'pending', 1 or 'approved' or 'active', 2 or 'banned'

NuSOAP Example

This example continues from the main article NuSOAP Example:

$values = Array(
    'affid' => 1,
    'subaff' => 1,	 
    'status' => 'active'
   );
   
$result = $client->call('set_subaff_status', $values, 'offeritapiadmin_wsdl');

Sample Output

	on success:
		Status: SUCCESS
	on failure:
		error message or
		Status: FAILURE