POST api/admin/couponPlan/Create
Request Information
URI Parameters
None.
Body Parameters
CouponPlanBindingModel| Name | Description | Type | Additional information |
|---|---|---|---|
| PlanID | integer |
None. |
|
| CouponID | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"planID": 1,
"couponID": "sample string 2"
}
text/html
Sample:
{"planID":1,"couponID":"sample string 2"}
application/xml, text/xml
Sample:
<CouponPlanBindingModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Ps.BusinessObjects.BindingModels.CouponPlan"> <CouponID>sample string 2</CouponID> <PlanID>1</PlanID> </CouponPlanBindingModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
DataActionResponse| Name | Description | Type | Additional information |
|---|---|---|---|
| IsSuccessful | boolean |
None. |
|
| ErrorMessage | string |
None. |
|
| Data | Object |
None. |
Response Formats
application/json, text/json
Sample:
{
"isSuccessful": true,
"errorMessage": "sample string 2",
"data": {}
}
text/html
Sample:
{"isSuccessful":true,"errorMessage":"sample string 2","data":{}}
application/xml, text/xml
Sample:
<DataActionResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Ps.CoreUtilities.Framework.Exceptions"> <Data /> <ErrorMessage>sample string 2</ErrorMessage> <IsSuccessful>true</IsSuccessful> </DataActionResponse>