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. Use @type=Usage for a base object, or @type=UsageOracle for an extended object.Example:
Usage -
description: string
Retrieves the usage whose description matches the specified description.Example:
Cycle Forward Fees (srvc):Standard GSM Telephony -
description.like: string
Retrieves the usage whose description is similar to the specified description.Example:
Cycle Forward Fees (srvc):Standard GSM Telephony -
fields: string
The list of fields to return in the response.Example:
type,status -
id: string
The ID of the usage to get.Example:
0.0.0.1+-event-billing-product-fee-cycle-cycle_forward_monthly+3234 -
limit: integer
The maximum number of results to return. For example, use limit=10 to return the first 10 results only.Example:
10 -
offset: integer
The number of results to offset the response by. For example, use offset=10 to return results 10 and higher.Example:
10 -
usageDate: string
Retrieves the usage with a date that is equal to the specified dateTime.Example:
2020-01-01T12:00:27.000Z -
usageDate.gt: string
Retrieves the usage with a date that is greater than the specified dateTime.Example:
2020-01-01T12:00:27.000Z -
usageDate.gte: string
Retrieves the usage with a date that is greater than or equal to the specified dateTime.Example:
2020-01-01T12:00:27.000Z -
usageDate.lt: string
Retrieves the usage whose date is less than the specified dateTime.Example:
2020-01-01T12:00:27.000Z -
usageDate.lte: string
Retrieves the usage with a date that is less than or equal to the specified dateTime.Example:
2020-01-01T12:00:27.000Z
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
array
ratedProductUsage
The usage's rating details.
- relatedParty: array array relatedParty
-
status: string
Title:
Usage StatusAllowed Values:[ "received", "rejected", "recycled", "guided", "rated", "rerated", "billed" ]The usage's status. -
usageCharacteristic: array
array
usageCharacteristic
The usage's characteristics.
-
usageDate: string
(date-time)
Title:
Usage DateThe usage's date. -
usageSpecification: object
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
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
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
object
Money
Title:
MoneyAn amount of money. -
taxIncludedRatingAmount: object
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
-
@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. -
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
(uri)
Title:
HrefThe party's href. -
id(required): string
Title:
Party IDThe party's ID. -
name: string
Title:
Party NameThe party's name. -
role: string
Title:
Party RoleThe 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
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):
-
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 : 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 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": "2020-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": "2020-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": "2020-09-14T00:00:00-07:00",
"type": "EventBillingProductFeeCycleCycle_forward_monthly",
"status": "Rated",
"usageSpecification": null,
"usageCharacteristic": null,
"relatedParty": null,
"ratedProductUsage": [
{
"ratingDate": "2020-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
}
]
}
]