Dev GuideAPI Reference
Dev GuideAPI ReferenceUser GuideGitHubNuGetDev CommunityDoc feedbackLog In


Invalidates a coupon code in Optimizely Campaign.

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

Type: void


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)

What’s Next