TAG LINE
TAG LINE
SMALL TITLE

Account / Service / Usage / Bucket

(API Version v8)


A Usage Bucket associated with an Account Service. This typically will hold any inclusions of usage for the Account Service.


What can you do with AccountServiceUsageBucket?


Properties

Property Details
identity
READ-ONLY
"identity": 3
Type: Number
This is the unique numeric identifier for the AccountServiceUsageBucket
usageBucketId
"usageBucketId": 21
Type: Number
Unique identifier for the associated UsageBucket object.
usageBucketName
"usageBucketName": "Sample Name"
Type: String
The name of the object associated with the usageBucketId property.
accountServiceId
"accountServiceId": "Hello World"
Type: String
Unique identifier for the associated AccountService object.
accountServiceName
"accountServiceName": "Sample Name"
Type: String
The name of the object associated with the accountServiceId property.
refillFrequency
READ-ONLY
"refillFrequency": 9
Type: Number
The number of times the bucket will refill based on the refillFrequencyTypeId. For example 1 month.
refillFrequencyTypeId
"refillFrequencyTypeId": 21
Type: Number
Unique identifier for the associated FrequencyType object.
refillFrequencyTypeName
"refillFrequencyTypeName": "Sample Name"
Type: String
The name of the object associated with the refillFrequencyTypeId property.
effective
READ-ONLY
"effective": "2021-04-26T15:25:27.587Z"
Type: Date
The date in which this bucket becomes enabled. This is inherited from the Account Service.

Date and time values are specified in the ISO 8601 format.
effectiveCancel
READ-ONLY
"effectiveCancel": "2021-04-26T15:25:27.587Z"
Type: Date
The date in which this bucket should be cancelled. This is inherited from the Account Service.

Date and time values are specified in the ISO 8601 format.
prorate
READ-ONLY
"prorate": true
Type: Boolean
Whether or not the amount defined for this Bucket will be prorated. This is inherited from the Account Service.
isInfiniteLastTier
READ-ONLY
"isInfiniteLastTier": true
Type: Boolean
Whether or not the last tier of the bucket repeats. This is inherited from the Bucket definition.
isThresholdPerAccountService
"isThresholdPerAccountService": true
Type: Boolean
Whether or not the bucket threshold is per account service.
usageBucketRefillTypeId
"usageBucketRefillTypeId": 19
Type: Number
Unique identifier for the associated UsageBucketRefillType object.
usageBucketRefillTypeName
"usageBucketRefillTypeName": "Sample Name"
Type: String
The name of the object associated with the usageBucketRefillTypeId property.
expireAfterFrequency
READ-ONLY
"expireAfterFrequency": 19
Type: Number
Whether or not the bucket will expire after the defined period. This is inherited from the Bucket definition.
expireAfterFrequencyTypeId
"expireAfterFrequencyTypeId": 24
Type: Number
Unique identifier for the associated FrequencyType object.
expireAfterFrequencyTypeName
"expireAfterFrequencyTypeName": "Sample Name"
Type: String
The name of the object associated with the expireAfterFrequencyTypeId property.
expireAfterRecurrence
READ-ONLY
"expireAfterRecurrence": 0
Type: Number
Whether or not the bucket will expire after the defined period. This is for recurring buckets and buckets with roll over. This is inherited from the Bucket definition.
accountPackageActivation
READ-ONLY
"accountPackageActivation": true
Type: Boolean
Whether or not the bucket is used for billing activation. This is inherited from the Bucket definition.
isSharedAcrossPackage
READ-ONLY
"isSharedAcrossPackage": true
Type: Boolean
Whether or not the bucket is shared across all services assigned within this Account Package.
overageUsageRatePlanId
"overageUsageRatePlanId": 16
Type: Number
Unique identifier for the associated UsageRatePlan object.
overageUsageRatePlanName
"overageUsageRatePlanName": "Sample Name"
Type: String
The name of the object associated with the overageUsageRatePlanId 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 AccountServiceUsageBucket object.

Standard PATCH objects:

DataFlow PATCH objects:


End Points

