Disclaimer: This website requires Please enable JavaScript in your browser settings for the best experience.

Dev GuideAPI Reference
Dev GuideAPI ReferenceUser GuideLegal TermsNuGetDev CommunityOptimizely AcademySubmit a ticketLog In
Dev Guide

getAllUnAssigned

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[ ]

Parameters

NameTypeValue
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)