Get Usage

get

/usage

Gets the usage resource that matches the specified query criteria.

Request

Query Parameters
  • The type of object to return.
    Example:
    Use @type=Usage for a base object, or @type=UsageOracle for an extended object.
  • Retrieves the usage whose description matches the specified description.
    Example:
    description=Cycle Forward Fees (srvc):Standard GSM Telephony
  • Retrieves the usage whose description is similar to the specified description.
    Example:
    description.like=Cycle Forward Fees (srvc):Standard GSM Telephony
  • The list of fields to return in the response.
    Example:
    fields=type,status
  • The ID of the usage to get.
    Example:
    id=0.0.0.1+-event-billing-product-fee-cycle-cycle_forward_monthly+32341474824064940
  • The maximum number of results to return.
    Example:
    Use limit=10 to return the first 10 results only.
  • The number of results to offset the response by.
    Example:
    Use offset=10 to return results 10 and higher.
  • Retrieves the usage with a date that is equal to the specified dateTime.
    Example:
    usageDate=2020-01-01T04:00:27-08:00
  • Retrieves the usage with a date that is greater than the specified dateTime.
    Example:
    usageDate.gt=2020-01-01T04:00:27-08:00
  • 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
  • Retrieves the usage whose date is less than the specified dateTime.
    Example:
    usageDate.lt=2020-01-01T04:00:27-08:00
  • 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 Top

Response

Supported Media Types

200 Response

The usage was returned successfully.
Body ()
Root Schema : schema
Type: array
Show Source
Nested Schema : Usage
Type: object
Title: Usage
A instance of usage.
Show Source
Nested Schema : ratedProductUsage
Type: array
The usage's rating details.
Show Source
Nested Schema : relatedParty
Type: array
The parties related to the usage.
Show Source
Nested Schema : usageCharacteristic
Type: array
The usage's characteristics.
Show Source
Nested Schema : Usage Specification Ref
Type: object
Title: Usage Specification Ref
A usage specification reference.
Show Source
Nested Schema : Rated Product Usage
Type: object
Title: Rated Product Usage
An instance of rated usage.
Show Source
Nested Schema : Money
Type: object
The base / value business entity used to represent money.
Show Source
  • The currency (ISO4217 norm uses 3 letters to define the currency).
  • The signed floating point number, the meaning of the sign is according to the context of the API that uses this Data type
Nested Schema : Product Ref
Type: object
Title: Product Ref
A reference to a product.
Show Source
Nested Schema : Related Party
Type: object
Title: Related Party
A party related to another object.
Show Source
Nested Schema : Usage Characteristic
Type: object
Title: Usage Characteristic
A characteristic of usage.
Show Source
Nested Schema : characteristicRelationship
Type: array
The characteristic's relationships.
Show Source
Nested Schema : Any
Type: object
Nested Schema : CharacteristicRelationship
Match All
The characteristic that is related to the current Characteristic.
Show Source
Nested Schema : Extensible
Type: object
The Base Extensible schema for use in TMForum Open-APIs - When used for in a schema it means that the Entity described by the schema MUST be extended with the @type
Show Source
Nested Schema : CharacteristicRelationship-allOf[1]
Type: object
The characteristic that is related to the current Characteristic.
Show Source

400 Response

Request error

500 Response

Unexpected server error
Back to Top

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
            }
        ]
    }
]
Back to Top