DELETEAccount/Service/Usage/Bucket/{id}
Delete an instance of the AccountServiceUsageBucket 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 AccountServiceUsageBucket object.
Delete an instance of the AccountServiceUsageBucket object.
DELETE Account/Service/Usage/Bucket/{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": "accountServiceUsageBucket"
            },
            {
                "lhsId": 2,
                "rhsId": 2,
                "action": "detached",
                "dtoTypeKey": "sampleObjectConnector"
            },
            {
                "foreignKeyIdentity": 2,
                "action": "deleted",
                "dtoTypeKey": "sampleObject"
            }
        ]
    }
}
GETAccount/Service/Usage/Bucket/
Retrieve all of the AccountServiceUsageBucket objects.
Retrieve all of the AccountServiceUsageBucket objects.
GET Account/Service/Usage/Bucket/
View Sample Response
HTTP/1.1 200 OK
{
    "trackingId": "d2ae5304-2355-44eb-a328-272f02935f8b",
    "totalCount": 1,
    "items": [
        {
            "identity": 1,
            "usageBucketId": 11,
            "usageBucketName": "Sample Text Data",
            "accountServiceId": "Sample Text Data",
            "accountServiceName": "Sample Text Data",
            "refillFrequency": 0,
            "refillFrequencyTypeId": 21,
            "refillFrequencyTypeName": "Sample Text Data",
            "effective": "2021-04-26T15:25:27.587Z",
            "effectiveCancel": "2021-04-26T15:25:27.587Z",
            "prorate": true,
            "isInfiniteLastTier": true,
            "isThresholdPerAccountService": true,
            "usageBucketRefillTypeId": 18,
            "usageBucketRefillTypeName": "Sample Text Data",
            "expireAfterFrequency": 7,
            "expireAfterFrequencyTypeId": 6,
            "expireAfterFrequencyTypeName": "Sample Text Data",
            "expireAfterRecurrence": 2,
            "accountPackageActivation": true,
            "isSharedAcrossPackage": true,
            "overageUsageRatePlanId": 9,
            "overageUsageRatePlanName": "Sample Text Data"
        }
    ]
}
GETAccount/Service/Usage/Bucket/Paged
Retrieve all of the AccountServiceUsageBucket 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 AccountServiceUsageBucket objects in a paged fashion.
GET Account/Service/Usage/Bucket/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,
                "usageBucketId": 6,
                "usageBucketName": "Sample Text Data",
                "accountServiceId": "Sample Text Data",
                "accountServiceName": "Sample Text Data",
                "refillFrequency": 19,
                "refillFrequencyTypeId": 6,
                "refillFrequencyTypeName": "Sample Text Data",
                "effective": "2021-04-26T15:25:27.587Z",
                "effectiveCancel": "2021-04-26T15:25:27.587Z",
                "prorate": true,
                "isInfiniteLastTier": true,
                "isThresholdPerAccountService": true,
                "usageBucketRefillTypeId": 5,
                "usageBucketRefillTypeName": "Sample Text Data",
                "expireAfterFrequency": 18,
                "expireAfterFrequencyTypeId": 15,
                "expireAfterFrequencyTypeName": "Sample Text Data",
                "expireAfterRecurrence": 5,
                "accountPackageActivation": true,
                "isSharedAcrossPackage": true,
                "overageUsageRatePlanId": 16,
                "overageUsageRatePlanName": "Sample Text Data"
            }
        ]
    }
}
GETAccount/Service/Usage/Bucket/Paged/Detail
Retrieve all of the AccountServiceUsageBucket 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 AccountServiceUsageBucket objects in a paged fashion with all object details.
GET Account/Service/Usage/Bucket/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,
                "usageBucketId": 9,
                "usageBucketName": "Sample Text Data",
                "accountServiceId": "Sample Text Data",
                "accountServiceName": "Sample Text Data",
                "refillFrequency": 5,
                "refillFrequencyTypeId": 5,
                "refillFrequencyTypeName": "Sample Text Data",
                "effective": "2021-04-26T15:25:27.587Z",
                "effectiveCancel": "2021-04-26T15:25:27.587Z",
                "prorate": true,
                "isInfiniteLastTier": true,
                "isThresholdPerAccountService": true,
                "usageBucketRefillTypeId": 3,
                "usageBucketRefillTypeName": "Sample Text Data",
                "expireAfterFrequency": 21,
                "expireAfterFrequencyTypeId": 12,
                "expireAfterFrequencyTypeName": "Sample Text Data",
                "expireAfterRecurrence": 19,
                "accountPackageActivation": true,
                "isSharedAcrossPackage": true,
                "overageUsageRatePlanId": 1,
                "overageUsageRatePlanName": "Sample Text Data",
                "details": {
                    "tiers": [
                        {
                            "identity": 18,
                            "usageBucketTierId": 12,
                            "accountServiceUsageBucketId": 29,
                            "threshold": 79.91,
                            "flatCharge": 94.36,
                            "usageUnitId": 40,
                            "usageUnitName": "Sample Text Data",
                            "money": 96.77
                        }
                    ],
                    "contributions": [
                        {
                            "identity": 90,
                            "accountSharePlanParticipationId": 54,
                            "accountServiceUsageBucketId": 23,
                            "isContributing": true,
                            "contributingAmount": 46.8,
                            "contributingUsageUnitId": 68,
                            "contributingUsageUnitName": "Sample Text Data"
                        }
                    ]
                }
            }
        ]
    }
}
GETAccount/Service/Usage/Bucket/{id}
Retrieve an instance of the AccountServiceUsageBucket object by its ID.
{id}Unique identifier for the AccountServiceUsageBucket object.
Retrieve an instance of the AccountServiceUsageBucket object by its ID.
GET Account/Service/Usage/Bucket/{id}
View Sample Response
HTTP/1.1 200 OK
{
    "trackingId": "d2ae5304-2355-44eb-a328-272f02935f8b",
    "instance": {
        "identity": 1,
        "usageBucketId": 27,
        "usageBucketName": "Sample Text Data",
        "accountServiceId": "Sample Text Data",
        "accountServiceName": "Sample Text Data",
        "refillFrequency": 0,
        "refillFrequencyTypeId": 16,
        "refillFrequencyTypeName": "Sample Text Data",
        "effective": "2021-04-26T15:25:27.587Z",
        "effectiveCancel": "2021-04-26T15:25:27.587Z",
        "prorate": true,
        "isInfiniteLastTier": true,
        "isThresholdPerAccountService": true,
        "usageBucketRefillTypeId": 9,
        "usageBucketRefillTypeName": "Sample Text Data",
        "expireAfterFrequency": 21,
        "expireAfterFrequencyTypeId": 7,
        "expireAfterFrequencyTypeName": "Sample Text Data",
        "expireAfterRecurrence": 23,
        "accountPackageActivation": true,
        "isSharedAcrossPackage": true,
        "overageUsageRatePlanId": 0,
        "overageUsageRatePlanName": "Sample Text Data"
    }
}
GETAccount/Service/Usage/Bucket/{id}/Detail
Retrieve deep detail of the AccountServiceUsageBucket 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 AccountServiceUsageBucket object.
Retrieve deep detail of the AccountServiceUsageBucket object by its ID.
GET Account/Service/Usage/Bucket/{id}/Detail
View Sample Response
HTTP/1.1 200 OK
{
    "trackingId": "d2ae5304-2355-44eb-a328-272f02935f8b",
    "instance": {
        "identity": 1,
        "usageBucketId": 16,
        "usageBucketName": "Sample Text Data",
        "accountServiceId": "Sample Text Data",
        "accountServiceName": "Sample Text Data",
        "refillFrequency": 1,
        "refillFrequencyTypeId": 19,
        "refillFrequencyTypeName": "Sample Text Data",
        "effective": "2021-04-26T15:25:27.587Z",
        "effectiveCancel": "2021-04-26T15:25:27.587Z",
        "prorate": true,
        "isInfiniteLastTier": true,
        "isThresholdPerAccountService": true,
        "usageBucketRefillTypeId": 16,
        "usageBucketRefillTypeName": "Sample Text Data",
        "expireAfterFrequency": 6,
        "expireAfterFrequencyTypeId": 0,
        "expireAfterFrequencyTypeName": "Sample Text Data",
        "expireAfterRecurrence": 12,
        "accountPackageActivation": true,
        "isSharedAcrossPackage": true,
        "overageUsageRatePlanId": 3,
        "overageUsageRatePlanName": "Sample Text Data",
        "details": {
            "tiers": [
                {
                    "identity": 18,
                    "usageBucketTierId": 12,
                    "accountServiceUsageBucketId": 29,
                    "threshold": 79.91,
                    "flatCharge": 94.36,
                    "usageUnitId": 40,
                    "usageUnitName": "Sample Text Data",
                    "money": 96.77
                }
            ],
            "contributions": [
                {
                    "identity": 90,
                    "accountSharePlanParticipationId": 54,
                    "accountServiceUsageBucketId": 23,
                    "isContributing": true,
                    "contributingAmount": 46.8,
                    "contributingUsageUnitId": 68,
                    "contributingUsageUnitName": "Sample Text Data"
                }
            ]
        }
    }
}
PATCHAccount/Service/Usage/Bucket/{id}
Update or Add the AccountServiceUsageBucket 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 AccountServiceUsageBucket object.
Update or Add the AccountServiceUsageBucket object and optionally make changes to any child objects.
PATCH Account/Service/Usage/Bucket/{id}

