Retrieve eligible campaigns

Use the getEligibleChurnCampaigns method to retrieve all the eligible campaigns for a specific subscription with data in a specific language.

Request parameters

Parameter
Type / Description

sessionID

Required (string) Session identifier - the output of the Login method. Include sessionID in all your requests. 2Checkout throws an exception if the value is incorrect.

The sessionID expires in 10 minutes.

SubscriptionReference

Required (string) Unique, system-generated subscription identifier.

Language

Required (string) The language abbreviation in which messages are translated.

Request sample

<?php

require('PATH_TO_AUTH');

$subscriptionReference = 'F27CFE06ED';
$language = 'en';

try {
    $campaigns = $client->getEligibleChurnCampaigns($sessionID, $subscriptionReference, $language);
}
catch (SoapFault $e) {
    echo "campaigns: " . $e->getMessage();
    exit;
}
var_dump("campaigns", $campaigns);

Response parameters

Parameter
Type / Description

SubscriptionChurnPreventionCampaigns

Last updated

Was this helpful?