deactivateSubscriptionOffer()


Disable your subscription offer, by switch active parametr to false. Read more about all types of offers in Tutorial 2 - Creating Offers. Remember, offers are not deleted, you can always check disable offer using getSubscriptionOffer method

Parameters:

Name Type Description
publisherToken string You can find your publisher token at api-keys page.
offerId string Identifier of the offer you want to disable.

- required parameter


Request:

{
    "method": "deactivateSubscriptionOffer",
    "params": {
        "publisherToken": "VNUNiFwbWJwJMD6aXbfqsTWouI8wbVKwQPh2ABnyb8dHnPtR",
        "offerId": "S580476507_US"
    },
    "jsonrpc": "2.0",
    "id": 1
}

Response:

{
    "result": {
        "id": "S580476507_US",
        "publisherEmail": "publisher@email.com",
        "title": "not test anymorre",
        "description": "my first update with Cleeng",
        "url": "http:\/\/test.com\/page_with_content",
        "currency": "EUR",
        "country": "PL",
        "period": "week",
        "active": 0,
        "price": 75,
        "createdAt": 1353067309,
        "updatedAt": 1353067309,
        "accessToTags": [
            ""
        ]
    },
    "id": "1",
    "error": null,
    "jsonrpc": "2.0"
}

Example:

<?php
                            
    $offerId = 'S123123123_US';

    $cleengApi = new Cleeng_Api();
    $cleengApi->setPublisherToken('Y72a8Cr0KQciwzU7DbOcSXOFL1gT9a6gIYRb6hhOvCdPaxKW');

    $cleengApi->deactivateSubscriptionOffer($offerId);
    
?>

Remember! you can always check it by yourself using API Console - deactivateSubscriptionOffer()

Back to Subscription Offers


We use cookies to ensure that we provide you the best service and website experience. Read our Cookie policy for more details.