TAG LINE
TAG LINE
SMALL TITLE

Usage / Rate

(API Version v6)


Defines properties for an individual Usage Rate within the system.


What can you do with UsageRate?


Properties

Property Details
identity
READ-ONLY
"identity": 17
Type: Number
This is the unique numeric identifier for the UsageRate
usageRateGroupId
"usageRateGroupId": 20
Type: Number
Unique identifier for the associated UsageRateGroup object.
usageRateGroupName
"usageRateGroupName": "Sample Name"
Type: String
The name of the object associated with the usageRateGroupId property.
usageClassId
"usageClassId": 13
Type: Number
Unique identifier for the associated UsageClass object.
usageClassName
"usageClassName": "Sample Name"
Type: String
The name of the object associated with the usageClassId property.
amount
"amount": 2.52
Type: Number
The amount to charge for this rate
geoTreeLocationId
"geoTreeLocationId": 13
Type: Number
Unique identifier for the associated GeoTreeLocation object.
geoTreeLocationName
"geoTreeLocationName": "Sample Name"
Type: String
The name of the object associated with the geoTreeLocationId property.
additional
"additional": true
Type: Boolean
Unused
retired
READ-ONLY
"retired": true
Type: Boolean
System generated when a rate group is retired
ownerId
READ-ONLY
"ownerId": 14
Type: Number
Unique identifier for the associated Owner object.
ownerName
READ-ONLY
"ownerName": "Sample Name"
Type: String
The name of the object associated with the ownerId property.
usageRoundingId
"usageRoundingId": 17
Type: Number
Unique identifier for the associated UsageRounding object.
usageRoundingName
"usageRoundingName": "Sample Name"
Type: String
The name of the object associated with the usageRoundingId property.
displayName
"displayName": "My Rate"
Type: String
The optional user defined display name for the Usage Rate
geoTreeLocationGroupId
"geoTreeLocationGroupId": 4
Type: Number
Unique identifier for the associated GeoTreeLocationGroup object.
geoTreeLocationGroupName
"geoTreeLocationGroupName": "Sample Name"
Type: String
The name of the object associated with the geoTreeLocationGroupId property.
minimumCharge
"minimumCharge": 5.34
Type: Number
Minimum amount to charge for the record
usageUnitId
"usageUnitId": 22
Type: Number
Unique identifier for the associated UsageUnit object.
usageUnitName
"usageUnitName": "Sample Name"
Type: String
The name of the object associated with the usageUnitId property.
usageRateCalculationTypeId
"usageRateCalculationTypeId": 2
Type: Number
Unique identifier for the associated UsageRateCalculationType object.
usageRateCalculationTypeName
"usageRateCalculationTypeName": "Sample Name"
Type: String
The name of the object associated with the usageRateCalculationTypeId property.
created
READ-ONLY
"created": "2021-04-26T15:25:27.587Z"
Type: Date
This is a system generated date when the record was created. Date and time values are specified in the ISO 8601 format.
updated
"updated": "2021-04-26T15:25:27.587Z"
Type: Date
Date and time values are specified in the ISO 8601 format.


Patch Types

The PATCH verb allows you to update an object. Just like a put, you only need to supply the fields that will be updated in the payload. However, a patch allows you to update many objects at once.

PATCH operations can be used as a standard API call. Below you will find the child objects that can be updated as part of PATCH operations for the UsageRate object.

Standard PATCH objects:

  • usageRateTierConfiguration - create, update, delete

DataFlow PATCH objects:

  • usageRate - create, update, delete
  • usageRateTierConfiguration - create, update, delete

End Points

