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

Dev GuideAPI Reference
Dev GuideAPI ReferenceUser GuideNuGetDev CommunityOptimizely AcademySubmit a ticketLog In
Dev Guide
NuGetDev CommunityOptimizely AcademySubmit a ticket

Optimizely developer documentation

How can we help you?

Try our conversational search powered by Generative AI!

AI OnAI Off

CouponCodeWebservice

Create, query, and delete coupon codes.

The WSDLs for the coupon code system can be found under these links:

The following methods are available in this web service:

MethodDescription
addAdds a single coupon code to a static block
addAllAdds multiple coupon codes to a block
getAllAssignedQueries coupon codes assigned to a mailing
getAllUnAssignedQueries all available coupon codes of a block
getAssignedMailingQueries the mailing ID a code has been assigned to
getAssignedRecipientIdQueries the recipient ID a code has been assigned to
getByMailingAndRecipientIdQueries a coupon code by mailing and recipient ids
getCreatedQueries the creation date of a coupon code
getModifiedQueries the modification date of a coupon code
isAssignedQueries whether a coupon code has been assigned to a recipient
isUsedQueries whether a recipient has redeemed a coupon code
markAsUsedInvalidates a coupon code
removeDeletes a single coupon code
removeAllDeletes multiple coupon codes

To use this web service, you must have the coupon system add-on installed. See Coupon system in the Optimizely User Guide.


Next
Did this page help you?