TAG LINE
TAG LINE
SMALL TITLE

Usage / Bucket

(API Version v6)


Represents an allocation of usage that can be included in pricing, have tiers of usage and overage charges.


What can you do with UsageBucket?


Properties

Property Details
identity
READ-ONLY
"identity": 19
Type: Number
This is the unique numeric identifier for the UsageBucket
ownerId
READ-ONLY
"ownerId": 4
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.
name
"name": "100 minutes"
Type: String
User defined name for this Bucket
prorate
"prorate": true
Type: Boolean
Whether or not to prorate the allocation when added to an account.
isInfiniteLastTier
"isInfiniteLastTier": true
Type: Boolean
Whether or not the last defined tier repeats forever.
isThresholdPerAccountService
"isThresholdPerAccountService": true
Type: Boolean
usageBucketRefillTypeId
"usageBucketRefillTypeId": 23
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.
refillFrequency
"refillFrequency": 6
Type: Number
Number representing how many times this Bucket refills based on its frequency type.
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.
expireAfterFrequency
"expireAfterFrequency": 22
Type: Number
How many times this refills before it expires based on Expire After frequency.
expireAfterFrequencyTypeId
"expireAfterFrequencyTypeId": 1
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.
isAssociatedWithSharePlan
"isAssociatedWithSharePlan": true
Type: Boolean
Whether or not this Bucket is included as part of a Share Plan.
expireAfterRecurrence
"expireAfterRecurrence": 16
Type: Number
How many times this refills before it expires if this is a Recurring and Recurring with Rollover Bucket.
accountPackageActivation
"accountPackageActivation": true
Type: Boolean
Whether or not this should trigger billing activation once the allowance, or time, threshold has been met.
usageBucketBaseUnitId
"usageBucketBaseUnitId": 22
Type: Number
Unique identifier for the associated UsageBucketBaseUnit object.
usageBucketBaseUnitName
"usageBucketBaseUnitName": "Sample Name"
Type: String
The name of the object associated with the usageBucketBaseUnitId property.
overageUsageRatePlanId
"overageUsageRatePlanId": 4
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.

DataFlow PATCH objects:


End Points

