Offerit API Approve Transaction

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 approve a specific transaction for a customer. To use this function, you must make a SOAP call with the following parameters:

  • transid - The transaction ID of the sale
  • customerid - The customer ID of the sale

NuSOAP Example

This example continues from the main article NuSOAP Example:

$values = Array(
      'transid' => 265, 
      'customerid' => 130
   );
   
$result = $client->call('approve_transaction', $values, 'offeritapiadmin_wsdl');

Sample Output

on success:
      SUCCESS
   
   on error:
      ERROR: error message