get rates for number
POST /api/rest/customer/v1/check-rate
Parameters
Name |
Description |
data[type]
|
Resource type (check-rates)
|
data[attributes][rateplan-id]
|
Rateplan id
|
data[attributes][number]
|
Number
|
Request
Headers
Route
POST /api/rest/customer/v1/check-rate
Body
{"data":{"type":"check-rates","attributes":{"rateplan-id":"4bc5bbb8-445e-11ef-b3ec-0242ac120003","number":"44444444"}}}
Response
Headers
Status
201 Created
Body
{
"data": {
"id": "de944e65-bd33-4d7d-8778-fdef62aba495",
"type": "check-rates",
"links": {
"self": "http://example.org/api/rest/customer/v1/check-rates"
},
"attributes": {
"rateplan-id": "4bc5bbb8-445e-11ef-b3ec-0242ac120003",
"number": "44444444",
"rates": [
{
"prefix": "444",
"initial_rate": "0.0",
"initial_interval": 60,
"next_rate": "0.0",
"next_interval": 60,
"connect_fee": "0.0",
"reject_calls": false,
"valid_from": "2024-07-16T17:02:06.462Z",
"valid_till": "2024-07-18T17:02:06.462Z",
"network_prefix_id": 948,
"routing_tag_names": [
"ua_cli",
"us_cli"
],
"id": "4c04795c-445e-11ef-b3ec-0242ac120003"
}
]
}
}
}