TAG LINE
SMALL TITLE

Usage / Bucket

(API Version v4)


What can you do with UsageBucket?


Properties

Property Details
identity
READ-ONLY
"identity": 1
Type: Number
This is the unique numeric identifier for the UsageBucket
ownerId
READ-ONLY
"ownerId": 0
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.
usageBucketBaseId
"usageBucketBaseId": 8
Type: Number
Unique identifier for the associated UsageBucketBase object.
usageBucketBaseName
"usageBucketBaseName": "Sample Name"
Type: String
The name of the object associated with the usageBucketBaseId property.
name
"name": "Hello World"
Type: String
prorate
"prorate": true
Type: Boolean
isInfiniteLastTier
"isInfiniteLastTier": true
Type: Boolean
isThresholdPerAccountService
"isThresholdPerAccountService": true
Type: Boolean
usageBucketRefillTypeId
"usageBucketRefillTypeId": 6
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": 19
Type: Number
refillFrequencyTypeId
"refillFrequencyTypeId": 15
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": 10
Type: Number
expireAfterFrequencyTypeId
"expireAfterFrequencyTypeId": 0
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
expireAfterRecurrence
"expireAfterRecurrence": 3
Type: Number
accountPackageActivation
"accountPackageActivation": true
Type: Boolean

DataFlow PATCH objects:


End Points

DELETEapi/v4/Usage/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 api/v4/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"
            }
        ]
    }
}
GETapi/v4/Usage/Bucket/
Retrieve all of the UsageBucket objects.
Retrieve all of the UsageBucket objects.
GET api/v4/Usage/Bucket/
View Sample Response
HTTP/1.1 200 OK
{
    "trackingId": "d2ae5304-2355-44eb-a328-272f02935f8b",
    "totalCount": 1,
    "items": [
        {
            "identity": 1,
            "ownerId": 1,
            "ownerName": "Sample Text Data",
            "usageBucketBaseId": 17,
            "usageBucketBaseName": "Sample Text Data",
            "name": "Sample Text Data",
            "prorate": true,
            "isInfiniteLastTier": true,
            "isThresholdPerAccountService": true,
            "usageBucketRefillTypeId": 24,
            "usageBucketRefillTypeName": "Sample Text Data",
            "refillFrequency": 22,
            "refillFrequencyTypeId": 24,
            "refillFrequencyTypeName": "Sample Text Data",
            "expireAfterFrequency": 16,
            "expireAfterFrequencyTypeId": 4,
            "expireAfterFrequencyTypeName": "Sample Text Data",
            "isAssociatedWithSharePlan": true,
            "expireAfterRecurrence": 21,
            "accountPackageActivation": true
        }
    ]
}
GETapi/v4/Usage/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 api/v4/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",
                "usageBucketBaseId": 0,
                "usageBucketBaseName": "Sample Text Data",
                "name": "Sample Text Data",
                "prorate": true,
                "isInfiniteLastTier": true,
                "isThresholdPerAccountService": true,
                "usageBucketRefillTypeId": 20,
                "usageBucketRefillTypeName": "Sample Text Data",
                "refillFrequency": 23,
                "refillFrequencyTypeId": 1,
                "refillFrequencyTypeName": "Sample Text Data",
                "expireAfterFrequency": 13,
                "expireAfterFrequencyTypeId": 14,
                "expireAfterFrequencyTypeName": "Sample Text Data",
                "isAssociatedWithSharePlan": true,
                "expireAfterRecurrence": 8,
                "accountPackageActivation": true
            }
        ]
    }
}
GETapi/v4/Usage/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 api/v4/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": 19,
                "ownerName": "Sample Text Data",
                "usageBucketBaseId": 16,
                "usageBucketBaseName": "Sample Text Data",
                "name": "Sample Text Data",
                "prorate": true,
                "isInfiniteLastTier": true,
                "isThresholdPerAccountService": true,
                "usageBucketRefillTypeId": 23,
                "usageBucketRefillTypeName": "Sample Text Data",
                "refillFrequency": 14,
                "refillFrequencyTypeId": 22,
                "refillFrequencyTypeName": "Sample Text Data",
                "expireAfterFrequency": 7,
                "expireAfterFrequencyTypeId": 17,
                "expireAfterFrequencyTypeName": "Sample Text Data",
                "isAssociatedWithSharePlan": true,
                "expireAfterRecurrence": 16,
                "accountPackageActivation": true,
                "details": {
                    "sampleSingleObject": {
                        "identity": 2,
                        "property1": "Sample Text",
                        "property2": "2021-04-26T15:25:29.117Z",
                        "property3": 2
                    },
                    "sampleMultipleObjects": {
                        "totalCount": 1,
                        "items": [
                            {
                                "identity": 2,
                                "property1": "Sample Text",
                                "property2": "2021-04-26T15:25:29.117Z",
                                "property3": 2
                            }
                        ]
                    }
                }
            }
        ]
    }
}
GETapi/v4/Usage/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 api/v4/Usage/Bucket/{id}
View Sample Response
HTTP/1.1 200 OK
{
    "trackingId": "d2ae5304-2355-44eb-a328-272f02935f8b",
    "instance": {
        "identity": 1,
        "ownerId": 7,
        "ownerName": "Sample Text Data",
        "usageBucketBaseId": 23,
        "usageBucketBaseName": "Sample Text Data",
        "name": "Sample Text Data",
        "prorate": true,
        "isInfiniteLastTier": true,
        "isThresholdPerAccountService": true,
        "usageBucketRefillTypeId": 5,
        "usageBucketRefillTypeName": "Sample Text Data",
        "refillFrequency": 10,
        "refillFrequencyTypeId": 11,
        "refillFrequencyTypeName": "Sample Text Data",
        "expireAfterFrequency": 27,
        "expireAfterFrequencyTypeId": 23,
        "expireAfterFrequencyTypeName": "Sample Text Data",
        "isAssociatedWithSharePlan": true,
        "expireAfterRecurrence": 26,
        "accountPackageActivation": true
    }
}
GETapi/v4/Usage/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 api/v4/Usage/Bucket/{id}/Detail
View Sample Response
HTTP/1.1 200 OK
{
    "trackingId": "d2ae5304-2355-44eb-a328-272f02935f8b",
    "instance": {
        "identity": 1,
        "ownerId": 6,
        "ownerName": "Sample Text Data",
        "usageBucketBaseId": 12,
        "usageBucketBaseName": "Sample Text Data",
        "name": "Sample Text Data",
        "prorate": true,
        "isInfiniteLastTier": true,
        "isThresholdPerAccountService": true,
        "usageBucketRefillTypeId": 11,
        "usageBucketRefillTypeName": "Sample Text Data",
        "refillFrequency": 13,
        "refillFrequencyTypeId": 26,
        "refillFrequencyTypeName": "Sample Text Data",
        "expireAfterFrequency": 9,
        "expireAfterFrequencyTypeId": 10,
        "expireAfterFrequencyTypeName": "Sample Text Data",
        "isAssociatedWithSharePlan": true,
        "expireAfterRecurrence": 25,
        "accountPackageActivation": true,
        "details": {
            "sampleSingleObject": {
                "identity": 2,
                "property1": "Sample Text",
                "property2": "2021-04-26T15:25:29.117Z",
                "property3": 2
            },
            "sampleMultipleObjects": {
                "totalCount": 1,
                "items": [
                    {
                        "identity": 2,
                        "property1": "Sample Text",
                        "property2": "2021-04-26T15:25:29.117Z",
                        "property3": 2
                    }
                ]
            }
        }
    }
}
PATCHapi/v4/Usage/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 api/v4/Usage/Bucket/{id}

