TAG LINE
TAG LINE
SMALL TITLE

Counting Rule

(API Version v9)


What can you do with CountingRule?


Properties

Property Details
identity
READ-ONLY
"identity": 25
Type: Number
This is the unique numeric identifier for the CountingRule
ownerId
READ-ONLY
"ownerId": 1
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": "Hello World"
Type: String
statusTierTypeId
"statusTierTypeId": 13
Type: Number
Unique identifier for the associated StatusTierType object.
statusTierTypeName
"statusTierTypeName": "Sample Name"
Type: String
The name of the object associated with the statusTierTypeId property.
countingRuleTypeId
"countingRuleTypeId": 3
Type: Number
Unique identifier for the associated CountingRuleType object.
countingRuleTypeName
"countingRuleTypeName": "Sample Name"
Type: String
The name of the object associated with the countingRuleTypeId property.
isActive
"isActive": true
Type: Boolean
countIfUsage
"countIfUsage": true
Type: Boolean


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 CountingRule object.

Standard PATCH objects:

  • countingRulePackage - create, update, delete
  • countingRuleService - create, update, delete

DataFlow PATCH objects:

  • countingRule - create, update, delete
  • countingRulePackage - create, update, delete
  • countingRuleService - create, update, delete

End Points

DELETECountingRule/{id}
Delete an instance of the CountingRule 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 CountingRule object.
Delete an instance of the CountingRule object.
DELETE CountingRule/{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": "countingRule"
            },
            {
                "lhsId": 2,
                "rhsId": 2,
                "action": "detached",
                "dtoTypeKey": "sampleObjectConnector"
            },
            {
                "foreignKeyIdentity": 2,
                "action": "deleted",
                "dtoTypeKey": "sampleObject"
            }
        ]
    }
}
GETCountingRule/
Retrieve all of the CountingRule objects.
Retrieve all of the CountingRule objects.
GET CountingRule/
View Sample Response
HTTP/1.1 200 OK
{
    "trackingId": "d2ae5304-2355-44eb-a328-272f02935f8b",
    "totalCount": 1,
    "items": [
        {
            "identity": 1,
            "ownerId": 3,
            "ownerName": "Sample Text Data",
            "name": "Sample Text Data",
            "statusTierTypeId": 25,
            "statusTierTypeName": "Sample Text Data",
            "countingRuleTypeId": 25,
            "countingRuleTypeName": "Sample Text Data",
            "isActive": true,
            "countIfUsage": true
        }
    ]
}
GETCountingRule/Paged
Retrieve all of the CountingRule 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 CountingRule objects in a paged fashion.
GET CountingRule/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": 20,
                "ownerName": "Sample Text Data",
                "name": "Sample Text Data",
                "statusTierTypeId": 25,
                "statusTierTypeName": "Sample Text Data",
                "countingRuleTypeId": 15,
                "countingRuleTypeName": "Sample Text Data",
                "isActive": true,
                "countIfUsage": true
            }
        ]
    }
}
GETCountingRule/{id}
Retrieve an instance of the CountingRule object by its ID.
{id}Unique identifier for the CountingRule object.
Retrieve an instance of the CountingRule object by its ID.
GET CountingRule/{id}
View Sample Response
HTTP/1.1 200 OK
{
    "trackingId": "d2ae5304-2355-44eb-a328-272f02935f8b",
    "instance": {
        "identity": 1,
        "ownerId": 26,
        "ownerName": "Sample Text Data",
        "name": "Sample Text Data",
        "statusTierTypeId": 6,
        "statusTierTypeName": "Sample Text Data",
        "countingRuleTypeId": 6,
        "countingRuleTypeName": "Sample Text Data",
        "isActive": true,
        "countIfUsage": true
    }
}
GETCountingRule/{id}/Detail
Retrieve deep detail of the CountingRule 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 CountingRule object.
Retrieve deep detail of the CountingRule object by its ID.
GET CountingRule/{id}/Detail
View Sample Response
HTTP/1.1 200 OK
{
    "trackingId": "d2ae5304-2355-44eb-a328-272f02935f8b",
    "instance": {
        "identity": 1,
        "ownerId": 0,
        "ownerName": "Sample Text Data",
        "name": "Sample Text Data",
        "statusTierTypeId": 13,
        "statusTierTypeName": "Sample Text Data",
        "countingRuleTypeId": 11,
        "countingRuleTypeName": "Sample Text Data",
        "isActive": true,
        "countIfUsage": true,
        "details": {
            "countingRulePackages": [
                {
                    "identity": 15,
                    "countingRuleId": 32,
                    "countingRuleName": "Sample Text Data",
                    "packageFrequencyId": 67,
                    "packageFrequencyName": "Sample Text Data",
                    "accountPackageStatusTypeId": 7,
                    "accountPackageStatusTypeName": "Sample Text Data",
                    "packageId": 63,
                    "packageName": "Sample Text Data"
                }
            ],
            "countingRuleServices": [
                {
                    "identity": 96,
                    "countingRuleId": 33,
                    "countingRuleName": "Sample Text Data",
                    "serviceId": 17,
                    "serviceName": "Sample Text Data",
                    "serviceStatusTypeId": 7,
                    "serviceStatusTypeName": "Sample Text Data"
                }
            ]
        }
    }
}
PATCHCountingRule/{id}
Update or Add the CountingRule 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 CountingRule object.
Update or Add the CountingRule object and optionally make changes to any child objects.
PATCH CountingRule/{id}

