TAG LINE
TAG LINE
SMALL TITLE

Usage / Rate

(API Version v8)


Defines properties for an individual Usage Rate within the system.


What can you do with UsageRate?


Properties

Property Details
identity
READ-ONLY
"identity": 11
Type: Number
This is the unique numeric identifier for the UsageRate
usageRateGroupId
"usageRateGroupId": 5
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": 12
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": 23
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": 1
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": 10
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": 0
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": 15
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": 15
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
READ-ONLY
"updated": "2021-04-26T15:25:27.587Z"
Type: Date
The date time stamp when this record was updated. Date and time values are specified in the ISO 8601 format.
generalLedgerId
"generalLedgerId": 22
Type: Number
Unique identifier for the associated GeneralLedger object.
generalLedgerName
"generalLedgerName": "Sample Name"
Type: String
The name of the object associated with the generalLedgerId property.
serviceTaxCategoryId
"serviceTaxCategoryId": 22
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.


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 related 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": 0,
            "usageRateGroupName": "Sample Text Data",
            "usageClassId": 8,
            "usageClassName": "Sample Text Data",
            "amount": 2.52,
            "geoTreeLocationId": 15,
            "geoTreeLocationName": "Sample Text Data",
            "additional": true,
            "retired": true,
            "ownerId": 19,
            "ownerName": "Sample Text Data",
            "usageRoundingId": 7,
            "usageRoundingName": "Sample Text Data",
            "displayName": "My Rate",
            "geoTreeLocationGroupId": 25,
            "geoTreeLocationGroupName": "Sample Text Data",
            "minimumCharge": 5.34,
            "usageUnitId": 12,
            "usageUnitName": "Sample Text Data",
            "usageRateCalculationTypeId": 20,
            "usageRateCalculationTypeName": "Sample Text Data",
            "created": "2021-04-26T15:25:27.587Z",
            "updated": "2021-04-26T15:25:27.587Z",
            "generalLedgerId": 14,
            "generalLedgerName": "Sample Text Data",
            "serviceTaxCategoryId": 10,
            "serviceTaxCategoryName": "Sample Text Data"
        }
    ]
}
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": 10,
                "usageRateGroupName": "Sample Text Data",
                "usageClassId": 24,
                "usageClassName": "Sample Text Data",
                "amount": 2.52,
                "geoTreeLocationId": 20,
                "geoTreeLocationName": "Sample Text Data",
                "additional": true,
                "retired": true,
                "ownerId": 4,
                "ownerName": "Sample Text Data",
                "usageRoundingId": 10,
                "usageRoundingName": "Sample Text Data",
                "displayName": "My Rate",
                "geoTreeLocationGroupId": 17,
                "geoTreeLocationGroupName": "Sample Text Data",
                "minimumCharge": 5.34,
                "usageUnitId": 24,
                "usageUnitName": "Sample Text Data",
                "usageRateCalculationTypeId": 19,
                "usageRateCalculationTypeName": "Sample Text Data",
                "created": "2021-04-26T15:25:27.587Z",
                "updated": "2021-04-26T15:25:27.587Z",
                "generalLedgerId": 9,
                "generalLedgerName": "Sample Text Data",
                "serviceTaxCategoryId": 21,
                "serviceTaxCategoryName": "Sample Text Data"
            }
        ]
    }
}
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": 0,
                "usageRateGroupName": "Sample Text Data",
                "usageClassId": 2,
                "usageClassName": "Sample Text Data",
                "amount": 2.52,
                "geoTreeLocationId": 19,
                "geoTreeLocationName": "Sample Text Data",
                "additional": true,
                "retired": true,
                "ownerId": 12,
                "ownerName": "Sample Text Data",
                "usageRoundingId": 17,
                "usageRoundingName": "Sample Text Data",
                "displayName": "My Rate",
                "geoTreeLocationGroupId": 24,
                "geoTreeLocationGroupName": "Sample Text Data",
                "minimumCharge": 5.34,
                "usageUnitId": 3,
                "usageUnitName": "Sample Text Data",
                "usageRateCalculationTypeId": 6,
                "usageRateCalculationTypeName": "Sample Text Data",
                "created": "2021-04-26T15:25:27.587Z",
                "updated": "2021-04-26T15:25:27.587Z",
                "generalLedgerId": 25,
                "generalLedgerName": "Sample Text Data",
                "serviceTaxCategoryId": 15,
                "serviceTaxCategoryName": "Sample Text Data",
                "details": {
                    "usageRateTierConfiguration": {
                        "identity": 20,
                        "usageRateId": 29,
                        "pricePlanTierTypeId": 41,
                        "pricePlanTierTypeName": "Sample Text Data",
                        "countingRuleId": 69,
                        "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": 15,
        "usageRateGroupName": "Sample Text Data",
        "usageClassId": 10,
        "usageClassName": "Sample Text Data",
        "amount": 2.52,
        "geoTreeLocationId": 19,
        "geoTreeLocationName": "Sample Text Data",
        "additional": true,
        "retired": true,
        "ownerId": 7,
        "ownerName": "Sample Text Data",
        "usageRoundingId": 19,
        "usageRoundingName": "Sample Text Data",
        "displayName": "My Rate",
        "geoTreeLocationGroupId": 17,
        "geoTreeLocationGroupName": "Sample Text Data",
        "minimumCharge": 5.34,
        "usageUnitId": 16,
        "usageUnitName": "Sample Text Data",
        "usageRateCalculationTypeId": 11,
        "usageRateCalculationTypeName": "Sample Text Data",
        "created": "2021-04-26T15:25:27.587Z",
        "updated": "2021-04-26T15:25:27.587Z",
        "generalLedgerId": 10,
        "generalLedgerName": "Sample Text Data",
        "serviceTaxCategoryId": 12,
        "serviceTaxCategoryName": "Sample Text Data"
    }
}
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": 5,
        "usageRateGroupName": "Sample Text Data",
        "usageClassId": 5,
        "usageClassName": "Sample Text Data",
        "amount": 2.52,
        "geoTreeLocationId": 19,
        "geoTreeLocationName": "Sample Text Data",
        "additional": true,
        "retired": true,
        "ownerId": 18,
        "ownerName": "Sample Text Data",
        "usageRoundingId": 20,
        "usageRoundingName": "Sample Text Data",
        "displayName": "My Rate",
        "geoTreeLocationGroupId": 10,
        "geoTreeLocationGroupName": "Sample Text Data",
        "minimumCharge": 5.34,
        "usageUnitId": 10,
        "usageUnitName": "Sample Text Data",
        "usageRateCalculationTypeId": 22,
        "usageRateCalculationTypeName": "Sample Text Data",
        "created": "2021-04-26T15:25:27.587Z",
        "updated": "2021-04-26T15:25:27.587Z",
        "generalLedgerId": 0,
        "generalLedgerName": "Sample Text Data",
        "serviceTaxCategoryId": 21,
        "serviceTaxCategoryName": "Sample Text Data",
        "details": {
            "usageRateTierConfiguration": {
                "identity": 20,
                "usageRateId": 29,
                "pricePlanTierTypeId": 41,
                "pricePlanTierTypeName": "Sample Text Data",
                "countingRuleId": 69,
                "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": 19,
                "usageClassId": 15,
                "amount": 2.52,
                "geoTreeLocationId": 12,
                "additional": true,
                "usageRoundingId": 7,
                "displayName": "My Rate",
                "geoTreeLocationGroupId": 6,
                "minimumCharge": 5.34,
                "usageUnitId": 14,
                "usageRateCalculationTypeId": 17,
                "updated": "2021-04-26T15:25:27.587Z",
                "generalLedgerId": 27,
                "serviceTaxCategoryId": 12
            }
        ]
    }
}
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": 26,
                    "usageRateGroupName": "Sample Text Data",
                    "usageClassId": 20,
                    "usageClassName": "Sample Text Data",
                    "amount": 2.52,
                    "geoTreeLocationId": 11,
                    "geoTreeLocationName": "Sample Text Data",
                    "additional": true,
                    "retired": true,
                    "ownerId": 1,
                    "ownerName": "Sample Text Data",
                    "usageRoundingId": 24,
                    "usageRoundingName": "Sample Text Data",
                    "displayName": "My Rate",
                    "geoTreeLocationGroupId": 6,
                    "geoTreeLocationGroupName": "Sample Text Data",
                    "minimumCharge": 5.34,
                    "usageUnitId": 16,
                    "usageUnitName": "Sample Text Data",
                    "usageRateCalculationTypeId": 3,
                    "usageRateCalculationTypeName": "Sample Text Data",
                    "created": "2021-04-26T15:25:27.587Z",
                    "updated": "2021-04-26T15:25:27.587Z",
                    "generalLedgerId": 20,
                    "generalLedgerName": "Sample Text Data",
                    "serviceTaxCategoryId": 26,
                    "serviceTaxCategoryName": "Sample Text Data"
                }
            }
        ]
    }
}
POSTUsage/Rate/
Create a new instance of the UsageRate object.
Create a new instance of the UsageRate object.
POST Usage/Rate/

