Get Packages for Transition
/bcws/webresources/v1.0/subscriptions/packages/{id}/transition
Both the id parameter and the type query parameter are required.
Request
-
id(required): string
The ID of the package, such as 0.0.0.1+-plan+123456.
-
type(required): integer(int32)
The transition type, which can be:
- 1 (Upgrade)
- 2 (Downgrade)
- 3 (Generation change)
- 101Red
- 102 (Blue)
- 103 (Green)
This query parameter is required.
There's no request body for this operation.
Back to TopResponse
- application/xml
- application/json
200 Response
object
-
extension: object
extension
The extended attributes.
-
package: array
package
object
object
-
balanceGroups: array
balanceGroups
Balance groups associated with the package.
-
creationDate(required): string
(date-time)
The date and time the package was created.
-
description: string
The package's description.
-
id(required): string
The ID.
-
lastModified(required): string
(date-time)
The date and time the package was last modified.
-
name: string
The package's name.
-
packageId: integer
(int32)
The package's ID.
-
purchaseFeeWaived: boolean
Default Value:
false
Whether to waive the purchase fee for the package (true) or not (false). The default is (false). -
serviceGroup: array
serviceGroup
-
serviceIds: array
serviceIds
The list of service IDs associated with the package.
-
subscriptionTerms: object
SubscriptionTerms
-
tags: string
The tags associated with the package.
-
terminationFeeWaived: boolean
Default Value:
false
Whether to waive the termination fee for the package (true) or not (false). The default is (false). -
validTo: string
(date-time)
The end date for the package's validity.
array
-
Array of:
object BalanceGroups
Balance groups associated with the package.
array
-
Array of:
string
The list of service IDs associated with the package.
object
-
accountRef: object
ResourceRef
-
autoRenew: boolean
Whether to automatically renew the terms at the end of its commitment period (true) or not (false).
-
bundleName(required): string
The name of the bundle associated with the subscription terms.
-
bundleRef: object
ResourceRef
-
commitmentEndDate(required): string
(date-time)
The date and time the commitment period ends.
-
commitmentPeriod: integer
(int32)
The duration of the commitment period.
-
commitmentStartDate(required): string
(date-time)
The date and time the commitment period starts.
-
commitmentUnit: integer
(int32)
The unit for the commitment period. Can be one of the following:
- 0: Months
- 1: Days
-
currency: integer
(int32)
The currency associated with the subscription fee.
-
earlyCancellationAllowed: boolean
Whether early cancellation is allowed (true) or not (false).
-
earlyCancellationDate(required): string
(date-time)
The date and time of early cancellation.
-
earlyCancellationFee(required): number
The fee for canceling a subscription early.
-
earlyCancellationType: integer
(int32)
The type of early cancelation fee. Can be one of the following:
- 0: Fixed
- 1: Reducing
-
extension: object
extension
The extended attributes.
-
gracePeriod: integer
(int32)
The duration of the grace period.
-
gracePeriodUnit: integer
(int32)
The unit for the grace period. Can be one of the following:
- 0: Months
- 1: Days
-
id(required): string
The ID.
-
packageId: integer
(int32)
The ID of package associated with the subscription terms.
-
packageRef: object
ResourceRef
-
reducedCancellationFee(required): number
The reduced cancellation fee.
-
renewalContractTerms(required): object
SubscriptionTerms
-
renewWithSameTerms: boolean
Whether to renew with the same terms (true) or with different terms (false).
-
serviceRef: object
ResourceRef
-
subscriberContractRef: object
ResourceRef
-
termsDescription: string
The subscription terms' description.
-
termsName(required): string
The subscription terms' name.
object
-
default: boolean
-
elem: integer
(int32)
The position of the entry in the array. For example, the first item in a list would have an elem value of 1.
-
limits: array
limits
-
name: string
The name of the balance group.
-
rules: array
rules
The list of consumption rules that define the order in which to consume balances.
array
-
Array of:
object Rules
The list of consumption rules that define the order in which to consume balances.
object
-
consumptionRule: integer
(int32)
The consumption rule. Can be one of the following:
- 0: Not defined
- 1: Earliest start time
- 2: Latest start time
- 3: Earliest expiration time
- 4: Latest expiration time
- 5: Earliest start time and latest expiration time
- 6: Earliest start time and earliest expiration time
- 7: Latest start time and earliest expiration time
- 8: Latest start time and latest expiration time
- 9: Earliest expiration time and earliest start time
- 10: Earliest expiration time and latest start time
- 10: Latest expiration time and earliest start time
- 10: Latest expiration time and latest start time
-
creditFloor: number
The credit floor amount. The credit floor is the amount that indicates none of the balance has been used. For example, if an account is granted 200 minutes, the credit floor would be -200. For currency balances, the credit floor is usually 0.
-
creditLimit: number
The credit limit amount. A credit limit specifies the maximum amount of a balance that your customers can spend. For currency balances, the credit limit is the maximum balance of euros, dollars, or so on that can accumulate in an account. For noncurrency balances, the credit limit is the amount at which an account has used all of its minutes, gigabytes, or so on, which is usually 0.
-
creditThresholds: integer
(int32)
The percent threshold for notifications. The account is sent a notification when this percent of the balance is used. The percentage must be a 5% increment. Use the decimal notation of the binary number for the bit position.
For example, to notify the account when 90% of the free minutes have been used, you calculate 90/5=18, so use the 18th bit position, which is 131072 in decimal notation. To notify when 95% have been used, use the 19th bit position, which is 262144 in decimal notation.
-
creditThresholdsFixed: string
The fixed threshold for notifications. The account is sent a notification when this fixed value of the balance is reached. You can set multiple values by using the | delimiter. For example, to notify the account when 30 minutes of usage remains and again when 5 minutes of usage remains, use |30.00|5.00
-
dynamicCreditFloor: boolean
Whether to use a dynamic credit floor (true) or not (false). The default is false.
-
loanThresholds: integer
(int32)
-
loanThresholdsFixed: string
-
resourceId: integer
(int32)
The resource ID.
object
-
consumptionRule: string
The consumption rule. Can be one of the following:
- 0: Not defined
- 1: Earliest start time
- 2: Latest start time
- 3: Earliest expiration time
- 4: Latest expiration time
- 5: Earliest start time and latest expiration time
- 6: Earliest start time and earliest expiration time
- 7: Latest start time and earliest expiration time
- 8: Latest start time and latest expiration time
- 9: Earliest expiration time and earliest start time
- 10: Earliest expiration time and latest start time
- 10: Latest expiration time and earliest start time
- 10: Latest expiration time and latest start time
-
elem: integer
(int32)
The position of the entry in the array. For example, the first item in a list would have an elem value of 1.
object
-
groupIndex: integer
(int32)
The group index.
-
service: array
service
object
-
balGrpIndex: integer
(int32)
The balance group index.
-
bundles: array
bundles
The list of bundles in the service.
-
groupParent: boolean
Whether this is a parent in the service group (true) or not (false).
-
serviceKey: string
The service key.
-
serviceType: string
The service type.
-
subscriptionIndex: integer
(int32)
The subscription index.
array
-
Array of:
object Bundles
The list of bundles in the service.
object
-
chargeoffers: array
chargeoffers
The list of charge offers in the bundle.
-
description(required): string
The bundle's description.
-
discountoffers: array
discountoffers
The list of discount offers in the bundle.
-
elem: integer
(int32)
The position of the entry in the array. For example, the first item in a list would have an elem value of 1.
-
name(required): string
The bundle's name.
-
ref: object
ResourceRef
-
required: boolean
Default Value:
false
Whether the bundle is required (true) or optional (false).
array
-
Array of:
object Chargeoffers
The list of charge offers in the bundle.
array
-
Array of:
object Discountoffers
The list of discount offers in the bundle.
object
-
id(required): string
The ID.
-
uri: string
The Uniform Resource Identifier (URI) associated with the resource.
object
-
baseProductCode: string
The code of the base product of the charge offer.
-
baseProductName: string
The name of the base product of the charge offer.
-
baseProductRef: object
ResourceRef
-
description(required): string
The charge offer's description.
-
gracePeriodOffset: integer
(int32)
The number to offset the grace period by.
-
gracePeriodUnit: integer
(int32)
The unit for the charge offer's grace period.
-
name(required): string
The charge offer's name.
-
ref: object
ResourceRef
-
renewalMode: integer
(int32)
How to handle the charge offer's cycle alignment when its bundle is reactivated. Possible values are:
- 0: Cycle aligns with the original billing date or configured specific day of the month.
- 1: Cycle aligns with the reactivation date.
-
validityAlignMode: integer
(int32)
This shows if the product is an addon product and alignment of validity with other products.
object
-
description(required): string
The discount offer's description.
-
name(required): string
The discount offer's name.
-
ref: object
ResourceRef
object
500 Response
Examples
This example shows how to get the packages that a specified package can transition to with the specified transition type by submitting a GET request on the REST resource using cURL. For more information about cURL, see "Use cURL".
cURL Command
curl -X GET 'http://hostname:port/bcws/webresources/version/subscriptions/packages/0.0.0.1+-plan+8862197/transition?type=1'
where:
- hostname is the URL for the Billing Care REST server.
- port is the port for the Billing Care REST server.
- version is the version of the API you're using, such as v1.0.
Example of Response Body
This example shows the contents of the response body in JSON format.
{
"extension":null,
"package":[
{
"id":"0.0.0.1+-plan+8861173",
"creationDate":null,
"description":"",
"lastModified":null,
"validTo":null,
"name":"Package_Transition2",
"tags":"Uncategorized",
"serviceGroup":[
{
"service":[
{
"serviceKey":"/service/broadband28710096",
"serviceType":"/service/broadband",
"balGrpIndex":0,
"groupParent":false,
"subscriptionIndex":0,
"bundles":[
{
"ref":{
"id":"0.0.0.1+-deal+8862453",
"uri":null
},
"required":true,
"name":"Deal_Plan_Transition_Broadband2",
"description":"",
"chargeoffers":[
{
"name":"Product_BroadBand2",
"description":"",
"ref":{
"id":"0.0.0.1+-product+8863605",
"uri":null
}
}
],
"discountoffers":[],
"elem":null
}
]
}
],
"groupIndex":0
}
],
"packageId":null,
"serviceIds":[],
"purchaseFeeWaived":null,
"terminationFeeWaived":null,
"balanceGroups":[],
"subscriptionTerms":null
}
]
}