{
    "details": {},
    "countingRules": {
        "items": [
            {
                "patchType": "create",
                "patchClientId": 1,
                "name": "Sample Text Data",
                "statusTierTypeId": 4,
                "countingRuleTypeId": 17,
                "isActive": true,
                "countIfUsage": 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": "countingRule",
                "instance": {
                    "identity": 1,
                    "ownerId": 15,
                    "ownerName": "Sample Text Data",
                    "name": "Sample Text Data",
                    "statusTierTypeId": 5,
                    "statusTierTypeName": "Sample Text Data",
                    "countingRuleTypeId": 7,
                    "countingRuleTypeName": "Sample Text Data",
                    "isActive": true,
                    "countIfUsage": true
                }
            }
        ]
    }
}
POSTCountingRule/
Create a new instance of the CountingRule object.
Create a new instance of the CountingRule object.
POST CountingRule/

{
    "name": "Sample Text Data",
    "statusTierTypeId": 2,
    "countingRuleTypeId": 8,
    "isActive": true,
    "countIfUsage": true
}
View Sample Response
HTTP/1.1 200 OK
{
    "trackingId": "d2ae5304-2355-44eb-a328-272f02935f8b",
    "type": "create",
    "results": {
        "totalCount": 1,
        "items": [
            {
                "identity": 1,
                "ownerId": 22,
                "ownerName": "Sample Text Data",
                "name": "Sample Text Data",
                "statusTierTypeId": 22,
                "statusTierTypeName": "Sample Text Data",
                "countingRuleTypeId": 6,
                "countingRuleTypeName": "Sample Text Data",
                "isActive": true,
                "countIfUsage": true
            }
        ]
    }
}
PUTCountingRule/{id}
Update an existing instance of the CountingRule object.
Update an existing instance of the CountingRule object.
PUT CountingRule/{id}

{
    "identity": 1,
    "name": "Sample Text Data",
    "statusTierTypeId": 25,
    "countingRuleTypeId": 17,
    "isActive": true,
    "countIfUsage": true
}
View Sample Response
HTTP/1.1 200 OK
{
    "trackingId": "d2ae5304-2355-44eb-a328-272f02935f8b",
    "type": "update",
    "results": {
        "totalCount": 1,
        "items": [
            {
                "identity": 1,
                "ownerId": 24,
                "ownerName": "Sample Text Data",
                "name": "Sample Text Data",
                "statusTierTypeId": 9,
                "statusTierTypeName": "Sample Text Data",
                "countingRuleTypeId": 6,
                "countingRuleTypeName": "Sample Text Data",
                "isActive": true,
                "countIfUsage": true
            }
        ]
    }
}