TAG LINE
SMALL TITLE

Usage / Class

(API Version v3)


Defines a clasification of usage records which will determine the rules for how this type of usage will be rated.


What can you do with UsageClass?


Properties

Property Details
identity
READ-ONLY
"identity": 26
Type: Number
This is the unique numeric identifier for the UsageClass
name
"name": "Roaming Voice"
Type: String
The user defined name for this Usage Class.
usageRaterTypeId
"usageRaterTypeId": 13
Type: Number
Unique identifier for the associated UsageRaterType object.
usageRaterTypeName
"usageRaterTypeName": "Sample Name"
Type: String
The name of the object associated with the usageRaterTypeId property.
usageBaseUnitId
"usageBaseUnitId": 6
Type: Number
Unique identifier for the associated UsageBaseUnit object.
usageBaseUnitName
"usageBaseUnitName": "Sample Name"
Type: String
The name of the object associated with the usageBaseUnitId property.
usageClassTypeId
"usageClassTypeId": 9
Type: Number
Unique identifier for the associated UsageClassType object.
usageClassTypeName
"usageClassTypeName": "Sample Name"
Type: String
The name of the object associated with the usageClassTypeId property.
serviceTaxCategoryId
"serviceTaxCategoryId": 23
Type: Number
Unique identifier for the associated ServiceTaxCategory object.
serviceTaxCategoryName
"serviceTaxCategoryName": "Sample Name"
Type: String
The name of the object associated with the serviceTaxCategoryId property.


Update Request Filters

Update Request Filters are no longer required starting with v4 of the LogiSense Billing API.

When updating an object you use the update request header with the list of properties to update. Then you need only supply the new values in the body of your request. Please note, this header can only be used with PUT or PATCH requests.

Field List:

  • name
  • usageRaterTypeId
  • usageBaseUnitId
  • usageClassTypeId
  • serviceTaxCategoryId

End Points

DELETEapi/v3/Usage/Class/{id}
Delete an instance of the UsageClass object. Upon successful delete, this API will return a record of all of the reelated objects deleted with this operation. The specifics on which objects have been deleted will depend on which related objects have been populated in the system.
{id}Unique identifier for the UsageClass object.
Delete an instance of the UsageClass object.
DELETE api/v3/Usage/Class/{id}
View Sample Response
HTTP/1.1 200 OK
{
    "trackingId": "d2ae5304-2355-44eb-a328-272f02935f8b",
    "type": "delete",
    "results": {
        "totalCount": 4,
        "items": [
            {
                "identity": 1,
                "action": "deleted",
                "dtoTypeKey": "usageClass"
            },
            {
                "lhsId": 2,
                "rhsId": 2,
                "action": "detached",
                "dtoTypeKey": "sampleObjectConnector"
            },
            {
                "foreignKeyIdentity": 2,
                "action": "deleted",
                "dtoTypeKey": "sampleObject"
            }
        ]
    }
}
GETapi/v3/Usage/Class/
Retrieve all of the UsageClass objects.
Retrieve all of the UsageClass objects.
GET api/v3/Usage/Class/
View Sample Response
HTTP/1.1 200 OK
{
    "trackingId": "d2ae5304-2355-44eb-a328-272f02935f8b",
    "totalCount": 1,
    "items": [
        {
            "identity": 1,
            "name": "Roaming Voice",
            "usageRaterTypeId": 11,
            "usageRaterTypeName": "Sample Text Data",
            "usageBaseUnitId": 27,
            "usageBaseUnitName": "Sample Text Data",
            "usageClassTypeId": 25,
            "usageClassTypeName": "Sample Text Data",
            "serviceTaxCategoryId": 17,
            "serviceTaxCategoryName": "Sample Text Data"
        }
    ]
}
GETapi/v3/Usage/Class/AvailableFor/RateGroup/{id}/BaseUnit/{usageBaseUnitId}
For a given RateGroup and BaseUnit return the UsageClass objects that are available.
{id}Unique identifier for the RateGroup object.
{usageBaseUnitId}Unique identifier for the BaseUnit object.
GETapi/v3/Usage/Class/Paged
Retrieve all of the UsageClass objects in a paged fashion. This endpoint implements pagination for its results. Individual pages can be requested to return a particular paged set in the list of results. To learn more, see details on working with paginated endpoints.
Retrieve all of the UsageClass objects in a paged fashion.
GET api/v3/Usage/Class/Paged
View Sample Response
HTTP/1.1 200 OK
{
    "trackingId": "d2ae5304-2355-44eb-a328-272f02935f8b",
    "pagination": {
        "pageNumber": 1,
        "pageSize": 20,
        "excludeTotalCount": false
    },
    "pagedResults": {
        "totalCount": 1,
        "items": [
            {
                "identity": 1,
                "name": "Roaming Voice",
                "usageRaterTypeId": 5,
                "usageRaterTypeName": "Sample Text Data",
                "usageBaseUnitId": 6,
                "usageBaseUnitName": "Sample Text Data",
                "usageClassTypeId": 8,
                "usageClassTypeName": "Sample Text Data",
                "serviceTaxCategoryId": 12,
                "serviceTaxCategoryName": "Sample Text Data"
            }
        ]
    }
}
GETapi/v3/Usage/Class/{id}
Retrieve an instance of the UsageClass object by its ID.
{id}Unique identifier for the UsageClass object.
Retrieve an instance of the UsageClass object by its ID.
GET api/v3/Usage/Class/{id}
View Sample Response
HTTP/1.1 200 OK
{
    "trackingId": "d2ae5304-2355-44eb-a328-272f02935f8b",
    "instance": {
        "identity": 1,
        "name": "Roaming Voice",
        "usageRaterTypeId": 13,
        "usageRaterTypeName": "Sample Text Data",
        "usageBaseUnitId": 4,
        "usageBaseUnitName": "Sample Text Data",
        "usageClassTypeId": 13,
        "usageClassTypeName": "Sample Text Data",
        "serviceTaxCategoryId": 1,
        "serviceTaxCategoryName": "Sample Text Data"
    }
}
POSTapi/v3/Usage/Class/
Create a new instance of the UsageClass object.
Create a new instance of the UsageClass object.
POST api/v3/Usage/Class/

