Rewards

Create, retrieve, and list rewards that customers can redeem with their loyalty points.

View as Markdown

A reward is a redemption option within the loyalty programme. Rewards have a points cost and can represent a discount percentage, a free item, or any other benefit you define.

Illustrative content. Hand-authored to demonstrate the Standard/Advanced pattern; the production page will be generated from the VINR OpenAPI spec (roadmap item #1). Field names are representative.

The reward objectAsk

idstring

Unique identifier for the reward, e.g. rwd_5Hx2nP.

namestring

Human-readable name shown to customers, e.g. 10% Off Next Order.

points_costinteger

Number of points a customer must spend to redeem this reward.

typeenum

Either discount (a percentage off) or item (a free product or service).

valuestring

For discount rewards: the percentage as a string, e.g. "10". For item rewards: a description of what is granted, e.g. "Free coffee".

activeboolean

Whether the reward is currently available for redemption. Inactive rewards are hidden from customers but their historical redemptions are preserved.

createdinteger

Unix timestamp of when the reward was created.

Create a rewardAsk

Define a new redemption option. Set active: true (the default) to make it immediately available to customers with sufficient points.

Retrieve a rewardAsk

Fetch a reward by its ID.

List rewardsAsk

Returns a paginated list of rewards. Pass active=true to show only currently redeemable rewards.

ParameterTypeDescription
activebooleanFilter by active status. Omit to return all rewards.
limitintegerNumber of results to return. Default 10, max 100.

reward.created. See Events.

Was this page helpful?