DELETEUsage/Bucket/{id}
Delete an instance of the UsageBucket 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 UsageBucket object.
Delete an instance of the UsageBucket object.
DELETE 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": "usageBucket"
            },
            {
                "lhsId": 2,
                "rhsId": 2,
                "action": "detached",
                "dtoTypeKey": "sampleObjectConnector"
            },
            {
                "foreignKeyIdentity": 2,
                "action": "deleted",
                "dtoTypeKey": "sampleObject"
            }
        ]
    }
}
GETUsage/Bucket/
Retrieve all of the UsageBucket objects.
Retrieve all of the UsageBucket objects.
GET Usage/Bucket/
View Sample Response
HTTP/1.1 200 OK
{
    "trackingId": "d2ae5304-2355-44eb-a328-272f02935f8b",
    "totalCount": 1,
    "items": [
        {
            "identity": 1,
            "ownerId": 14,
            "ownerName": "Sample Text Data",
            "name": "100 minutes",
            "prorate": true,
            "isInfiniteLastTier": true,
            "isThresholdPerAccountService": true,
            "usageBucketRefillTypeId": 11,
            "usageBucketRefillTypeName": "Sample Text Data",
            "refillFrequency": 15,
            "refillFrequencyTypeId": 25,
            "refillFrequencyTypeName": "Sample Text Data",
            "expireAfterFrequency": 8,
            "expireAfterFrequencyTypeId": 21,
            "expireAfterFrequencyTypeName": "Sample Text Data",
            "isAssociatedWithSharePlan": true,
            "expireAfterRecurrence": 5,
            "accountPackageActivation": true,
            "usageBucketBaseUnitId": 8,
            "usageBucketBaseUnitName": "Sample Text Data",
            "overageUsageRatePlanId": 5,
            "overageUsageRatePlanName": "Sample Text Data"
        }
    ]
}
GETUsage/Bucket/Paged
Retrieve all of the UsageBucket 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 UsageBucket objects in a paged fashion.
GET 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,
                "ownerId": 11,
                "ownerName": "Sample Text Data",
                "name": "100 minutes",
                "prorate": true,
                "isInfiniteLastTier": true,
                "isThresholdPerAccountService": true,
                "usageBucketRefillTypeId": 3,
                "usageBucketRefillTypeName": "Sample Text Data",
                "refillFrequency": 2,
                "refillFrequencyTypeId": 11,
                "refillFrequencyTypeName": "Sample Text Data",
                "expireAfterFrequency": 25,
                "expireAfterFrequencyTypeId": 15,
                "expireAfterFrequencyTypeName": "Sample Text Data",
                "isAssociatedWithSharePlan": true,
                "expireAfterRecurrence": 24,
                "accountPackageActivation": true,
                "usageBucketBaseUnitId": 3,
                "usageBucketBaseUnitName": "Sample Text Data",
                "overageUsageRatePlanId": 4,
                "overageUsageRatePlanName": "Sample Text Data"
            }
        ]
    }
}
GETUsage/Bucket/Paged/Detail
Retrieve all of the UsageBucket 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 UsageBucket objects in a paged fashion with all object details.
GET 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,
                "ownerId": 6,
                "ownerName": "Sample Text Data",
                "name": "100 minutes",
                "prorate": true,
                "isInfiniteLastTier": true,
                "isThresholdPerAccountService": true,
                "usageBucketRefillTypeId": 3,
                "usageBucketRefillTypeName": "Sample Text Data",
                "refillFrequency": 23,
                "refillFrequencyTypeId": 22,
                "refillFrequencyTypeName": "Sample Text Data",
                "expireAfterFrequency": 4,
                "expireAfterFrequencyTypeId": 4,
                "expireAfterFrequencyTypeName": "Sample Text Data",
                "isAssociatedWithSharePlan": true,
                "expireAfterRecurrence": 12,
                "accountPackageActivation": true,
                "usageBucketBaseUnitId": 16,
                "usageBucketBaseUnitName": "Sample Text Data",
                "overageUsageRatePlanId": 16,
                "overageUsageRatePlanName": "Sample Text Data",
                "details": {
                    "tiers": [
                        {
                            "identity": 93,
                            "usageBucketId": 10,
                            "usageBucketName": "Sample Text Data",
                            "threshold": 23.93,
                            "flatCharge": 98.78,
                            "usageUnitId": 66,
                            "usageUnitName": "Sample Text Data",
                            "packageFrequencyId": 91,
                            "packageFrequencyName": "Sample Text Data",
                            "packageServiceId": 94,
                            "currencyId": 94,
                            "currencyName": "Sample Text Data",
                            "money": 85.18
                        }
                    ],
                    "contributions": [
                        {
                            "identity": 45,
                            "usageBucketSharePlanParticipationId": 68,
                            "usageBucketId": 72,
                            "usageBucketName": "Sample Text Data",
                            "isContributing": true,
                            "contributingAmount": 7.5,
                            "contributingUsageUnitId": 4,
                            "contributingUsageUnitName": "Sample Text Data",
                            "moneyCurrencyId": 84,
                            "serviceId": 76,
                            "serviceName": "Sample Text Data",
                            "packageId": 73,
                            "packageName": "Sample Text Data"
                        }
                    ],
                    "usageBucketNotifications": [
                        {
                            "identity": 80,
                            "usageBucketServiceId": 36,
                            "emailConfigurationId": 83,
                            "emailConfigurationName": "Sample Text Data",
                            "webhookConfigurationId": 74,
                            "webhookConfigurationName": "Sample Text Data",
                            "thresholdPercent": 71,
                            "details": {
                                "emailConfiguration": {
                                    "identity": 47,
                                    "name": "Sample Text Data",
                                    "eventSubscriptionId": 27,
                                    "eventSubscriptionName": "Sample Text Data",
                                    "emailTemplateId": 88,
                                    "emailTemplateName": "Sample Text Data",
                                    "details": {
                                        "emailToAddresses": [
                                            {
                                                "identity": 20,
                                                "emailConfigurationId": 89,
                                                "emailConfigurationName": "Sample Text Data",
                                                "userId": 24,
                                                "userName": "Sample Text Data",
                                                "contactTypeTypeId": 93,
                                                "contactTypeTypeName": "Sample Text Data",
                                                "email": "Sample Text Data"
                                            }
                                        ]
                                    }
                                },
                                "webhookConfiguration": {
                                    "identity": 18,
                                    "name": "Sample Text Data",
                                    "url": "Sample Text Data",
                                    "requestVerb": "Sample Text Data",
                                    "webhookTemplateId": 30,
                                    "webhookTemplateName": "Sample Text Data",
                                    "keyValuePairAuthorizationTokenKey": "Sample Text Data",
                                    "keyValuePairAuthorizationTokenValue": "Sample Text Data",
                                    "eventSubscriptionId": 89,
                                    "eventSubscriptionName": "Sample Text Data",
                                    "webhookAuthorizationTypeId": 59,
                                    "webhookAuthorizationTypeName": "Sample Text Data",
                                    "oAuthUsername": "Sample Text Data",
                                    "oAuthPassword": "Sample Text Data",
                                    "oAuthClientId": "Sample Text Data",
                                    "oAuthAuthorizationURL": "Sample Text Data",
                                    "hasCredentialsSet": true
                                }
                            }
                        }
                    ],
                    "usageBucketBase": [
                        {
                            "identity": 15,
                            "name": "Sample Text Data",
                            "start": "2021-04-26T15:25:27.587Z",
                            "end": "2021-04-26T15:25:27.587Z",
                            "retired": true,
                            "usageBucketBaseUnitId": 37,
                            "usageBucketBaseUnitName": "Sample Text Data"
                        }
                    ]
                }
            }
        ]
    }
}
GETUsage/Bucket/{id}
Retrieve an instance of the UsageBucket object by its ID.
{id}Unique identifier for the UsageBucket object.
Retrieve an instance of the UsageBucket object by its ID.
GET Usage/Bucket/{id}
View Sample Response
HTTP/1.1 200 OK
{
    "trackingId": "d2ae5304-2355-44eb-a328-272f02935f8b",
    "instance": {
        "identity": 1,
        "ownerId": 25,
        "ownerName": "Sample Text Data",
        "name": "100 minutes",
        "prorate": true,
        "isInfiniteLastTier": true,
        "isThresholdPerAccountService": true,
        "usageBucketRefillTypeId": 7,
        "usageBucketRefillTypeName": "Sample Text Data",
        "refillFrequency": 15,
        "refillFrequencyTypeId": 17,
        "refillFrequencyTypeName": "Sample Text Data",
        "expireAfterFrequency": 1,
        "expireAfterFrequencyTypeId": 11,
        "expireAfterFrequencyTypeName": "Sample Text Data",
        "isAssociatedWithSharePlan": true,
        "expireAfterRecurrence": 11,
        "accountPackageActivation": true,
        "usageBucketBaseUnitId": 9,
        "usageBucketBaseUnitName": "Sample Text Data",
        "overageUsageRatePlanId": 11,
        "overageUsageRatePlanName": "Sample Text Data"
    }
}
GETUsage/Bucket/{id}/Detail
Retrieve deep detail of the UsageBucket 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 UsageBucket object.
Retrieve deep detail of the UsageBucket object by its ID.
GET Usage/Bucket/{id}/Detail
View Sample Response
HTTP/1.1 200 OK
{
    "trackingId": "d2ae5304-2355-44eb-a328-272f02935f8b",
    "instance": {
        "identity": 1,
        "ownerId": 7,
        "ownerName": "Sample Text Data",
        "name": "100 minutes",
        "prorate": true,
        "isInfiniteLastTier": true,
        "isThresholdPerAccountService": true,
        "usageBucketRefillTypeId": 18,
        "usageBucketRefillTypeName": "Sample Text Data",
        "refillFrequency": 15,
        "refillFrequencyTypeId": 21,
        "refillFrequencyTypeName": "Sample Text Data",
        "expireAfterFrequency": 0,
        "expireAfterFrequencyTypeId": 4,
        "expireAfterFrequencyTypeName": "Sample Text Data",
        "isAssociatedWithSharePlan": true,
        "expireAfterRecurrence": 19,
        "accountPackageActivation": true,
        "usageBucketBaseUnitId": 22,
        "usageBucketBaseUnitName": "Sample Text Data",
        "overageUsageRatePlanId": 26,
        "overageUsageRatePlanName": "Sample Text Data",
        "details": {
            "tiers": [
                {
                    "identity": 93,
                    "usageBucketId": 10,
                    "usageBucketName": "Sample Text Data",
                    "threshold": 23.93,
                    "flatCharge": 98.78,
                    "usageUnitId": 66,
                    "usageUnitName": "Sample Text Data",
                    "packageFrequencyId": 91,
                    "packageFrequencyName": "Sample Text Data",
                    "packageServiceId": 94,
                    "currencyId": 94,
                    "currencyName": "Sample Text Data",
                    "money": 85.18
                }
            ],
            "contributions": [
                {
                    "identity": 45,
                    "usageBucketSharePlanParticipationId": 68,
                    "usageBucketId": 72,
                    "usageBucketName": "Sample Text Data",
                    "isContributing": true,
                    "contributingAmount": 7.5,
                    "contributingUsageUnitId": 4,
                    "contributingUsageUnitName": "Sample Text Data",
                    "moneyCurrencyId": 84,
                    "serviceId": 76,
                    "serviceName": "Sample Text Data",
                    "packageId": 73,
                    "packageName": "Sample Text Data"
                }
            ],
            "usageBucketNotifications": [
                {
                    "identity": 80,
                    "usageBucketServiceId": 36,
                    "emailConfigurationId": 83,
                    "emailConfigurationName": "Sample Text Data",
                    "webhookConfigurationId": 74,
                    "webhookConfigurationName": "Sample Text Data",
                    "thresholdPercent": 71,
                    "details": {
                        "emailConfiguration": {
                            "identity": 47,
                            "name": "Sample Text Data",
                            "eventSubscriptionId": 27,
                            "eventSubscriptionName": "Sample Text Data",
                            "emailTemplateId": 88,
                            "emailTemplateName": "Sample Text Data",
                            "details": {
                                "emailToAddresses": [
                                    {
                                        "identity": 20,
                                        "emailConfigurationId": 89,
                                        "emailConfigurationName": "Sample Text Data",
                                        "userId": 24,
                                        "userName": "Sample Text Data",
                                        "contactTypeTypeId": 93,
                                        "contactTypeTypeName": "Sample Text Data",
                                        "email": "Sample Text Data"
                                    }
                                ]
                            }
                        },
                        "webhookConfiguration": {
                            "identity": 18,
                            "name": "Sample Text Data",
                            "url": "Sample Text Data",
                            "requestVerb": "Sample Text Data",
                            "webhookTemplateId": 30,
                            "webhookTemplateName": "Sample Text Data",
                            "keyValuePairAuthorizationTokenKey": "Sample Text Data",
                            "keyValuePairAuthorizationTokenValue": "Sample Text Data",
                            "eventSubscriptionId": 89,
                            "eventSubscriptionName": "Sample Text Data",
                            "webhookAuthorizationTypeId": 59,
                            "webhookAuthorizationTypeName": "Sample Text Data",
                            "oAuthUsername": "Sample Text Data",
                            "oAuthPassword": "Sample Text Data",
                            "oAuthClientId": "Sample Text Data",
                            "oAuthAuthorizationURL": "Sample Text Data",
                            "hasCredentialsSet": true
                        }
                    }
                }
            ],
            "usageBucketBase": [
                {
                    "identity": 15,
                    "name": "Sample Text Data",
                    "start": "2021-04-26T15:25:27.587Z",
                    "end": "2021-04-26T15:25:27.587Z",
                    "retired": true,
                    "usageBucketBaseUnitId": 37,
                    "usageBucketBaseUnitName": "Sample Text Data"
                }
            ]
        }
    }
}
PATCHUsage/Bucket/{id}
Update or Add the UsageBucket 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 UsageBucket object.
Update or Add the UsageBucket object and optionally make changes to any child objects.
PATCH Usage/Bucket/{id}

