TAG LINE
TAG LINE
SMALL TITLE

Account / Service / Usage / Bucket

(API Version v10)


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": 18
Type: Number
This is the unique numeric identifier for the AccountServiceUsageBucket
usageBucketId
"usageBucketId": 6
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": 1
Type: Number
The number of times the bucket will refill based on the refillFrequencyTypeId. For example 1 month.
refillFrequencyTypeId
"refillFrequencyTypeId": 7
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": 24
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": 25
Type: Number
Whether or not the bucket will expire after the defined period. This is inherited from the Bucket definition.
expireAfterFrequencyTypeId
"expireAfterFrequencyTypeId": 20
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": 17
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": 2
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": 22,
            "usageBucketName": "Sample Text Data",
            "accountServiceId": "Sample Text Data",
            "accountServiceName": "Sample Text Data",
            "refillFrequency": 4,
            "refillFrequencyTypeId": 18,
            "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": 7,
            "expireAfterFrequencyTypeName": "Sample Text Data",
            "expireAfterRecurrence": 22,
            "accountPackageActivation": true,
            "isSharedAcrossPackage": true,
            "overageUsageRatePlanId": 3,
            "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": 2,
                "usageBucketName": "Sample Text Data",
                "accountServiceId": "Sample Text Data",
                "accountServiceName": "Sample Text Data",
                "refillFrequency": 18,
                "refillFrequencyTypeId": 20,
                "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": 4,
                "usageBucketRefillTypeName": "Sample Text Data",
                "expireAfterFrequency": 24,
                "expireAfterFrequencyTypeId": 13,
                "expireAfterFrequencyTypeName": "Sample Text Data",
                "expireAfterRecurrence": 19,
                "accountPackageActivation": true,
                "isSharedAcrossPackage": true,
                "overageUsageRatePlanId": 6,
                "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": 1,
                "usageBucketName": "Sample Text Data",
                "accountServiceId": "Sample Text Data",
                "accountServiceName": "Sample Text Data",
                "refillFrequency": 27,
                "refillFrequencyTypeId": 26,
                "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": 22,
                "usageBucketRefillTypeName": "Sample Text Data",
                "expireAfterFrequency": 18,
                "expireAfterFrequencyTypeId": 12,
                "expireAfterFrequencyTypeName": "Sample Text Data",
                "expireAfterRecurrence": 15,
                "accountPackageActivation": true,
                "isSharedAcrossPackage": true,
                "overageUsageRatePlanId": 22,
                "overageUsageRatePlanName": "Sample Text Data",
                "details": {
                    "tiers": [
                        {
                            "identity": 53,
                            "usageBucketTierId": 44,
                            "accountServiceUsageBucketId": 39,
                            "threshold": 12.32,
                            "flatCharge": 52.28,
                            "usageUnitId": 36,
                            "usageUnitName": "Sample Text Data",
                            "money": 74.55
                        }
                    ],
                    "contributions": [
                        {
                            "identity": 9,
                            "accountSharePlanParticipationId": 29,
                            "accountServiceUsageBucketId": 1,
                            "isContributing": true,
                            "contributingAmount": 59.61,
                            "contributingUsageUnitId": 34,
                            "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": 21,
        "usageBucketName": "Sample Text Data",
        "accountServiceId": "Sample Text Data",
        "accountServiceName": "Sample Text Data",
        "refillFrequency": 0,
        "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": 11,
        "usageBucketRefillTypeName": "Sample Text Data",
        "expireAfterFrequency": 23,
        "expireAfterFrequencyTypeId": 20,
        "expireAfterFrequencyTypeName": "Sample Text Data",
        "expireAfterRecurrence": 25,
        "accountPackageActivation": true,
        "isSharedAcrossPackage": true,
        "overageUsageRatePlanId": 14,
        "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": 10,
        "usageBucketName": "Sample Text Data",
        "accountServiceId": "Sample Text Data",
        "accountServiceName": "Sample Text Data",
        "refillFrequency": 8,
        "refillFrequencyTypeId": 4,
        "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": 14,
        "usageBucketRefillTypeName": "Sample Text Data",
        "expireAfterFrequency": 24,
        "expireAfterFrequencyTypeId": 9,
        "expireAfterFrequencyTypeName": "Sample Text Data",
        "expireAfterRecurrence": 2,
        "accountPackageActivation": true,
        "isSharedAcrossPackage": true,
        "overageUsageRatePlanId": 9,
        "overageUsageRatePlanName": "Sample Text Data",
        "details": {
            "tiers": [
                {
                    "identity": 53,
                    "usageBucketTierId": 44,
                    "accountServiceUsageBucketId": 39,
                    "threshold": 12.32,
                    "flatCharge": 52.28,
                    "usageUnitId": 36,
                    "usageUnitName": "Sample Text Data",
                    "money": 74.55
                }
            ],
            "contributions": [
                {
                    "identity": 9,
                    "accountSharePlanParticipationId": 29,
                    "accountServiceUsageBucketId": 1,
                    "isContributing": true,
                    "contributingAmount": 59.61,
                    "contributingUsageUnitId": 34,
                    "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": 24,
                "accountServiceId": "Sample Text Data",
                "refillFrequencyTypeId": 7,
                "isThresholdPerAccountService": true,
                "usageBucketRefillTypeId": 18,
                "expireAfterFrequencyTypeId": 3,
                "overageUsageRatePlanId": 18
            }
        ]
    }
}
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": 11,
                    "usageBucketName": "Sample Text Data",
                    "accountServiceId": "Sample Text Data",
                    "accountServiceName": "Sample Text Data",
                    "refillFrequency": 1,
                    "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": 26,
                    "usageBucketRefillTypeName": "Sample Text Data",
                    "expireAfterFrequency": 24,
                    "expireAfterFrequencyTypeId": 3,
                    "expireAfterFrequencyTypeName": "Sample Text Data",
                    "expireAfterRecurrence": 20,
                    "accountPackageActivation": true,
                    "isSharedAcrossPackage": true,
                    "overageUsageRatePlanId": 19,
                    "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": 24,
    "accountServiceId": "Sample Text Data",
    "refillFrequencyTypeId": 20,
    "isThresholdPerAccountService": true,
    "usageBucketRefillTypeId": 18,
    "expireAfterFrequencyTypeId": 10,
    "overageUsageRatePlanId": 17
}
View Sample Response
HTTP/1.1 200 OK
{
    "trackingId": "d2ae5304-2355-44eb-a328-272f02935f8b",
    "type": "create",
    "results": {
        "totalCount": 1,
        "items": [
            {
                "identity": 1,
                "usageBucketId": 13,
                "usageBucketName": "Sample Text Data",
                "accountServiceId": "Sample Text Data",
                "accountServiceName": "Sample Text Data",
                "refillFrequency": 26,
                "refillFrequencyTypeId": 10,
                "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": 11,
                "usageBucketRefillTypeName": "Sample Text Data",
                "expireAfterFrequency": 11,
                "expireAfterFrequencyTypeId": 26,
                "expireAfterFrequencyTypeName": "Sample Text Data",
                "expireAfterRecurrence": 11,
                "accountPackageActivation": true,
                "isSharedAcrossPackage": true,
                "overageUsageRatePlanId": 17,
                "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": 4,
    "accountServiceId": "Sample Text Data",
    "refillFrequencyTypeId": 16,
    "isThresholdPerAccountService": true,
    "usageBucketRefillTypeId": 7,
    "expireAfterFrequencyTypeId": 18,
    "overageUsageRatePlanId": 12
}
View Sample Response
HTTP/1.1 200 OK
{
    "trackingId": "d2ae5304-2355-44eb-a328-272f02935f8b",
    "type": "update",
    "results": {
        "totalCount": 1,
        "items": [
            {
                "identity": 1,
                "usageBucketId": 13,
                "usageBucketName": "Sample Text Data",
                "accountServiceId": "Sample Text Data",
                "accountServiceName": "Sample Text Data",
                "refillFrequency": 25,
                "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": 24,
                "expireAfterFrequencyTypeId": 27,
                "expireAfterFrequencyTypeName": "Sample Text Data",
                "expireAfterRecurrence": 14,
                "accountPackageActivation": true,
                "isSharedAcrossPackage": true,
                "overageUsageRatePlanId": 20,
                "overageUsageRatePlanName": "Sample Text Data"
            }
        ]
    }
}