postClientsBalance

Operation Id:
clients/balance/post [Official Documentaction]
Methods

  • clientId Integer
  • operation String
  • balance Number
  • currency String
  • note String
  • prepaidId Integer
  • add balance: number, currency: string
  • remove balance: number, currency: string
Examples

This function updates the balance of the client with ID 3 by adding 100 PLN.

const result = await idosellRequest.postClientsBalance
	.clientId("3")
	.operation("add")
	.currency("PLN")
	.balance(100)
	.exec()

This function adds 100 to the balance of the client with the ID 3.

const result = await idosellRequest.postClientsBalance
	.clientId(3)
	.add(100)
	.exec()

This function removes 100 EUR from the balance of client with client ID 3.

const result = await idosellRequest.postClientsBalance
	.clientId(3)
	.remove(100, "EUR")
	.exec()