Contact us Login LIVE DEMO FREE TRIAL

change_balance(..)

Change user balance (increase or decrease) or bonus and write this change in transactions (type = payment, subtype = partner).
New balance (bonus) must be not negative.

required permissions:

  • users: “update”
  • transactions: “create”

parameters:

  • user_idint. id of user whom balance changed
  • amountdouble (2 digits after decimal mark). add it to passed type of balance
  • typestring. type of balance to change
    • balance
    • bonus
  • textstring(min length is 5 chars). description of transaction

return:

{ "success": true }

errors:

  • 201 – Not found in database – If user not found or not owned by current dealer
  • 251 – Insufficient funds(403) – If user have not enough funds to withdraw passed (negative) amount

If you have more questions please contact our support team

Contacts

USA: +1 858 225 46 88

Mexico: +52 558 526 11 25

UK: +44 203 807 64 62

Russia: +7 495 128 35 56

Log in

Loading...

We use сookies to improve our website, products and related services, analyze site traffic, and serve targeted advertisements. If you continue to use our services, you consent to our use of сookies. Read more