HomeGuidesAPI Reference
Submit Documentation FeedbackJoin Developer CommunityOptimizely GitHubOptimizely NuGetLog In

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)

What’s Next
Did this page help you?