POST api/promotion

Request Information

URI Parameters

None.

Body Parameters

PromotionEntity
NameDescriptionTypeAdditional information
Id

string

None.

Name

string

None.

Desc

string

None.

Type

integer

None.

Value

integer

None.

From

date

None.

To

date

None.

TotalUse

integer

None.

MaxValue

integer

None.

PatternGen

string

None.

MinTotalOrder

integer

None.

CreatedDate

date

None.

UpdatedDate

date

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": "sample string 1",
  "Name": "sample string 2",
  "Desc": "sample string 3",
  "Type": 4,
  "Value": 5,
  "From": "2025-12-16T21:34:23.5255484",
  "To": "2025-12-16T21:34:23.5255484",
  "TotalUse": 8,
  "MaxValue": 9,
  "PatternGen": "sample string 10",
  "MinTotalOrder": 11,
  "CreatedDate": "2025-12-16T21:34:23.5265454",
  "UpdatedDate": "2025-12-16T21:34:23.5265454"
}

application/xml, text/xml

Sample:
<PromotionEntity xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BusinessEntities">
  <CreatedDate>2025-12-16T21:34:23.5265454+07:00</CreatedDate>
  <UpdatedDate>2025-12-16T21:34:23.5265454+07:00</UpdatedDate>
  <Desc>sample string 3</Desc>
  <From>2025-12-16T21:34:23.5255484+07:00</From>
  <Id>sample string 1</Id>
  <MaxValue>9</MaxValue>
  <MinTotalOrder>11</MinTotalOrder>
  <Name>sample string 2</Name>
  <PatternGen>sample string 10</PatternGen>
  <To>2025-12-16T21:34:23.5255484+07:00</To>
  <TotalUse>8</TotalUse>
  <Type>4</Type>
  <Value>5</Value>
</PromotionEntity>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.