HomeGuidesAPI Reference
Submit Documentation FeedbackJoin Developer CommunityOptimizely GitHubOptimizely NuGetLog In


**Type**: long

**Parameters**

NameTypeValue
sessionIdStringID of the current session
blockIdlongID of the coupon block
codeStringCoupon code to be queried

**Return values**

The ID of the mailing the code has been assigned to.

**Code structure**