Accept churn campaign discount
Use the acceptChurnCampaignDiscount method to confirm the campaign you want for the churn campaign process.
Request parameters
Parameter
Type / Description
sessionID
Required (string)
Session identifier, the output of the Login method. Include sessionID into all your requests. 2Checkout throws an exception if the values are incorrect.
The sessionID expires in 10 minutes.
SubscriptionReference
Required (string) Unique, system-generated subscription identifier.
CampaignCode
Required (string) The code of the campaign you want to confirm.
Request sample
<?php
require('PATH_TO_AUTH');
$subscriptionReference = 'F27CFE06ED';
$campaignCode = 'UGPPKKJY5L1LHBFPHKQ3';
try {
$result = $client->acceptChurnCampaignDiscount($sessionID, $subscriptionReference, $campaignCode);
}
catch (SoapFault $e) {
echo "result: " . $e->getMessage();
exit;
}
var_dump("result", $result);Response parameters
Type
Description
Boolean
true or false depending on whether the changes were successful or not.
Last updated
Was this helpful?