POST V2/Promotion/CreatePromotionCode

Request Information

URI Parameters

None.

Body Parameters

PromotionCodeGenView
NameDescriptionTypeAdditional information
RuleId

globally unique identifier

None.

Lang

Language

None.

GenNum

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "RuleId": "609ab1c3-edc1-45db-a9ff-ab42cfe2a9db",
  "Lang": 0,
  "GenNum": 2
}

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'PromotionCodeGenView'.

Response Information

Resource Description

SystemResult
NameDescriptionTypeAdditional information
Succeeded

boolean

None.

Message

string

None.

ReturnValue

Object

None.

Code

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "Succeeded": true,
  "Message": "sample string 2",
  "ReturnValue": {},
  "Code": 4
}