Get Bundles for an Account

get

/bcws/webresources/v1.0/subscriptions/purchasedbundles/{id}

Gets the list of bundles that the specified account has purchased.

Request

Path Parameters

There's no request body for this operation.

Back to Top

Response

Supported Media Types

200 Response

The list of purchased bundles was returned successfully.
Body ()
Root Schema : schema
Type: array
Show Source
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 account has purchased 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/purchasedbundles/0.0.0.1+-account+57615'

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,
    "bundleId": "0.0.0.1+-deal+150499",
    "name": "Deal 1 with product 1",
    "permitted": null,
    "creationDate": null,
    "description": null,
    "validTo": null,
    "tags": null,
    "ref": null,
    "chargeoffers": [],
    "discountoffers": [],
    "subscriptionTerms": null,
    "service": null
},
{
    "extension": null,
    "bundleId": "0.0.0.1+-deal+58423",
    "name": "Deal 2b - Discounted Email Access",
    "permitted": null,
    "creationDate": null,
    "description": null,
    "validTo": null,
    "tags": null,
    "ref": null,
    "chargeoffers": [],
    "discountoffers": [],
    "subscriptionTerms": null,
    "service": null
},
{
    "extension": null,
    "bundleId": "0.0.0.1+-deal+57399",
    "name": "Deal 1b - Standard Email Access",
    "permitted": null,
    "creationDate": null,
    "description": null,
    "validTo": null,
    "tags": null,
    "ref": null,
    "chargeoffers": [],
    "discountoffers": [],
    "subscriptionTerms": null,
    "service": null
},
{
    "extension": null,
    "bundleId": "0.0.0.1+-deal+151454",
    "name": "Deal_1",
    "permitted": null,
    "creationDate": null,
    "description": null,
    "validTo": null,
    "tags": null,
    "ref": null,
    "chargeoffers": [],
    "discountoffers": [],
    "subscriptionTerms": null,
    "service": null
}
Back to Top