POST api/Coupon/GetACoupon
Request Information
URI Parameters
None.
Body Parameters
PurchaseCouponParameter| Name | Description | Type | Additional information |
|---|---|---|---|
| CouponId | string |
None. |
|
| ProfitCash | decimal number |
None. |
|
| ProfitIntegral | decimal number |
None. |
|
| PayWay | string |
None. |
|
| PayPassword | string |
None. |
|
| Quantity | decimal number |
None. |
Request Formats
application/json, text/json
Sample:
{
"CouponId": "sample string 1",
"ProfitCash": 2.0,
"ProfitIntegral": 3.0,
"PayWay": "sample string 4",
"PayPassword": "sample string 5",
"Quantity": 6.0
}
application/xml, text/xml
Sample:
<PurchaseCouponParameter xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LeaRun.Entity.APP"> <CouponId>sample string 1</CouponId> <PayPassword>sample string 5</PayPassword> <PayWay>sample string 4</PayWay> <ProfitCash>2</ProfitCash> <ProfitIntegral>3</ProfitIntegral> <Quantity>6</Quantity> </PurchaseCouponParameter>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
OutModel| Name | Description | Type | Additional information |
|---|---|---|---|
| Code | string |
None. |
|
| Msg | string |
None. |
|
| Data | Object |
None. |
Response Formats
application/json, text/json
Sample:
{
"Code": "sample string 1",
"Msg": "sample string 2",
"Data": {}
}
application/xml, text/xml
Sample:
<OutModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LeaRun.Api.Models"> <Code>sample string 1</Code> <Data /> <Msg>sample string 2</Msg> </OutModel>