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, RESELLER_ADMIN or ADMIN. | |
| Param | DATA_ID | Id of the roaming data (24-char hex string). |
Query examples
https://api.telecomx.dk/roaming/data/650000000000000000000001
Response
The response is a roaming data object.
| JSON object | ||
|---|---|---|
| _id | Id | Id |
| stayingRegion | String | The region the mobile phone is staying in: EU_NORDIC, REST_OF_EUROPE, WORLD1, WORLD2, WORLD3. |
| cost | Number | Pr. mb data cost (RESELLER_ADMIN/ADMIN only). |
| wholesale | Number | Pr. mb data reseller cost (RESELLER, RESELLER_ADMIN or ADMIN only). |
| price | Number | Pr. mb data customer price. |
Note that properties holding no value may be omitted from the object.
Response example
{ "_id": "650000000000000000000001", "stayingRegion": "EU_NORDIC", "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 | A minimum access level of 'VIEWER' required |
| 500 | internal_error | <Unspecified> |
api/roaming/data/get.txt · Last modified: by Mikkel Meerwaldt Jørgensen