{
    "details": {},
    "usageBuckets": {
        "items": [
            {
                "patchType": "create",
                "patchClientId": 1,
                "usageBucketBaseId": 5,
                "name": "Sample Text Data",
                "prorate": true,
                "isInfiniteLastTier": true,
                "isThresholdPerAccountService": true,
                "usageBucketRefillTypeId": 25,
                "refillFrequency": 8,
                "refillFrequencyTypeId": 9,
                "expireAfterFrequency": 25,
                "expireAfterFrequencyTypeId": 18,
                "isAssociatedWithSharePlan": true,
                "expireAfterRecurrence": 22,
                "accountPackageActivation": true
            }
        ]
    }
}
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": 22,
                    "ownerName": "Sample Text Data",
                    "usageBucketBaseId": 27,
                    "usageBucketBaseName": "Sample Text Data",
                    "name": "Sample Text Data",
                    "prorate": true,
                    "isInfiniteLastTier": true,
                    "isThresholdPerAccountService": true,
                    "usageBucketRefillTypeId": 15,
                    "usageBucketRefillTypeName": "Sample Text Data",
                    "refillFrequency": 8,
                    "refillFrequencyTypeId": 8,
                    "refillFrequencyTypeName": "Sample Text Data",
                    "expireAfterFrequency": 15,
                    "expireAfterFrequencyTypeId": 25,
                    "expireAfterFrequencyTypeName": "Sample Text Data",
                    "isAssociatedWithSharePlan": true,
                    "expireAfterRecurrence": 8,
                    "accountPackageActivation": true
                }
            }
        ]
    }
}
POSTapi/v4/Usage/Bucket/
Create a new instance of the UsageBucket object.
Create a new instance of the UsageBucket object.
POST api/v4/Usage/Bucket/

