Home
Tutorials
Getting started
Understanding the API
Buy Button
Custom checkout styling
Cleeng Sandbox
Getting started with Cleeng Core
Getting started with PHP SDK
Getting started with JAVA SDK
Getting started with iOS and tvOS
Getting started with Roku
Getting started with Webhooks
Identity & Access Management
Registration and login on mobiles and TV boxes via Middleware
Registration and login on the web
Entitlements using tags (Access control)
Payment processing
Payments on Apple iOS and tvOS
Payments on Android
Payments on Roku
Payments on Amazon Fire
My Account & User profile
My Account widget
Server-side account functions
Custom myaccount styling
Product & Offer management
Tagging products
Full demo app example
Subscription VOD web app - full example
Webstore SDK - flexible purchase process example
API Reference
Introduction to API
Entitlements
JAVASCRIPT
CleengApi.getAccessStatus
SERVER-SIDE
getAccessStatus
getAccessStatusForDevice
getAccessibleTags
registerSubscription
isTrialAllowed
Authorization & payments
JAVASCRIPT
CleengApi.checkout
CleengApi.autologin
CleengApi.logout
SERVER-SIDE
getPrice
getMultiCurrencyPrice
calculateSwitchPrice
extendTokenExpiration
registerCustomer
generateCustomerTokenFromPassword
listPaymentDetails
deletePaymentDetails
getConsentDefinitions
getViewerConsents
submitConsent
updateConsentDefinition
Customer & support
JAVASCRIPT
CleengApi.getCustomer
CleengApi.myAccount
SERVER-SIDE
getCustomer
getCustomerEmail
requestPasswordReset
updateCustomerEmail
updateCustomerPassword
updateCustomerSubscription
listCustomerLibrary
listCustomerSubscriptions
fetchCaptureQuestions
fetchCaptureStatus
saveCaptureQuestions
setCaptureEnabled
fetchBroadcasterSpecificPersonalDataWithCaptureAnswers
updateBroadcasterSpecificPersonalDataWithCaptureAnswers
Reporting
JAVASCRIPT
CleengApi.trackOfferImpression
SERVER-SIDE
listTransactions
listCancellations
listSubscribers
listCustomers
SSO integration
SERVER-SIDE
getLocaleDataFromIp
prepareRemoteAuth
generateCheckoutUrl
generateCustomerToken
updateCustomerEmail
updateCustomerPassword
generateMyAccountUrl
TV, Roku and console
SERVER-SIDE
getAccessStatusForDevice
generateCustomerTokenFromTransactionId
Offer management
SERVER-SIDE
Event Offers
getEventOffer
listEventOffers
createEventOffer
updateEventOffer
cancelEventOffer
Single Offers
getSingleOffer
listSingleOffers
createSingleOffer
updateSingleOffer
deactivateSingleOffer
createMultiCurrencySingleOffer
updateMultiCurrencySingleOffer
Rental Offers
getRentalOffer
listRentalOffers
createRentalOffer
updateRentalOffer
deactivateRentalOffer
createMultiCurrencyRentalOffer
updateMultiCurrencyRentalOffer
Subscriptions
getSubscriptionOffer
listSubscriptionOffers
createSubscriptionOffer
updateSubscriptionOffer
deactivateSubscriptionOffer
createMultiCurrencySubscriptionOffer
updateMultiCurrencySubscriptionOffer
Pass offers
getPassOffer
listPassOffers
createPassOffer
updatePassOffer
deactivatePassOffer
createMultiCurrencyPassOffer
updateMultiCurrencyPassOffer
VOD offers
getVodOffer
listVodOffers
createVodOffer
updateVodOffer
deactivateVodOffer
Webhooks
DOCS
Available webhook events
API METHODS
subscribeToWebhookEvent
unsubscribeFromWebhookEvent
listWebhookSubscriptions
Release Notes
Cleeng Developers
| Developers
  • Products
    • Cleeng Core
      Cleeng Core
      Video subscriber management
    • Merchant
      Merchant
      Payment & checkout optimisation
    • ChurnIQ
      ChurnIQ
      Smart & predictive churn analytics
    • Hi5
      Hi5
      Professional customer care staffing
    • Live Pay-Per-View
      Live Pay-Per-View
      Turnkey live event solution
  • Solutions
  • Developers API
  • Resources
  • Blog

deactivatePassOffer

