deactivatePassOffer()


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": "deactivatePassOffer",
        "params": {
            "publisherToken": "Xlrx-SjTLVMCsaRsOf2q2hvWKOlrF57yHknDRRRMX-13Fz-x",
            "offerId": "P123123123_US"
        },
        "jsonrpc": "2.0",
        "id": 1
    }
]

Response:

[
    {
        "result": {
            "id": "P123123123_US",
            "publisherEmail": "publisher@email.com",
            "title": "Get access to every article about finance for whole month!",
            "description": "Whole month you have unlimited access to every article about finance.",
            "url": "http:\/\/mywebsite.com\/articles\/about\/finance",
            "currency": "USD",
            "country": "US",
            "active": "1",
            "createdAt": 1359121305,
            "updatedAt": 1359121305,
            "price": 13,
            "applicableTaxRate": "0.19",
            "period": "month",
            "accessToTags": [
                "finance"
            ]
        },
        "id": "1",
        "error": null,
        "jsonrpc": "2.0"
    }
]

Example:

<?php
                            
    $offerId = 'P123123123_US';

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

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

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

Back to Pass Offers