{
    "usageBucketBaseId": 1,
    "name": "Sample Text Data",
    "prorate": true,
    "isInfiniteLastTier": true,
    "isThresholdPerAccountService": true,
    "usageBucketRefillTypeId": 1,
    "refillFrequency": 5,
    "refillFrequencyTypeId": 3,
    "expireAfterFrequency": 19,
    "expireAfterFrequencyTypeId": 16,
    "isAssociatedWithSharePlan": true,
    "expireAfterRecurrence": 4,
    "accountPackageActivation": true
}
View Sample Response
HTTP/1.1 200 OK
{
    "trackingId": "d2ae5304-2355-44eb-a328-272f02935f8b",
    "type": "create",
    "results": {
        "totalCount": 1,
        "items": [
            {
                "identity": 1,
                "ownerId": 19,
                "ownerName": "Sample Text Data",
                "usageBucketBaseId": 5,
                "usageBucketBaseName": "Sample Text Data",
                "name": "Sample Text Data",
                "prorate": true,
                "isInfiniteLastTier": true,
                "isThresholdPerAccountService": true,
                "usageBucketRefillTypeId": 0,
                "usageBucketRefillTypeName": "Sample Text Data",
                "refillFrequency": 4,
                "refillFrequencyTypeId": 5,
                "refillFrequencyTypeName": "Sample Text Data",
                "expireAfterFrequency": 3,
                "expireAfterFrequencyTypeId": 17,
                "expireAfterFrequencyTypeName": "Sample Text Data",
                "isAssociatedWithSharePlan": true,
                "expireAfterRecurrence": 16,
                "accountPackageActivation": true
            }
        ]
    }
}
POSTapi/v4/Usage/Bucket/Search
Retreive a list of UsageBucket objects based on search criteria. Search end points allow for retrieving results based on search criteria. Search criteria is sent as the payload of the POST.
Retreive a list of UsageBucket objects based on search criteria.
POST api/v4/Usage/Bucket/Search

{
    "query": {
        "top": 20,
        "search": [
            {
                "name": "MyFieldName",
                "operator": "startsWith",
                "value": "a"
            }
        ]
    }
}
View Sample Response
HTTP/1.1 200 OK
{
    "trackingId": "d2ae5304-2355-44eb-a328-272f02935f8b",
    "itemCount": 1,
    "items": [
        {
            "identity": 1,
            "ownerId": 12,
            "ownerName": "Sample Text Data",
            "usageBucketBaseId": 13,
            "usageBucketBaseName": "Sample Text Data",
            "name": "Sample Text Data",
            "prorate": true,
            "isInfiniteLastTier": true,
            "isThresholdPerAccountService": true,
            "usageBucketRefillTypeId": 18,
            "usageBucketRefillTypeName": "Sample Text Data",
            "refillFrequency": 25,
            "refillFrequencyTypeId": 20,
            "refillFrequencyTypeName": "Sample Text Data",
            "expireAfterFrequency": 0,
            "expireAfterFrequencyTypeId": 20,
            "expireAfterFrequencyTypeName": "Sample Text Data",
            "isAssociatedWithSharePlan": true,
            "expireAfterRecurrence": 21,
            "accountPackageActivation": true
        }
    ]
}
PUTapi/v4/Usage/Bucket/{id}
Update an existing instance of the UsageBucket object.
Update an existing instance of the UsageBucket object.
PUT api/v4/Usage/Bucket/{id}

{
    "identity": 1,
    "usageBucketBaseId": 6,
    "name": "Sample Text Data",
    "prorate": true,
    "isInfiniteLastTier": true,
    "isThresholdPerAccountService": true,
    "usageBucketRefillTypeId": 16,
    "refillFrequency": 10,
    "refillFrequencyTypeId": 5,
    "expireAfterFrequency": 21,
    "expireAfterFrequencyTypeId": 13,
    "isAssociatedWithSharePlan": true,
    "expireAfterRecurrence": 7,
    "accountPackageActivation": true
}
View Sample Response
HTTP/1.1 200 OK
{
    "trackingId": "d2ae5304-2355-44eb-a328-272f02935f8b",
    "type": "update",
    "results": {
        "totalCount": 1,
        "items": [
            {
                "identity": 1,
                "ownerId": 16,
                "ownerName": "Sample Text Data",
                "usageBucketBaseId": 12,
                "usageBucketBaseName": "Sample Text Data",
                "name": "Sample Text Data",
                "prorate": true,
                "isInfiniteLastTier": true,
                "isThresholdPerAccountService": true,
                "usageBucketRefillTypeId": 21,
                "usageBucketRefillTypeName": "Sample Text Data",
                "refillFrequency": 17,
                "refillFrequencyTypeId": 16,
                "refillFrequencyTypeName": "Sample Text Data",
                "expireAfterFrequency": 26,
                "expireAfterFrequencyTypeId": 2,
                "expireAfterFrequencyTypeName": "Sample Text Data",
                "isAssociatedWithSharePlan": true,
                "expireAfterRecurrence": 1,
                "accountPackageActivation": true
            }
        ]
    }
}