Contact us Login VIEW 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 815 9045

Mexico: +52 334 1642158

UK: +44 808 1641499

Germany: +49 1573 5988250

Russia: +7 495 223 0427

Log in

Login

[clean-login]

CLOSE
Register

[clean-login-register]

CLOSE
Loading...