{
    "name": "Roaming Voice",
    "usageRaterTypeId": 14,
    "usageBaseUnitId": 22,
    "usageClassTypeId": 24,
    "serviceTaxCategoryId": 27
}
View Sample Response
HTTP/1.1 200 OK
{
    "trackingId": "d2ae5304-2355-44eb-a328-272f02935f8b",
    "type": "create",
    "results": {
        "totalCount": 1,
        "items": [
            {
                "identity": 1,
                "name": "Roaming Voice",
                "usageRaterTypeId": 17,
                "usageRaterTypeName": "Sample Text Data",
                "usageBaseUnitId": 16,
                "usageBaseUnitName": "Sample Text Data",
                "usageClassTypeId": 21,
                "usageClassTypeName": "Sample Text Data",
                "serviceTaxCategoryId": 5,
                "serviceTaxCategoryName": "Sample Text Data"
            }
        ]
    }
}
PUTapi/v3/Usage/Class/{id}
Update an existing instance of the UsageClass object.
Update an existing instance of the UsageClass object.
PUT api/v3/Usage/Class/{id}

{
    "identity": 1,
    "name": "Roaming Voice",
    "usageRaterTypeId": 27,
    "usageBaseUnitId": 18,
    "usageClassTypeId": 2,
    "serviceTaxCategoryId": 13
}
View Sample Response
HTTP/1.1 200 OK
{
    "trackingId": "d2ae5304-2355-44eb-a328-272f02935f8b",
    "type": "update",
    "results": {
        "totalCount": 1,
        "items": [
            {
                "identity": 1,
                "name": "Roaming Voice",
                "usageRaterTypeId": 19,
                "usageRaterTypeName": "Sample Text Data",
                "usageBaseUnitId": 1,
                "usageBaseUnitName": "Sample Text Data",
                "usageClassTypeId": 27,
                "usageClassTypeName": "Sample Text Data",
                "serviceTaxCategoryId": 9,
                "serviceTaxCategoryName": "Sample Text Data"
            }
        ]
    }
}