Get Usage by ID
get
/usage/{id}
Get the specified usage resource.
Request
Path Parameters
-
id(required): string
The ID of the usage resource to get.Example:
0.0.0.1+-event-billing-product-fee-cycle-cycle_forward_monthly+32341474824064940
Query Parameters
-
@type: string
The type of object to return.Example:
Use @type=Usage for a base object, or @type=UsageOracle for an extended object.
-
fields: string
The list of fields to return in the response.Example:
fields=description,ratedProductUsage
There's no request body for this operation.
Back to TopResponse
Supported Media Types
- application/json;charset=utf-8
200 Response
Success
Root Schema : Usage
Type:
object
Title:
Usage
A instance of usage.
Show Source
-
@baseType: string
The object's superclass.
-
@schemaLocation: string
(uri)
A URI to a JSON schema file that defines additional attributes and relationships.
-
@type: string
The object's subclass.
-
description: string
Title:
Usage Description
The usage's description -
href: string
(uri)
Title:
Usage Href
The usage's href. -
id: string
Title:
Usage ID
The usage's ID. -
ratedProductUsage: array
ratedProductUsage
The usage's rating details.
- relatedParty: array relatedParty
-
status: string
Title:
Usage Status
Allowed Values:[ "received", "rejected", "recycled", "guided", "rated", "rerated", "billed" ]
The usage's status. -
usageCharacteristic: array
usageCharacteristic
The usage's characteristics.
-
usageDate: string
(date-time)
Title:
Usage Date
The usage's date. -
usageSpecification: object
Usage Specification Ref
Title:
Usage Specification Ref
A usage specification reference. -
usageType: string
Title:
Usage Type
The usage's type.
Nested Schema : ratedProductUsage
Type:
array
The usage's rating details.
Show Source
-
Array of:
object Rated Product Usage
Title:
Rated Product Usage
An instance of rated usage.
Nested Schema : usageCharacteristic
Type:
array
The usage's characteristics.
Show Source
-
Array of:
object Usage Characteristic
Title:
Usage Characteristic
A characteristic of usage.
Nested Schema : Usage Specification Ref
Type:
object
Title:
Usage Specification Ref
A usage specification reference.
Show Source
-
@baseType: string
Title:
Base Type
The object's superclass. -
@referredType: string
Title:
Referred Type
The object's type in the target system, if baseType and type need further disambiguation. -
@schemaLocation: string
(uri)
Title:
Schema Location
A URI to a JSON-Schema file that defines additional attributes and relationships. -
@type: string
Title:
Type
The object's subclass. -
href: string
(uri)
Title:
Usage Specification Href
The usage specification's href. -
id(required): string
Title:
Usage Specification ID
The usage specification's ID. -
name: string
Title:
Usage Specification Name
The usage specification's name.
Nested Schema : Rated Product Usage
Type:
object
Title:
Rated Product Usage
An instance of rated usage.
Show Source
-
@baseType: string
Title:
Base Type
The object's superclass. -
@schemaLocation: string
(uri)
Title:
Schema Location
A URI to a JSON-Schema file that defines additional attributes and relationships. -
@type: string
Title:
Type
The object's subclass. -
bucketValueConvertedInAmount: object
Money
A base / value business entity used to represent money.
-
isBilled: boolean
Title:
Is Billed
Whether the usage has been billed (true) or not (false). -
isTaxExempt: boolean
Title:
Is Tax Exempt
Whether the usage is tax exempt (true) or not (false). -
offerTariffType: string
Title:
Offer Tariff Type
The tariff's type. -
productRef: object
Product Ref
Title:
Product Ref
A reference to a product. -
ratingAmountType: string
Title:
Rating Amount Type
The rating amount's type. -
ratingDate: string
(date-time)
Title:
Rating Date
The date the usage was rated. -
taxExcludedRatingAmount: object
Money
A base / value business entity used to represent money.
-
taxIncludedRatingAmount: object
Money
A base / value business entity used to represent money.
-
taxRate: number
(float)
Title:
Tax Rate
The tax rate. -
usageRatingTag: string
Title:
Usage Rating Tag
The usage rating's tag.
Nested Schema : Money
Type:
object
A base / value business entity used to represent money.
Show Source
-
unit(required): string
Refers to the currency (ISO4217 norm uses 3 letters to define the currency).
-
value(required): number
(float)
A positive floating point number.
Nested Schema : Product Ref
Type:
object
Title:
Product Ref
A reference to a product.
Show Source
-
@baseType: string
Title:
Base Type
The object's superclass. -
@referredType: string
Title:
Referred Type
The object's type in the target system, if baseType and type need further disambiguation. -
@schemaLocation: string
(uri)
Title:
Schema Location
A URI to a JSON-Schema file that defines additional attributes and relationships. -
@type: string
Title:
Type
The object's subclass. -
href: string
Title:
Product Href
The product's href. -
id(required): string
Title:
Product ID
The product's ID. -
name: string
Title:
Product Name
The product's name.
Nested Schema : Related Party
Type:
object
Title:
Related Party
A party related to another object.
Show Source
-
@baseType: string
Title:
Base Type
The object's superclass. -
@referredType(required): string
Title:
Referred Type
The object's type in the target system, if baseType and type need further disambiguation. -
@schemaLocation: string
(uri)
Title:
Schema Location
A URI to a JSON-Schema file that defines additional attributes and relationships. -
@type: string
Title:
Type
The object's subclass. -
href: string
Title:
Href
The party's href. -
id(required): string
Title:
Party ID
The party's ID. -
name: string
Title:
Party Name
The party's name. -
role: string
Title:
Party Role
The party's role.
Nested Schema : Usage Characteristic
Type:
object
Title:
Usage Characteristic
A characteristic of usage.
Show Source
-
@baseType: string
The object's superclass.
-
@schemaLocation: string
(uri)
A URI to a JSON schema file that defines additional attributes and relationships.
-
@type: string
The object's subclass.
-
characteristicRelationship: array
characteristicRelationship
The characteristic's relationships.
-
id: string
The usage characteristic's ID.
-
name(required): string
Title:
Usage Characteristic Name
The characteristic's name. -
value(required): object
Any
-
valueType: string
The type of the characteristic's value.
Nested Schema : characteristicRelationship
Type:
array
The characteristic's relationships.
Show Source
-
Array of:
object CharacteristicRelationship
A related characteristic.
Nested Schema : Any
Type:
object
Nested Schema : CharacteristicRelationship
Type:
object
A related characteristic.
Show Source
-
@baseType: string
The object's superclass.
-
@schemaLocation: string
(uri)
A URI to a JSON schema file that defines additional attributes and relationships.
-
@type: string
The object's subclass.
-
href: string
(uri)
The characteristic relationship's href.
-
id: string
The characteristic relationship's ID.
-
relationshipType: string
The type of characteristic relationship.
400 Response
Request error
404 Response
Not Found
500 Response
Unexpected server error
Examples
The following example shows how to get a usage object with a specified ID by submitting a GET request on the REST resource using cURL. For more information about cURL, see Use cURL.
curl -X GET 'http://host:port/brm/usageManagement/version/usage/0.0.0.1+-event-billing-product-fee-cycle-cycle_forward_monthly+323414748240646493'
Example of the Response Body
The following example shows the contents of the response body in JSON format.
{ "@baseType": "Usage", "@schemaLocation": null, "@type": "Usage", "id": "0.0.0.1+-event-billing-product-fee-cycle-cycle_forward_monthly+323414748240646493", "href": "http://host:port/brm/usageManagement/version/usage/0.0.0.1+-event-billing-product-fee-cycle-cycle_forward_monthly+323414748240646493", "date": "2020-05-02T00:23:54-07:00", "usageType": "EventBillingProductFeeCycleCycle_forward_monthly", "status": "Rated", "usageSpecification": null, "usageCharacteristic": null, "relatedParty": null, "ratedProductUsage": [ { "@baseType": null, "@schemaLocation": null, "@type": null, "ratingDate": "2020-05-02T00:23:54-07:00", "usageRatingTag": null, "isBilled": null, "ratingAmountType": null, "taxExcludedAmount": { "unit": "USD", "value": 0.0 }, "taxIncludedAmount": { "unit": "USD", "value": 0.0 }, "taxRate": 0.0, "isTaxExempt": null, "offerTariffType": null, "bucketValueConvertedInAmount": null, "productRef": null } ] }