Provision TV HBO
HBO (Warner Bros. Discovery. WBD) provides users access to WBD 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
Name
In
Type
Required
Description
org_id
path
string
true
Tenant
Request-Correlation-Id
header
string
true
A reference for this transaction that can be used to track it.
body
body
HboCreateSubscription
true
‘none’
Request body - JsonObject
1
2
3
4
5
6
7
8
9
10
{
"service_id" : 1234567890123456 ,
"external_id" : 1234567890123456 ,
"country" : "ES" ,
"product_code" : "HBO" ,
"product_name" : "HBO" ,
"product_start_date" : "2021-01-01T00:00:00Z" ,
"product_expire_date" : "2021-01-01T00:00:00Z" ,
"product_renew_date" : "2021-01-01T00:00:00Z"
}
Request example
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
curl -X POST https://provision-master.private.dev.k8s.masmovil.com/v1/tv/hbo/orgs/masmovil/subscriptions \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-H "Request-Correlation-Id: Workflow Id (unique identifier)" \
--data-raw "{
'service_id': 1234567890123456,
'external_id': 1234567890123456,
'country': 'ES',
'product_code': 'HBO',
'product_name': 'HBO',
'product_start_date': '2021-01-01T00:00:00Z',
'product_expire_date': '2021-01-01T00:00:00Z',
'product_renew_date': '2021-01-01T00:00:00Z'
}"
Parameters
Name
In
Type
Required
Description
org_id
path
string
true
Tenant
subscription_id
path
string
true
Subscription identifier. Corresponds to the Service Id in HBO.
Request-Correlation-Id
header
string
true
A reference for this transaction that can be used to track it.
body
body
HboCancelSubscription
true
‘none’
Request body - JsonObject
1
2
3
4
5
6
{
"external_id" : 1234567890123456 ,
"reason" : "PRODUCT_CANCELED" ,
"product_code" : "HBO" ,
"product_expire_date" : "2021-01-01T00:00:00Z"
}
Request example
1
2
3
4
5
6
7
8
9
10
11
12
curl -X PUT https://provision-master.private.dev.k8s.masmovil.com/v1/tv/hbo/orgs/masmovil/subscriptions/4567890123456789/cancel \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-H "Request-Correlation-Id: Workflow Id (unique identifier)" \
--data-raw "{
'external_id': 1234567890123456,
'reason': 'PRODUCT_CANCELED',
'product_code': 'HBO',
'product_expire_date': '2021-01-01T00:00:00Z'
}"
Parameters
Name
In
Type
Required
Description
org_id
path
string
true
Tenant
subscription_id
path
string
true
Subscription identifier. Corresponds to the Service Id in HBO.
body
body
HboGenerateActivationUrl
true
‘none’
Request body - JsonObject
1
2
3
4
5
6
7
8
9
10
{
"external_id" : 1234567890123456 ,
"country" : "ES" ,
"product_code" : "HBO" ,
"product_name" : "HBO" ,
"product_start_date" : "2021-01-01T00:00:00Z" ,
"product_expire_date" : "2021-01-01T00:00:00Z" ,
"product_renew_date" : "2021-01-01T00:00:00Z" ,
"transaction_id" : 4567890123456789
}
Request example
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
curl -X POST https://provision-master.private.dev.k8s.masmovil.com/v1/tv/hbo/orgs/masmovil/subscriptions/4567890123456789/activation-url \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
--data-raw "{
'external_id': 1234567890123456,
'country': 'ES',
'product_code': 'HBO',
'product_name': 'HBO',
'product_start_date': '2021-01-01T00:00:00Z',
'product_expire_date': '2021-01-01T00:00:00Z',
'product_renew_date': '2021-01-01T00:00:00Z',
'transaction_id': 4567890123456789
}"