User Tools

Site Tools


api:mvnoroamingpartners:upload

API : MVNO roaming partners Upload

Introduction

This request will return upload an excel file of roaming partners, and return them as JSON.

Request

URL https://api.telecomx.dk/mvno/roamingpartner
Method POST
Access level ADMIN.
Property Type Description
file file Excel file of roaming partners. Can contain both existing and new roaming partners.

Query examples

https://api.telecomx.dk/mvno/roamingpartner/upload

Response

JSON object
total Number of documents that are returned.
roamingPartners Array of documents, see definition below
Document object (JSON)
_id String 5 char ID code for the telecom.
operator String 5 char ID code for the telecom.
country string Name of the country the telecom operates in.
countryCode String ISO3166-2 2-char country code.
code Number Operator code as used in billing data.
region String Region telecom belongs to: euNordic, restOfEurope, world1, world2, world3.

Note that properties holding no value may be omitted from the object.

Example - normal

{
    "total": 2,
    "roamingPartners": [
        {
            "_id": "ABCDF",
            "operator": "Nordic Telecom",
            "country": "Sweden",
            "countryCode": "SE",
            "code": 77781,
            "region": "world1"
        },
        {
            "_id": "EFGHAS",
            "operator": "Polynesia Mobilea",
            "country": "French Polynesia",
            "countryCode": "PF",
            "code": 12345,
            "region": "world3"
        }
     ]
}

Errors

Error code Message Description
403 access_denied Insufficient access level
500 internal_error <Unspecified>
api/mvnoroamingpartners/upload.txt · Last modified: 2020/02/24 08:59 by Joakim Andersen

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki