My light mobile API Documentation

Postman collection → OpenAPI spec →

Introduction

U2c Mobile API Documentation.

Authenticating requests

To authenticate requests, include an Authorization header with the value "Bearer {YOUR_API_TOKEN}".

All authenticated endpoints are marked with a requires authentication badge in the documentation below.

You can retrieve your token by calling login method.

Endpoints

POST api/login

POST
https://api2.mylightmobile.com
/api/login

This endpoint allows you to fetch your access token..

Headers

Content-Type
Example:
application/json
Accept
Example:
application/json

Body Parameters

Example request:
$client = new \GuzzleHttp\Client();
$url = 'https://api2.mylightmobile.com/api/login';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'email' => 'cassie52@example.net',
            'password' => 'password',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response:

GET api/brands

GET
https://api2.mylightmobile.com
/api/brands
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_API_TOKEN}
Content-Type
Example:
application/json
Accept
Example:
application/json
Example request:
$client = new \GuzzleHttp\Client();
$url = 'https://api2.mylightmobile.com/api/brands';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response:
Headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
    "status_code": 401,
    "success": false,
    "message": "Unauthenticated.",
    "data": null
}

GET api/brand/{id}

GET
https://api2.mylightmobile.com
/api/brand/{id}
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_API_TOKEN}
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

id
string
required

The ID of the brand.

Example:
564
Example request:
$client = new \GuzzleHttp\Client();
$url = 'https://api2.mylightmobile.com/api/brand/564';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response:
Headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
    "status_code": 401,
    "success": false,
    "message": "Unauthenticated.",
    "data": null
}

GET api/activation/plans/{brand_id}

GET
https://api2.mylightmobile.com
/api/activation/plans/{brand_id}
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_API_TOKEN}
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

brand_id
string
required

The ID of the brand.

Example:
564
Example request:
$client = new \GuzzleHttp\Client();
$url = 'https://api2.mylightmobile.com/api/activation/plans/564';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response:
Headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
    "status_code": 401,
    "success": false,
    "message": "Unauthenticated.",
    "data": null
}

GET api/refill/plans/{brand_id}

GET
https://api2.mylightmobile.com
/api/refill/plans/{brand_id}
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_API_TOKEN}
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

brand_id
string
required

The ID of the brand.

Example:
564
Example request:
$client = new \GuzzleHttp\Client();
$url = 'https://api2.mylightmobile.com/api/refill/plans/564';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response:
Headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
    "status_code": 401,
    "success": false,
    "message": "Unauthenticated.",
    "data": null
}

GET api/activation/plan/{id}

GET
https://api2.mylightmobile.com
/api/activation/plan/{id}
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_API_TOKEN}
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

id
string
required

The ID of the plan.

Example:
architecto
Example request:
$client = new \GuzzleHttp\Client();
$url = 'https://api2.mylightmobile.com/api/activation/plan/architecto';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response:
Headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
    "status_code": 401,
    "success": false,
    "message": "Unauthenticated.",
    "data": null
}

GET api/refill/plan/{id}

GET
https://api2.mylightmobile.com
/api/refill/plan/{id}
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_API_TOKEN}
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

id
string
required

The ID of the plan.

Example:
architecto
Example request:
$client = new \GuzzleHttp\Client();
$url = 'https://api2.mylightmobile.com/api/refill/plan/architecto';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response:
Headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
    "status_code": 401,
    "success": false,
    "message": "Unauthenticated.",
    "data": null
}

POST api/activation

POST
https://api2.mylightmobile.com
/api/activation
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_API_TOKEN}
Content-Type
Example:
application/json
Accept
Example:
application/json

Body Parameters

Example request:
$client = new \GuzzleHttp\Client();
$url = 'https://api2.mylightmobile.com/api/activation';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'brand_id' => 'architecto',
            'plan_id' => 'architecto',
            'imei' => 4326.41688,
            'first_name' => 'architecto',
            'last_name' => 'architecto',
            'email' => 'zbailey@example.net',
            'address' => 'architecto',
            'city' => 'architecto',
            'state' => 'architecto',
            'zipcode' => 4326.41688,
            'sim_type' => 'physical',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

