Transition Account to New Package

put

/bcws/webresources/v1.0/subscriptions/account/{id}/package/transition

Transitions the specified account from one package to another package. The old package is canceled, and the new one is purchased.

Request

Path Parameters
Supported Media Types
Request Body - application/json ()
Root Schema : schema
Type: object
Show Source
Nested Schema : extension
Type: object
The extended attributes.
Nested Schema : schema
Type: object
Show Source
Nested Schema : mappedServiceIds
Type: array
The list of service IDs.
Show Source
Nested Schema : Notes
Type: object
Show Source
Nested Schema : services
Type: array
Show Source
Nested Schema : customizedChargeOffers
Type: array
The list of customized charge offers in the bundle.
Show Source
Nested Schema : customizedDiscountOffers
Type: array
The list of customized discount offers.
Show Source
Nested Schema : extension
Type: object
The extended attributes.
Nested Schema : CustomizedChargeOffers
Type: object
The list of customized charge offers in the bundle.
Show Source
Nested Schema : ResourceRef
Type: object
Show Source
Nested Schema : EndingType
Type: object
Show Source
Nested Schema : StartingType
Type: object
Show Source
  • The starting type mode for a product. Can be one of the following:
    • immediately: The start date is set to today. This mode can be used with the purchaseStart, cycleStart, and usageStart parameters.
    • absolute: The start date is a calendar date. This mode can be used with the purchaseStart, cycleStart, and usageStart parameters.
    • relativeToPurchase: The start date is relative to the purchase date, such as a specified number of billing cycles, months, days, hours, minutes, or seconds after activation. This mode can be used with the cycleStart and usageStart parameters.
    • firstUsage: The start day is the day of the first recorded usage.
  • The date and time the cycle starts.
  • RelativeSettings
Nested Schema : overriddenCharges
Type: array
The overridden charges.
Show Source
Nested Schema : RelativeSettings
Type: object
Show Source
Nested Schema : overriddenCharges
Type: object
Show Source
Nested Schema : charges
Type: array
The charge details.
Show Source
Nested Schema : Charges
Type: object
The charge details.
Show Source
Nested Schema : charge
Type: array
The charges.
Show Source
Nested Schema : Charge
Type: object
The charges.
Show Source
Nested Schema : CustomizedDiscountOffers
Type: object
The list of customized discount offers.
Show Source
Nested Schema : overriddenCharges
Type: array
The overridden charges.
Show Source
Nested Schema : comments
Type: array
The list of comments associated with the note.
Show Source
Nested Schema : extension
Type: object
The extended attributes.
Nested Schema : Comments
Type: object
The list of comments associated with the note.
Show Source
Nested Schema : PurchasingService
Type: object
Show Source
Nested Schema : customizedBundles
Type: array
Show Source
Nested Schema : devices
Type: array
The list of devices associated with the service.
Show Source
Nested Schema : profiles
Type: array
Show Source
Nested Schema : Discriminator: @class
Type: object
Show Source
Nested Schema : Devices
Type: object
The list of devices associated with the service.
Show Source
Nested Schema : Discriminator: @class
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
Request Body - application/xml ()
Root Schema : schema
Type: object
Show Source
Nested Schema : extension
Type: object
The extended attributes.
Nested Schema : schema
Type: object
Show Source
Nested Schema : mappedServiceIds
Type: array
The list of service IDs.
Show Source
Nested Schema : Notes
Type: object
Show Source
Nested Schema : services
Type: array
Show Source
Nested Schema : customizedChargeOffers
Type: array
The list of customized charge offers in the bundle.
Show Source
Nested Schema : customizedDiscountOffers
Type: array
The list of customized discount offers.
Show Source
Nested Schema : extension
Type: object
The extended attributes.
Nested Schema : CustomizedChargeOffers
Type: object
The list of customized charge offers in the bundle.
Show Source
Nested Schema : ResourceRef
Type: object
Show Source
Nested Schema : EndingType
Type: object
Show Source
Nested Schema : StartingType
Type: object
Show Source
  • The starting type mode for a product. Can be one of the following:
    • immediately: The start date is set to today. This mode can be used with the purchaseStart, cycleStart, and usageStart parameters.
    • absolute: The start date is a calendar date. This mode can be used with the purchaseStart, cycleStart, and usageStart parameters.
    • relativeToPurchase: The start date is relative to the purchase date, such as a specified number of billing cycles, months, days, hours, minutes, or seconds after activation. This mode can be used with the cycleStart and usageStart parameters.
    • firstUsage: The start day is the day of the first recorded usage.
  • The date and time the cycle starts.
  • RelativeSettings