{
    "usageRateGroupId": 8,
    "usageClassId": 7,
    "amount": 2.52,
    "geoTreeLocationId": 25,
    "additional": true,
    "usageRoundingId": 13,
    "displayName": "My Rate",
    "geoTreeLocationGroupId": 25,
    "minimumCharge": 5.34,
    "usageUnitId": 25,
    "usageRateCalculationTypeId": 22,
    "updated": "2021-04-26T15:25:27.587Z",
    "generalLedgerId": 19,
    "serviceTaxCategoryId": 16
}
View Sample Response
HTTP/1.1 200 OK
{
    "trackingId": "d2ae5304-2355-44eb-a328-272f02935f8b",
    "type": "create",
    "results": {
        "totalCount": 1,
        "items": [
            {
                "identity": 1,
                "usageRateGroupId": 18,
                "usageRateGroupName": "Sample Text Data",
                "usageClassId": 13,
                "usageClassName": "Sample Text Data",
                "amount": 2.52,
                "geoTreeLocationId": 21,
                "geoTreeLocationName": "Sample Text Data",
                "additional": true,
                "retired": true,
                "ownerId": 0,
                "ownerName": "Sample Text Data",
                "usageRoundingId": 0,
                "usageRoundingName": "Sample Text Data",
                "displayName": "My Rate",
                "geoTreeLocationGroupId": 15,
                "geoTreeLocationGroupName": "Sample Text Data",
                "minimumCharge": 5.34,
                "usageUnitId": 13,
                "usageUnitName": "Sample Text Data",
                "usageRateCalculationTypeId": 26,
                "usageRateCalculationTypeName": "Sample Text Data",
                "created": "2021-04-26T15:25:27.587Z",
                "updated": "2021-04-26T15:25:27.587Z",
                "generalLedgerId": 6,
                "generalLedgerName": "Sample Text Data",
                "serviceTaxCategoryId": 17,
                "serviceTaxCategoryName": "Sample Text Data"
            }
        ]
    }
}
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": 16,
    "usageClassId": 7,
    "amount": 2.52,
    "geoTreeLocationId": 15,
    "additional": true,
    "usageRoundingId": 0,
    "displayName": "My Rate",
    "geoTreeLocationGroupId": 18,
    "minimumCharge": 5.34,
    "usageUnitId": 13,
    "usageRateCalculationTypeId": 10,
    "updated": "2021-04-26T15:25:27.587Z",
    "generalLedgerId": 25,
    "serviceTaxCategoryId": 14
}
View Sample Response
HTTP/1.1 200 OK
{
    "trackingId": "d2ae5304-2355-44eb-a328-272f02935f8b",
    "type": "update",
    "results": {
        "totalCount": 1,
        "items": [
            {
                "identity": 1,
                "usageRateGroupId": 7,
                "usageRateGroupName": "Sample Text Data",
                "usageClassId": 17,
                "usageClassName": "Sample Text Data",
                "amount": 2.52,
                "geoTreeLocationId": 5,
                "geoTreeLocationName": "Sample Text Data",
                "additional": true,
                "retired": true,
                "ownerId": 25,
                "ownerName": "Sample Text Data",
                "usageRoundingId": 9,
                "usageRoundingName": "Sample Text Data",
                "displayName": "My Rate",
                "geoTreeLocationGroupId": 2,
                "geoTreeLocationGroupName": "Sample Text Data",
                "minimumCharge": 5.34,
                "usageUnitId": 4,
                "usageUnitName": "Sample Text Data",
                "usageRateCalculationTypeId": 5,
                "usageRateCalculationTypeName": "Sample Text Data",
                "created": "2021-04-26T15:25:27.587Z",
                "updated": "2021-04-26T15:25:27.587Z",
                "generalLedgerId": 3,
                "generalLedgerName": "Sample Text Data",
                "serviceTaxCategoryId": 26,
                "serviceTaxCategoryName": "Sample Text Data"
            }
        ]
    }
}