Get Subscription Terms For Bundles

post

/bcws/webresources/v1.0/subscriptions/deals/terms

Gets the subscription terms for the specified account and bundles.

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

Request

Query Parameters
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 subscription terms for deals were retrieved successfully
Body ()
Root Schema : schema
Type: array
Show Source
Nested Schema : schema
Type: object
Show Source
Nested Schema : ResourceRef
Type: object
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 subscription terms for the specified account and deal 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/deals/terms?accountId=0.0.0.1+-account+1607269 -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.

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+-deal+856633"]

Example of Response Body

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

[
   {
      "extension": null,
      "id": "0.0.0.1+-subscription_terms+859193",
      "termsName": "Term_12month_Termination_allowed",
      "termsDescription": "",
      "packageRef": null,
      "bundleRef": {
         "id": "0.0.0.1+-deal+856633",
         "uri": null
      },
      "serviceRef": null,
      "subscriberContractRef": {
         "id": "0.0.0.1+-subscriber_contract+1613606",
         "uri": null
      },
      "accountRef": {
         "id": "0.0.0.1+-account+1607269",
         "uri": null
      },
      "commitmentPeriod": 12,
      "commitmentUnit": 0,
      "commitmentStartDate": 1400050800000,
      "commitmentEndDate": 1431586800000,
      "earlyCancellationAllowed": true, 
      "earlyCancellationDate": null,
      "earlyCancellationFee": 0,
      "reducedCancellationFee": null,
      "autoRenew": false,
      "renewWithSameTerms": false,
      "bundleName": null,
      "currency": 840,
      "gracePeriod": 0,
      "gracePeriodUnit": 0,
      "earlyCancellationType": 0,
      "renewalContractTerms": null
   }
]
Back to Top