Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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 ElementTypeDescription

incentive_pool_id

Integer

Vibes unique identifier for each Incentive Pool.

code

String

The name of the Incentive Pool.

activeBooleanWhether issuance of codes is allowed.
issuancesObjectAn object describing this code's issuances.
issuances.totalIntegerThe total number of times this code has been issued.
issuances.uniqueIntegerThe number of unique times this code has been issued.
redemptionsObjectAn object describing this code's redemptions.
redemptions.totalIntegerThe total number of times this code has been redeemed.
redemptions.uniqueIntegerThe number of unique times this code has been redeemed.
created_atTimestampThe date this code was created.
updated_atTimestampThe date this code was last updated.
urlStringThe URL to access this resource.

...