POST api/General/OfferManage/CreateGiftCoupons
Request Information
URI Parameters
None.
Body Parameters
GiftCouponCodeCreate| Name | Description | Type | Additional information |
|---|---|---|---|
| OfferID | integer |
None. |
|
| OfferName | string |
Required String length: inclusive between 0 and 100 |
|
| OfferCount | integer |
Required |
|
| OfferAmount | decimal number |
Required |
|
| OfferDescription | string |
None. |
|
| CodeBGTheme | string |
String length: inclusive between 0 and 100 |
|
| UserID | string |
Required String length: inclusive between 0 and 450 |
|
| IPAddress | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"OfferID": 1,
"OfferName": "sample string 1",
"OfferCount": 2,
"OfferAmount": 3.0,
"OfferDescription": "sample string 4",
"CodeBGTheme": "sample string 5",
"UserID": "sample string 6",
"IPAddress": "sample string 7"
}
application/xml, text/xml
Sample:
<GiftCouponCodeCreate xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/General.Operations.CustomModels"> <CodeBGTheme>sample string 5</CodeBGTheme> <IPAddress>sample string 7</IPAddress> <OfferAmount>3</OfferAmount> <OfferCount>2</OfferCount> <OfferDescription>sample string 4</OfferDescription> <OfferID>1</OfferID> <OfferName>sample string 1</OfferName> <UserID>sample string 6</UserID> </GiftCouponCodeCreate>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
stringResponse Formats
application/json, text/json
Sample:
"sample string 1"
application/xml, text/xml
Sample:
<string xmlns="http://schemas.microsoft.com/2003/10/Serialization/">sample string 1</string>