Skip to Content
FluxStore is currently invite-only. Some sections of this documentation are still being written and expanded.
POST/api/v1/loyalty/vote-reward

Award loyalty points for one or more votes. Points are calculated as pointsPerVote × count using the value configured in your store’s Loyalty Rewards settings.

This is the REST option for awarding vote rewards. The FluxStore plugin’s Votifier integration is the usual path. See the plugin protocol for how votes are delivered automatically.

Awarding vote rewards requires the store to be on the Pro plan and Loyalty Rewards to be enabled. If loyalty is disabled or the subscription has lapsed, the request returns 403 Forbidden.

Body

playerUsernamestringrequired
The player who voted.
playerUuidstring
The player’s UUID, if known.
countinteger
Number of votes to award for. Defaults to 1.
sourcestring
Optional identifier for the vote source.
idempotencyKeystring
Optional. Retries with the same key will not double-award.

The data field is the player’s new balance after the reward.