Difference between revisions of "Offerit API Set Affiliate Status"
From Offerit
(Created page with "{{Offerit Manual | show_api_admin_section = true }} 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 ...") |
OfferitMegan (talk | contribs) |
||
(4 intermediate revisions by 3 users not shown) | |||
Line 5: | Line 5: | ||
*'''affid''' - The ID of the affiliate. | *'''affid''' - The ID of the affiliate. | ||
− | *'''status''' - The status to which you want the affiliate changed. | + | *'''status''' - The status to which you want the affiliate changed. Can pass in 'approved' or 0, 'disabled' or 1, 'terminated' or 2, 'waitonverify' or 3, 'pending' or 4, 'denied' or 5 |
*'''auto_pending''' - set to either 0 or 1, affiliates with auto_pending set to 1 will have transactions come in as pending. If 0, transactions will be processed as continuity. | *'''auto_pending''' - set to either 0 or 1, affiliates with auto_pending set to 1 will have transactions come in as pending. If 0, transactions will be processed as continuity. | ||
*'''public_reason''' - (optional) The public reason why the affiliates status is being changed. | *'''public_reason''' - (optional) The public reason why the affiliates status is being changed. | ||
Line 12: | Line 12: | ||
== NuSOAP Example == | == NuSOAP Example == | ||
− | This example continues from the [[Offerit_API#Example|main article NuSOAP Example]] | + | This example continues from the [[Offerit_API#Example|main article NuSOAP Example]]: |
<pre> | <pre> | ||
Line 23: | Line 23: | ||
); | ); | ||
− | $result = $client->call('set_aff_status', | + | $result = $client->call('set_aff_status', $values, 'offeritapiadmin_wsdl'); |
</pre> | </pre> | ||
− | == Sample Output == | + | === Sample Output === |
− | |||
<pre> | <pre> | ||
Line 37: | Line 36: | ||
</pre> | </pre> | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− |
Latest revision as of 13:55, 1 February 2013
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:
- affid - The ID of the affiliate.
- status - The status to which you want the affiliate changed. Can pass in 'approved' or 0, 'disabled' or 1, 'terminated' or 2, 'waitonverify' or 3, 'pending' or 4, 'denied' or 5
- auto_pending - set to either 0 or 1, affiliates with auto_pending set to 1 will have transactions come in as pending. If 0, transactions will be processed as continuity.
- public_reason - (optional) The public reason why the affiliates status is being changed.
- internal_reason - (optional) The private reason why the affiliates status is being changed.
NuSOAP Example
This example continues from the main article NuSOAP Example:
$values = Array( 'affid' => 5, // The ID of the affiliate 'status' => 2, // The status you want the affiliate to change to 'auto_pending' => 1, //set to either 0 or 1, affiliates with auto_pending set to 1 will have transactions come in as pending. If 0, transactions will be processed as continuity. 'public_reason' => 'test public', // (optional) The public reason why the affiliates status is being changed 'internal_reason' => 'test internal',// (optional) The private reason why the affiliates status is being changed ); $result = $client->call('set_aff_status', $values, 'offeritapiadmin_wsdl');
Sample Output
on success: Status: SUCCESS on failure: error message or Status: FAILURE