Viewing docs as

How to manage subscriptions

Snippet config

Credentials will be cleared when you close the page.

Get subscription info

Activate new user

curl \
    -u ${CLIENT_ID}:${CLIENT_SECRET} \
    -H 'Content-Type: application/json'
    -d '
    {
        "bssid": "operator_name",
        "iccid": "2420198416000015720",
        "msisdn": "46737678218",
        "userid": "abcdefghijklm"
    }
    ' \
    https://api.wgtwo.com/provision/v1/activate

Provision replacement SIM

Depending on the logistics of getting a new SIM just using /provision/changesim can also work, since the old SIM already becomes unfunctional after changesim.

Steps

  1. Block the subscription
  2. Change the SIM
  3. Unblock subscription

Block subscription

curl \
    -u ${CLIENT_ID}:${CLIENT_SECRET} \
    -H 'Content-Type: application/json'
    -d '
    {
        "bssid": "operator_name",
        "msisdn": "46737678218",
        "userid": "abcdefghijklm"
    }
    ' \
    https://api.wgtwo.com/provision/v1/block

Change SIM

curl \
    -u ${CLIENT_ID}:${CLIENT_SECRET} \
    -H 'Content-Type: application/json'
    -d '
    {
        "bssid": "operator_name",
        "msisdn": "46737678218",
        "newIccid": "2420198416000015720",
        "oldIccid": "2420198412148748973",
        "userid": "abcdefghijklm"
    }
    ' \
    https://api.wgtwo.com/provision/v1/changesim

Unblock subscription

curl \
    -u ${CLIENT_ID}:${CLIENT_SECRET} \
    -H 'Content-Type: application/json'
    -d '
    {
        "bssid": "operator_name",
        "msisdn": "46737678218",
        "userid": "abcdefghijklm"
    }
    ' \
    https://api.wgtwo.com/provision/v1/unblock

Freeze subscription

See block subscription

Unfreeze subscription

See unblock subscription

Restrict highspeed data

curl \
    -u ${CLIENT_ID}:${CLIENT_SECRET} \
    -H 'Content-Type: application/json'
    -d '
    {
        "bssid": "operator_name",
        "service": {
            "action": "REMOVE",
            "name": "DATA_HIGHSPEED"
        },
        "msisdn": "46737678218",
        "userid": "abcdefghijklm"
    }
    ' \
    https://api.wgtwo.com/provision/v1/update

Disable roaming

Steps

  1. Remove roaming
  2. Remove roaming data

Remove roaming

curl \
    -u ${CLIENT_ID}:${CLIENT_SECRET} \
    -H 'Content-Type: application/json'
    -d '
    {
        "bssid": "operator_name",
        "service": {
            "action": "REMOVE",
            "name": "ROAMING"
        },
        "msisdn": "46737678218",
        "userid": "abcdefghijklm"
    }
    ' \
    https://api.wgtwo.com/provision/v1/update

Remove roaming data

Enable roaming

Steps

  1. Add roaming
  2. Add roaming data

Add roaming

curl \
    -u ${CLIENT_ID}:${CLIENT_SECRET} \
    -H 'Content-Type: application/json'
    -d '
    {
        "bssid": "operator_name",
        "service": {
            "action": "ADD",
            "name": "ROAMING"
        },
        "msisdn": "46737678218",
        "userid": "abcdefghijklm"
    }
    ' \
    https://api.wgtwo.com/provision/v1/update

Add roaming data

Terminate subscription

curl \
    -u ${CLIENT_ID}:${CLIENT_SECRET} \
    -H 'Content-Type: application/json'
    -d '
    {
        "bssid": "operator_name",
        "msisdn": "46737678218",
        "userid": "abcdefghijklm"
    }
    ' \
    https://api.wgtwo.com/provision/v1/terminate

Change MSISDN for a SIM

curl \
    -u ${CLIENT_ID}:${CLIENT_SECRET} \
    -H 'Content-Type: application/json'
    -d '
    {
        "bssid": "operator_name",
        "msisdn": "46737678218",
        "newMsisdn": "46727678209",
        "userid": "abcdefghijklm"
    } ' \
    https://api.wgtwo.com/provision/v1/changemsisdn

Remove a SIM from subscription

curl \
    -u ${CLIENT_ID}:${CLIENT_SECRET} \
    -H 'Content-Type: application/json'
    -d '
    {
        "bssid": "operator_name",
        "msisdn": "46737678218",
        "iccid": "2420198416000015720",
        "userid": "abcdefghijklm"
    }
    ' \
    https://api.wgtwo.com/provision/v1/dissociateSim