DELETEUsage/Rate/{id}
Delete an instance of the UsageRate 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 UsageRate object.
Delete an instance of the UsageRate object.
DELETE Usage/Rate/{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": "usageRate"
            },
            {
                "lhsId": 2,
                "rhsId": 2,
                "action": "detached",
                "dtoTypeKey": "sampleObjectConnector"
            },
            {
                "foreignKeyIdentity": 2,
                "action": "deleted",
                "dtoTypeKey": "sampleObject"
            }
        ]
    }
}
GETUsage/Rate/
Retrieve all of the UsageRate objects.
Retrieve all of the UsageRate objects.
GET Usage/Rate/
View Sample Response
HTTP/1.1 200 OK
{
    "trackingId": "d2ae5304-2355-44eb-a328-272f02935f8b",
    "totalCount": 1,
    "items": [
        {
            "identity": 1,
            "usageRateGroupId": 7,
            "usageRateGroupName": "Sample Text Data",
            "usageClassId": 12,
            "usageClassName": "Sample Text Data",
            "amount": 2.52,
            "geoTreeLocationId": 17,
            "geoTreeLocationName": "Sample Text Data",
            "additional": true,
            "retired": true,
            "ownerId": 5,
            "ownerName": "Sample Text Data",
            "usageRoundingId": 18,
            "usageRoundingName": "Sample Text Data",
            "displayName": "My Rate",
            "geoTreeLocationGroupId": 9,
            "geoTreeLocationGroupName": "Sample Text Data",
            "minimumCharge": 5.34,
            "usageUnitId": 26,
            "usageUnitName": "Sample Text Data",
            "usageRateCalculationTypeId": 21,
            "usageRateCalculationTypeName": "Sample Text Data",
            "created": "2021-04-26T15:25:27.587Z",
            "updated": "2021-04-26T15:25:27.587Z"
        }
    ]
}
GETUsage/Rate/Paged
Retrieve all of the UsageRate 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 UsageRate objects in a paged fashion.
GET Usage/Rate/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,
                "usageRateGroupId": 3,
                "usageRateGroupName": "Sample Text Data",
                "usageClassId": 14,
                "usageClassName": "Sample Text Data",
                "amount": 2.52,
                "geoTreeLocationId": 11,
                "geoTreeLocationName": "Sample Text Data",
                "additional": true,
                "retired": true,
                "ownerId": 11,
                "ownerName": "Sample Text Data",
                "usageRoundingId": 2,
                "usageRoundingName": "Sample Text Data",
                "displayName": "My Rate",
                "geoTreeLocationGroupId": 26,
                "geoTreeLocationGroupName": "Sample Text Data",
                "minimumCharge": 5.34,
                "usageUnitId": 3,
                "usageUnitName": "Sample Text Data",
                "usageRateCalculationTypeId": 13,
                "usageRateCalculationTypeName": "Sample Text Data",
                "created": "2021-04-26T15:25:27.587Z",
                "updated": "2021-04-26T15:25:27.587Z"
            }
        ]
    }
}
GETUsage/Rate/Paged/Detail
Retrieve all of the UsageRate objects in a paged fashion with all object details. This endpoint returns additional detailed data related to this object. The specifics on which data is returned will depend on which related objects have been populated in the system.
Retrieve all of the UsageRate objects in a paged fashion with all object details.
GET Usage/Rate/Paged/Detail
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,
                "usageRateGroupId": 19,
                "usageRateGroupName": "Sample Text Data",
                "usageClassId": 21,
                "usageClassName": "Sample Text Data",
                "amount": 2.52,
                "geoTreeLocationId": 9,
                "geoTreeLocationName": "Sample Text Data",
                "additional": true,
                "retired": true,
                "ownerId": 8,
                "ownerName": "Sample Text Data",
                "usageRoundingId": 14,
                "usageRoundingName": "Sample Text Data",
                "displayName": "My Rate",
                "geoTreeLocationGroupId": 23,
                "geoTreeLocationGroupName": "Sample Text Data",
                "minimumCharge": 5.34,
                "usageUnitId": 7,
                "usageUnitName": "Sample Text Data",
                "usageRateCalculationTypeId": 25,
                "usageRateCalculationTypeName": "Sample Text Data",
                "created": "2021-04-26T15:25:27.587Z",
                "updated": "2021-04-26T15:25:27.587Z",
                "details": {
                    "usageRateTierConfiguration": {
                        "identity": 54,
                        "usageRateId": 93,
                        "pricePlanTierTypeId": 82,
                        "pricePlanTierTypeName": "Sample Text Data",
                        "countingRuleId": 12,
                        "countingRuleName": "Sample Text Data"
                    }
                }
            }
        ]
    }
}
GETUsage/Rate/{id}
Retrieve an instance of the UsageRate object by its ID.
{id}Unique identifier for the UsageRate object.
Retrieve an instance of the UsageRate object by its ID.
GET Usage/Rate/{id}
View Sample Response
HTTP/1.1 200 OK
{
    "trackingId": "d2ae5304-2355-44eb-a328-272f02935f8b",
    "instance": {
        "identity": 1,
        "usageRateGroupId": 13,
        "usageRateGroupName": "Sample Text Data",
        "usageClassId": 4,
        "usageClassName": "Sample Text Data",
        "amount": 2.52,
        "geoTreeLocationId": 8,
        "geoTreeLocationName": "Sample Text Data",
        "additional": true,
        "retired": true,
        "ownerId": 21,
        "ownerName": "Sample Text Data",
        "usageRoundingId": 3,
        "usageRoundingName": "Sample Text Data",
        "displayName": "My Rate",
        "geoTreeLocationGroupId": 22,
        "geoTreeLocationGroupName": "Sample Text Data",
        "minimumCharge": 5.34,
        "usageUnitId": 10,
        "usageUnitName": "Sample Text Data",
        "usageRateCalculationTypeId": 4,
        "usageRateCalculationTypeName": "Sample Text Data",
        "created": "2021-04-26T15:25:27.587Z",
        "updated": "2021-04-26T15:25:27.587Z"
    }
}
GETUsage/Rate/{id}/Detail
Retrieve deep detail of the UsageRate object by its ID. This endpoint returns additional detailed data related to this object. The specifics on which data is returned will depend on which related objects have been populated in the system.
{id}Unique identifier for the UsageRate object.
Retrieve deep detail of the UsageRate object by its ID.
GET Usage/Rate/{id}/Detail
View Sample Response
HTTP/1.1 200 OK
{
    "trackingId": "d2ae5304-2355-44eb-a328-272f02935f8b",
    "instance": {
        "identity": 1,
        "usageRateGroupId": 21,
        "usageRateGroupName": "Sample Text Data",
        "usageClassId": 20,
        "usageClassName": "Sample Text Data",
        "amount": 2.52,
        "geoTreeLocationId": 27,
        "geoTreeLocationName": "Sample Text Data",
        "additional": true,
        "retired": true,
        "ownerId": 11,
        "ownerName": "Sample Text Data",
        "usageRoundingId": 20,
        "usageRoundingName": "Sample Text Data",
        "displayName": "My Rate",
        "geoTreeLocationGroupId": 16,
        "geoTreeLocationGroupName": "Sample Text Data",
        "minimumCharge": 5.34,
        "usageUnitId": 1,
        "usageUnitName": "Sample Text Data",
        "usageRateCalculationTypeId": 18,
        "usageRateCalculationTypeName": "Sample Text Data",
        "created": "2021-04-26T15:25:27.587Z",
        "updated": "2021-04-26T15:25:27.587Z",
        "details": {
            "usageRateTierConfiguration": {
                "identity": 54,
                "usageRateId": 93,
                "pricePlanTierTypeId": 82,
                "pricePlanTierTypeName": "Sample Text Data",
                "countingRuleId": 12,
                "countingRuleName": "Sample Text Data"
            }
        }
    }
}
PATCHUsage/Rate/{id}
Update or Add the UsageRate object and optionally make changes to any child objects. Patch end points allow for adding/updating multiple related entities and the results of those changes will be reported in the response JSON payload in the items array.
{id}Unique identifier for the UsageRate object.
Update or Add the UsageRate object and optionally make changes to any child objects.
PATCH Usage/Rate/{id}

{
    "details": {},
    "usageRates": {
        "items": [
            {
                "patchType": "create",
                "patchClientId": 1,
                "usageRateGroupId": 9,
                "usageClassId": 21,
                "amount": 2.52,
                "geoTreeLocationId": 17,
                "additional": true,
                "usageRoundingId": 3,
                "displayName": "My Rate",
                "geoTreeLocationGroupId": 16,
                "minimumCharge": 5.34,
                "usageUnitId": 18,
                "usageRateCalculationTypeId": 1,
                "updated": "2021-04-26T15:25:27.587Z"
            }
        ]
    }
}
View Sample Response
HTTP/1.1 200 OK
{
    "trackingId": "d2ae5304-2355-44eb-a328-272f02935f8b",
    "type": "patch",
    "results": {
        "totalCount": 1,
        "items": [
            {
                "identity": 1,
                "action": "created",
                "dtoTypeKey": "usageRate",
                "instance": {
                    "identity": 1,
                    "usageRateGroupId": 18,
                    "usageRateGroupName": "Sample Text Data",
                    "usageClassId": 14,
                    "usageClassName": "Sample Text Data",
                    "amount": 2.52,
                    "geoTreeLocationId": 26,
                    "geoTreeLocationName": "Sample Text Data",
                    "additional": true,
                    "retired": true,
                    "ownerId": 5,
                    "ownerName": "Sample Text Data",
                    "usageRoundingId": 13,
                    "usageRoundingName": "Sample Text Data",
                    "displayName": "My Rate",
                    "geoTreeLocationGroupId": 24,
                    "geoTreeLocationGroupName": "Sample Text Data",
                    "minimumCharge": 5.34,
                    "usageUnitId": 7,
                    "usageUnitName": "Sample Text Data",
                    "usageRateCalculationTypeId": 7,
                    "usageRateCalculationTypeName": "Sample Text Data",
                    "created": "2021-04-26T15:25:27.587Z",
                    "updated": "2021-04-26T15:25:27.587Z"
                }
            }
        ]
    }
}
POSTUsage/Rate/
Create a new instance of the UsageRate object.
Create a new instance of the UsageRate object.
POST Usage/Rate/