{
    "details": {},
    "accountServiceUsageBuckets": {
        "items": [
            {
                "patchType": "create",
                "patchClientId": 1,
                "usageBucketId": 14,
                "accountServiceId": "Sample Text Data",
                "refillFrequencyTypeId": 19,
                "isThresholdPerAccountService": true,
                "usageBucketRefillTypeId": 18,
                "expireAfterFrequencyTypeId": 18,
                "overageUsageRatePlanId": 11
            }
        ]
    }
}
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": "accountServiceUsageBucket",
                "instance": {
                    "identity": 1,
                    "usageBucketId": 14,
                    "usageBucketName": "Sample Text Data",
                    "accountServiceId": "Sample Text Data",
                    "accountServiceName": "Sample Text Data",
                    "refillFrequency": 23,
                    "refillFrequencyTypeId": 1,
                    "refillFrequencyTypeName": "Sample Text Data",
                    "effective": "2021-04-26T15:25:27.587Z",
                    "effectiveCancel": "2021-04-26T15:25:27.587Z",
                    "prorate": true,
                    "isInfiniteLastTier": true,
                    "isThresholdPerAccountService": true,
                    "usageBucketRefillTypeId": 10,
                    "usageBucketRefillTypeName": "Sample Text Data",
                    "expireAfterFrequency": 2,
                    "expireAfterFrequencyTypeId": 16,
                    "expireAfterFrequencyTypeName": "Sample Text Data",
                    "expireAfterRecurrence": 2,
                    "accountPackageActivation": true,
                    "isSharedAcrossPackage": true,
                    "overageUsageRatePlanId": 14,
                    "overageUsageRatePlanName": "Sample Text Data"
                }
            }
        ]
    }
}
POSTAccount/Service/Usage/Bucket/
Create a new instance of the AccountServiceUsageBucket object.
Create a new instance of the AccountServiceUsageBucket object.
POST Account/Service/Usage/Bucket/

