GET api/WebApiOdata/GetAllRewardPrograms?providerID={providerID}
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
providerID | integer |
Required |
Body Parameters
None.
Response Information
Resource Description
Collection of RewardProgramGridViewModelName | Description | Type | Additional information |
---|---|---|---|
RewardProgramID | integer |
None. |
|
RedeemProgramID | integer |
None. |
|
ProviderID | integer |
None. |
|
Name | string |
None. |
|
SpentAmount | integer |
None. |
|
ReceivablePoints | integer |
None. |
|
SpentPoints | integer |
None. |
|
ConvertableAmount | integer |
None. |
|
RewardEventID | integer |
None. |
|
RewardType | byte |
None. |
|
ExpireDays | integer |
None. |
|
Status | boolean |
None. |
|
RewardEventName | string |
None. |
Response Formats
application/json, text/json, text/html
Sample:
[ { "RewardProgramID": 1, "RedeemProgramID": 2, "ProviderID": 3, "Name": "sample string 4", "SpentAmount": 5, "ReceivablePoints": 6, "SpentPoints": 7, "ConvertableAmount": 8, "RewardEventID": 9, "RewardType": 64, "ExpireDays": 11, "Status": true, "RewardEventName": "sample string 13" }, { "RewardProgramID": 1, "RedeemProgramID": 2, "ProviderID": 3, "Name": "sample string 4", "SpentAmount": 5, "ReceivablePoints": 6, "SpentPoints": 7, "ConvertableAmount": 8, "RewardEventID": 9, "RewardType": 64, "ExpireDays": 11, "Status": true, "RewardEventName": "sample string 13" } ]
application/xml, text/xml
Sample:
<ArrayOfRewardProgramGridViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SellersCommerce.ViewModels.Settings"> <RewardProgramGridViewModel> <ConvertableAmount>8</ConvertableAmount> <ExpireDays>11</ExpireDays> <Name>sample string 4</Name> <ProviderID>3</ProviderID> <ReceivablePoints>6</ReceivablePoints> <RedeemProgramID>2</RedeemProgramID> <RewardEventID>9</RewardEventID> <RewardEventName>sample string 13</RewardEventName> <RewardProgramID>1</RewardProgramID> <RewardType>64</RewardType> <SpentAmount>5</SpentAmount> <SpentPoints>7</SpentPoints> <Status>true</Status> </RewardProgramGridViewModel> <RewardProgramGridViewModel> <ConvertableAmount>8</ConvertableAmount> <ExpireDays>11</ExpireDays> <Name>sample string 4</Name> <ProviderID>3</ProviderID> <ReceivablePoints>6</ReceivablePoints> <RedeemProgramID>2</RedeemProgramID> <RewardEventID>9</RewardEventID> <RewardEventName>sample string 13</RewardEventName> <RewardProgramID>1</RewardProgramID> <RewardType>64</RewardType> <SpentAmount>5</SpentAmount> <SpentPoints>7</SpentPoints> <Status>true</Status> </RewardProgramGridViewModel> </ArrayOfRewardProgramGridViewModel>