rechargeVoucher()


This application allows to Top-up Account's balance using a Recharge Voucher.


Input


The function receives struct with the following fields:

Mandatory fields

i_account (integer) or username (string). you choose which one is more convenient to you.
voucher_id - ID of the voucher to refill the given account. String. Required.

Optional fields

secret_pin - String.


Output

The function returns structure with the following fields

value - voucher's value. Double.
voucher_currency - String.
payer_amount - voucher's value in account's currency. Double.

result - 'OK'

XMLRPC fault in case of any error.


Trusted mode

When used in trusted mode the caller may use i_voucher (integer) directly instead of voucher_id and secret_pin