{
    "details": {},
    "usageBuckets": {
        "items": [
            {
                "patchType": "create",
                "patchClientId": 1,
                "name": "100 minutes",
                "prorate": true,
                "isInfiniteLastTier": true,
                "isThresholdPerAccountService": true,
                "usageBucketRefillTypeId": 3,
                "refillFrequency": 12,
                "refillFrequencyTypeId": 9,
                "expireAfterFrequency": 10,
                "expireAfterFrequencyTypeId": 3,
                "isAssociatedWithSharePlan": true,
                "expireAfterRecurrence": 19,
                "accountPackageActivation": true,
                "usageBucketBaseUnitId": 17,
                "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": "usageBucket",
                "instance": {
                    "identity": 1,
                    "ownerId": 8,
                    "ownerName": "Sample Text Data",
                    "name": "100 minutes",
                    "prorate": true,
                    "isInfiniteLastTier": true,
                    "isThresholdPerAccountService": true,
                    "usageBucketRefillTypeId": 11,
                    "usageBucketRefillTypeName": "Sample Text Data",
                    "refillFrequency": 7,
                    "refillFrequencyTypeId": 23,
                    "refillFrequencyTypeName": "Sample Text Data",
                    "expireAfterFrequency": 26,
                    "expireAfterFrequencyTypeId": 22,
                    "expireAfterFrequencyTypeName": "Sample Text Data",
                    "isAssociatedWithSharePlan": true,
                    "expireAfterRecurrence": 15,
                    "accountPackageActivation": true,
                    "usageBucketBaseUnitId": 26,
                    "usageBucketBaseUnitName": "Sample Text Data",
                    "overageUsageRatePlanId": 15,
                    "overageUsageRatePlanName": "Sample Text Data"
                }
            }
        ]
    }
}
POSTUsage/Bucket/
Create a new instance of the UsageBucket object.
Create a new instance of the UsageBucket object.
POST Usage/Bucket/