Nested Schema : overriddenCharges
Type: array
The overridden charges.
Show Source
Nested Schema : RelativeSettings
Type: object
Show Source
Nested Schema : overriddenCharges
Type: object
Show Source
Nested Schema : charges
Type: array
The charge details.
Show Source
Nested Schema : Charges
Type: object
The charge details.
Show Source
Nested Schema : charge
Type: array
The charges.
Show Source
Nested Schema : Charge
Type: object
The charges.
Show Source
Nested Schema : CustomizedDiscountOffers
Type: object
The list of customized discount offers.
Show Source
Nested Schema : overriddenCharges
Type: array
The overridden charges.
Show Source
Nested Schema : comments
Type: array
The list of comments associated with the note.
Show Source
Nested Schema : extension
Type: object
The extended attributes.
Nested Schema : Comments
Type: object
The list of comments associated with the note.
Show Source
Nested Schema : PurchasingService
Type: object
Show Source
Nested Schema : customizedBundles
Type: array
Show Source
Nested Schema : devices
Type: array
The list of devices associated with the service.
Show Source
Nested Schema : profiles
Type: array
Show Source
Nested Schema : Discriminator: @class
Type: object
Show Source
Nested Schema : Devices
Type: object
The list of devices associated with the service.
Show Source
Nested Schema : Discriminator: @class
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
Back to Top

Response

200 Response

The package was transitioned successfully.

500 Response

An internal server error occurred.
Back to Top

Examples

This example shows how to transition an account from one package to another by submitting a PUT request on the REST resource using cURL. For more information about cURL, see "Use cURL".

cURL Command

curl -X PUT http://hostname:port/bcws/webresources/v1.0/subscriptions/account/0.0.0.1+-account+384883/package/transition -H 'content-type: application/json' -d @transitionPackage.json

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.
  • transitionPackage.json is the JSON file that specifies the transition details.

Example of Request Body

This example shows the contents of the transitionPackage.json file sent as the request body.

{
   "toPackage": "0.0.0.1+-plan+384657",
   "fromPackage": "0.0.0.1+-plan+382609",
   "transitionType": "1",
   "services": [
      {
         "service": {
            "login": null,
            "@class": "com.oracle.communications.brm.cc.model.ServiceBase"
         },
         "serviceType": "/service/telco/gsm/telephony",
         "serviceKey": "/service/telco/gsm/telephony31597898",
         "balGrpIndex": null,
         "customizedBundles": [
            {
               "name": "VFG30Deal1",
               "id": "0.0.0.1+-deal+383121",
               "customizedChargeOffers": [
                  {
                     "name": "VFG30Prod1",
                     "description": "",
                     "baseChargeOfferRef": {
                        "id": "0.0.0.1+-product+383457",
                        "uri": null
                     }
                  }
               ],
               "customizedDiscountOffers": []
            }
         ],
         "subscriptionIndex": 0,
         "groupParent": false
      },
      {
         "service": {
            "login": null,
            "@class": "com.oracle.communications.brm.cc.model.ServiceBase"
         },
         "serviceType": "/service/telco/gsm/sms",
         "serviceKey": "/service/telco/gsm/sms18818235",
         "balGrpIndex": null,
         "customizedBundles": [
            {
               "name": "VFG30Deal2",
               "id": "0.0.0.1+-deal+382097",
               "customizedChargeOffers": [
                  {
                     "name": "VFG30Prod2",
                     "description": "",
                     "baseChargeOfferRef": {
                        "id": "0.0.0.1+-product+382945",
                        "uri": null
                     }
                  }
               ],
               "customizedDiscountOffers": []
            }
         ],
         "subscriptionIndex": 0,
         "groupParent": false
      }
   ],
   "genericBundle":{}
}

Example of Response Body

If successful, the response code 200 is returned with true in the response body.

Back to Top