commissionsCount
Requires permission commissions:commission:read.
Returns how many commission entries match the same filters and scope as commissions, ignoring paging, for a pager. Requires permission to read commissions.
Errors: a failed call returns a GraphQL errors entry, not a field on the result, and data may be null or partial. Read the entry's extensions.code and message; every shape and code is in the Error reference.
Example:
- GraphQL
- cURL
query CommissionsCount {
commissionsCount
}
curl -X POST "https://<api-host>/graphql" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
--data @- <<'EOF'
{
"query": "query CommissionsCount {\n commissionsCount\n}"
}
EOF
Response:
{
"data": {
"commissionsCount": 0
}
}
commissionsCount(
filters: CommissionFiltersInput
): Int!
Arguments
commissionsCount.filters ● CommissionFiltersInput input
Optional filters. The same ones as commissions.
Type
Int scalar
The Int scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.