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

getCustomer

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

getCustomer()

Returns data about customer identified by given token.

Parameters

Name Type Description
customerToken string Token that identifies the customer (see Must know about API).

- required parameter

Result Parameters

Name Type Description
id string Customer ID
email string Customer email
displayName string Name to call the customer. Usually it's a full name, but also might be an email when name is missing
firstName string Customer name
lastName string Customer surname
currency string Customer currency: USD, EUR, GBP, CAD, AUD, NZD, SEK, DKK, NOK, TRL, ZAR, XOF
locale string Defines language and text formatting for the user. E.g. "en_US", "fr_FR"
country string 2-letter country code

API Request/Response

Request

{
  "method":"getCustomer",
  "params":{
    "customerToken":"VIJYHWzJEP4mt1DZThD7DV_FinBG0Yo3Q9oHfCFAjqA22jXP"
  },
  "jsonrpc":"2.0",
  "id":1
}

Response

{
  "result":{
    "id":"761790883",
    "email":"some-customer@email.com",
    "displayName":"John Doe",
    "firstName":"John",
    "lastName":"Doe",
    "currency":"USD",
    "locale":"en_US",
    "country":"US"
  },
  "id":"1",
  "jsonrpc":"2.0"
}

PHP Example

<?php
    $cleengApi =  new Cleeng_Api();

    $customerInfo = $cleengApi->getCustomer();

    echo $customerInfo->displayName;
?>

Error codes

Code Description
1 Invalid customer token
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.