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

getAssignedMailing

Queries the mailing ID of a used coupon code in Optimizely Campaign.

Type: long

Parameters

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

Return values

The ID of the mailing the code has been assigned to.

Code structure

long getAssignedMailing(String sessionId, long blockId, String code)