Getting Rates of an Account

Last updated by FlySIP Support on October 31, 2019 08:41

getAccountRates()

This application is used to get rates of an account.

Parameters:

  • i_account - i_account of account. Integer. Required.
  • offset - skip fist offset CDRs. Integer. Optional.
  • limit - return only limit CDRs. Integer. Optional.
  • prefix - fetch rates like prefix. String. Optional.

Returns:

  • result - OK means that query was successfully. String.
  • currency - rates currency. String
  • rates - an array containing structures:
    • prefix - Prefix. String.
    • country - Country. String
    • description - Description. String.
    • rate - Rate. Double.
    • local_rate - Local rate (if tariff has enabled local calling). Double.
  • XMLRPC fault in case of any error.