Get Count for Service Types
get
/bcws/webresources/v1.0/services/account/{id}/count
Gets the number of different types of services associated with the specified account.
Request
Path Parameters
-
id(required): string
The ID of the account, such as 0.0.0.1+-account+3456789.
There's no request body for this operation.
Back to TopResponse
Supported Media Types
- application/xml
- application/json
200 Response
The service type count was returned successfully.
Nested Schema : servicesByPurchase
Type:
Show Source
object
-
count: integer
(int32)
The number of services.
-
extension: object
extension
The extended attributes.
-
serviceType: string
The service type.
Nested Schema : extension
Type:
object
The extended attributes.
500 Response
An internal server error occurred.
Examples
This example shows how to get the number services of different types 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/services/account/0.0.0.1+-account+57615/count'
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,
"serviceType": "ip",
"count": 5
},
{
"extension": null,
"serviceType": "email",
"count": 3
}
]