POST api/v1/UpdateLoyaltyPlan
Request Information
URI Parameters
None.
Body Parameters
LoyaltyPlan| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | integer |
None. |
|
| Name | string |
None. |
|
| Inactive | boolean |
None. |
|
| StartDate | string |
None. |
|
| EndDate | string |
None. |
|
| AmountSpent | decimal number |
None. |
|
| Points | decimal number |
None. |
|
| Redemption | decimal number |
None. |
|
| StoreCredit | decimal number |
None. |
Request Formats
application/json, text/json
Sample:
{
"Id": 1,
"Name": "sample string 2",
"Inactive": true,
"StartDate": "sample string 4",
"EndDate": "sample string 5",
"AmountSpent": 6.1,
"Points": 7.1,
"Redemption": 8.1,
"StoreCredit": 9.1
}
application/xml, text/xml
Sample:
<LoyaltyPlan xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/GPOS.DataService.Controllers"> <AmountSpent>6.1</AmountSpent> <EndDate>sample string 5</EndDate> <Id>1</Id> <Inactive>true</Inactive> <Name>sample string 2</Name> <Points>7.1</Points> <Redemption>8.1</Redemption> <StartDate>sample string 4</StartDate> <StoreCredit>9.1</StoreCredit> </LoyaltyPlan>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
ApiReturnStatus| Name | Description | Type | Additional information |
|---|---|---|---|
| Result | boolean |
None. |
|
| Status | integer |
None. |
|
| Msg | string |
None. |
|
| ID | string |
None. |
|
| Data | Object |
None. |
|
| ExtraData | Object |
None. |
Response Formats
application/json, text/json
Sample:
{
"Result": true,
"Status": 2,
"Msg": "sample string 3",
"ID": "sample string 4",
"Data": {},
"ExtraData": {}
}
application/xml, text/xml
Sample:
<ApiReturnStatus xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/GPOS.DataService.Models"> <Data /> <ExtraData /> <ID>sample string 4</ID> <Msg>sample string 3</Msg> <Result>true</Result> <Status>2</Status> </ApiReturnStatus>