Home
Tutorials
Getting started
Understanding the API
Buy Button
Custom checkout styling
Cleeng Sandbox
Getting started with Cleeng Core
Getting started with PHP SDK
Getting started with JAVA SDK
Getting started with iOS and tvOS
Getting started with Roku
Getting started with Webhooks
Identity & Access Management
Registration and login on mobiles and TV boxes via Middleware
Registration and login on the web
Entitlements using tags (Access control)
Payment processing
Payments on Apple iOS and tvOS
Payments on Android
Payments on Roku
Payments on Amazon Fire
My Account & User profile
My Account widget
Server-side account functions
Custom myaccount styling
Product & Offer management
Tagging products
Full demo app example
Subscription VOD web app - full example
Webstore SDK - flexible purchase process example
API Reference
Introduction to API
Entitlements
JAVASCRIPT
CleengApi.getAccessStatus
SERVER-SIDE
getAccessStatus
getAccessStatusForDevice
getAccessibleTags
registerSubscription
isTrialAllowed
Authorization & payments
JAVASCRIPT
CleengApi.checkout
CleengApi.autologin
CleengApi.logout
SERVER-SIDE
getPrice
getMultiCurrencyPrice
calculateSwitchPrice
extendTokenExpiration
registerCustomer
generateCustomerTokenFromPassword
listPaymentDetails
deletePaymentDetails
getConsentDefinitions
getViewerConsents
submitConsent
updateConsentDefinition
Customer & support
JAVASCRIPT
CleengApi.getCustomer
CleengApi.myAccount
SERVER-SIDE
getCustomer
getCustomerEmail
requestPasswordReset
updateCustomerEmail
updateCustomerPassword
updateCustomerSubscription
listCustomerLibrary
listCustomerSubscriptions
fetchCaptureQuestions
fetchCaptureStatus
saveCaptureQuestions
setCaptureEnabled
fetchBroadcasterSpecificPersonalDataWithCaptureAnswers
updateBroadcasterSpecificPersonalDataWithCaptureAnswers
Reporting
JAVASCRIPT
CleengApi.trackOfferImpression
SERVER-SIDE
listTransactions
listCancellations
listSubscribers
listCustomers
SSO integration
SERVER-SIDE
getLocaleDataFromIp
prepareRemoteAuth
generateCheckoutUrl
generateCustomerToken
updateCustomerEmail
updateCustomerPassword
generateMyAccountUrl
TV, Roku and console
SERVER-SIDE
getAccessStatusForDevice
generateCustomerTokenFromTransactionId
Offer management
SERVER-SIDE
Event Offers
getEventOffer
listEventOffers
createEventOffer
updateEventOffer
cancelEventOffer
Single Offers
getSingleOffer
listSingleOffers
createSingleOffer
updateSingleOffer
deactivateSingleOffer
createMultiCurrencySingleOffer
updateMultiCurrencySingleOffer
Rental Offers
getRentalOffer
listRentalOffers
createRentalOffer
updateRentalOffer
deactivateRentalOffer
createMultiCurrencyRentalOffer
updateMultiCurrencyRentalOffer
Subscriptions
getSubscriptionOffer
listSubscriptionOffers
createSubscriptionOffer
updateSubscriptionOffer
deactivateSubscriptionOffer
createMultiCurrencySubscriptionOffer
updateMultiCurrencySubscriptionOffer
Pass offers
getPassOffer
listPassOffers
createPassOffer
updatePassOffer
deactivatePassOffer
createMultiCurrencyPassOffer
updateMultiCurrencyPassOffer
VOD offers
getVodOffer
listVodOffers
createVodOffer
updateVodOffer
deactivateVodOffer
Webhooks
DOCS
Available webhook events
API METHODS
subscribeToWebhookEvent
unsubscribeFromWebhookEvent
listWebhookSubscriptions
Release Notes

deactivatePassOffer()

Parameters

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

- required parameter

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":"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"
  }
]

PHP Example

<?php
    $offerId = 'P123123123_US';

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

    $cleengApi->deactivatePassOffer($offerId);
    
?>
GO TO API CONSOLE
Follow us
Products
  • Subscriber management system
  • Checkout optimization tool
  • Churn management system
  • Customer support system
  • Cleeng Live PPV
  • OTT Flow SVOD Extension
About
  • Company
  • Press & Media
  • Blog
  • Partners
  • Jobs
  • Industry events
Developer
  • API Reference
  • Sandbox
  • Tutorials
  • Releases
Broadcasters
  • My Dashboard
  • FAQ & Support
Viewer
  • Who is Cleeng?
  • Get Support
Copyright © 2019 Cleeng | All Rights Reserved | Terms & Conditions | Privacy
We use cookies to ensure that we provide you the best service and website experience. Read our Cookie policy for more details.