Get Purchased Contracts for an Account

get

/bcws/webresources/v1.0/subscriptions/account/{id}/purchasedcontracts

Gets a list of all of the purchased contracts for an account.

Request

Path Parameters

There's no request body for this operation.

Back to Top

Response

Supported Media Types

200 Response

The list of purchased contracts for an account was 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 a list of all of the purchased contracts for an account 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/account/0.0.0.1+-account+183887/purchasedcontracts'

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,
        "id": "0.0.0.1+-subscription_terms+87345",
        "termsName": "Term_12month_renew_diff",
        "termsDescription": "",
        "packageRef": {
            "id": "0.0.0.1+-plan+98178",
            "uri": null
        },
        "bundleRef": null,
        "serviceRef": null,
        "subscriberContractRef": {
            "id": "0.0.0.1+-subscriber_contract+182479",
            "uri": null
        },
        "accountRef": {
            "id": "0.0.0.1+-account+183887",
            "uri": null
        },
        "commitmentPeriod": 11,
        "commitmentUnit": 0,
        "commitmentStartDate": 1706659200000,
        "commitmentEndDate": 1738022400000,
        "earlyCancellationAllowed": true,
        "earlyCancellationDate": 1711584000000,
        "earlyCancellationFee": 100,
        "reducedCancellationFee": null,
        "autoRenew": true,
        "renewWithSameTerms": false,
        "bundleName": null,
        "currency": 840,
        "gracePeriod": 0,
        "packageId": 528,
        "gracePeriodUnit": 0,
        "earlyCancellationType": 1,
        "renewalContractTerms": {
            "extension": null,
            "id": "0.0.0.1+-subscription_terms+88369",
            "termsName": null,
            "termsDescription": null,
            "packageRef": null,
            "bundleRef": null,
            "serviceRef": null,
            "subscriberContractRef": null,
            "accountRef": null,
            "commitmentPeriod": 12,
            "commitmentUnit": 0,
            "commitmentStartDate": null,
            "commitmentEndDate": null,
            "earlyCancellationAllowed": false,
            "earlyCancellationDate": null,
            "earlyCancellationFee": 0,
            "reducedCancellationFee": null,
            "autoRenew": false,
            "renewWithSameTerms": false,
            "bundleName": null,
            "currency": 840,
            "gracePeriod": 0,
            "packageId": null,
            "gracePeriodUnit": 0,
            "earlyCancellationType": 0,
            "renewalContractTerms": null
        }
    }
] 
Back to Top