Developer Docs
OverviewGroupsPathways
  • Getting Started
  • Overview
    • API Manager
    • User Privacy
    • Responses
  • Groups
    • Concepts
    • Manage
    • Status
    • Insert
    • Remove
  • Data
    • Overview
    • List
    • Upload
    • Download
    • Delete
    • Insert
    • Remove
  • Pathways
    • Overview
    • Enrolments
      • List
      • Manage
    • Web Tracking
      • Serverless
      • Server-Side Platforms
    • Classroom & Events
      • List
      • Consume
    • Rewards
      • List
      • Consume
    • Webhooks
      • Enrolments
      • Classroom & Events
      • Rewards
    • Logs
      • Activity & Fulfilment Types
      • Activity & User Logs
  • Stories
    • Logs
      • Story Logs
      • User Story Logs
    • Certificates
    • Question Analysis
  • Streams
    • Subscriptions
    • Ratings
  • Analytics
    • Overview
    • Published
    • Realtime
    • Audience
      • Frequency
      • Demographics
      • Locations
      • Retention
    • Reviews
Powered by GitBook
On this page
  • Payload Example
  • Reward Object
  • Voucher Object
  1. Pathways
  2. Webhooks

Rewards

PreviousClassroom & EventsNextLogs

Last updated 4 years ago

The Reward Webhook delivers a reward payload any time a user obtains a voucher on a . The payload contains an array of rewards in the data property and each reward object contains a list of vouchers that have not been redeemed.

Payload Example

{
  "type": "rewards",
  "data": {
    "pathway": {
      "name": "My Pathway",
      "ID": "FA-HCPG-06RF"
    },
    "rewards": [
      {
        "ID": "FARE-STZH-05MD",
        "name": "Cup of Coffee",
        "vouchers": [
          {
            "guid": "6c720133-3916-4172-94c9-62d1394fc72b",
            "firstname": "Test",
            "lastname": "User",
            "email": "test@example.com",
            "country": "South Africa",
            "city": "Cape Town",
            "state": "notified",
            "expires": "never"
          },
          ...etc
        ]
      },
      ...etc
    ]
  }
}

Key

Type

pathway

Object. The name and SKU of the related pathway.

rewards

Array. A list of rewards.

Reward Object

Key

Type

ID

String. ID or SKU reference for the reward.

name

String. Name of the reward.

vouchers

Array. A list of unredeemed vouchers.

Voucher Object

The voucher object will contain a guid which is used in the consume endpoint for rewards. This will allow integrations to set the voucher state if the intention is to manage redemption of awards via external systems.

Key

Type

guid

String. A GUID of the voucher.

state

String. The state of the voucher (pending, notified, verify, redeemed, expired).

expires

String. The date the voucher expires.

firstname

String

lastname

String

email

String

country

String

city

String

reward
pathway
Consume