GET v1/Companies({CompanyId})/Entities({LocationId})/Rewards
Returns All the Loyalty Rewards for a Location in a Company
Information:
Base URL:
https://api.covasoft.net/iqloyalty
Example of a call would be:
https://api.covasoft.net/iqloyalty/v1/Companies({CompanyId})/Entities({LocationId})/Rewards
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| CompanyId |
The unique Company Id that was provided in your onboarding pacakage |
integer |
Required |
| LocationId |
The Location where you want Loyalty Rewards |
integer |
Required |
Body Parameters
None.
Response Information
Resource Description
Loyalty Rewards for a Location in a Company
Collection of LoyaltyRewardsByCompanyReturn| Name | Description | Type | Additional information |
|---|---|---|---|
| Id |
The unique Id for this reward. This is generated by the system and is required for updating or deleting a reward, but not for creating a reward. |
integer |
None. |
| Name |
The name of this reward. |
string |
None. |
| PointsRequired |
The points required to redeedm this reward. |
integer |
None. |
| Type |
The type of reward. The must be 'MoneyOffInvoice'. |
RewardType |
None. |
| Value |
The dollar value of this reward. |
string |
None. |
| DiscountId |
The corresponding DisocuntId for this reward. Is not used |
globally unique identifier |
None. |
| LastModifiedUtc |
The last modified date of this reward. |
date |
None. |
| LastModifiedUserName |
The username of the last user to modify this reward. |
string |
None. |
Response Formats
application/json, text/json
[
{
"Id": 310,
"Name": "$5 off for 5000",
"PointsRequired": 5000,
"Type": "MoneyOffInvoice",
"Value": "5",
"DiscountId": "565ecf0d-3d0b-47f2-a741-ae6b5eb6104d",
"LastModifiedUtc": "2018-06-29T22:58:23.6588214Z",
"LastModifiedUserName": "Simon Jacobs"
},
{
"Id": 311,
"Name": "Bonus for saving up",
"PointsRequired": 20000,
"Type": "MoneyOffInvoice",
"Value": "25",
"DiscountId": "91531f3f-8110-4c1b-8e7a-ed9ba3845ed0",
"LastModifiedUtc": "2018-06-29T22:58:24.421868Z",
"LastModifiedUserName": "Simon Jacobs"
},
{
"Id": 312,
"Name": "$3 Reward",
"PointsRequired": 50,
"Type": "MoneyOffInvoice",
"Value": "3",
"DiscountId": "a24c383b-58e9-44ec-ad67-ee5ce60fb499",
"LastModifiedUtc": "2018-06-29T22:58:24.9531397Z",
"LastModifiedUserName": "Smoke Test"
}
]