Balance

Retrieve balance

get

Retrieve extension's balance by it's unique ID.

Authorizations
Path parameters
idstringrequired

The unique ID of the resource.

Example: NzAwNTUxOTA5NzczMTQ4MTYw
Responses
curl -L \
  --url 'https://HOSTNAME:8887/api/users/{id}/balance' \
  --header 'Authorization: Bearer YOUR_SECRET_TOKEN'
{
  "balance": 1
}

Update balance

post

Update extension's balance

Authorizations
Path parameters
idstringrequired

The unique ID of the resource.

Example: NzAwNTUxOTA5NzczMTQ4MTYw
Body
balancenumber · doubleoptional

User balance. Precision is five digits.

Responses
curl -L \
  --request POST \
  --url 'https://HOSTNAME:8887/api/users/{id}/balance' \
  --header 'Authorization: Bearer YOUR_SECRET_TOKEN' \
  --header 'Content-Type: application/json' \
  --data '{
    "balance": 1
  }'

No body

Was this helpful?