{
    "usageBucketId": 13,
    "accountServiceId": "Sample Text Data",
    "refillFrequencyTypeId": 22,
    "isThresholdPerAccountService": true,
    "usageBucketRefillTypeId": 9,
    "expireAfterFrequencyTypeId": 24,
    "overageUsageRatePlanId": 10
}
View Sample Response
HTTP/1.1 200 OK
{
    "trackingId": "d2ae5304-2355-44eb-a328-272f02935f8b",
    "type": "create",
    "results": {
        "totalCount": 1,
        "items": [
            {
                "identity": 1,
                "usageBucketId": 6,
                "usageBucketName": "Sample Text Data",
                "accountServiceId": "Sample Text Data",
                "accountServiceName": "Sample Text Data",
                "refillFrequency": 9,
                "refillFrequencyTypeId": 5,
                "refillFrequencyTypeName": "Sample Text Data",
                "effective": "2021-04-26T15:25:27.587Z",
                "effectiveCancel": "2021-04-26T15:25:27.587Z",
                "prorate": true,
                "isInfiniteLastTier": true,
                "isThresholdPerAccountService": true,
                "usageBucketRefillTypeId": 17,
                "usageBucketRefillTypeName": "Sample Text Data",
                "expireAfterFrequency": 9,
                "expireAfterFrequencyTypeId": 18,
                "expireAfterFrequencyTypeName": "Sample Text Data",
                "expireAfterRecurrence": 23,
                "accountPackageActivation": true,
                "isSharedAcrossPackage": true,
                "overageUsageRatePlanId": 0,
                "overageUsageRatePlanName": "Sample Text Data"
            }
        ]
    }
}
PUTAccount/Service/Usage/Bucket/{id}
Update an existing instance of the AccountServiceUsageBucket object.
Update an existing instance of the AccountServiceUsageBucket object.
PUT Account/Service/Usage/Bucket/{id}

{
    "identity": 1,
    "usageBucketId": 1,
    "accountServiceId": "Sample Text Data",
    "refillFrequencyTypeId": 7,
    "isThresholdPerAccountService": true,
    "usageBucketRefillTypeId": 25,
    "expireAfterFrequencyTypeId": 3,
    "overageUsageRatePlanId": 19
}
View Sample Response
HTTP/1.1 200 OK
{
    "trackingId": "d2ae5304-2355-44eb-a328-272f02935f8b",
    "type": "update",
    "results": {
        "totalCount": 1,
        "items": [
            {
                "identity": 1,
                "usageBucketId": 22,
                "usageBucketName": "Sample Text Data",
                "accountServiceId": "Sample Text Data",
                "accountServiceName": "Sample Text Data",
                "refillFrequency": 26,
                "refillFrequencyTypeId": 8,
                "refillFrequencyTypeName": "Sample Text Data",
                "effective": "2021-04-26T15:25:27.587Z",
                "effectiveCancel": "2021-04-26T15:25:27.587Z",
                "prorate": true,
                "isInfiniteLastTier": true,
                "isThresholdPerAccountService": true,
                "usageBucketRefillTypeId": 26,
                "usageBucketRefillTypeName": "Sample Text Data",
                "expireAfterFrequency": 12,
                "expireAfterFrequencyTypeId": 25,
                "expireAfterFrequencyTypeName": "Sample Text Data",
                "expireAfterRecurrence": 24,
                "accountPackageActivation": true,
                "isSharedAcrossPackage": true,
                "overageUsageRatePlanId": 25,
                "overageUsageRatePlanName": "Sample Text Data"
            }
        ]
    }
}