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

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