api:roaming:data:get
Table of Contents
API : Roaming Data Get
Introduction
This request will return a single roaming data price object.
Request
| URL | https://api.telecomx.dk/roaming/data/DATA_ID | |
|---|---|---|
| Method | GET | |
| Access level | VIEWER, MANAGER, OWNER, RESELLER, ADMIN. | |
| Param | DATA_ID | Id of the roaming data (24-char hex string). |
Query examples
https://api.telecomx.dk/roaming/data/1234567890ABCDEF12345678
Response
The response is a roaming data object.
| JSON object | ||
|---|---|---|
| _id | Id | Id |
| stayingRegion | String | The region the mobile phone is staying in: NORDIC, EU, REST_OF_EUROPE, WORLD1, WORLD2, WORLD3. |
| cost | Number | Pr. mb data cost. |
| wholesale | Number | Pr. mb data reseller cost. |
| price | Number | Pr. mb data customer price. |
Note that properties holding no value may be omitted from the object.
Response example
{ _id: '123457890ABCDEF1234578', stayingRegion: 'EU', cost: 1.0, wholesale: 1.5, price: 1.75 }
Errors
| Error code | Message | Description |
|---|---|---|
| 400 | bad_request | Id not found in request URI |
| 404 | id | Roaming data not found |
| 403 | access_denied | Insufficient access level |
| 500 | internal_error | <Unspecified> |
api/roaming/data/get.txt · Last modified: 2014/06/04 13:50 by Per Møller