{
    "usageRateGroupId": 8,
    "usageClassId": 20,
    "amount": 2.52,
    "geoTreeLocationId": 10,
    "additional": true,
    "usageRoundingId": 18,
    "displayName": "My Rate",
    "geoTreeLocationGroupId": 17,
    "minimumCharge": 5.34,
    "usageUnitId": 3,
    "usageRateCalculationTypeId": 8,
    "updated": "2021-04-26T15:25:27.587Z"
}
View Sample Response
HTTP/1.1 200 OK
{
    "trackingId": "d2ae5304-2355-44eb-a328-272f02935f8b",
    "type": "create",
    "results": {
        "totalCount": 1,
        "items": [
            {
                "identity": 1,
                "usageRateGroupId": 26,
                "usageRateGroupName": "Sample Text Data",
                "usageClassId": 3,
                "usageClassName": "Sample Text Data",
                "amount": 2.52,
                "geoTreeLocationId": 22,
                "geoTreeLocationName": "Sample Text Data",
                "additional": true,
                "retired": true,
                "ownerId": 5,
                "ownerName": "Sample Text Data",
                "usageRoundingId": 7,
                "usageRoundingName": "Sample Text Data",
                "displayName": "My Rate",
                "geoTreeLocationGroupId": 14,
                "geoTreeLocationGroupName": "Sample Text Data",
                "minimumCharge": 5.34,
                "usageUnitId": 9,
                "usageUnitName": "Sample Text Data",
                "usageRateCalculationTypeId": 16,
                "usageRateCalculationTypeName": "Sample Text Data",
                "created": "2021-04-26T15:25:27.587Z",
                "updated": "2021-04-26T15:25:27.587Z"
            }
        ]
    }
}
PUTUsage/Rate/{id}
Update an existing instance of the UsageRate object.
Update an existing instance of the UsageRate object.
PUT Usage/Rate/{id}

{
    "identity": 1,
    "usageRateGroupId": 13,
    "usageClassId": 20,
    "amount": 2.52,
    "geoTreeLocationId": 11,
    "additional": true,
    "usageRoundingId": 27,
    "displayName": "My Rate",
    "geoTreeLocationGroupId": 7,
    "minimumCharge": 5.34,
    "usageUnitId": 16,
    "usageRateCalculationTypeId": 3,
    "updated": "2021-04-26T15:25:27.587Z"
}
View Sample Response
HTTP/1.1 200 OK
{
    "trackingId": "d2ae5304-2355-44eb-a328-272f02935f8b",
    "type": "update",
    "results": {
        "totalCount": 1,
        "items": [
            {
                "identity": 1,
                "usageRateGroupId": 0,
                "usageRateGroupName": "Sample Text Data",
                "usageClassId": 9,
                "usageClassName": "Sample Text Data",
                "amount": 2.52,
                "geoTreeLocationId": 25,
                "geoTreeLocationName": "Sample Text Data",
                "additional": true,
                "retired": true,
                "ownerId": 19,
                "ownerName": "Sample Text Data",
                "usageRoundingId": 27,
                "usageRoundingName": "Sample Text Data",
                "displayName": "My Rate",
                "geoTreeLocationGroupId": 20,
                "geoTreeLocationGroupName": "Sample Text Data",
                "minimumCharge": 5.34,
                "usageUnitId": 4,
                "usageUnitName": "Sample Text Data",
                "usageRateCalculationTypeId": 6,
                "usageRateCalculationTypeName": "Sample Text Data",
                "created": "2021-04-26T15:25:27.587Z",
                "updated": "2021-04-26T15:25:27.587Z"
            }
        ]
    }
}