"rate_cost","description","name","prefix"
"0.1","BRONZE","BRONZE","1503"
"0.2","SILVER","SILVER","150"
"0.3","GOLD","GOLD","15"
"0.4","PLATINUM","PLATINUM","1"
Name | Description | Required |
---|---|---|
account_id |
reseller's account (see Note 1 below) | |
description |
description for rate | |
direction |
direction of call leg ("inbound", "outbound"), if not set - rate matches both directions | |
iso_country_code |
ISO 3166-1 code for prefix's country | |
prefix |
prefix for match DID number | true |
pvt_rate_cost |
internal rate cost, used for weight calculation |
|
pvt_rate_surcharge |
internal rate surcharge | |
rate_cost |
per minute cost | true |
rate_increment |
billing "steps" for rate | |
rate_minimum |
minimum call duration | |
rate_name |
short name for rate, if this field not set it will be generated from prefix , iso_country_code and direction fields |
|
rate_nocharge_time |
"free" call time, if call duration less then this value (seconds), then call not charged | |
rate_surcharge |
charge amount on connect (answer) | |
rate_version |
rate version | |
ratedeck_id |
ratedeck name, assigned to account via service plan | |
weight |
when found several rates with same prefix, used rate with higher weight. If not set - calculated from prefix length and rate_cost (pvt_rate_cost ) |
- CSV files for all actions use the same list of fields. Names of fields match the names of keys in the CouchDB rate document.
- For
import
&delete
actions, value ofaccount_id
from CSV file will be ignored, value for this field is taken from task Account-ID . routes
andoptions
fields can not be defined via CSV file (because their values are lists).routes
is automatically generated fromprefix
. Example:prefix
380 generatesroutes
-["^\\+?380.+$"]
.