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

markAsUsed

Invalidates a coupon code in Optimizely Campaign.

Use this method after the recipient has converted the coupon code after a purchase.

Type: void

Parameters

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

Return values

  • Code structure

    void markAsUsed(String sessionId, long blockId, String code)
    

Next