latestOpenAPI 3.1.0PortSIP2026-08-105581112.6 MB

577415d4a3d5

Billing

Create a call rate

Add a new call rate into system.

post/call_rates

Request body

prefixstring required

The call prefix of the rating.

type'LOCAL' | 'NATIONAL' | 'INTERNATIONAL' | 'MOBILE' required

The type of the rating:
Can be either:

  • LOCAL:
  • NATIONAL:
  • INTERNATIONAL:
  • MOBILE:
free_secondsinteger required

Free seconds of the rating.

grace_periodinteger required

Grace period of the rating.

interval_1integer required

The first interval of the rating.

interval_ninteger required

The subsequent interval of the rating after the first one.

connect_feenumber double required

Connect fee of the rating. Precision is five digits.

postcall_surchargenumber double required

Postcall surcharge of the rating. Precision is five digits.

price_1number double required

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

price_nnumber double required

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

descriptionstring

The description text for this rule.

Response

OK

idstring

The unique ID of the resource.

Example response

{
  "id": "NzAwNTUxOTA5NzczMTQ4MTYw"
}