---
title: getCodeCount
slug: campaign/dev-docs/getcodecount
createdAt: 2026-08-06T15:53:49.984Z
---

**Type**: long

**Parameters**

| Name      | Type   | Value                     |
| --------- | ------ | ------------------------- |
| sessionId | String | ID of the current session |
| blockId   | long   | ID of the coupon block    |

**Return values**

The number of coupon codes in this block

**Code structure**

```javascript
long getCodeCount(String sessionId, long blockId)
```
