JSON-RPC createSubscriptionOffer method is deprecated. Use POST /3.1/offers instead.

Creates new subscription offer assigned to your publisher account. New offers inherit your currency and country.
Read more about all types of offers here.


publisherToken*stringYou can find your publisher token at api-keys page.
offerData*objectNo description
-pricefloatOffer price (in publisher's currency). It will be taken from customer at a specific time period.
-periodstringSubscription period: week / month / 3months / 6months / year.
-titlestringTitle of your subscription offer. Up to 70 chars
-urlstringUrl to your content described in the offer
-description*stringDescribe your subscription offer here. Up to 110 chars
-freePeriods*intSet your free periods number
-freeDays*intSet your free days number
-accessToTags*arrayTo which tags customer has access. Multiple tags are defined as "OR" (not "AND"). Set "(all)" if you want to give access to all of your offers.
-geoRestrictionEnabled*boolSet "true" to enable geo-restriction on this offer
-geoRestrictionType*stringChoose type of geo-restriction: whitelist / blacklist
-geoRestrictionCountries*arrayBased on geoRestrictionType, set the array of whitelisted/blacklisted countries.

API Request/Response


      "description":"my first offer with Cleeng",



    "publisherEmail":"[email protected]",
    "description":"my first offer with Cleeng",

PHP Example

    $offerSetup = array(
    'title' => 'Bip Bip and Coyote cartoon',
    'price' => 19.00,
    'url' => '',
    'description' => 'Get access to every Bip Bip and Coyote episode for 19$/month',
    'period' => 'month',
    'accessToTags' => array('Bip Bip and Coyote')

    $cleengApi = new Cleeng_Api();