GET/partners/customers/{domainId}/subscriptions
Gets a list of active subscriptions.
OAuth 2.0 authentication. For more information, see Authentication and Authorization.
partner
partner.read
| Parameter | Type | Description |
|---|---|---|
| domainId | integer | Domain ID required example : 10000001 |
| Header | type | Description |
|---|---|---|
| Authorization | string | Bearer {token} required |
OK
| Property | Type | Description |
|---|---|---|
| subscriptions | array (Subscriptions) | This model specifies the subscription in use, paid contract type, and Trial status. It is used to set a subscription. It contains the subscription renewal information as well as the current subscription information.
|
| Property | Type | Description |
|---|---|---|
| domainId | integer | Domain ID required readOnly : true |
| subscriptionId | integer | Subscription ID required |
| productId | string |
required Allowed values : STD_T, ADV_T, STD, ADV |
| plan | string | Contract type
Applicable contract types by plan group
required Allowed values : TRIAL, MONTHLY, ANNUAL_LICENSE, ANNUAL_PREPAY_LICENSE |
| planStartDate | string | Start date required format : date readOnly : true |
| planEndDate | string | End date
format : date readOnly : true nullable : true |
| licenseAssignType | string | License assignment type
|
| licenseCount | integer | Number of licenses nullable : true |
| status | string | Subscription status
required Allowed values : ACTIVE, SUSPENDED_TRIALEND |
| renewal | object (renewal) | This model specifies renewal of a paid subscription. Use the type property to choose whether to renew the subscription with the current conditions or to change them. It is also possible to reduce the number of licenses upon renewal. |
| Property | Type | Description |
|---|---|---|
| subscriptionId | integer | Subscription ID required |
| type | string | Subscription renewal type
required Allowed values : STAY, CHANGE, CANCEL |
| productId | string | Paid plan ID
Allowed values : STD, ADV |
| plan | string | Paid contract type
Applicable contract types by plan group
Allowed values : MONTHLY, ANNUAL_LICENSE, ANNUAL_PREPAY_LICENSE |
| licenseCount | integer | Number of licenses to apply at the time of renewal maximum : 1000000 |
Example 1
1{2 "subscriptions": [3 {4 "domainId": 0,5 "subscriptionId": 0,6 "productId": "STD_T",7 "plan": "TRIAL",8 "planStartDate": "2019-08-24",9 "planEndDate": "2019-08-24",10 "licenseCount": 0,11 "status": "ACTIVE",12 "renewal": {13 "subscriptionId": 0,14 "type": "STAY",15 "productId": "STD",16 "plan": "MONTHLY",17 "licenseCount": 100000018 }19 }20 ]21}