api:mvno:account:ott:topup
Table of Contents
API : MVNO Account Top up
Introduction
This request will top up data on an existing MVNO account. The MVNO data is only bought for the current month.
The product
Request
| URL | https://api.telecomx.dk/mvno/ott/ACCOUNT_ID/topup/PRODUCT_ID | ||
|---|---|---|---|
| Method | POST | ||
| Param | ACCOUNT_ID | Id of the MVNO account (24 hex-char string) | |
| PRODUCT_ID | Id of the MVNO_DATA_TOP_UP product (24 hex-char string). The product ID should be a reseller product, belonging the reseller of the MVNO account's customer. | ||
| Body | token | The one-time token sent to the mobile number | |
Query example
https://api.telecomx.dk/mvno/ott/1234567890ABCDEF12345678/topup/6414567890ABCDEF12345678
Response
| Json object | ||
|---|---|---|
| success | Boolean | True if data is successfully bought and added to the mobile account. |
Example
{ success: true }
Errors
| Error code | Message | Description |
|---|---|---|
| 401 | authentication_required | Invalid token |
| 403 | updating | MVNO account cannot be changed as it is currently being updated |
| 404 | id | MVNO account not found |
| 404 | product | Product not found |
| 409 | number | The number state is invalid, should be IN_USE or PORTING_OUT |
| 500 | internal_error | <Unspecified> |
api/mvno/account/ott/topup.txt · Last modified: 2023/09/18 08:31 by Joakim Andersen