---
title: "Get total number of benefits"
method: GET
path: "/benefits/count"
tags: ["Benefits", "Search"]
---

# Get total number of benefits

`GET /benefits/count`

## Query parameters

- `serviceName` string — Filter benefits by service name
- `categories` string — Comma-separated list of category codes to filter by. The search result will return benefits that match any of the provided categories (`ANY`).
- `employeeId` string — The employee whom this benefit is subscribed to
- `feeFrom` string — Minimum monthly fee amount
- `feeTo` string — Maximum monthly fee amount
- `status` 'ALL' | 'ACTIVE' | 'CANCELLED' — Status filter for benefit subscriptions

## Response `200`

Successful operation

- integer

## Other responses

- `400` — Invalid benefit subscriptions search criteria
- `500` — An internal server error occurred.
- `503` — The service is temporarily unavailable. Maybe there is maintenance?

## Changes

- **2025-01-17** `4573748c6338` — 3 info
  - added the optional property `errorGUID` to the response with the `400` status
  - added the optional property `errorGUID` to the response with the `500` status
  - added the optional property `errorGUID` to the response with the `503` status
- **2025-01-13** `027398d45de5` — 1 info
  - api tag `Search` added
- **2025-01-09** `2bb1ebc60ebd` — 1 breaking, 5 info
  - the `query` request parameter `status` was restricted to a list of enum values
  - added the new optional `query` request parameter `categories`
  - added the new enum value `ACTIVE` to the `query` request parameter `status`
  - added the new enum value `ALL` to the `query` request parameter `status`
  - …2 more
- **2025-01-09** `a59b7402c514` — 3 breaking
  - the response property `code` became optional for the status `400`
  - the response property `code` became optional for the status `500`
  - the response property `code` became optional for the status `503`
- **2025-01-09** `29074eeb2bb5` — 3 info
  - added the non-success response with the status `400`
  - added the non-success response with the status `500`
  - added the non-success response with the status `503`

[Full history](https://skmtc.dev/ducin-public/apis/itcorpo-api/changes/benefits/count/get.md)

---

[API](https://skmtc.dev/ducin-public/apis/itcorpo-api.md) · [All operations](https://skmtc.dev/ducin-public/apis/itcorpo-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/ducin-public/itcorpo-api/revisions/80675117301b/schema)
