Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Published by Scroll Versions from this space and version 1.2

Last Updated:

Lastupdatedate

Livesearch
placeholderSearch the Vibes Developer Wiki
typepage



An Incentive Pool entity is a collection of Incentive Codes.

Anchor
getincentivepools
getincentivepools
Get Incentive Pools

Code Block
GET /companies/:id/incentives/pools

Response

An array of all Incentive Pools for the given company.

Anchor
showanincentivepool
showanincentivepool
Show an Incentive Pool

Code Block
GET /companies/:company_id/incentives/pools/:pool_id

Anchor
createanincentivepool
createanincentivepool
Create an Incentive Pool

Code Block
POST /companies/:company_id/incentives/pools
{
  "name": "Test Pool",
  "issuance_allowed": true,
  "redemption_allowed": true,
  "incentive_codes": {
    "low_threshold": 1000,
    "max_characters": 10
  },
  "distribution": {
    "method": "unique"
  },
  "notification_email_address": "your.name@your.company.com"
}

Anchor
updateanincentivepool
updateanincentivepool
Update an Incentive Pool

Code Block
PUT /companies/:company_id/incentives/pools/:pool_id
{
  "name": "Test Pool",
  "issuance_allowed": true,
  "redemption_allowed": true,
  "incentive_codes": {
    "low_threshold": 1000,
    "max_characters": 10
  },
  "distribution": {
    "method": "unique"
  },
  "notification_email_address": "your.name@your.company.com"
}