Dev GuideAPI Reference
Dev GuideAPI ReferenceUser GuideGitHubNuGetDev CommunitySubmit a ticketLog In
GitHubNuGetDev CommunitySubmit a ticket


Queries all available coupon codes of a coupon block in Optimizely Campaign. A maximum of 1,000 entries can be returned per query.

Type: string[ ]


sessionIdStringID of the current session
blockIdlongID of the coupon block
startEntryinteger(optional) Number of the entry to start with
numberOfEntriesinteger(optional) Maximum number of entries to return

Return values

All available (unassigned) coupon codes in this block

Code structure

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