Get Bundles for Transition

get

/bcws/webresources/v1.0/subscriptions/bundles/{id}/transition

Gets the list of bundles that the specified bundle can transition to with the specified transition type.

Both the id parameter and the type query parameter are required.

Request

Path Parameters
Query Parameters
  • The type of transition, which can be upgrade (1), downgrade (2), generation change (3), red (101), blue (102), or green (103).

    This query parameter is required.

There's no request body for this operation.

Back to Top

Response

Supported Media Types

200 Response

The list of bundles was returned successfully.
Body ()
Root Schema : bundleList
Type: object
Show Source
Nested Schema : bundle
Type: array
A bundle.
Show Source
Nested Schema : extension
Type: object
The extended attributes.
Nested Schema : bundle
Type: object
A bundle.
Show Source
Nested Schema : chargeoffers
Type: array
The list of charge offers in the bundle.
Show Source
Nested Schema : discountoffers
Type: array
The list of discount offers in the bundle.
Show Source
Nested Schema : extension
Type: object
The extended attributes.
Nested Schema : ResourceRef
Type: object
Show Source
Nested Schema : Service
Type: object
Show Source
Nested Schema : SubscriptionTerms
Type: object
Show Source
Nested Schema : Chargeoffers
Type: object
The list of charge offers in the bundle.
Show Source
Nested Schema : Discountoffers
Type: object
The list of discount offers in the bundle.
Show Source
Nested Schema : discounts
Type: array
Show Source
Nested Schema : extension
Type: object
The extended attributes.
Nested Schema : products
Type: array
Show Source
Nested Schema : Discriminator: @class
Type: object
Show Source
Nested Schema : Discount
Type: object
Show Source
Nested Schema : extension
Type: object
The extended attributes.
Nested Schema : Product
Type: object
Show Source
Nested Schema : extension
Type: object
The extended attributes.
Nested Schema : aliasList
Type: array
The list of aliases associated with the service.
Show Source
Nested Schema : extension
Type: object
The extended attributes.
Nested Schema : AliasList
Type: object
The list of aliases associated with the service.
Show Source
Nested Schema : extension
Type: object
The extended attributes.

500 Response

An internal server error occurred.
Back to Top

Examples

This example shows how to get the bundles that a specified bundle 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/bundles/0.0.0.1+-deal+8860917/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,
    "bundle":[
        {
            "extension":null,
            "bundleId":"0.0.0.1+-deal+8862965",
            "name":"DealBroadband2",
            "permitted":"/service/broadband",
            "creationDate":1500961416000,
            "description":"",
            "validTo":0,
            "tags":"Uncategorized",
            "ref":{
                "id":"0.0.0.1+-deal+8862965",
                "uri":null
            },
            "chargeoffers":[
                {
                    "name":"Product_BroadBand2",
                    "description":"",
                    "ref":{
                        "id":"0.0.0.1+-product+8863605","uri":null
                    }
                }
            ],
            "discountoffers":[],
            "subscriptionTerms":null,
            "service":null
        }
    ]
}
Back to Top