HomeGuidesAPI Reference
Submit Documentation FeedbackJoin Developer CommunityOptimizely GitHubOptimizely NuGetLog In

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)
    

What’s Next
Did this page help you?