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

getAllAssigned

Queries all coupon codes of a coupon block that have been used for a mailing 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
mailingIdlongID of the mailing
startEntryinteger(optional) Number of the entry to start with
numberOfEntriesinteger(optional) Maximum number of entries to return

Return values

All coupon codes used in the queried mailing

Code structure

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