HomeGuidesAPI Reference
Submit Documentation FeedbackJoin Developer CommunityOptimizely GitHubOptimizely NuGetLog In


**Type**: String[ ]

**Parameters**

NameTypeValue
sessionIdStringID of the current session
blockIdlongID of the coupon block
mailingIdString[ ]ID of the mailing
recipientIdString[ ]ID of the recipient

**Return values**

Normally, a coupon code from this block will be returned. If the queried mailing is of the type special, one recipient may have received several codes, though. If the returned array is empty, no coupon code has been assigned to the recipient in the queried mailing.

**Code structure**