api:roaming:voice:update
Table of Contents
API : Roaming Voice Update
Introduction
This request will update a roaming voice price object.
Request
| URL | https://api.telecomx.dk/roaming/voice/ID | ||
|---|---|---|---|
| Method | POST | ||
| Access level | ADMIN | ||
| Param | ID | Id of the roaming voice (24-char hex string). | |
| Body | connectionFeeCost | Number | Connection fee cost. |
| connectionFeeWholesale | Number | Connection fee for resellers. | |
| connectionFee | Number | Connection fee for customers. | |
| rateCost | Number | Pr. minute cost. | |
| rateWholesale | Number | Pr. minute reseller cost. | |
| rate | Number | Pr. minute customer price. | |
Request body example
{ connectionFeeCost: 0.02, connectionFeeWholesale: 0.05, connectionFee: 0.2, rateCost: 1.0, rateWholesale: 1.5, rate: 1.75 }
Response
The response will be the newly created roaming voice, if no errors occurred.
| JSON object | ||
|---|---|---|
| _id | Id | Id |
| stayingRegion | String | The region the mobile phone is staying in: NORDIC, EU, REST_OF_EUROPE, WORLD1, WORLD2, WORLD3. |
| calledRegion | String | The region called: HOMELAND, NORDIC, EU, REST_OF_EUROPE, WORLD1, WORLD2, WORLD3 (only for direction OUT). |
| connectionFeeCost | Number | Connection fee cost. |
| connectionFeeWholesale | Number | Connection fee for resellers. |
| connectionFee | Number | Connection fee for customers. |
| rateCost | Number | Pr. minute cost. |
| rateWholesale | Number | Pr. minute reseller cost. |
| rate | Number | Pr. minute customer price. |
Example
{ _id: '123457890ABCDEF1234578', stayingRegion: 'EU', calledRegion: 'HOMELAND', connectionFeeCost: 0.02, connectionFeeWholesale: 0.05, connectionFee: 0.2, rateCost: 1.0, rateWholesale: 1.5, rate: 1.75 }
Errors
| Error code | Message | Description |
|---|---|---|
| 422 | connectionFeeCost | ConnectionFeeCost is invalid |
| 422 | connectionFeeWholesale | ConnectionFeeWholesale is invalid |
| 422 | connectionFee | ConnectionFee is invalid |
| 422 | rateCost | RateCost is invalid |
| 422 | rateWholesale | RateWholesale is invalid |
| 422 | rate | Rate is invalid |
| 403 | access_denied | Insufficient access level |
| 500 | internal_error | <Unspecified> |
api/roaming/voice/update.txt · Last modified: 2014/06/04 14:00 by Per Møller