# Cleeng Documentation > Documentation for Cleeng ## API Tutorials: Getting Started - [Launch Subscriptions](https://developers.cleeng.com/docs/launch-subscriptions.md): Start here to get your web checkout, authentication, account and customer care flows live using Cleeng's Hosted Customer Flows on the first day. - [Extend Your Integration](https://developers.cleeng.com/docs/extend-your-integration.md): Week 1 Enhancements. Build on your MVP with minimal-code dashboard configurations. - [Scale Your Integration](https://developers.cleeng.com/docs/scale-your-integration.md): Month 1 Expansion. Take your fully configured web setup to the next level by implementing the advanced, technical tracks required to scale your business. - [Integration Approaches](https://developers.cleeng.com/docs/getting-started-with-cleeng.md) - [Build with LLMs](https://developers.cleeng.com/docs/build-with-llms.md) - [Setting Up Your Development Environment](https://developers.cleeng.com/docs/setting-up-your-development-environment.md) - [Quick Start](https://developers.cleeng.com/docs/quick-start.md) - [Cleeng Sandbox](https://developers.cleeng.com/docs/cleeng-sandbox.md) ## API Tutorials: Integration Guides - [Implementing Hosted Customer Flows](https://developers.cleeng.com/docs/implementing-hosted-customer-flows.md): This guide introduces Cleeng Hosted Customer Flows, outlines the available hosted widgets and global communication methods, and links to the dedicated implementation guides. - [Checkout Hosted Widget ](https://developers.cleeng.com/docs/checkout-hosted-widget.md): This guide illustrates the setup and implementation of the Checkout Hosted Widget, focusing on embedding the widget, user authentication options, and advanced checkout features. - [Auth Hosted Widget](https://developers.cleeng.com/docs/auth-hosted-widget.md): This guide explains the setup and implementation of the Auth Hosted Widget, focusing on embedding the widget, managing user registration and login, and handling password resets. - [Account Hosted Widget ](https://developers.cleeng.com/docs/account-hosted-widget.md): This guide explains the implementation of the Account Hosted Widget, focusing on embedding the widget, configuring account sections, and handling external authentication. - [Customer Care Hosted Widget](https://developers.cleeng.com/docs/customer-care-hosted-widget.md): This guide covers how to embed the Customer Care Hosted Widget into a web application and how to use the message events it emits to respond to its lifecycle and user interactions. - [Guest Checkout Hosted Widget](https://developers.cleeng.com/docs/guest-checkout-hosted-widget.md): This guide explains how to embed the Guest Checkout Hosted Widget into a web application, including prerequisites, integration steps, the gift purchase flow, and testing. - [Redeem Gift Hosted Widget ](https://developers.cleeng.com/docs/redeem-gift-hosted-widget.md): This guide explains how to embed the Redeem Gift Hosted Widget into a web application, including prerequisites, integration steps, optional external authentication configuration, gift redemption… - [Cleeng Hosted Widgets: Global Communication Methods](https://developers.cleeng.com/docs/cleeng-hosted-widgets-global-communication-methods.md): This guide explains how Cleeng Hosted Widgets communicate with your website to share authentication state and UI events, such as checkout and payment updates. - [Hosted Widgets: Retrieving Customer Details](https://developers.cleeng.com/docs/hosted-widgets-retrieving-customer-details.md): This guide explains how to extract authentication data from Cleeng hosted widgets and use it to fetch customer details via the MediaStore API. - [Gift Subscriptions Setup via Hosted Customer Flows ](https://developers.cleeng.com/docs/gift-subscriptions-setup-via-hosted-customer-flows.md) - [Implementing Offer Pricing Page](https://developers.cleeng.com/docs/implementing-offer-pricing-page.md) - [Implementing Mobile Apps](https://developers.cleeng.com/docs/payments_on_mobile_tv_apps_intro.md) - [Apple In-App Purchase - SK2](https://developers.cleeng.com/docs/apple-in-app-purchase-storekit-2.md): This tutorial will help you integrate Apple in-app purchases using the StoreKit 2 framework. - [Android [Deprecated]](https://developers.cleeng.com/docs/android.md) - [Google Play Billing](https://developers.cleeng.com/docs/google-play-billing.md) - [Restoring In-App Purchases](https://developers.cleeng.com/docs/restoring-in-app-purchases.md): Restore a customer's in-app purchase so their Cleeng entitlement is reinstated after they reinstall your app or sign in on a new device with an existing account. - [Unlocking Content with Entitlements](https://developers.cleeng.com/docs/unlocking-content-with-entitlements.md): This article explains how to unlock content for your subscribers with Cleeng entitlements. - [Entitlements - Example Code Snippets ](https://developers.cleeng.com/docs/entitlements-example-code-snippets.md) - [Migrating to Cleeng](https://developers.cleeng.com/docs/migrating-to-cleeng.md) - [Testing and Debugging](https://developers.cleeng.com/docs/testing-and-debugging.md) - [Load Testing Online Video Platform](https://developers.cleeng.com/docs/load-testing-online-video-platform.md) - [Testing Recurring Payments](https://developers.cleeng.com/docs/testing-recurring-payments.md) ## API Tutorials: Integration Hub - [Integration Hub Overview](https://developers.cleeng.com/docs/integration-hub-overview.md) - [Identity Management](https://developers.cleeng.com/docs/identity-management-sso.md) - [Device Login Flow (PIN Pair)](https://developers.cleeng.com/docs/device-login-flow-pin-pair.md) - [Google reCAPTCHA](https://developers.cleeng.com/docs/fraud-prevention-solution-with-google-recaptcha.md) - [Fraud prevention with Google reCAPTCHA for MediaStore API](https://developers.cleeng.com/docs/fraud-prevention-solution-with-google-recaptcha-mediastore-api.md) - [Fraud prevention with Google reCAPTCHA for MediaStore Components](https://developers.cleeng.com/docs/fraud-prevention-solution-with-google-recaptcha-mediastore-components.md) - [Integrating with Auth0](https://developers.cleeng.com/docs/integrating-with-auth0.md) - [Data](https://developers.cleeng.com/docs/data-ingestion-export.md) - [Payment](https://developers.cleeng.com/docs/payment.md) - [Adding a Payment Connector](https://developers.cleeng.com/docs/adding-a-payment-connector.md) - [Prerequisites](https://developers.cleeng.com/docs/prerequisites-1.md) - [Subscription Initial Purchase](https://developers.cleeng.com/docs/subscription-initial-purchase.md) - [Subscription Recurring Billing](https://developers.cleeng.com/docs/subscription-recurring-billing.md) - [Cleeng-Managed Purchases - Recurring Billing](https://developers.cleeng.com/docs/cleeng-managed-recurring-billing.md) - [Externally-Managed Purchases - Recurring Billing](https://developers.cleeng.com/docs/externally-managed-recurring-billing.md) - [Update Payment Details](https://developers.cleeng.com/docs/update-payment-details.md) - [Connector Checklist](https://developers.cleeng.com/docs/connector-checklist.md): Once you have followed all the steps for **[adding a payment connector](https://developers.cleeng.com/docs/adding-a-payment-connector)**, use the checklist below to make sure the necessary functions… - [Reference Materials](https://developers.cleeng.com/docs/reference-materials.md) - [Multi-Channel Billing](https://developers.cleeng.com/docs/multi-channel-billing.md) - [Multi-Channel Billing Use Cases](https://developers.cleeng.com/docs/multi-channel-billing-use-cases.md) - [Integrating Multi-Channel Billing](https://developers.cleeng.com/docs/integrating-multi-channel-billing.md) - [Externally-Managed Subscriptions](https://developers.cleeng.com/docs/externally-managed-subscriptions.md) - [Externally-Managed Passes](https://developers.cleeng.com/docs/externally-managed-passes.md) - [Payments on TV Apps](https://developers.cleeng.com/docs/payments-on-tv-apps.md) - [Amazon FireTV](https://developers.cleeng.com/docs/amazon-firetv.md) - [Roku](https://developers.cleeng.com/docs/roku.md) - [Samsung TV](https://developers.cleeng.com/docs/samsung-tv-integration.md): This tutorial will help you integrate purchases made via Samsung TV. - [Vizio](https://developers.cleeng.com/docs/vizio.md): This tutorial will help you integrate purchases made via Vizio. - [Marketing](https://developers.cleeng.com/docs/marketing-and-communications.md) - [Braze](https://developers.cleeng.com/docs/braze.md) ## API Tutorials: ADVANCED SETUP - [Subscription Lifecycle Flows](https://developers.cleeng.com/docs/subscription-lifecycle-flows.md) - [Webhooks Overview](https://developers.cleeng.com/docs/webhook-overview.md) - [Webhooks Configuration](https://developers.cleeng.com/docs/webhooks-configuration.md) - [Webhook Topics](https://developers.cleeng.com/docs/webhook-topics-overview.md) - [Webhook - General Topics](https://developers.cleeng.com/docs/webhook-topics.md) - [Webhooks - Offer Topics](https://developers.cleeng.com/docs/webhooks-offer-topics.md) - [Webhook - Subscription Topics](https://developers.cleeng.com/docs/webhook-subscription-topics.md) - [Webhook - Pass Topics](https://developers.cleeng.com/docs/webhook-pass-topics.md) - [Webhooks - In-App Purchase Topics](https://developers.cleeng.com/docs/webhooks-in-app-purchase-topics.md) - [Webhooks - In-App Purchase Validation](https://developers.cleeng.com/docs/webhooks-in-app-purchase-validation.md) - [Dunning Action Settings](https://developers.cleeng.com/docs/dunning-action-settings.md) - [Implementing Web Checkout (react.js)](https://developers.cleeng.com/docs/implementing-web-checkout-reactjs.md) - [Integration Guide](https://developers.cleeng.com/docs/components-integration-guide.md) - [Payment Configuration](https://developers.cleeng.com/docs/payment-configuration.md) - [MediaStore SDK Components Library](https://developers.cleeng.com/docs/components-library.md) - [Translations](https://developers.cleeng.com/docs/translations.md) - [One-Click Coupons](https://developers.cleeng.com/docs/one-click-coupons.md): To optimize further your coupon campaigns or grant free access for the so-called VIP checkouts, you can apply one-click coupons. - [Gift Subscriptions Setup via Components](https://developers.cleeng.com/docs/gift-subscriptions-setup-via-mediastore-components.md) - [Purchase Flow via API](https://developers.cleeng.com/docs/identity-management-1.md) - [Identity Management](https://developers.cleeng.com/docs/registration.md) - [Offer Display (Web)](https://developers.cleeng.com/docs/offer-display.md) - [Checkout Implementation (Web)](https://developers.cleeng.com/docs/payments-overview.md) - [Adyen Payment Setup](https://developers.cleeng.com/docs/extended-adyen-payment-setup.md) - [Merchant Payment Methods Filtering](https://developers.cleeng.com/docs/merchant-payment-methods-filtering.md) - [PayPal Payment Setup](https://developers.cleeng.com/docs/paypal-payment-setup.md) - [Payment-free Setup](https://developers.cleeng.com/docs/payment-free-setup.md) - [Gift Subscriptions Setup via API](https://developers.cleeng.com/docs/gift-subscriptions-setup-via-mediastore-api.md): Follow the steps to implement [gift subscriptions](https://publisher.support.cleeng.com/hc/en-us/articles/11005568853404-Gift-Subscriptions) with MediaStore SDK API. - [My Account (Web) via API](https://developers.cleeng.com/docs/my-account-1.md) - [Current Plan Setup](https://developers.cleeng.com/docs/current-plan-setup.md) - [Payment Information](https://developers.cleeng.com/docs/payment-information.md) - [User Profile Management](https://developers.cleeng.com/docs/user-profile-management.md) - [User Support](https://developers.cleeng.com/docs/viewer-support-1.md) - [Pause Setup via API ](https://developers.cleeng.com/docs/pause-setup-via-api.md) - [Single Sign-on (SSO)](https://developers.cleeng.com/docs/sso.md) - [Customer Anonymization](https://developers.cleeng.com/docs/customer-anonymization.md) - [Email Templates Customization](https://developers.cleeng.com/docs/email-templates-customization.md) - [Entitlements Caching](https://developers.cleeng.com/docs/entitlements-caching.md) - [Hi5 end-user authentication](https://developers.cleeng.com/docs/hi5-end-user-authentication.md) ## API Tutorials: CLIENT USE CASES - [How to Create Introductory Offers](https://developers.cleeng.com/docs/how-to-create-introductory-offers.md) - [How to Create Add-On Offers](https://developers.cleeng.com/docs/how-to-create-add-on-offers.md): This guide provides a step-by-step approach to support add-on style purchasing in Cleeng using standard offers, custom offer parameters, entitlement checks, and storefront logic. - [How to Implement Automated Subscription and Pass Bundle](https://developers.cleeng.com/docs/how-to-implement-automated-subscription-and-pass-bundle.md): This guide explains how to create a bundle combining a recurring subscription with a fixed-term pass. ## API Reference: Overview - [API Reference Overview](https://developers.cleeng.com/reference/apireference-overview.md) - [Best Practices](https://developers.cleeng.com/reference/best-practices.md) - [API Caching](https://developers.cleeng.com/reference/api-caching.md) - Troubleshooting - [How to Understand and Resolve Common API Errors (401, 429)](https://developers.cleeng.com/reference/how-to-understand-and-resolve-common-api-errors-401-429.md) ## API Reference: MediaStore API - Identity Management - [Register](https://developers.cleeng.com/reference/register.md): Use `/customers` endpoint to register user. After registration customer is related with your account and you will see him in Cleeng Dashboard > Customer Accounts. Customers are recognized in Cleeng… - [Login](https://developers.cleeng.com/reference/login.md): Use `/auths` endpoint to log in the user. Customer authorization is based on <>, which contains `customerId`, `publisherId` and `expiration date`. There are two ways of login, by… - [Refresh token](https://developers.cleeng.com/reference/refresh-token.md): This endpoint can be used to grant a new JWT in order to extend user session. Refresh token passed in request body will be invalidated. A new JWT and a new refresh token will be returned in response.… - [Fetch publisher consents](https://developers.cleeng.com/reference/fetch-publisher-consents.md): Use /publishers/:publisherId/consents to fetch publisher's consents. It returns the actual consensts version, label. Consents should be shown on the registration page to enable accept/decline it by… - [Update customer's consents](https://developers.cleeng.com/reference/update-customers-consents.md): Use `/customers/:customerId/consents` to set or update customer's consents.
This endpoint should be used just after registration (for checkout) or to enable consents management (myAccount).… - [Update password](https://developers.cleeng.com/reference/update-password.md): Use /customers/passwords endpoint to save a new customer password, in case you defined a custom reset password page. - Checkout Implementation - [Create order](https://developers.cleeng.com/reference/create-order.md): Use `/orders` endpoint to create an order. Orders are used to handle customers' payments of previously defined offers. Orders expire after 24 hours unless the payment is captured. **Payment method… - [List campaigns](https://developers.cleeng.com/reference/msd-list-campaigns.md): This endpoint lets you list all your campaign details based on a coupon code. [Authorization](https://developers.cleeng.com/reference/getting-started#authorization) with <> is required. - [Get entitlements](https://developers.cleeng.com/reference/get-entitlements.md): This API allows you to check entitlements (access rights) of a customer to a given offer. Access is granted based on a purchased offer or tags (that are checked in the backend). Here you can check… - [Fetch offers](https://developers.cleeng.com/reference/fetch-offers.md): This endpoint lets you list all your offers that meet the requirements given in the API request. For example, it allows you to filter offers by offer type or offer status. Additional **response… - [Fetch offer details](https://developers.cleeng.com/reference/fetch-offer-details.md): Use `/offers/:offerId` endpoint to get basic offer details.

This endpoint returns details of offer localizations matching a particular country or location. The country or location is… - [[V2] Fetch offer details](https://developers.cleeng.com/reference/v2-fetch-offer-details.md): Use `v2/offers/{offerId}` endpoint to get basic offer details. This endpoint returns also price rules for [seasonal… - [Get a gift](https://developers.cleeng.com/reference/get-a-gift.md): This endpoint retrieves details of a given gift that was previously purchased. - [Update a gift](https://developers.cleeng.com/reference/update-a-gift.md): This endpoint gives possibility to update delivery details of a given gift that was previously purchased. - [Verify a gift](https://developers.cleeng.com/reference/verify-a-gift.md): Use this endpoint to verify whether a gift code provided by the user is valid. The gift code has to be verified before a gift is redeemed. It also returns the available options for gift redemption. - [Redeem a gift](https://developers.cleeng.com/reference/redeem-a-gift.md): Use this endpoint to redeem a gift. A gift can be redeemed after a successful verification with [Verify a gift](https://developers.cleeng.com/reference/verify-a-gift) (GET /gifts/verification/{code})… - [Get Adyen payment methods](https://developers.cleeng.com/reference/get-adyen-payment-methods.md): Use `/connectors/adyen/payment-methods` endpoint to query payment methods for payment with Adyen. This is required to render a front-end Drop-in component using [Adyen advanced… - [Payment with Adyen](https://developers.cleeng.com/reference/adyen-initial-payment.md): Use `/connectors/adyen/initial-payment` endpoint to perform payment with Adyen (that means payment with card with 3D Secure support, Apple Pay or Google Pay). - [Finalize payment with Adyen](https://developers.cleeng.com/reference/finalize-initial-payment.md): Use `/connectors/adyen/initial-payment/finalize` to finalize payments that require additional action from customers. If initial payment returns `action` object, call this endpoint to finalize… - [Payment with PayPal Express Checkout](https://developers.cleeng.com/reference/payment-with-paypal-connector-v1.md): Use `/connectors/paypal/v1/tokens` endpoint to perform payment with Paypal Express Checkout. Payment is executed on PayPal site and after success / error / cancel customer is redirected to predefined… - [Android Payment [Deprecated]](https://developers.cleeng.com/reference/android-payment.md): **This endpoint is deprecated.**

Use this endpoint to notify Cleeng about the successful Android in-app payment (Initial Purchase) and create a subscription in Cleeng. **Note:** This… - [Roku Payment](https://developers.cleeng.com/reference/roku-payment-ms.md): Use this endpoint to notify Cleeng about the successful Roku in-app payment (Initial Purchase) and create a subscription in Cleeng. **Note:** This endpoint uses <> for… - [Purchase without payment details](https://developers.cleeng.com/reference/payment-without-payment-details.md): Use `/payments` endpoint to perform purchase without payment details.
Use in cases:

- customer applied 100% coupon code and the publisher doesn't expect the payment details (option to set… - My Account - [Fetch customer's data](https://developers.cleeng.com/reference/fetch-customers-data.md): Use `/customers/:customerId` endpoint to fetch customer's data. - [Update customer's data](https://developers.cleeng.com/reference/update-customers-data.md): Use `/customers/:customerId` endpoint to update customer's data like firstName, lastName or email. - [Fetch customer's subscriptions](https://developers.cleeng.com/reference/fetch-customers-subscriptions.md): Use `/customers/:customerId/subscriptions` endpoint to fetch customer's subscriptions. This endpoint lists all active and stopped subscriptions, but it doesn't return expired ones. You can find… - [Fetch customer's passes](https://developers.cleeng.com/reference/fetch-customers-passes.md): This endpoint returns passes for the provided customer. This endpoint lists only active passes (`status` = `active`).

**NOTE:** This API requires <> to run. It should be… - [Fetch customer's payment details](https://developers.cleeng.com/reference/fetch-customers-payment-details.md): Use `customers/:customerId/payment_details` endpoint to fetch a customer payment details. Payment details hold selected information (e.g. card expiration date) of the complete set of payment details… - [Fetch customer's consents](https://developers.cleeng.com/reference/fetch-customers-consents.md): Use `/customers/:customerId/consents` to fetch customer's consents. Display fetched consents to enable consents management. This endpoint shows actual status of customer's consents. It returns useful… - [Fetch available switches](https://developers.cleeng.com/reference/fetch-available-switches.md): This endpoint returns all available offers to which a customer can switch from the current subscription in `available` array. Offers to which customer can't switch are returned in `unavailable` array… - [Apply coupon](https://developers.cleeng.com/reference/apply-coupon.md): Use this endpoint to apply coupon on existing subscription. The coupon previously has to be configured in **Cleeng Dashboard -> Offers & Coupons -> Coupon Management**. - [Add Adyen payment details](https://developers.cleeng.com/reference/adyen-add-payment-details.md): Use this method to add Adyen payment details (for example a card with 3D Secure support, Apple Pay or Google Pay), so that new payment details can be used for recurring payments. Example use case: a… - [Finalize add Adyen payment details](https://developers.cleeng.com/reference/finalize-add-adyen-payment-details.md): Use `/connectors/adyen/payment-details/finalize` to finalize payments that require additional action from customers. It is used in 3D Secure. - [Delete payment details](https://developers.cleeng.com/reference/delete-payment-details.md): Use this method to delete payment details.

**Note:** Removing payment details that are attached to subscriptions will prevent those subscriptions from being renewed if a customer doesn't add… - [Pause subscription](https://developers.cleeng.com/reference/ms-pause-subscription.md): Use this endpoint to pause a subscription. You can only pause active and canceled subscriptions (you cannot pause in-trial or terminated subscriptions).

Transition from active state to… - [Resume subscription ](https://developers.cleeng.com/reference/ms-resume-subscription.md): Use this endpoint to resume a subscription from a scheduled pause or to immediately resume from the pause that is ongoing. With immediate resume from the pause which is in progress, a payment attempt… - SSO Integration - [SSO Login](https://developers.cleeng.com/reference/sso-login.md): **Important: This is an exception because, unlike other MediaStore SDK endpoints, this one requires `publisherToken` for authorization.** Use this endpoint to generate a customer <>… ## API Reference: API 3.1 - [Getting Started With Core API](https://developers.cleeng.com/reference/api31.md) - Configuration - [Dunning actions](https://developers.cleeng.com/reference/dunning-actions.md): Dunning is the process of retrying payment attempts and sending payment reminders to customers when a payment gets rejected. With Cleeng you can configure payment retries at intervals to ensure… - Payments - [Create an order](https://developers.cleeng.com/reference/create-an-order.md): To create an order, you use orders resource. Order resources are used to handle customers' payments of previously defined offers. Orders expire after 24 hours unless the payment is captured. Payment… - [Get an order](https://developers.cleeng.com/reference/get-an-order.md): To get an order, you use publisher token and order id. Orders expire after 24 hours unless the payment is captured. - [Update an order](https://developers.cleeng.com/reference/31-update-an-order.md): To update an order, you use orders resource. Orders expire after 24 hours unless the payment is captured. - [Update a payment](https://developers.cleeng.com/reference/update-a-payment.md): To update a payment, you use payments resource. They are a reference of the actual payment that happens at the payment gateway. Payments handle customers' actual payments of previously defined order. - [Delete payment details](https://developers.cleeng.com/reference/31-delete-payment-details.md): Use this endpoint to delete a customer’s payment details (e.g. an expired credit card).

Please note that **removing payment details that are attached to subscriptions will prevent those… - Customers - [Register customer](https://developers.cleeng.com/reference/register-customer.md): Use this endpoint to register customers. - [List customers](https://developers.cleeng.com/reference/list-customers.md): This endpoint returns customers that match the requirements given in the API request. For example, it allows you to filter customers based on `externalId` or `email`.

**Note:** One of the… - [Update customer](https://developers.cleeng.com/reference/update-customer.md): Use this endpoint to update a customer's data, for example first name, last name. - [Request password reset](https://developers.cleeng.com/reference/request-password-reset.md): Use this API to initiate the password reset flow, so that your customer can define a new password. Using this endpoint will trigger an email to the customer. The email contains a link which directs… - [Delete customer](https://developers.cleeng.com/reference/delete-customer.md): Use this endpoint to delete customer data (anonymize a <>) in Cleeng. Customer data is anonymized for reporting reasons, and also to comply with privacy legislation (such as GDPR).… - [Create an offer](https://developers.cleeng.com/reference/create-an-offer.md): Use this endpoint to create offers. Supported offer types include subscription (including [seasonal subscription](https://publisher.support.cleeng.com/hc/en-us/articles/9565373130268-Seasonal-Subscrip… - [List offers](https://developers.cleeng.com/reference/list-offers.md): This endpoint lets you list all your offers that meet the requirements given in the API request. For example, it allows you to filter offers by offer type or offer status.

Additional… - [Get an offer](https://developers.cleeng.com/reference/get-an-offer.md): Use this endpoint to get basic offer details.
This endpoint supports [conditional requests](https://developers.cleeng.com/reference/api31#conditional-requests). - [Update an offer](https://developers.cleeng.com/reference/update-an-offer.md) - [Activate an offer](https://developers.cleeng.com/reference/activate-an-offer.md): Use this endpoint to activate an offer.
This endpoint supports [conditional requests](https://developers.cleeng.com/reference/api31#conditional-requests). - [Deactivate an offer](https://developers.cleeng.com/reference/deactivate-an-offer.md): Use this endpoint to deactivate an offer.
This endpoint supports [conditional requests](https://developers.cleeng.com/reference/api31#conditional-requests). - [Create offer localization](https://developers.cleeng.com/reference/create-offer-localization.md) - [Activate offer localization](https://developers.cleeng.com/reference/activate-offer-localization.md): Use this endpoint to activate an offer localization.
This endpoint supports [conditional requests](https://developers.cleeng.com/reference/api31#conditional-requests). - [Deactivate offer localization](https://developers.cleeng.com/reference/deactivate-offer-localization.md): Use this endpoint to deactivate an offer localization.
This endpoint supports [conditional requests](https://developers.cleeng.com/reference/api31#conditional-requests). - [Update offer localization](https://developers.cleeng.com/reference/update-offer-localization.md) - [Create a season group](https://developers.cleeng.com/reference/create-a-season-group.md): Use this endpoint to create a season group (called seasonal schedule in the Cleeng dashboard setup) - a group of seasons, each with its start and end date defined.

Creating season groups… - [Update a season group](https://developers.cleeng.com/reference/update-a-season-group.md): Use this endpoint to update a season group (called seasonal schedule in the Cleeng dashboard setup) - a group of seasons, each with its start and end date defined. (For more information, see… - [List season groups](https://developers.cleeng.com/reference/list-season-groups.md): This endpoint lets you list all season groups.

A season group (called seasonal schedule in the Cleeng dashboard setup) is a group of seasons, each with its start and end date defined. (For… - [Get a season group](https://developers.cleeng.com/reference/get-a-season-group.md): Use this endpoint to retrieve a season group by ID.

A season group (called seasonal schedule in the Cleeng dashboard setup) is a group of seasons, each with its start and end date defined.… - [Delete a season group](https://developers.cleeng.com/reference/delete-a-season-group.md): Use this endpoint to delete a season group (called seasonal schedule in the Cleeng dashboard setup) - a group of seasons, each with its start and end date defined. (For more information, see… - [Create a season in a season group](https://developers.cleeng.com/reference/create-a-season-in-a-season-group.md): Use this endpoint to create a season in a season group (called seasonal schedule in the Cleeng dashboard setup) - a group of seasons, each with its start and end date defined. (For more information,… - [Update a season within a season group](https://developers.cleeng.com/reference/update-a-season-within-a-season-group.md): Use this endpoint to update a season in a season group (called seasonal schedule in the Cleeng dashboard setup) - a group of seasons, each with its start and end date defined. (For more information,… - [Delete a season from a season group](https://developers.cleeng.com/reference/delete-a-season-from-a-season-group.md): Use this endpoint to delete a season from a season group (called seasonal schedule in the Cleeng dashboard setup) - a group of seasons, each with its start and end date defined. (For more… - [Subscriptions](https://developers.cleeng.com/reference/31-subscriptions.md): Core API (API 3.1) provides endpoints which allow you to manage subscriptions - [Create subscription](https://developers.cleeng.com/reference/create-subscription.md): Use this endpoint to create [externally-managed subscriptions](https://developers.cleeng.com/docs/externally-managed-subscriptions) - subscriptions whose lifecycle is managed outside of Cleeng.… - [Get a subscription](https://developers.cleeng.com/reference/get-a-subscription.md): Use this endpoint to get subscription details based on subscription ID. - [List subscriptions](https://developers.cleeng.com/reference/list-subscriptions.md): This endpoint returns subscriptions that match the specified criteria (`transactionId`, `paymentMethodId`, `externalId`, `customerId` or `offerId` and `customerId` together). Please bear in mind that… - [Update subscription](https://developers.cleeng.com/reference/update-subscription.md): Use this endpoint to update an existing subscription, for example apply a coupon or to update payment details. - [Activate subscription](https://developers.cleeng.com/reference/activate-subscription.md): Use this endpoint to activate a subscription. - [Cancel subscription](https://developers.cleeng.com/reference/cancel-subscription.md): Use this endpoint to cancel a subscription. - [Terminate subscription](https://developers.cleeng.com/reference/terminate-subscription.md): Use this endpoint to terminate a subscription. - [Fetch available switches](https://developers.cleeng.com/reference/31-fetch-available-switches.md): This endpoint returns all available offers to which a customer can switch from the current subscription in `available` array. Offers to which customer can't switch are returned in `unavailable` array… - [Switch subscription](https://developers.cleeng.com/reference/31-switch-subscription.md): This endpoint is used to upgrade or downgrade a subscription to another subscription plan. Use either `subscriptionId` OR `customerId` and `fromOfferId` together (`customerId` and `fromOfferId` can… - [List switches](https://developers.cleeng.com/reference/31-list-switches.md): This endpoint lets you list all subscription switches (e.g. upgrades, downgrades) that meet the requirements given in the API request. For example, it allows you to filter switches by status or… - [Fetch switch details](https://developers.cleeng.com/reference/31-fetch-switch-details.md): This endpoint retrieves details of a given subscription switch (e.g. upgrade, downgrade).

**Important**
Subscription upgrade and downgrade feature requires compatibility of the payment… - [Update switch](https://developers.cleeng.com/reference/31-update-switch.md): Use this endpoint to manage a subscription switch.

Currently, this endpoint supports cancelling a pending switch. (Pending is the status of the switch between the subscription switch request… - [Transfer subscription](https://developers.cleeng.com/reference/transfer-subscription.md): Use this endpoint to transfer [externally-managed subscriptions](https://developers.cleeng.com/docs/externally-managed-subscriptions) (EMS) - subscriptions whose life cycle is managed outside of… - [Revive subscription](https://developers.cleeng.com/reference/subscription-revive.md): This endpoint is used to revive terminated [externally-managed subscriptions](https://developers.cleeng.com/docs/externally-managed-subscriptions) (EMS) - subscriptions whose life cycle is managed… - [Renew subscription](https://developers.cleeng.com/reference/renew-subscription.md): Use this endpoint to renew [externally-managed subscriptions](https://developers.cleeng.com/docs/externally-managed-subscriptions) (EMS) - subscriptions whose life cycle is managed outside of Cleeng. - [Pause subscription ](https://developers.cleeng.com/reference/pause-subscription.md): Use this endpoint to pause a subscription. You can only pause active and canceled subscriptions (you cannot pause in-trial or terminated subscriptions).

Transition from active state to pause… - [Resume subscription](https://developers.cleeng.com/reference/resume-subscription.md): Use this endpoint to resume a subscription from a scheduled pause or to immediately resume from the pause that is ongoing. With immediate resume from the pause which is in progress, a payment attempt… - [Gift Subscriptions](https://developers.cleeng.com/reference/31-gift-subscriptions.md) - [Get a gift](https://developers.cleeng.com/reference/31-get-a-gift.md): This endpoint retrieves details of a given gift that was previously purchased. - [Update a gift](https://developers.cleeng.com/reference/31-update-a-gift.md): This endpoint gives possibility to update delivery details of a given gift that was previously purchased. - [Verify a gift](https://developers.cleeng.com/reference/31-verify-a-gift.md): Use this endpoint to verify whether a gift code provided by the user is valid. The gift code has to be verified before a gift is redeemed. It returns the available redemption options for the gift. - [Redeem a gift](https://developers.cleeng.com/reference/31-redeem-a-gift.md): Redeems a gift code for a customer. Depending on the customer's subscriptions and the publisher's gift redemption settings, redeeming a gift can: - start a new subscription to the gifted offer (if… - [Passes](https://developers.cleeng.com/reference/passes.md) - [Create a pass](https://developers.cleeng.com/reference/create-pass.md): Use this endpoint to create [externally-managed passes](https://developers.cleeng.com/docs/externally-managed-passes).

The life cycle of externally-managed passes is managed outside of Cleeng… - [Get a pass](https://developers.cleeng.com/reference/get-pass.md): Use this endpoint to get pass details based on pass ID. - [List passes](https://developers.cleeng.com/reference/list-passes.md): This endpoint returns passes that match the specified criteria (`transactionId`, `paymentMethodId`, `externalId`, `customerId` or `offerId` and `customerId` together). Please bear in mind that if you… - [Update a pass](https://developers.cleeng.com/reference/update-pass.md): Use this endpoint to update a pass using ID. Only a single property can be updated during one request. - [Terminate a pass](https://developers.cleeng.com/reference/terminate-pass.md): Use this endpoint to terminate a pass using its ID. - [Transfer a pass](https://developers.cleeng.com/reference/transfer-a-pass.md): Use this endpoint to transfer externally-managed passes between customers.

The life cycle of externally-managed passes is managed outside of Cleeng so it is up to a publisher to notify… - Entitlements - [List entitlements](https://developers.cleeng.com/reference/list-entitlements.md): You can use this endpoint to list a customer's entitlements and calculate a subscription's length. You can fetch entitlements for the following types of offer: **subscriptions**, **passes**, and… - [Get entitlements](https://developers.cleeng.com/reference/get-entitlement.md): You can use this endpoint to check entitlements to a specific offer.

If there are two or more subscriptions / passes for the same `offerId` and the same `customerId`, it will return one… - Campaigns & Coupons - [List campaigns](https://developers.cleeng.com/reference/list-campaigns.md): This endpoint lets you list all your campaign details based on a coupon code. ## API Reference: In-App Payments - [Android [Deprecated]](https://developers.cleeng.com/reference/android-1.md): **This endpoint is deprecated.**

Use this endpoint to notify Cleeng about the successful Android in-app payment (Initial Purchase) and create a subscription in Cleeng.

The… - [Roku](https://developers.cleeng.com/reference/roku-payment.md): Use this endpoint to notify Cleeng about the successful Roku in-app payment (Initial Purchase) and create a subscription in Cleeng.

The relevant endpoints are:
- Production URL:… - [Amazon FireTV](https://developers.cleeng.com/reference/amazonfiretv.md): Use this endpoint to notify Cleeng about the successful Amazon FireTV in-app payment (Initial Purchase) and create a subscription in Cleeng.

The relevant endpoints are:
- Production URL:… ## API Reference: IN-APP PAYMENTS_NEW - [Getting Started With In-App API](https://developers.cleeng.com/reference/getting-started-with-inapp-api.md) - [Samsung TV](https://developers.cleeng.com/reference/samsung-tv.md): Use this endpoint to notify Cleeng about Samsung TV in-app payment and to validate the purchase.

Please note that **this endpoint can be authorized with a publisher (X-Publisher-Token) or… - [Check Samsung TV purchase status](https://developers.cleeng.com/reference/check-samsung-tv-purchase-status.md): Use this endpoint to check the status of a Samsung TV in-app purchase.
The status returned in response can have three values:

- `pending` - purchase is still being processed
-… - [Register Apple SK2 purchase](https://developers.cleeng.com/reference/register-apple-sk2-purchase.md): Use this endpoint to register a purchase made via Apple StoreKit2 to initiate an asynchronous synchronization process. This process involves verifying the purchase with Apple and updating the user's… - [Transfer Apple SK2 purchase](https://developers.cleeng.com/reference/transfer-apple-sk2-purchase.md): Use this endpoint to transfer an existing **active** purchase from one user to another. This allows re-assigning access to a subscription or in-app purchase.

The transfer process is… - [Check Apple SK2 purchase synchronization status](https://developers.cleeng.com/reference/check-apple-sk2-purchase-synchronization-status.md): Use this endpoint to retrieve the status and result of a purchase synchronization or transfer process initiated by the… - [Register Google Play purchase](https://developers.cleeng.com/reference/register-google-play-purchase.md): Use this endpoint to register a purchase made via Google Play Billing to initiate an asynchronous synchronization process. This process involves verifying the purchase with Google Play and updating… - [Transfer Google Play purchase](https://developers.cleeng.com/reference/transfer-google-play-purchase.md): Use this endpoint to transfer an existing **active** purchase from one user to another. This allows re-assigning access.

**Scope:** Two product types are supported: a `subscription`… - [Check Google Play purchase synchronization status](https://developers.cleeng.com/reference/check-google-play-purchase-synchronization-status.md): Use this endpoint to retrieve the status and result of a purchase synchronization or transfer process initiated by the… - [Vizio](https://developers.cleeng.com/reference/vizio-purchase-validation.md): Use this endpoint to notify Cleeng about Vizio in-app payment and to validate the purchase.

Please note that **this endpoint can be authorized with a publisher (X-Publisher-Token) or JWT… - [Check Vizio purchase status](https://developers.cleeng.com/reference/check-vizio-purchase-status.md): Use this endpoint to check the status of a Vizio in-app purchase.
The status returned in response can have three values:

- `pending` - purchase is still being processed
-… ## API Reference: Webhooks - [Getting Started with Webhooks API](https://developers.cleeng.com/reference/getting-started-with-webhooks-api.md) - Endpoints - [Create a webhook endpoint](https://developers.cleeng.com/reference/create-a-webhook-endpoint.md): Creates a new webhook endpoint with auto-generated signing secret.
**Note:** The signing secret is returned only in this response - store it securely. - [List webhook endpoints](https://developers.cleeng.com/reference/list-webhook-endpoints.md): Returns all endpoints for the authenticated publisher with cursor-based pagination. - [Get a webhook endpoint](https://developers.cleeng.com/reference/get-a-webhook-endpoint.md): Returns a single endpoint by ID. The signing secret is not included. - [Update a webhook endpoint ](https://developers.cleeng.com/reference/update-a-webhook-endpoint.md): Partially updates an endpoint. Only provided fields are changed; omitted fields remain unchanged. Immutable fields (`id`, `signing`, `createdAt`) cannot be updated. - [Delete a webhook endpoint](https://developers.cleeng.com/reference/delete-a-webhook-endpoint.md): Deletes an endpoint and all its event subscriptions atomically. - [Rotate endpoint signing secret](https://developers.cleeng.com/reference/rotate-endpoint-signing-secret.md): Generates a new signing secret for the endpoint. The old secret is immediately invalidated. The new secret is returned only in this response - store it securely. - Event Types - [List available event types](https://developers.cleeng.com/reference/list-available-event-types.md): Returns all available event types grouped by domain. - [List endpoints subscribed to an event type](https://developers.cleeng.com/reference/list-endpoints-subscribed-to-an-event-type.md): Returns all endpoints for the authenticated publisher that subscribe to a specific event type. ## API Reference: Authentication API - [Getting Started With Authentication API](https://developers.cleeng.com/reference/getting-started-with-authentication-api.md) - [Hi5 Chatbot token](https://developers.cleeng.com/reference/hi5-chatbot-token.md): Use this endpoint to exchange Cleeng <> for Hi5 Chatbot token. - [Device Login Flow (PIN Pair) ](https://developers.cleeng.com/reference/device-login-flow.md) - [Generate code](https://developers.cleeng.com/reference/generate-code.md): Use this endpoint to generate a code for a specific device in Device Flow Login (PIN Pair) functionality. - [Authorize code](https://developers.cleeng.com/reference/authorize-code.md): Use this endpoint to verify the code and authorize the device in Device Flow Login (PIN Pair) functionality. - [Check code](https://developers.cleeng.com/reference/check-code.md): Use this endpoint for Device Flow Login (PIN Pair) functionality to check if the generated code has been authorized. - [JSON Web Key Set](https://developers.cleeng.com/reference/json-web-key-set.md): Use this endpoint to validate Cleeng’s JWTs (JSON Web Tokens).
This endpoint does not require authorization. ## API Reference: Identity Service API - Auth0 - [Auth0 - Generate token](https://developers.cleeng.com/reference/auth0_generate-token.md): Receives user authentication events from Auth0 post-login/post-registration action. Creates a new customer or updates existing customer data (if changes detected). Generates Cleeng access token (JWT)… ## API Changelog - [Release Notes](https://developers.cleeng.com/changelog/relase-noteshttpspublishersupportcleengcomhcen-ussections4620091486108-release-notes.md)