Get Usage
get
/usage
Gets the usage resource that matches the specified query criteria.
Request
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. -
description: string
Retrieves the usage whose description matches the specified description.Example:
description=Cycle Forward Fees (srvc):Standard GSM Telephony -
description.like: string
Retrieves the usage whose description is similar to the specified description.Example:
description.like=Cycle Forward Fees (srvc):Standard GSM Telephony -
fields: string
The list of fields to return in the response.Example:
fields=type,status -
id: string
The ID of the usage to get.Example:
id=0.0.0.1+-event-billing-product-fee-cycle-cycle_forward_monthly+32341474824064940 -
limit: integer
The maximum number of results to return.Example:
Use limit=10 to return the first 10 results only. -
offset: integer
The number of results to offset the response by.Example:
Use offset=10 to return results 10 and higher. -
usageDate: string
Retrieves the usage with a date that is equal to the specified dateTime.Example:
usageDate=2020-01-01T04:00:27-08:00 -
usageDate.gt: string
Retrieves the usage with a date that is greater than the specified dateTime.Example:
usageDate.gt=2020-01-01T04:00:27-08:00 -
usageDate.gte: string
Retrieves the usage with a date that is greater than or equal to the specified dateTime.Example:
usageDate.gte=2020-01-01T04:00:27-08:00 -
usageDate.lt: string
Retrieves the usage whose date is less than the specified dateTime.Example:
usageDate.lt=2020-01-01T04:00:27-08:00 -
usageDate.lte: string
Retrieves the usage with a date that is less than or equal to the specified dateTime.Example:
usageDate.lte=2020-01-01T04:00:27-08:00
There's no request body for this operation.
Back to TopResponse
Supported Media Types
- application/json
200 Response
The usage was returned successfully.
Root Schema : schema
Type:
Show Source
array-
Array of:
object Usage
Title:
UsageA instance of usage.
Nested Schema : Usage
Type:
objectTitle:
UsageA 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 DescriptionThe usage's description -
href: string
(uri)
Title:
Usage HrefThe usage's href. -
id: string
Title:
Usage IDThe usage's ID. -
ratedProductUsage: array
ratedProductUsage
The usage's rating details.
- relatedParty: array relatedParty
-
status: string
Title:
Usage StatusAllowed 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 DateThe usage's date. -
usageSpecification: object
Usage Specification Ref
Title:
Usage Specification RefA usage specification reference. -
usageType: string
Title:
Usage TypeThe usage's type.
Nested Schema : ratedProductUsage
Type:
arrayThe usage's rating details.
Show Source
-
Array of:
object Rated Product Usage
Title:
Rated Product UsageAn instance of rated usage.
Nested Schema : usageCharacteristic
Type:
arrayThe usage's characteristics.
Show Source
-
Array of:
object Usage Characteristic
Title:
Usage CharacteristicA characteristic of usage.
Nested Schema : Usage Specification Ref
Type:
objectTitle:
Usage Specification RefA usage specification reference.
Show Source
-
@baseType: string
Title:
Base TypeThe object's superclass. -
@referredType: string
Title:
Referred TypeThe object's type in the target system, if baseType and type need further disambiguation. -
@schemaLocation: string
(uri)
Title:
Schema LocationA URI to a JSON-Schema file that defines additional attributes and relationships. -
@type: string
Title:
TypeThe object's subclass. -
href: string
(uri)
Title:
Usage Specification HrefThe usage specification's href. -
id(required): string
Title:
Usage Specification IDThe usage specification's ID. -
name: string
Title:
Usage Specification NameThe usage specification's name.
Nested Schema : Rated Product Usage
Type:
objectTitle:
Rated Product UsageAn instance of rated usage.
Show Source
-
@baseType: string
Title:
Base TypeThe object's superclass. -
@schemaLocation: string
(uri)
Title:
Schema LocationA URI to a JSON-Schema file that defines additional attributes and relationships. -
@type: string
Title:
TypeThe object's subclass. -
bucketValueConvertedInAmount: object
Money
Title:
MoneyAn amount of money. -
isBilled: boolean
Title:
Is BilledWhether the usage has been billed (true) or not (false). -
isTaxExempt: boolean
Title:
Is Tax ExemptWhether the usage is tax exempt (true) or not (false). -
offerTariffType: string
Title:
Offer Tariff TypeThe tariff's type. -
productRef: object
Product Ref
Title:
Product RefA reference to a product. -
ratingAmountType: string
Title:
Rating Amount TypeThe rating amount's type. -
ratingDate: string
(date-time)
Title:
Rating DateThe date the usage was rated. -
taxExcludedRatingAmount: object
Money
Title:
MoneyAn amount of money. -
taxIncludedRatingAmount: object
Money
Title:
MoneyAn amount of money. -
taxRate: number
(float)
Title:
Tax RateThe tax rate. -
usageRatingTag: string
Title:
Usage Rating TagThe usage rating's tag.
Nested Schema : Money
Type:
objectTitle:
MoneyAn amount of money.
Show Source
-
unit: string
Title:
CurrencyAn ISO 4217 three letter currency code. -
value: number
(float)
Title:
AmountA positive floating point number.
Nested Schema : Product Ref
Type:
objectTitle:
Product RefA reference to a product.
Show Source
-
@baseType: string
Title:
Base TypeThe object's superclass. -
@referredType: string
Title:
Referred TypeThe object's type in the target system, if baseType and type need further disambiguation. -
@schemaLocation: string
(uri)
Title:
Schema LocationA URI to a JSON-Schema file that defines additional attributes and relationships. -
@type: string
Title:
TypeThe object's subclass. -
href: string
Title:
Product HrefThe product's href. -
id(required): string
Title:
Product IDThe product's ID. -
name: string
Title:
Product NameThe product's name.
Nested Schema : Related Party
Type:
objectTitle:
Related PartyA party related to another object.
Show Source
-
@baseType: string
Title:
Base TypeThe object's superclass. -
@referredType(required): string
Title:
Referred TypeThe object's type in the target system, if baseType and type need further disambiguation. -
@schemaLocation: string
(uri)
Title:
Schema LocationA URI to a JSON schema file that defines additional attributes and relationships. -
@type: string
Title:
TypeThe object's subclass. -
href: string
Title:
Related Party HrefThe related party's href. -
id(required): string
Title:
Related Party IDThe related party's ID. -
name(required): string
Title:
Related Party NameThe related party's name. -
role: string
Title:
Related Party RoleThe related party's role.
Nested Schema : Usage Characteristic
Type:
objectTitle:
Usage CharacteristicA 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 NameThe characteristic's name. -
value(required): object
Any
-
valueType: string
The type of the characteristic's value.
Nested Schema : characteristicRelationship
Type:
arrayThe characteristic's relationships.
Show Source
-
Array of:
object CharacteristicRelationship
A related characteristic.
Nested Schema : Any
Type:
objectNested Schema : CharacteristicRelationship
Type:
objectA 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
500 Response
Unexpected server error
Examples
The following example shows how to get usage data by submitting a GET request on the REST resource using cURL. For more information about cURL, see Use cURL.
The request uses the limit query parameter to limit the results.
curl -X GET 'http://host:port/brm/usageManagement/version/usage?limit=2'
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+326088760519522593",
"href": "http://host:port/brm/usageManagement/version/usage/0.0.0.1+-event-billing-product-fee-cycle-cycle_forward_monthly+326088760519522593",
"date": "2025-08-14T00:00:00-07:00",
"type": "EventBillingProductFeeCycleCycle_forward_monthly",
"status": "Rated",
"usageSpecification": null,
"usageCharacteristic": null,
"relatedParty": null,
"ratedProductUsage": [
{
"@baseType": null,
"@schemaLocation": null,
"@type": null,
"ratingDate": "2025-08-14T00:00:00-07:00",
"usageRatingTag": "Rate 1",
"isBilled": null,
"ratingAmountType": null,
"taxExcludedAmount": {
"unit": "USD",
"value": 20.0
},
"taxIncludedAmount": {
"unit": "USD",
"value": 20.0
},
"taxRate": 0.0,
"isTaxExempt": null,
"offerTariffType": null,
"bucketValueConvertedInAmount": null,
"productRef": null
}
]
},
{
"@baseType": "Usage",
"@schemaLocation": null,
"@type": "Usage",
"id": "0.0.0.1+-event-billing-product-fee-cycle-cycle_forward_monthly+326088760519524129",
"href": "http://host:port/brm/usageManagement/version/usage/0.0.0.1+-event-billing-product-fee-cycle-cycle_forward_monthly+326088760519524129",
"date": "2025-09-14T00:00:00-07:00",
"type": "EventBillingProductFeeCycleCycle_forward_monthly",
"status": "Rated",
"usageSpecification": null,
"usageCharacteristic": null,
"relatedParty": null,
"ratedProductUsage": [
{
"ratingDate": "2025-09-14T00:00:00-07:00",
"usageRatingTag": "Rate 1",
"isBilled": null,
"ratingAmountType": null,
"taxExcludedAmount": {
"unit": "USD",
"value": 40.0
},
"taxIncludedAmount": {
"unit": "USD",
"value": 40.0
},
"taxRate": 0.0,
"isTaxExempt": null,
"offerTariffType": null,
"bucketValueConvertedInAmount": null,
"productRef": null
}
]
}
]