Get Members of a Group
get
/bcws/webresources/v1.0/sharing/members/{id}
Gets the members of the sharing group that matches the specified ID.
Request
Path Parameters
-
id(required): string
The ID of the sharing group to get.
There's no request body for this operation.
Back to TopResponse
Supported Media Types
- application/xml
- application/json
200 Response
The members were returned successfully.
Nested Schema : SharingGroupMembers
Type:
Show Source
object
-
extension: object
extension
The extended attributes.
-
groupType(required): string
The sharing group type. Allowed Values:
- H_PSG (Hierarchy product sharing group)
- PR_PSG (Payment responsibility product sharing group)
- H_DSG (Hierarchy discount sharing group)
- PR_DSG (Payment responsibility discount sharing group)
-
memberDetails: array
memberDetails
The list of sharing group members.
Nested Schema : extension
Type:
object
The extended attributes.
Nested Schema : memberDetails
Type:
array
The list of sharing group members.
Show Source
-
Array of:
object MemberDetails
The list of sharing group members.
Nested Schema : MemberDetails
Type:
object
The list of sharing group members.
Show Source
-
accountNumber: string
The member's account number.
-
accountRef: object
ResourceRef
-
firstName: string
The member's first name.
-
lastName: string
The member's last name.
-
services: array
services
The list of services shared in the group.
Nested Schema : ResourceRef
Type:
Show Source
object
-
id(required): string
The ID.
-
uri: string
The Uniform Resource Identifier (URI) associated with the resource.
Nested Schema : services
Type:
array
The list of services shared in the group.
Show Source
-
Array of:
object Services
The list of services shared in the group.
Nested Schema : Services
Type:
object
The list of services shared in the group.
Show Source
-
index: integer
(int32)
The position of the entry in the index. For example, the first service in a list would have an index value of 1.
-
serviceRef: object
ResourceRef
500 Response
An internal server error occurred.
Examples
This example shows how to get the members of a discount sharing group 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/sharing/members/0.0.0.1+-group-sharing-discounts+110486'
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,
"groupType": "Sharing Discounts Group",
"memberDetails": [
{
"accountRef": {
"id": "0.0.0.1+-account+210954",
"uri": null
},
"services": [
{
"serviceRef": {
"id": "0.0.0.0++0",
"uri": null
},
"index": 2
}
],
"accountNumber": "0.0.0.1-210954",
"firstName": "Bob",
"lastName": "Williams"
},
{
"accountRef": {
"id": "0.0.0.2+-account+41107",
"uri": null
},
"services": [
{
"serviceRef": {
"id": "0.0.0.0++0",
"uri": null
},
"index": 1
},
{
"serviceRef": {
"id": "0.0.0.2+-service-ip+41299",
"uri": null
},
"index": 3
}
],
"accountNumber": "0.0.0.2-41107",
"firstName": "Joe",
"lastName": "Ochoa"
}
]
}