Skip to main content
Skip table of contents

Creating a third-party product

Request

For each third-party offering that you want to make available to your customers, you must create a product in OpenTV Platform.

For example, if you are only enabling Netflix and want to allow your customers to purchase any of the three Netflix plans, you should create three products: one for Netflix Basic, one for Netflix Standard, and one for Netflix Premium.

You can create such a product via an API call, as described here, or in Operator Console (OpCon).

See Create a new product in the OpCon documentation.

To create a third-party product, send a PUT request to:

BASH
http://<server>:<port>/cpm/commercial/v1/products

Headers

  • Content-Type: application/json

Mandatory fields

  • type (in this case, thirdParty)

  • name – the product name

  • providerId – the provider ID

  • providerResourceId – the ID of the resource

Example

A request with this payload creates the specified product:

JSON
{
    "type": "thirdParty",
    "name": "Netflix Basic",
    "providerId": "Netflix_EU",
    "providerResourceId": "B_BUNDLE_BASIC"
}

Response

A successful request returns an HTTP 201 status and a link to the newly created product.

A bad request returns an HTTP 400 status.

Example

A successful request returns a payload that looks like this:

JSON
{
    "self": "/commercial/v1/products/Netflix_EU_B_BUNDLE_BASIC"
}

See also

For full details of this API, see Content and Product Manager (CPM) API documentation: commercial v1.

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.