Get Usage by ID

get

/usage/{id}

This operation retrieves a Usage entity. Attribute selection is enabled for all first level attributes.

Request

Path Parameters

There's no request body for this operation.

Back to Top

Response

Supported Media Types

200 Response

The request was successful.
Body ()
Root Schema : Usage
Type: object
An occurrence of employing a Product, Service, or Resource for its intended purpose, which is of interest to the business and can have charges applied to it. It is comprised of characteristics, which represent attributes of usage.
Show Source
Nested Schema : Money
Type: object
Represents a monetary amount.
Show Source
Nested Schema : appliedCustomerBillingRate
Type: object
The applied customer billing rate associated with the usage.
Show Source
Nested Schema : bill
Type: object
The bill associated with the usage.
Show Source
Nested Schema : billingAccount
Type: object
The billing account associated with the usage.
Show Source
Nested Schema : billStructure
Type: object
The bill structure associated with the usage.
Show Source
Nested Schema : nonCurrencyDetails
Type: array
The rated details for non-currency resources.
Show Source
Nested Schema : ratedProductUsage
Type: array
Show Source
Nested Schema : service
Type: object
The service associated with the usage.
Show Source
Nested Schema : NonCurrencyDetail
Type: object
Rated details for a non-currency resource.
Show Source
Nested Schema : RatedProductUsage
Type: object
An occurrence of employing a product for its intended purpose with all rating details.
Show Source

400 Response

The request is invalid.
Body ()
Root Schema : Error
Represents an error returned by an API, typically with an HTTP 3xx, 4xx, or 5xx response code.
Match All
Represents an error returned by an API, typically with an HTTP 3xx, 4xx, or 5xx response code.
Represents an error returned by an API, typically with an HTTP 3xx, 4xx, or 5xx response code.
Show Source
Nested Schema : Extensible
Type: object
Represents a base extensible schema for TM Forum Open APIs. The entity must include @type.
Show Source
Nested Schema : Error-allOf[1]
Type: object
Show Source

401 Response

The request is unauthorized.
Body ()
Root Schema : Error
Represents an error returned by an API, typically with an HTTP 3xx, 4xx, or 5xx response code.
Match All
Represents an error returned by an API, typically with an HTTP 3xx, 4xx, or 5xx response code.
Represents an error returned by an API, typically with an HTTP 3xx, 4xx, or 5xx response code.
Show Source
Nested Schema : Extensible
Type: object
Represents a base extensible schema for TM Forum Open APIs. The entity must include @type.
Show Source
Nested Schema : Error-allOf[1]
Type: object
Show Source

403 Response

The request is forbidden.
Body ()
Root Schema : Error
Represents an error returned by an API, typically with an HTTP 3xx, 4xx, or 5xx response code.
Match All
Represents an error returned by an API, typically with an HTTP 3xx, 4xx, or 5xx response code.
Represents an error returned by an API, typically with an HTTP 3xx, 4xx, or 5xx response code.
Show Source
Nested Schema : Extensible
Type: object
Represents a base extensible schema for TM Forum Open APIs. The entity must include @type.
Show Source
Nested Schema : Error-allOf[1]
Type: object
Show Source

404 Response

The resource was not found.
Body ()
Root Schema : Error
Represents an error returned by an API, typically with an HTTP 3xx, 4xx, or 5xx response code.
Match All
Represents an error returned by an API, typically with an HTTP 3xx, 4xx, or 5xx response code.
Represents an error returned by an API, typically with an HTTP 3xx, 4xx, or 5xx response code.
Show Source
Nested Schema : Extensible
Type: object
Represents a base extensible schema for TM Forum Open APIs. The entity must include @type.
Show Source
Nested Schema : Error-allOf[1]
Type: object
Show Source

405 Response

The request method is not allowed.
Body ()
Root Schema : Error
Represents an error returned by an API, typically with an HTTP 3xx, 4xx, or 5xx response code.
Match All
Represents an error returned by an API, typically with an HTTP 3xx, 4xx, or 5xx response code.
Represents an error returned by an API, typically with an HTTP 3xx, 4xx, or 5xx response code.
Show Source
Nested Schema : Extensible
Type: object
Represents a base extensible schema for TM Forum Open APIs. The entity must include @type.
Show Source
Nested Schema : Error-allOf[1]
Type: object
Show Source

