Skip to main content
POST
/
v1
/
community
/
points
/
{pointSystemId}
/
balance
cURL
curl --request POST \
  --url https://api.flipsuite.xyz/v1/community/points/{pointSystemId}/balance \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <x-api-key>' \
  --data '
{
  "changes": [
    {
      "platform": "discord",
      "userId": "328218133074804739",
      "amount": -100
    },
    {
      "platform": "discord",
      "userId": "144610383091466241",
      "amount": 100
    }
  ],
  "metadata": {
    "source": "my-app",
    "type": "transfer"
  }
}
'

Headers

x-api-key
string
required

Your community API key

Path Parameters

pointSystemId
string
required

ID of a point system

Body

application/json
changes
object[]
required

List of balance changes to apply.

Required array length: 1 - 1000 elements
metadata
object

Custom metadata to include in the transaction log.

Response

200

Balances have been updated