capabilities.work

Economy Grant Currency

A 3-step recipe with Unity. We can help you get access.

Recipe · 3 steps

Economy Grant Currency

with Unity

Confirm a currency config, increment a player's balance, and verify it.

  1. Resolve the currency resource configuration to confirm the currency exists and to surface its maximum balance before granting.
  2. Increment the player's currency balance by the granted amount.
  3. Read all of the player's currency balances to confirm the grant was applied.
What you'll need to have ready
  • accessToken: Bearer JWT for the service account performing the grant.
  • projectId: The Unity project identifier.
  • environmentId: The Unity environment identifier.
  • playerId: The player to grant currency to.
  • currencyId: The currency resource id, used both as the config resourceId and the currency path id.
  • amount: The positive amount of currency to grant.
For your developer

Arazzo workflow unity:economy-grant-currency, 3 operations: getEconomyConfig → incrementPlayerCurrencyBalance → getPlayerCurrencyBalances. Specs on APIs.io.