# Get usage record

**Note:** This operation is available only if Active Rating is enabled. The Active Rating feature is in development. If you wish to have access to the feature, submit a request at [Zuora Global Support](http://support.zuora.com/).
Retrieves information about a specific usage record.

Endpoint: GET /usage/{id}
Version: 2020-02-10

## Path parameters:

  - `id` (string, required)
    The ID of the usage record you want to retrieve.

## Header parameters:

  - `Authorization` (string, required)
    `Bearer {token}` for a valid OAuth token.

  - `Zuora-Entity-Ids` (string)
    An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you do not need to set this header.

  - `Zuora-Track-Id` (string)
    A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.
The value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`"`), and quote (`'`).

## Response 200:

  - `200` (unknown)
    OK

## Response 200 fields (application/json; charset=utf-8):

  - `accountNumber` (string)
    The account number associated with this usage record.

  - `createdBy` (string)
    The ID of the user who created this usage record.

  - `createdOn` (string)
    The start date and time when this usage record is created.

  - `customFields` (object)
    Container for custom fields.

  - `description` (string)
    The description of this usage record.

  - `fileName` (string)
    The name of the import file when the usage record is imported from the file.

  - `groupId` (string)
    The group ID used for [usage rating by group](https://knowledgecenter.zuora.com/CB_Billing/J_Billing_Operations/Usage/Usage_Rating_by_Group). Zuora groups the usage records based on the group ID when you choose the Custom Group option for usage rating.
**Note:** The Usage Rating by Group feature is in **Limited Availability**. If you wish to have access to the feature, submit a request at [Zuora Global Support](http://support.zuora.com/).

  - `id` (string)
    The ID of this usage record.

  - `importId` (string)
    The ID of the usage import if this usage record is imported through a usage file.

  - `quantity` (number)
    The number of units this usage record is used.

  - `startDateTime` (string)
    The start date and time when this usage is consumed.

  - `status` (string)
    The status of this usage record.
    Enum: "Pending", "Rated", "Processed"

  - `tag` (string)
    Specifies which subscription, charge, or account this usage record is related to.

  - `uniqueKey` (string)
    A unique key of this usage record. You can define the unique key for each usage record.

  - `unitOfMeasure` (string)
    The unit used to measure the usage.

  - `updatedBy` (string)
    The ID of the user who last updated this usage record.

  - `updatedOn` (string)
    The date and time when this usage record is last updated.

## Response 200 headers (application/json; charset=utf-8):

  - `Zuora-Request-Id` (string)
    The Zuora internal identifier of the API call. You cannot control the value of this header.

  - `Zuora-Track-Id` (string)
    A custom identifier for tracing the API call. If you specified a tracing identifier in the request headers, Zuora returns the same tracing identifier. Otherwise, Zuora does not set this header.

## Response 404:

  - `404` (unknown)
    Not Found

## Response 404 fields (application/json; charset=utf-8):

  - `error` (object)
    Container for the error information.

  - `error.message` (string)
    The error message that is returned. If multiple errors occurred, the first error message is returned in this field.

  - `error.errors` (array)
    Container for the information about detailed errors.

  - `error.errors.objectName` (string)
    The object where the error occurred.

  - `error.errors.field` (string)
    The field where the error occurred.

  - `error.errors.reason` (string)
    The reason for the error.

  - `error.errors.message` (string)
    The error message that is returned.

## Response 404 headers (application/json; charset=utf-8):

  - `Zuora-Request-Id` (string)
    The Zuora internal identifier of the API call. You cannot control the value of this header.

  - `Zuora-Track-Id` (string)
    A custom identifier for tracing the API call. If you specified a tracing identifier in the request headers, Zuora returns the same tracing identifier. Otherwise, Zuora does not set this header.

## Response 500:

  - `500` (unknown)
    Internal Server Error

## Response 500 fields (application/json; charset=utf-8):

  - `error` (object)
    Container for the error information.

  - `error.message` (string)
    The error message that is returned. If multiple errors occurred, the first error message is returned in this field.

  - `error.errors` (array)
    Container for the information about detailed errors.

  - `error.errors.objectName` (string)
    The object where the error occurred.

  - `error.errors.field` (string)
    The field where the error occurred.

  - `error.errors.reason` (string)
    The reason for the error.

  - `error.errors.message` (string)
    The error message that is returned.

## Response 500 headers (application/json; charset=utf-8):

  - `Zuora-Request-Id` (string)
    The Zuora internal identifier of the API call. You cannot control the value of this header.

  - `Zuora-Track-Id` (string)
    A custom identifier for tracing the API call. If you specified a tracing identifier in the request headers, Zuora returns the same tracing identifier. Otherwise, Zuora does not set this header.

## Response 200 examples:

  - `response` (unknown)

## Response 404 examples:

  - `response` (unknown)

## Response 500 examples:

  - `response` (unknown)

