Provision API

Disney provides users access to Disney content across various application and platform combinations including mobile devices, smart TVs, and desktop computers. A direct integration provides opportunities for partners to enhance their digital experiences for their existing users or to make digital offerings available for new users.


Parameters

NameDescription

org_id*required

string

(path)

The tennant, which will be sent as the provider of the subscription.

user_id*required

string

(path)

The user_id will be used as the primary identifier for an external user/purchase, and be unique across billing and CRM systems.

Request-Correlation-Id*required

string

(header)

A reference for this transaction that can be used to track it.

body*required

CreateSubscriptionBody

(body)

‘none’

Request body - instance of CreateSubscriptionBody

content_copy
1
2
3
4
5
6
7
{
  "subscriptionId": "ENT1664367665579",
  "products": [
    "com.disney.yoigo.es.bundle.basic",
    "com.disney.yoigo.es.bundle.premium"
  ]
}
Name Type Required Description
subscriptionId string true The subscriptionId will be sent as the entitlement ID, an unique identifier of product(s) to which a customer is entitled.
products Products true List of product identifiers.

Request example

content_copy
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13

curl -X POST https://provision-master.private.dev.k8s.masmovil.com/v2/orgs/yoigo/tv/disney/users/MOO1664367665504 \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -H "Request-Correlation-Id: 2106f808-36e9-402d-bf37-f1f7fa04776b" \
 --data-raw "{
  'subscriptionId': 'ENT1664367665579',
  'products': [
    'com.disney.yoigo.es.bundle.basic',
    'com.disney.yoigo.es.bundle.premium'
  ]
}" 

Responses

Code Description Schema
202 The operation request was successfully accepted and returned the workflow initiation data. WorkflowResponse
400 Bad Request [Error]
401 Unauthorized request [Error]
500 Internal Server Error [Error]

Parameters

NameDescription

org_id*required

string

(path)

The tennant, which will be sent as the provider of the subscription.

user_id*required

string

(path)

The user_id will be used as the primary identifier for an external user/purchase, and be unique across billing and CRM systems.

subscription_id*required

string

(path)

The subscription_id will be sent as the entitlement ID, an unique identifier of product(s) to which a customer is entitled.

Request-Correlation-Id*required

string

(header)

A reference for this transaction that can be used to track it.

body*required

ModifySubscriptionBody

(body)

‘none’

Request body - instance of ModifySubscriptionBody

content_copy
1
2
3
4
5
6
{
  "products": [
    "com.disney.yoigo.es.bundle.basic",
    "com.disney.yoigo.es.bundle.premium"
  ]
}
Name Type Required Description
products Products true List of product identifiers.

Request example

content_copy
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12

curl -X PATCH https://provision-master.private.dev.k8s.masmovil.com/v2/orgs/yoigo/tv/disney/users/MOO1664367665504/subscriptions/ENT1664367665579 \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -H "Request-Correlation-Id: 2106f808-36e9-402d-bf37-f1f7fa04776b" \
 --data-raw "{
  'products': [
    'com.disney.yoigo.es.bundle.basic',
    'com.disney.yoigo.es.bundle.premium'
  ]
}" 

Responses

Code Description Schema
204 Subscription modified successfully. None
400 Bad Request [Error]
401 Unauthorized request [Error]
500 Internal Server Error [Error]

Parameters

NameDescription

org_id*required

string

(path)

The tennant, which will be sent as the provider of the subscription.

user_id*required

string

(path)

The user_id will be used as the primary identifier for an external user/purchase, and be unique across billing and CRM systems.

subscription_id*required

string

(path)

The subscription_id will be sent as the entitlement ID, an unique identifier of product(s) to which a customer is entitled.

Request-Correlation-Id*required

string

(header)

A reference for this transaction that can be used to track it.

product*required

string

(query)

name of an optional product for this operation

Request example

content_copy
1
2
3
4
5

curl -X DELETE https://provision-master.private.dev.k8s.masmovil.com/v2/orgs/yoigo/tv/disney/users/MOO1664367665504/subscriptions/ENT1664367665579?product='disney.bundle.basic'?product=disney.bundle.basic \
  -H "Accept: application/json" \
  -H "Request-Correlation-Id: 2106f808-36e9-402d-bf37-f1f7fa04776b"

Responses

Code Description Schema
204 Subscription terminated successfully. None
400 Bad Request [Error]
401 Unauthorized request [Error]
500 Internal Server Error [Error]

Parameters

NameDescription

org_id*required

string

(path)

The tennant, which will be sent as the provider of the subscription.

user_id*required

string

(path)

The user_id will be used as the primary identifier for an external user/purchase, and be unique across billing and CRM systems.

subscription_id*required

string

(path)

The subscription_id will be sent as the entitlement ID, an unique identifier of product(s) to which a customer is entitled.

Request-Correlation-Id*required

string

(header)

A reference for this transaction that can be used to track it.

Request example

content_copy
1
2
3
4
5

curl -X GET https://provision-master.private.dev.k8s.masmovil.com/v2/orgs/yoigo/tv/disney/users/MOO1664367665504/subscriptions/ENT1664367665579 \
  -H "Accept: application/json" \
  -H "Request-Correlation-Id: 2106f808-36e9-402d-bf37-f1f7fa04776b"

Responses

Code Description Schema
200 Get subscription status request successful SubscriptionStatus
400 Bad Request [Error]
401 Unauthorized request [Error]
500 Internal Server Error [Error]

