---
title: "POST /V1.0/ContractBillingRules/query/count"
method: POST
path: "/V1.0/ContractBillingRules/query/count"
tags: ["ContractBillingRules"]
---

# POST /V1.0/ContractBillingRules/query/count

`POST /V1.0/ContractBillingRules/query/count`

## Headers

- `ApiIntegrationCode` string, required
- `UserName` string, required
- `Secret` string, required
- `ImpersonationResourceId` string

## Request body

- QueryModel
  - `maxRecords` integer
  - `includeFields` string[]
  - `filter` Filter[]
    - `op` string
    - `field` string
    - `udf` boolean
    - `value` object — Can be either an Integer, String, Boolean, an Array of Integers, or an Array of Strings.
    - `items` Filter[] — An Array of Filter objects

## Response `200`

OK

- QueryCountResultModel
  - `queryCount` integer

## Other responses

- `401` — Unauthorized
- `403` — Forbidden

---

[API](https://skmtc.net/autotask/apis/datto-autotask-psa-rest-api.md) · [All operations](https://skmtc.net/autotask/apis/datto-autotask-psa-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/autotask/datto-autotask-psa-rest-api/versions/b5e89df4589e/schema)
