Get Bundles and Offers for Services

post

/bcws/webresources/v1.0/subscriptions/service/bundleoffers

Gets the bundles and their associated charge offers and discount offers for one or more services.

Note: Even though this is a POST request, it does not create or update anything in BRM.

Request

There are no request parameters for this operation.

Supported Media Types
Request Body - application/xml ()
Root Schema : schema
Type: array
Show Source
Request Body - application/json ()
Root Schema : schema
Type: array
Show Source
Back to Top

Response

Supported Media Types

200 Response

The bundles were returned successfully.
Body ()
Root Schema : bundleOffers
Type: object
Show Source
Nested Schema : bundleOffer
Type: array
A bundle.
Show Source
Nested Schema : BundleOffer
Type: object
A bundle.
Show Source
Nested Schema : chargeoffers
Type: array
A list of charge offers.
Show Source
Nested Schema : discountoffers
Type: array
A list of discount offers.
Show Source
Nested Schema : Chargeoffers
Type: object
The list of charge offers in the bundle.
Show Source
Nested Schema : ResourceRef
Type: object
Show Source
Nested Schema : Discountoffers
Type: object
The list of discount offers in the bundle.
Show Source

500 Response

An internal server error occurred.
Back to Top

Examples

This example shows how to view bundle offers associated with one or more services by submitting a POST request on the REST resource using cURL. For more information about cURL, see "Use cURL".

cURL Command

curl -X POST http://hostname:port/bcws/webresources/version/subscriptions/service/bundleoffers -H 'content-type: application/json' -d @file.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.
  • file.json is the JSON file that lists the service IDs.

Example of Request Body

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

["0.0.0.1+-service-ip+1606694"]

Example of Response Body

This example shows the contents of the response body in JSON format.

{
   "0.0.0.1+-service-ip+1606694": {
      "bundleOffer": [
         {
            "bundleId": "0.0.0.1+-deal+856633",
            "name": "Ip_Deal",
            "packageId": "224",
            "chargeoffers": [
               {
                  "chargeRef": {
                     "id": "0.0.0.1+-purchased_product+1608742",
                     "uri": null
                  },
                  "name": "IP",
                  "description": "",
                  "isRequired": true,
                  "status": "1",
                  "lastStatusChange": 1393676070000
               }
            ],
            "discountoffers": []
         }
      ]
   }
}
Back to Top