GetUserQuota

GET

User Quota

Returns available Quota for Indosat Ooredoo subscribers who has purchased data package.

 

To get the subscriber's remaining quota, every request must pass in the access_token value in the header. For more information on how to generate your access_token, please refer to this section.

 

 

Request

Method URL
GET https://blinke-stage.apigee.net/io/users/mobile_number/quota

 

 

Request Headers

Name Description Mandatory
Authorization Bearer access_token Yes
Content-Type application/json Yes

 

 

Path Parameter

Name Description
mobile_number*
string
The Indosat Ooredoo subscriber's mobile phone number (e.g. valid prefix number: 08xx – ISAT Number).

 

 

Response

Result of the successful request contains following information:

Name Description
msisdn
boolean
The Indosat Ooredoo subscriber mobile phone number / msisdn.
quotas
array

An array of active product/package.

results[]
struct

A single active product/package information

productId
string
Reference to product identifier.
data
struct

All of the data benefit for this product.

appsQuota
struct

Describe daily apps quota data benefit of this product

balance
long
The remaining balance of daily apps quota in byte.
quota
long
Initial quota of daily apps quota in byte.
usage
long
Quota usage of daily apps quota in byte.
mainQuota
struct

Describe main quota data benefit of this product

balance
long
The remaining balance of main quota in byte.
quota
long
Initial quota of main quota in byte.
usage
long
Quota usage of main quota in byte.
nightQuota
struct

Describe night quota data benefit of this product

balance
long
The remaining balance of night quota in byte.
quota
long
Initial quota of night quota in byte.
usage
long
Quota usage of night quota in byte.

 

 

Response (Example)

HTTP Code Response
200
{
    "quotas": [
        {
            "productId": "968f6ee8-e252-4723-95a8-96c470dd666e",
            "data": {
                "appsQuota": {
                    "balance": 8589934592,
                    "quota": 10737418240,
                    "usage": 2147483648
                },
                "mainQuota": {
                    "balance": 9663676416,
                    "quota": 10737418240,
                    "usage": 1073741824
                },
                "nightQuota": {
                    "balance": 20401094656,
                    "quota": 21474836480,
                    "usage": 1073741824
                }
            },
            "modified": "1508909727011"
        }
    ],
    "msisdn": "085888603300"
}
404
{
    "success": false,
    "error": {
        "code": "G-404001",
        "message": "There is no user with msisdn : 085888603100"
    }
}
401
{
    "fault": {
        "faultstring": "Invalid Access Token",
        "detail": {
            "errorcode": "keymanagement.service.invalid_access_token"
        }
    }
}

 

 

Sandbox limitation
  • Please use the following mobile_number for sandbox environment:

    Mobile Phone Active package
    085888603300 Internet 10GB (uuid: 968f6ee8-e252-4723-95a8-96c470dd666e)
    08558063720 Internet 10GB (uuid: 968f6ee8-e252-4723-95a8-96c470dd666e)
    085798771688 Internet 10GB (uuid: 968f6ee8-e252-4723-95a8-96c470dd666e)
    08558567242 Internet 10GB (uuid: 968f6ee8-e252-4723-95a8-96c470dd666e)
    085798771666 Internet 10GB (uuid: 968f6ee8-e252-4723-95a8-96c470dd666e)

Resource URL

https://blinke-stage.apigee.net /io/users/{msisdn}/quota

Header Parameters


Name Values Description
Content-Type
(required)

JSON

Authorization
(required)

Bearer access_token

Request Body

HTTP Basic

OAuth 2.0

API Key

Reset

Make a request and see the response.

Make a request and see the response.

Make a request and see the response.

Resource Summary

Security

Working...