Parameters

NameDescription

org_id*required

string

(path)

The tennant, which will be sent as the provider of the subscription.

user_id*required

string

(path)

The user_id will be used as the primary identifier for an external user/purchase, and be unique across billing and CRM systems.

subscription_id*required

string

(path)

The subscription_id will be sent as the entitlement ID, an unique identifier of product(s) to which a customer is entitled.

Request-Correlation-Id*required

string

(header)

A reference for this transaction that can be used to track it.

body

SuspendSubscriptionBody

(body)

‘none’

Request body - instance of SuspendSubscriptionBody

content_copy
1
2
3
4
5
6
{
  "products": [
    "com.disney.yoigo.es.bundle.basic",
    "com.disney.yoigo.es.bundle.premium"
  ]
}
Name Type Required Description
products Products true List of product identifiers.

Request example

content_copy
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12

curl -X POST https://provision-master.private.dev.k8s.masmovil.com/v2/orgs/yoigo/tv/disney/users/MOO1664367665504/subscriptions/ENT1664367665579/suspend \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -H "Request-Correlation-Id: 2106f808-36e9-402d-bf37-f1f7fa04776b" \
 --data-raw "{
  'products': [
    'com.disney.yoigo.es.bundle.basic',
    'com.disney.yoigo.es.bundle.premium'
  ]
}" 

Responses

Code Description Schema
204 Subscription suspended successfully. None
400 Bad Request [Error]
401 Unauthorized request [Error]
500 Internal Server Error [Error]

Parameters

NameDescription

org_id*required

string

(path)

The tennant, which will be sent as the provider of the subscription.

user_id*required

string

(path)

The user_id will be used as the primary identifier for an external user/purchase, and be unique across billing and CRM systems.

subscription_id*required

string

(path)

The subscription_id will be sent as the entitlement ID, an unique identifier of product(s) to which a customer is entitled.

Request-Correlation-Id*required

string

(header)

A reference for this transaction that can be used to track it.

body

ReactivateSubscriptionBody

(body)

‘none’

Request body - instance of ReactivateSubscriptionBody

content_copy
1
2
3
4
5
6
{
  "products": [
    "com.disney.yoigo.es.bundle.basic",
    "com.disney.yoigo.es.bundle.premium"
  ]
}
Name Type Required Description
products Products true List of product identifiers.

Request example

content_copy
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12

curl -X POST https://provision-master.private.dev.k8s.masmovil.com/v2/orgs/yoigo/tv/disney/users/MOO1664367665504/subscriptions/ENT1664367665579/reactivate \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -H "Request-Correlation-Id: 2106f808-36e9-402d-bf37-f1f7fa04776b" \
 --data-raw "{
  'products': [
    'com.disney.yoigo.es.bundle.basic',
    'com.disney.yoigo.es.bundle.premium'
  ]
}" 

Responses

Code Description Schema
204 Subscription reactivated successfully. None
400 Bad Request [Error]
401 Unauthorized request [Error]
500 Internal Server Error [Error]

Parameters

NameDescription

org_id*required

string

(path)

The tennant, which will be sent as the provider of the subscription.

user_id*required

string

(path)

The user_id will be used as the primary identifier for an external user/purchase, and be unique across billing and CRM systems.

subscription_id*required

string

(path)

The subscription_id will be sent as the entitlement ID, an unique identifier of product(s) to which a customer is entitled.

Request-Correlation-Id*required

string

(header)

A reference for this transaction that can be used to track it.

body*required

ActivationUrlRequest

(body)

‘none’

Request body - instance of ActivationUrlRequest

content_copy
1
2
3
4
5
6
7
8
{
  "products": [
    "com.disney.yoigo.es.bundle.basic",
    "com.disney.yoigo.es.bundle.premium"
  ],
  "country": "ES",
  "expireDate": "2021-01-01T00:00:00Z"
}
Name Type Required Description
products Products true List of product identifiers.
country string true none
expireDate string(date-time) true ISO-8601 timestamp indicating when the activation will expire

Request example

content_copy
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14

curl -X POST https://provision-master.private.dev.k8s.masmovil.com/v2/orgs/yoigo/tv/disney/users/MOO1664367665504/subscriptions/ENT1664367665579/activation_url \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -H "Request-Correlation-Id: 2106f808-36e9-402d-bf37-f1f7fa04776b" \
 --data-raw "{
  'products': [
    'com.disney.yoigo.es.bundle.basic',
    'com.disney.yoigo.es.bundle.premium'
  ],
  'country': 'ES',
  'expireDate': '2021-01-01T00:00:00Z'
}" 

Responses

Code Description Schema
201 New url with token was created successfully. ActivationUrlResponse
400 Bad Request [Error]
401 Unauthorized request [Error]
500 Internal Server Error [Error]

Parameters

NameDescription

org_id*required

string

(path)

The tennant, which will be sent as the provider of the subscription.

user_id*required

string

(path)

The user_id will be used as the primary identifier for an external user/purchase, and be unique across billing and CRM systems.

Request example

content_copy
1
2
3
4

curl -X POST https://provision-master.private.dev.k8s.masmovil.com/v2/orgs/yoigo/tv/disney/users/MOO1664367665504/callbacks/activate \
  -H "Accept: application/json"

Responses

Code Description Schema
204 Activate done successfully None
400 Bad Request [Error]
401 Unauthorized request [Error]
500 Internal Server Error [Error]

Endpoints

Disney Tv