Billing
Manage your billing.
Retrieve details of tenant billing configurations.
OK
Error
GET /api/tenant/billing HTTP/1.1
Host: HOSTNAME:8887
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"enabled": false,
"account": "TENANT",
"type": "OFFLINE"
}Update tenant billing configurations.
Enable call billing or not.
falseThe billing account:
Can be either:
TENANT: Use company account for billing.USER: Use private user account for billing.
TENANTPossible values: The billing type:
Can be either:
OFFLINE: Use offline charging for billing.ONLINE: Use online charging for billing.
OFFLINEPossible values: OK
No content
Error
POST /api/tenant/billing HTTP/1.1
Host: HOSTNAME:8887
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 53
{
"enabled": false,
"account": "TENANT",
"type": "OFFLINE"
}No content
Retrieve a collection of call rates
Use the filter query parameter to retrieve just a subset of a collection.
Use the search query parameter to restrict the results of a request to match a search criterion.
Use the orderby query parameter to specify the sort order of the items returned from server.
The default order is ascending order.
Use the skip query parameter to set the number of items to skip at the start of a collection.
0Use the top query parameter to specify the page size of the result set.
100OK
Error
GET /api/call_rates HTTP/1.1
Host: HOSTNAME:8887
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"count": 100,
"items": [
{
"id": "NzAwNTUxOTA5NzczMTQ4MTYw",
"prefix": "text",
"type": "LOCAL",
"free_seconds": 1,
"grace_period": 1,
"interval_1": 1,
"interval_n": 1,
"postcall_surcharge": 1,
"price_1": 1,
"price_n": 1,
"description": "text"
}
]
}Add a new call rate into system.
The call prefix of the rating.
The type of the rating:
Can be either:
LOCAL:NATIONAL:INTERNATIONAL:MOBILE:
LOCALPossible values: Free seconds of the rating.
Grace period of the rating.
The first interval of the rating.
The subsequent interval of the rating after the first one.
Connect fee of the rating. Precision is five digits.
Postcall surcharge of the rating. Precision is five digits.
The price of the first interval. Precision is five digits.
The price of the subsequent interval after the first one. Precision is five digits.
The description text for this rule.
OK
Error
POST /api/call_rates HTTP/1.1
Host: HOSTNAME:8887
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 180
{
"prefix": "text",
"type": "LOCAL",
"free_seconds": 1,
"grace_period": 1,
"interval_1": 1,
"interval_n": 1,
"connect_fee": 1,
"postcall_surcharge": 1,
"price_1": 1,
"price_n": 1,
"description": "text"
}{
"id": "NzAwNTUxOTA5NzczMTQ4MTYw"
}Retrieve call rate by it's unique ID.
The unique ID of billing.
The unique ID of the resource.
NzAwNTUxOTA5NzczMTQ4MTYwOK
Error
GET /api/call_rates/{id} HTTP/1.1
Host: HOSTNAME:8887
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"id": "NzAwNTUxOTA5NzczMTQ4MTYw",
"prefix": "text",
"type": "LOCAL",
"free_seconds": 1,
"grace_period": 1,
"interval_1": 1,
"interval_n": 1,
"connect_fee": 1,
"postcall_surcharge": 1,
"price_1": 1,
"price_n": 1,
"description": "text"
}Update call rate.
The unique ID of billing.
The unique ID of the resource.
NzAwNTUxOTA5NzczMTQ4MTYwThe call prefix of the rating.
The type of the rating:
Can be either:
LOCAL:NATIONAL:INTERNATIONAL:MOBILE:
LOCALPossible values: Free seconds of the rating.
Grace period of the rating.
The first interval of the rating.
The subsequent interval of the rating after the first one.
Connect fee of the rating. Precision is five digits.
Postcall surcharge of the rating. Precision is five digits.
The price of the first interval. Precision is five digits.
The price of the subsequent interval after the first one. Precision is five digits.
The description text for this rule.
OK
No content
Error
POST /api/call_rates/{id} HTTP/1.1
Host: HOSTNAME:8887
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 180
{
"prefix": "text",
"type": "LOCAL",
"free_seconds": 1,
"grace_period": 1,
"interval_1": 1,
"interval_n": 1,
"connect_fee": 1,
"postcall_surcharge": 1,
"price_1": 1,
"price_n": 1,
"description": "text"
}No content
Destroy a call rate.
The unique ID of billing.
The unique ID of the resource.
NzAwNTUxOTA5NzczMTQ4MTYwNo Content
No content
Error
POST /api/call_rates/{id}/destroy HTTP/1.1
Host: HOSTNAME:8887
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
No content
Last updated