SVOD
Subscription Video On Demand
A subscription will give access to a range of products for a given period.
List SVOD Products
ProductSVOD
represents a subscription product in the API. Available subscriptions can be retrieved with the following query :
query SVODProducts {
cms {
products(query: "type:SVOD") {
items {
id
name
extension {
... on ProductSVOD {
accessPeriod
autoRenewal
trialPeriod
accessModes {
id
priceFormat
}
}
}
}
}
}
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
{
"data": {
"cms": {
"products": {
"items": [
{
"id": "31",
"name": "Découverte",
"extension": {
"accessPeriod": 30,
"autoRenewal": true,
"trialPeriod": 0,
"accessModes": [
{
"id": "0",
"priceFormat": "€16.58"
}
]
}
},
{
"id": "32",
"name": "Premium",
"extension": {
"accessPeriod": 60,
"autoRenewal": true,
"trialPeriod": 0,
"accessModes": [
{
"id": "0",
"priceFormat": "€24.92"
}
]
}
},
{
"id": "33",
"name": "Platinium",
"extension": {
"accessPeriod": 90,
"autoRenewal": true,
"trialPeriod": 0,
"accessModes": [
{
"id": "0",
"priceFormat": "€41.58"
}
]
}
}
]
}
}
}
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
Active SVOD Accesses
To retrieve the user's active subscriptions, use user.accesses
and query for type:SVOD
.
query ActiveSubscriptions {
user {
accesses(query: "type:SVOD") {
items {
id
dateExp
dateRenewal
recurring
type
product {
id
name
}
}
}
}
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Toggle Renewal
If the subscription uses a Payment Gateway (ProductAccess.gateway
) which supports recurring payments, you can enable/disable the renewal with the toggleAccessRenewal
mutation:
mutation ToggleRenewal {
toggleAccessRenewal(access: "55")
}
1
2
3