getAccountRates()

This application is used to get rates of an account.

Related documentation:

Tariff's Rates Management


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.