{
    "name": "100 minutes",
    "prorate": true,
    "isInfiniteLastTier": true,
    "isThresholdPerAccountService": true,
    "usageBucketRefillTypeId": 22,
    "refillFrequency": 14,
    "refillFrequencyTypeId": 26,
    "expireAfterFrequency": 13,
    "expireAfterFrequencyTypeId": 10,
    "isAssociatedWithSharePlan": true,
    "expireAfterRecurrence": 18,
    "accountPackageActivation": true,
    "usageBucketBaseUnitId": 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,
                "ownerId": 27,
                "ownerName": "Sample Text Data",
                "name": "100 minutes",
                "prorate": true,
                "isInfiniteLastTier": true,
                "isThresholdPerAccountService": true,
                "usageBucketRefillTypeId": 15,
                "usageBucketRefillTypeName": "Sample Text Data",
                "refillFrequency": 20,
                "refillFrequencyTypeId": 5,
                "refillFrequencyTypeName": "Sample Text Data",
                "expireAfterFrequency": 5,
                "expireAfterFrequencyTypeId": 12,
                "expireAfterFrequencyTypeName": "Sample Text Data",
                "isAssociatedWithSharePlan": true,
                "expireAfterRecurrence": 5,
                "accountPackageActivation": true,
                "usageBucketBaseUnitId": 18,
                "usageBucketBaseUnitName": "Sample Text Data",
                "overageUsageRatePlanId": 25,
                "overageUsageRatePlanName": "Sample Text Data"
            }
        ]
    }
}
PUTUsage/Bucket/{id}
Update an existing instance of the UsageBucket object.
Update an existing instance of the UsageBucket object.
PUT Usage/Bucket/{id}

