HomeGuidesAPI Reference
Submit Documentation FeedbackJoin Developer CommunityLog In

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)

What’s Next
Did this page help you?