POST api/Order/MakeScratchCardByPromoCode
Request Information
URI Parameters
None.
Body Parameters
Scratchcardentity| Name | Description | Type | Additional information |
|---|---|---|---|
| dinfo | tblDeviceInfo |
None. |
|
| BMSId | integer |
None. |
|
| SSId | integer |
None. |
|
| PromoCode | string |
None. |
|
| ProductId | Collection of integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"dinfo": {
"Device_Name": "sample string 1",
"Device_OS": "sample string 2",
"AppVersion": "sample string 3",
"Device_BuildModel": "sample string 4",
"IMEINO": "sample string 5",
"Device_Serial": "sample string 6",
"Device_BTMAC": "sample string 7",
"Device_WIFIMAC": "sample string 8",
"Device_SDCSerial": "sample string 9"
},
"BMSId": 1,
"SSId": 2,
"PromoCode": "sample string 3",
"ProductId": [
1,
2
]
}
application/xml, text/xml
Sample:
<Scratchcardentity xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LiveTextBooksModel.Entity">
<BMSId>1</BMSId>
<ProductId xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:int>1</d2p1:int>
<d2p1:int>2</d2p1:int>
</ProductId>
<PromoCode>sample string 3</PromoCode>
<SSId>2</SSId>
<dinfo>
<AppVersion>sample string 3</AppVersion>
<Device_BTMAC>sample string 7</Device_BTMAC>
<Device_BuildModel>sample string 4</Device_BuildModel>
<Device_Name>sample string 1</Device_Name>
<Device_OS>sample string 2</Device_OS>
<Device_SDCSerial>sample string 9</Device_SDCSerial>
<Device_Serial>sample string 6</Device_Serial>
<Device_WIFIMAC>sample string 8</Device_WIFIMAC>
<IMEINO>sample string 5</IMEINO>
</dinfo>
</Scratchcardentity>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
tblPromoCode| Name | Description | Type | Additional information |
|---|---|---|---|
| result | integer |
None. |
|
| Message | string |
None. |
|
| ScratchcardValue | string |
None. |
|
| DEMOAssestsURL | string |
None. |
Response Formats
application/json, text/json
Sample:
{
"result": 1,
"Message": "sample string 2",
"ScratchcardValue": "sample string 3",
"DEMOAssestsURL": "sample string 4"
}
application/xml, text/xml
Sample:
<tblPromoCode xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LiveTextBooksModel.Entity"> <DEMOAssestsURL>sample string 4</DEMOAssestsURL> <Message>sample string 2</Message> <ScratchcardValue>sample string 3</ScratchcardValue> <result>1</result> </tblPromoCode>