---
title: getCodeCount
slug: campaign/docs/getcodecount
docTags: 
createdAt: 2026-07-02T19:01:45.566Z
---

**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)
```
