User Tools

Site Tools


api:roaming:text:update

API : Roaming Text Update

Introduction

This request will update a roaming text price object.

Request

URL https://api.telecomx.dk/roaming/text/ID
Method POST
Access level ADMIN
Param ID Id (24-char hex string).
Body cost Number [optional] Pr. message cost.
wholesale Number [optional] Pr. message reseller cost.
price Number [optional] Pr. message customer price.

Request body example

{
  cost: 0.2,
  wholesale: 0.5,
  price: 0.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.
cost Number Pr. message cost.
wholesale Number Pr. message reseller cost.
price Number Pr. message customer price.

Example

{
  _id: '123457890ABCDEF1234578',
  stayingRegion: 'EU',
  cost: 1.0,
  wholesale: 1.5,
  price: 1.75
}

Errors

Error code Message Description
422 cost Cost is invalid
422 wholesale Wholesale is invalid
422 price Price is invalid
403 access_denied Insufficient access level
500 internal_error <Unspecified>
api/roaming/text/update.txt · Last modified: 2014/06/04 14:11 by Per Møller

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki