Get Customized Charge Offers for a Service

get

/bcws/webresources/v1.0/subscriptions/service/{id}/customizedoffers

Gets all customized charge offers that match the specified service ID.

Request

Path Parameters

There's no request body for this operation.

Back to Top

Response

Supported Media Types

200 Response

The list of customized charge offers was returned successfully.
Body ()
Root Schema : customizedOffers
Type: object
Show Source
Nested Schema : customizedOffer
Type: array
Show Source
Nested Schema : CustomizedOffer
Type: object
Show Source
Nested Schema : ResourceRef
Type: object
Show Source
Nested Schema : overriddenCharges
Type: array
The overridden charges.
Show Source
Nested Schema : overriddenCharges
Type: object
Show Source
Nested Schema : charges
Type: array
The charge details.
Show Source
Nested Schema : Charges
Type: object
The charge details.
Show Source
Nested Schema : charge
Type: array
The charges.
Show Source
Nested Schema : Charge
Type: object
The charges.
Show Source

500 Response

An internal server error occurred.
Back to Top

Examples

This example shows how to get the customized charge offers for a given service 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/subscriptions/service/0.0.0.1+-service-broadband+125400/customizedoffers

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.

{
  "customizedOffer": [
    {
      "id": "0.0.0.1+-product+106933",
      "purchasedProductRef": {
        "id": "0.0.0.1+-purchased_product+124888",
        "uri": null
      },
      "cycleDuration": 1,
      "recurringFee": null,
      "recurringFeeOverriden": 0,
      "recurringDiscount": 0,
      "recurringDiscountPercent": 0,
      "purchaseFee": null,
      "purchaseFeeOverriden": 0,
      "purchaseDiscount": 0,
      "purchaseDiscountPercent": 0,
      "usageDiscount": 0,
      "usageStartT": 1638316800000,
      "usageEndT": 0,
      "purchaseStartT": 1638316800000,
      "purchaseEndT": 0,
      "cycleStartT": 1638316800000,
      "cycleEndT": 0,
      "gracePeriodUnit": 0,
      "gracePeriodOffset": 0,
      "renewalMode": 0,
      "terminationFee": null,
      "overriddenCharges": [
        {
          "event": "/event/billing/product/fee/purchase",
          "charges": [
            {
              "startDate": 1634601600000,
              "endDate": 1637280000000,
              "charge": [
                {
                  "amount": 105,
                  "priceTag": "USD",
                  "type": "Amount"
                }
              ]
            }
          ]
        }
      ]
    },
    {
      "id": "0.0.0.1+-discount+109493",
      "purchasedProductRef": {
        "id": "0.0.0.1+-purchased_discount+124376",
        "uri": null
      },
      "cycleDuration": 0,
      "recurringFee": null,
      "recurringFeeOverriden": null,
      "recurringDiscount": null,
      "recurringDiscountPercent": null,
      "purchaseFee": null,
      "purchaseFeeOverriden": null,
      "purchaseDiscount": null,
      "purchaseDiscountPercent": null,
      "usageDiscount": null,
      "usageStartT": 1638316800000,
      "usageEndT": 0,
      "purchaseStartT": 1638316800000,
      "purchaseEndT": 0,
      "cycleStartT": 1638316800000,
      "cycleEndT": 0,
      "gracePeriodUnit": null,
      "gracePeriodOffset": null,
      "renewalMode": null,
      "terminationFee": null,
      "overriddenCharges": [
        {
          "event": "/event/billing/product/fee/purchase",
          "charges": [
            {
              "startDate": 1634601600000,
              "endDate": 1637280000000,
              "charge": [
                {
                  "amount": 105,
                  "priceTag": "USD",
                  "type": "Amount"
                }
              ]
            }
          ]
        }
      ]
    }
  ]
}
Back to Top