{
    "identity": 1,
    "name": "100 minutes",
    "prorate": true,
    "isInfiniteLastTier": true,
    "isThresholdPerAccountService": true,
    "usageBucketRefillTypeId": 2,
    "refillFrequency": 18,
    "refillFrequencyTypeId": 4,
    "expireAfterFrequency": 15,
    "expireAfterFrequencyTypeId": 7,
    "isAssociatedWithSharePlan": true,
    "expireAfterRecurrence": 4,
    "accountPackageActivation": true,
    "usageBucketBaseUnitId": 26,
    "overageUsageRatePlanId": 6
}
View Sample Response
HTTP/1.1 200 OK
{
    "trackingId": "d2ae5304-2355-44eb-a328-272f02935f8b",
    "type": "update",
    "results": {
        "totalCount": 1,
        "items": [
            {
                "identity": 1,
                "ownerId": 21,
                "ownerName": "Sample Text Data",
                "name": "100 minutes",
                "prorate": true,
                "isInfiniteLastTier": true,
                "isThresholdPerAccountService": true,
                "usageBucketRefillTypeId": 2,
                "usageBucketRefillTypeName": "Sample Text Data",
                "refillFrequency": 27,
                "refillFrequencyTypeId": 8,
                "refillFrequencyTypeName": "Sample Text Data",
                "expireAfterFrequency": 7,
                "expireAfterFrequencyTypeId": 7,
                "expireAfterFrequencyTypeName": "Sample Text Data",
                "isAssociatedWithSharePlan": true,
                "expireAfterRecurrence": 18,
                "accountPackageActivation": true,
                "usageBucketBaseUnitId": 27,
                "usageBucketBaseUnitName": "Sample Text Data",
                "overageUsageRatePlanId": 18,
                "overageUsageRatePlanName": "Sample Text Data"
            }
        ]
    }
}