TAG LINE
TAG LINE
SMALL TITLE

Account / Service / Usage / Bucket

(API Version v6)


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