Get Services for a Contract

get

/bcws/webresources/v1.0/subscriptions/contracts/{id}/services

Gets a list of all services associated with a contract.

Request

Path Parameters

There's no request body for this operation.

Back to Top

Response

Supported Media Types

200 Response

The list of services associated with the contract was retrieved successfully.
Body ()
Root Schema : schema
Type: array
Show Source
Nested Schema : Service
Type: object
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 : ResourceRef
Type: object
Show Source
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

500 Response

An internal server error occurred.
Back to Top

Examples

This example shows how to get a list of all services associated with a contract 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/contract/0.0.0.1+-subscriber_contract+183887/services'

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,
        "serviceDetails": {
            "@class": "com.oracle.communications.brm.cc.model.ServiceBase",
            "extension": null,
            "id": {
                "id": "0.0.0.1+-service-ip+328998",
                "uri": null
            },
            "pendingDeferredActionsCount": null,
            "accountRef": {
                "id": "0.0.0.1+-account+112724",
                "uri": null
            },
            "aliasList": [],
            "balanceGroupRef": null,
            "creationDate": 1711030499000,
            "effectiveDate": null,
            "lastStatusComment": null,
            "lastStatusChange": 1711030499000,
            "login": "a1111111112as",
            "lifeCycleState": 0,
            "lastModified": null,
            "name": "ip",
            "password": null,
            "passwordExpiration": null,
            "passwordStatus": null,
            "status": 10100,
            "statusFlags": null,
            "subscriptionServiceRef": null,
            "serviceAccessLevel": null,
            "balGrpIndex": null,
            "nameinfoObj": null,
            "svcExpLastNotiOffset": null,
            "svcExpLastNotiT": null
        },
        "accountNumber": null,
        "products": [],
        "discounts": []
    }
]
Back to Top