POST api/activation-calculation

POST
https://api2.mylightmobile.com
/api/activation-calculation
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_API_TOKEN}
Content-Type
Example:
application/json
Accept
Example:
application/json

Body Parameters

Example request:
$client = new \GuzzleHttp\Client();
$url = 'https://api2.mylightmobile.com/api/activation-calculation';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'plan_id' => 'architecto',
            'month' => 'architecto',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

POST api/refill

POST
https://api2.mylightmobile.com
/api/refill
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_API_TOKEN}
Content-Type
Example:
application/json
Accept
Example:
application/json

Body Parameters

Example request:
$client = new \GuzzleHttp\Client();
$url = 'https://api2.mylightmobile.com/api/refill';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'mdn' => 'bngzmi',
            'plan_id' => 'architecto',
            'brand_id' => 'architecto',
            'amount' => 4326.41688,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

POST api/portin

POST
https://api2.mylightmobile.com
/api/portin
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_API_TOKEN}
Content-Type
Example:
application/json
Accept
Example:
application/json

Body Parameters

Example request:
$client = new \GuzzleHttp\Client();
$url = 'https://api2.mylightmobile.com/api/portin';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'brand_id' => 'architecto',
            'plan_id' => 'architecto',
            'imei' => '822569775449171',
            'last_name' => 'architecto',
            'email' => 'zbailey@example.net',
            'address' => 'architecto',
            'city' => 'architecto',
            'state' => 'architecto',
            'zipcode' => 4326.41688,
            'sim_type' => 'esim',
            'mdn' => '1374491716806',
            'account_number' => 'architecto',
            'account_password' => 'architecto',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

GET api/transaction/{public_id}

GET
https://api2.mylightmobile.com
/api/transaction/{public_id}
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_API_TOKEN}
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

public_id
string
required

The ID of the public.

Example:
architecto
Example request:
$client = new \GuzzleHttp\Client();
$url = 'https://api2.mylightmobile.com/api/transaction/architecto';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response:
Headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
    "status_code": 401,
    "success": false,
    "message": "Unauthenticated.",
    "data": null
}

POST api/esim/qr

POST
https://api2.mylightmobile.com
/api/esim/qr
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_API_TOKEN}
Content-Type
Example:
application/json
Accept
Example:
application/json

Body Parameters

Example request:
$client = new \GuzzleHttp\Client();
$url = 'https://api2.mylightmobile.com/api/esim/qr';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'brand_id' => 'architecto',
            'sim_no' => 'architecto',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

GET api/esim/qr/{public_id}

GET
https://api2.mylightmobile.com
/api/esim/qr/{public_id}
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_API_TOKEN}
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

public_id
string
required

The ID of the public.

Example:
architecto
Example request:
$client = new \GuzzleHttp\Client();
$url = 'https://api2.mylightmobile.com/api/esim/qr/architecto';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response:
Headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
    "status_code": 401,
    "success": false,
    "message": "Unauthenticated.",
    "data": null
}

POST api/plans/activation/month-wise

POST
https://api2.mylightmobile.com
/api/plans/activation/month-wise
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_API_TOKEN}
Content-Type
Example:
application/json
Accept
Example:
application/json
Example request:
$client = new \GuzzleHttp\Client();
$url = 'https://api2.mylightmobile.com/api/plans/activation/month-wise';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

POST api/plans/activation/{id}/month-wise

POST
https://api2.mylightmobile.com
/api/plans/activation/{id}/month-wise
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_API_TOKEN}
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

id
string
required

The ID of the activation.

Example:
architecto
Example request:
$client = new \GuzzleHttp\Client();
$url = 'https://api2.mylightmobile.com/api/plans/activation/architecto/month-wise';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));