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
-
id(required): string
The ID of the account.
There's no request body for this operation.
Back to TopResponse
Supported Media Types
- application/xml
- application/json
200 Response
The list of available purchased discount shares was returned successfully.
Nested Schema : sponsor
Type:
Show Source
object
-
description(required): string
The sponsored offer's description.
-
eventDescription(required): string
The description of the event associated with the sponsored offer.
-
eventType(required): string
The event type associated with the sponsored offer.
-
extension: object
extension
The extended attributes.
-
name(required): string
The name of the sharing group.
-
offeringRef: object
ResourceRef
-
quantity: string
The quantity of the sponsored offer in the sharing group.
-
selected: boolean
Whether the sponsored offer is selected (true) or not (false).
-
sponsorshipRef(required): object
ResourceRef
-
validFrom(required): string
(date-time)
The date and time the sponsored offer's validity starts.
-
validTo(required): string
(date-time)
The date and time the sponsored offer's validity ends.
Nested Schema : extension
Type:
object
The extended attributes.
Nested Schema : ResourceRef
Type:
Show Source
object
-
id(required): string
The ID.
-
uri: string
The Uniform Resource Identifier (URI) associated with the resource.
500 Response
An internal server error occurred.
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
}
]