409 Response

The request conflicts with the current state of the resource.
Body ()
Root Schema : Error
Represents an error returned by an API, typically with an HTTP 3xx, 4xx, or 5xx response code.
Match All
Represents an error returned by an API, typically with an HTTP 3xx, 4xx, or 5xx response code.
Represents an error returned by an API, typically with an HTTP 3xx, 4xx, or 5xx response code.
Show Source
Nested Schema : Extensible
Type: object
Represents a base extensible schema for TM Forum Open APIs. The entity must include @type.
Show Source
Nested Schema : Error-allOf[1]
Type: object
Show Source

500 Response

The server encountered an internal error.
Body ()
Root Schema : Error
Represents an error returned by an API, typically with an HTTP 3xx, 4xx, or 5xx response code.
Match All
Represents an error returned by an API, typically with an HTTP 3xx, 4xx, or 5xx response code.
Represents an error returned by an API, typically with an HTTP 3xx, 4xx, or 5xx response code.
Show Source
Nested Schema : Extensible
Type: object
Represents a base extensible schema for TM Forum Open APIs. The entity must include @type.
Show Source
Nested Schema : Error-allOf[1]
Type: object
Show Source
Back to Top

Examples

The following example shows how to retrieve a usage record by its event ID using cURL. For more information, see Use cURL.

Get Usage by Event ID

The following example specifies the event ID in the request path.

curl -X GET 'http://host:port/brm/usageManagement/v4/usage/0.0.0.1+-event-billing-product-fee-cycle-cycle_forward_monthly+364738793259054626'

Response Body

The following example shows the contents of the response body in JSON format.

[
  {
    "@type": "Usage",
    "billStructure": {
      "id": "billing-account-strucuture-post-4"
    },
    "description": "Cycle Forward Fees (srvc): Standard GSM Telephony",
    "adjustedAmount": {
      "value": -3,
      "unit": "EUR"
    },
    "endTime": "2026-10-07T07:28:06.00Z",
    "id": "0.0.0.1+-event-billing-product-fee-cycle-cycle_forward_monthly+364738793259054626",
    "href": "http://localhost:9090/brm/usageManagement/v5/usage/0.0.0.1+-event-billing-product-fee-cycle-cycle_forward_monthly+364738793259054626",
    "taxAmount": {
      "unit": "EUR",
      "value": 0
    },
    "remainingAmount": {
      "unit": "EUR",
      "value": 37.548
    },
    "settledDisputeAmount": {
      "unit": "EUR",
      "value": -3
    },
    "discount": {
      "unit": "EUR",
      "value": 0
    },
    "billingAccount": {
      "id": "0.0.0.1-158699"
    },
    "service": {
      "id": "service-635"
    },
    "usageType": "/event/billing/product/fee/cycle/cycle_forward_monthly",
    "cycleEnd": "2026-11-03T08:00:00.00Z",
    "effectiveDate": "",
    "rumName": "Occurrence",
    "@baseType": "Usage",
    "bill": {
      "id": "0.0.0.1+-bill+364738793259034651"
    },
    "appliedCustomerBillingRate": {
      "id": "0.0.0.1+-item-cycle_forward+364738793259055650"
    },
    "cycleStart": "2026-10-07T07:00:00.00Z",
    "quantity": 1,
    "@SchemaLocation": "",
    "ratedProductUsage": [
      {
        "taxIncludedAmount": {
          "unit": "EUR",
          "value": 43.548
        },
        "taxExcludedAmount": {
          "unit": "EUR",
          "value": 43.548
        },
        "taxCode": "VAT",
        "taxRate": 0
      }
    ],
    "nonCurrencyDetails": [
      {
        "resourceName": "YES",
        "priorAdjustment": -0.2,
        "originalNetAmount": -3135.5
      }
    ],
    "usageDate": "2026-10-07T07:28:06.00Z"
  }
]
Back to Top