---
title: getAllUnAssigned
slug: campaign/docs/getallunassigned-couponcode
docTags: 
createdAt: 2026-07-02T19:01:45.941Z
---

**Type**: string\[ ]

**Parameters**

| Name            | Type    | Value                                          |
| --------------- | ------- | ---------------------------------------------- |
| sessionId       | String  | ID of the current session                      |
| blockId         | long    | ID of the coupon block                         |
| startEntry      | integer | (optional) Number of the entry to start with   |
| numberOfEntries | integer | (optional) Maximum number of entries to return |

**Return values**

All available (unassigned) coupon codes in this block

**Code structure**

```javascript
String[] getAllUnAssigned(String sessionId, long blockId, int startEntry, int numberOfEntries)
```
