Version 1
Check Balance
API to get remaining balance in your IAK wallet.
Path
| Method | Path |
|---|---|
| POST | v1/legacy/index |
Request Body
| Attributes | Type | Description | Mandatory |
|---|---|---|---|
| commands | String | Value: balance | Yes |
| username | String | Your registered phone number | Yes |
| sign | String | Signature. Value: md5(username+api_key+'bl') | Yes |
{
"commands" : "balance",
"username" : "123123123",
"sign" : "df5e80e8ab7f94a905617282ad8c26f3"
}
<?xml version="1.0" ?>
<mp>
<commands>balance</commands>
<username>123123123</username>
<sign>df5e80e8ab7f94a905617282ad8c26f3</sign>
</mp>
Response
| Attributes | Type | Description | Mandatory |
|---|---|---|---|
| balance | Double | Your balance | Yes |
{
"data": {
"balance": 997136249
}
}
<?xml version="1.0"?>
<mp>
<balance>997136249</balance>
</mp>
Live Testing
Request URL
https://testprepaid.mobilepulsa.net/v1/legacy/index
Request Method
Request Header
Content-Type: application/json
Body
Result
Tutorial Video
You can see this video for check balance code explanation using Laravel.

Or you can see this video for check balance code explanation using PHP.

Version 1 Versus Version 2
IAK prepaid API have 2 version. Actually the flow and process behind is still the same. The difference is in version 2, its more clear about the endpoint path, request body and response body format. In version 1, each service is defined by its request body meanwhile the version 2 is in each path already defined the service. The request body and response body is more clearly in version 2. Below is the summary of difference between version 1 and version 2.
Price List
API to get pricelist of IAK prepaid products.