Get Available Discount Shares for Account

get

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

Gets a list of purchased discount shares that are available for an account while creating a new discount sharing group.

Request

Path Parameters

There's no request body for this operation.

Back to Top

Response

Supported Media Types

200 Response

The list of available purchased discount shares was returned successfully.
Body ()
Root Schema : schema
Type: array
Show Source
Nested Schema : sponsor
Type: object
Show Source
Nested Schema : extension
Type: object
The extended attributes.
Nested Schema : ResourceRef
Type: object
Show Source

500 Response

An internal server error occurred.
Back to Top

Examples

This example shows how to get a list of an account's purchased discounts that are available to share in a new 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/sponsors/discount/0.0.0.1+-account+8649023'

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,
        "sponsorshipRef": {
            "id": "0.0.0.1+-discount+199934",
            "uri": null
        },
        "offeringRef": {
            "id": "0.0.0.1+-purchased_discount+8647295",
            "uri": null
        },
        "name":"Standard GSM Discount",
        "quantity":"1",
        "description":"",
        "eventType":"/event/billing/product/fee/cycle/cycle_forward_monthly",
        "eventDescription":"Monthly Cycle Forward Event",
        "validFrom":1393833600000,
        "validTo":0,
        "selected":false
    }
]
Back to Top