Skip to end of banner
Go to start of banner

GET netflix/promotions/list

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

Available from CRM.COM R12.0.0

This method returns the netflix promotions which are applicable for the operator that the caller belongs to.  Multiple promotions are returned by each call 

Resource URL

Parameters

Name

Type

Description

token

String

The token retrieved from the login method

fields_set

(optional)

List of Strings, comma separated 

A list of fields that should be included in the results. If not specified then all the available fields will be returned

Restrictions

  • N/A

Response Data

Name

Type

Description

code

String

The code of the retrieved promotion

name

String

The name of the retrieved promotion

description

String

The description of the retrieved promotion

effective_from

Date

The date that the retrieved promotion becomes effective

expires_on

Date

The date that the retrieved promotion expires

Examples

 Example 1

HTTP Method: GET

 

Request:

Response:

     {
        "data":
        [
            {
                "code": "14",
                "expires_on": null,
                "name": "Test",
                "description": null,
                "effective_from": "2017-01-01T00:00:00"
            },
            {
                "code": "15",
                "expires_on": null,
                "name": "Test_2",
                "description": null,
                "effective_from": "2017-02-01T00:00:00"
            }
        ],
        "status":
        {
            "code": "OK",
            "description": "",
            "message": ""
        }
    }
  • No labels