Disclaimer: This website requires Please enable JavaScript in your browser settings for the best experience.

Dev GuideAPI Reference
Dev GuideAPI ReferenceUser GuideLegal TermsNuGetDev CommunityOptimizely AcademySubmit a ticketLog In
Dev Guide

isUsed

Queries whether a recipient has used (redeemed) a coupon code in Optimizely Campaign.

Type: boolean

Parameters

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

Return values

  • true: Coupon code has been converted
  • false: Coupon code has not been converted

Code structure

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