Add currency to a player's balance
One step with Unity. We can help you get access.
Get something done
Add currency to a player's balance
with Unity · Game Backend Services
Use Unity: its Unity Economy Currencies API lets you add currency to a player's balance in a single step (POST /v2/projects/{projectId}/environments/{environmentId}/players/{playerId}/currencies/{currencyId}/increment). capabilities.work can help you get signed up and connected.
- Can I grant a player extra coins as a reward?
- Is there a write lock to avoid conflicting balance increases?
Say it to your AI assistant
- Give player {playerId} {amount} of currency {currencyId} in project {projectId}, environment {environmentId}.
- Increase {playerId}'s {currencyId} balance by {amount} using write lock {writeLock} (project {projectId}, env {environmentId}).
For your developer
POST /v2/projects/{projectId}/environments/{environmentId}/players/{playerId}/currencies/{currencyId}/increment in Unity Economy Currencies API. Full spec on APIs.io.