Call rates

List call rates

get

Retrieve a collection of call rates

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Query parameters
filterstringOptional

Use the filter query parameter to retrieve just a subset of a collection.

searchstringOptional

Use the search query parameter to restrict the results of a request to match a search criterion.

orderbystringOptional

Use the orderby query parameter to specify the sort order of the items returned from server.
The default order is ascending order.

skipinteger · int32Optional

Use the skip query parameter to set the number of items to skip at the start of a collection.

Default: 0
topinteger · int32 · min: 1 · max: 100Optional

Use the top query parameter to specify the page size of the result set.

Default: 100
Responses
get
/call_rates

Create a call rate

post

Add a new call rate into system.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
prefixstring · min: 1 · max: 64Required

The call prefix of the rating.

typestring · enumRequired

The type of the rating:
Can be either:

  • LOCAL:
  • NATIONAL:
  • INTERNATIONAL:
  • MOBILE:
Default: LOCALPossible values:
free_secondsinteger · int32Required

Free seconds of the rating.

grace_periodinteger · int32Required

Grace period of the rating.

interval_1integer · int32 · min: 1Required

The first interval of the rating.

interval_ninteger · int32 · min: 1Required

The subsequent interval of the rating after the first one.

connect_feenumber · doubleRequired

Connect fee of the rating. Precision is five digits.

postcall_surchargenumber · doubleRequired

Postcall surcharge of the rating. Precision is five digits.

price_1number · doubleRequired

The price of the first interval. Precision is five digits.

price_nnumber · doubleRequired

The price of the subsequent interval after the first one. Precision is five digits.

descriptionstring · max: 1024Optional

The description text for this rule.

Responses
post
/call_rates

Retrieve a call rate

get

Retrieve call rate by it's unique ID.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
idall ofRequired

The unique ID of billing.

stringOptional

The unique ID of the resource.

Example: NzAwNTUxOTA5NzczMTQ4MTYw
Responses
get
/call_rates/{id}

Update a call rate

post

Update call rate.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
idall ofRequired

The unique ID of billing.

stringOptional

The unique ID of the resource.

Example: NzAwNTUxOTA5NzczMTQ4MTYw
Body
prefixstring · min: 1 · max: 64Optional

The call prefix of the rating.

typestring · enumOptional

The type of the rating:
Can be either:

  • LOCAL:
  • NATIONAL:
  • INTERNATIONAL:
  • MOBILE:
Default: LOCALPossible values:
free_secondsinteger · int32Optional

Free seconds of the rating.

grace_periodinteger · int32Optional

Grace period of the rating.

interval_1integer · int32 · min: 1Optional

The first interval of the rating.

interval_ninteger · int32 · min: 1Optional

The subsequent interval of the rating after the first one.

connect_feenumber · doubleOptional

Connect fee of the rating. Precision is five digits.

postcall_surchargenumber · doubleOptional

Postcall surcharge of the rating. Precision is five digits.

price_1number · doubleOptional

The price of the first interval. Precision is five digits.

price_nnumber · doubleOptional

The price of the subsequent interval after the first one. Precision is five digits.

descriptionstring · max: 1024Optional

The description text for this rule.

Responses
post
/call_rates/{id}

No content