These docs are for v2.0. Click to read the latest docs for v2.1.

deactivatePassOffer

📘

You can try that method by clicking here

Parameters

NameTypeDescription
publisherToken*stringYou can find your publisher token at api-keys page.
offerId*stringIdentifier of the offer you want to disable.

API Request/Response

Request

{
  "method":"deactivatePassOffer",
  "params":{
    "publisherToken":"Xlrx-SjTLVMCsaRsOf2q2hvWKOlrF57yHknDRRRMX-13Fz-x",
    "offerId":"P123123123_US"
  },
  "jsonrpc":"2.0",
  "id":1
}

Response

{
    "result":{
      "id":"P123123123_US",
      "publisherEmail":"[email protected]",
      "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"
}

PHP Example

<?php
    $offerId = 'P123123123_US';

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

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