Dev GuideAPI Reference
Dev GuideAPI ReferenceUser GuideGitHubNuGetDev CommunitySubmit a ticketLog In
GitHubNuGetDev CommunitySubmit a ticket

isAssigned

Queries whether a coupon code has been assigned to a recipient (i.e., used in a mailing) in Optimizely Campaign.

Type: boolean

Parameters

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

Return values

  • true: Coupon code has been assigned to a mailing
  • false: Coupon code has not been assigned to a mailing

Code structure

boolean isAssigned(String sessionId, long blockId, String code)