Get Ownership Details for an Account

get

/bcws/webresources/v1.0/sharing/{id}

Gets the ownership details for the specified account and sharing group type.

Both the id parameter and the type query parameter are required.

Request

Path Parameters
Query Parameters
  • The type of sharing group: charge, discount, product, or profile.

There's no request body for this operation.

Back to Top

Response

Supported Media Types

200 Response

The ownership details were returned successfully.
Body ()
Root Schema : schema
Type: array
Show Source
Nested Schema : sharingOwnerDetails
Type: object
Show Source
Nested Schema : ResourceRef
Type: object
Show Source
Nested Schema : extension
Type: object
The extended attributes.
Nested Schema : ownershipDetails
Type: array
The ownership details for the sharing group.
Show Source
Nested Schema : OwnershipDetails
Type: object
The ownership details for the sharing group.
Show Source

500 Response

An internal server error occurred.
Back to Top

Examples

This example shows how to get the details about discount sharing groups owned by 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/sharing/0.0.0.1+-account+221550?type=discount

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,
      "groupRef": {
         "id": "0.0.0.1+-group-sharing-discounts+110486",
         "uri": null
      },
      "groupName": "VPNSharingGroup1",
      "groupOwnerBalGroupref": {
         "id": "0.0.0.1+-balance_group+61005",
         "uri": null
      },
      "groupOwnerBalGroupName": "Balance Group <Account>",
      "parentRef": {
         "id": "0.0.0.1+-account+59789",
         "uri": null
      },
      "parentName": null,
      "accountRef": null,
      "billunitName": null,
      "paymentMethod": null,
      "memberCount": 3,
      "groupType": "Sharing Discounts Group",
      "globalChargeShareGroup": false,
      "ownershipDetails": []
   }
]
Back to Top