Introduction
This section describes BSS communication with AminoTV License v4 API. Products and user licenses are manageable through License Management API.
The license management API consist of two parts: licenses management and products management.
Entities
License resource
Typical license resource may look like the one below and it consists of 3 parts.
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
{
"id": "42",
"type": "License",
"attributes": {
"status": "ACTIVE",
"start_date": 1523268666,
"stop_date": 1523268698,
"order_id": "1adc0dbe-3c65-4248-896c-78c049e276c8",
"renew_record": {
"recurring": true,
"expiry_date": 1523268698
},
"purchase_record": {
"price_currency_amount": 1223,
"price_currency_iso4217": "EUR",
"purchase_timestamp": 1526648593,
"payment_method": "credit card"
}
},
"relationships": {
"user": {
"data": {
"id": "41",
"type": "User"
}
},
"product": {
"data": {
"id": "41",
"type": "Product"
}
}
}
} |
Resource identification:
- id - unique license resource identifier - auto generated value, this value is used when operating over license
- type - resource type, must be 'License'
Attributes:
status - current license status, could be one of [PROCESSING, CHECK_INVALID, ORDER_ERROR, ACTIVE, EXPIRED, SUSPENDED, SUSPENDEDADMIN]: