HomeGuidesAPI Reference
Submit Documentation FeedbackJoin Developer CommunityOptimizely GitHubOptimizely NuGetLog In


**Type**: long[ ]

**Parameters**

NameTypeValue
sessionIdStringID of the current session
couponSourceStringType of coupon block:<br><ul><li><span class="classLib">static</span>: Contains static coupon codes<br>These must be created manually. See CouponCodeWebservice see [add](🔗) or [addAll](🔗).</li>
<li><span class="classLib">generated</span>: Coupon codes are automatically generated when sending the mailing and are unique.</li></ul>


**Return values**

The IDs of all existing coupon blocks

**Code structure**