Skip to main content
Version: 5.7.0

SysAddMultiUseCodeType

Add a new, shared ('multi-use') redemption code type configuration

ServiceOperation
redemptionCodeSYS_ADD_MULTI_USE_CODE_TYPE

Method Parameters

ParameterDescription
codeTypeThe unique code type. Corresponds to the Campaign Name in the Design Portal.
jsonOptionsThe multi-use code type configuration options, as JSON object. Required options are 'scanCode', 'validStart', and 'validEnd'. The 'scanCode' option must be unique and not exceed 20 characters. A 'maxRedemptions' of null indicates no limit. The 'customCodeInfo' will be applied to the multi-use codes upon redemption processing. For custom redemption codes, set a valid 'redemptionCodeScriptId' or, if null, the 'redemptionCodeScriptFullPathName' will be checked and, if valid, used to set the applicable script id. The 'async', 'maxRetries' and 'timeout' (in seconds) are only applicable if a valid 'redemptionScriptId' is specified.

Usage

http://localhost:3000
// S2S call: to view example, switch to the Cloud Code or Raw tab.
JSON Response
{
"data": {
"codeType": "unique_campaign_name",
"description": "Codes to give away for promotion",
"version": 1,
"createdAt": 1708035413954,
"updatedAt": 1708035413954,
"async": false,
"maxRetries": 0,
"isDisabled": false,
"customCodeInfo": {},
"validStart": 1708035331008,
"validEnd": 1708640131008,
"codeUseType": "MULTI",
"scanCode": "FREE100",
"maxRedemptions": 100
},
"status": 200
}