Page History
An Incentive Code entity is a single code that can be issued or redeemed.
Incentive Code Entity
The following is the JSON representation of an Incentive Code entity within the Application Program Interfaces (APIs).
Elements
Code Block |
---|
{
"code": "coupon01",
"active": true,
"issuances": {
"total": 2,
"unique": 1
},
"redemptions": {
"total": 1,
"unique": 1
},
"incentive_pool": {
"id": 42,
"url": "/companies/:id/incentives/pools/:pool_id"
},
"created_at: "2017-01-18T17:24:32Z",
"updated_at: "2017-01-18T17:24:32Z",
"url": "/companies/:id/incentives/codes/:code"
}
|
Data Element | Type | Description |
incentive_pool_id | Integer | Vibes unique identifier for each Incentive Pool. |
code | String | The name of the Incentive Pool. |
active | Boolean | Whether issuance of codes is allowed. |
issuances | Object | An object describing this code's issuances. |
issuances.total | Integer | The total number of times this code has been issued. |
issuances.unique | Integer | The number of unique times this code has been issued. |
redemptions | Object | An object describing this code's redemptions. |
redemptions.total | Integer | The total number of times this code has been redeemed. |
redemptions.unique | Integer | The number of unique times this code has been redeemed. |
created_at | Timestamp | The date this code was created. |
updated_at | Timestamp | The date this code was last updated. |
url | String | The URL to access this resource. |
Last Updated:
Lastupdatedate |
---|
Livesearch | ||||
---|---|---|---|---|
|
Available API methods Table of Contents maxLevel 3
An Incentive Code entity is a single code that can be issued or redeemed.
Show an Incentive Code
Code Block |
---|
GET /companies/: |
...
company_key/incentives/codes/:code |
Overview
Content Tools