vendorAddFunds(), vendorCredit() and vendorDebit()

These applications allow to refund or charge the Vendors's balance with the specified sum.


The methods are applicable for all Sippy version starting from 4.0


Input

 

  These functions receive structure with the following fields:


  Mandatory fields

  •   i_vendor - which vendor to update. Integer.
  •   amount - amount to refund or charge. Double.
  •   currency - currency in which the amount specified. String.


  Optional fields

  •   payment_notes - String.


Output

  The function returns:

  •    result - 'OK'
  •   XMLRPC fault in case of any error.