Check Status

API to check status prepaid transaction.

Path

MethodPath
POSTapi/check-status

Request Body

AttributesTypeDescriptionMandatory
usernameStringYour registered phone numberYes
ref_idStringYour order number / reference ID ( must unique )Yes
signStringSignature. Value: md5(username+api_key+ref_id)Yes
{
  "username" : "082210138584",
  "ref_id"   : "order001",
  "sign"     : "96e1028f6beaa817ee3670a39c01c69d"
}
<?xml version="1.0"?>
<mp>
  <username>082210138584</username>
  <ref_id>order001</ref_id>
  <sign>96e1028f6beaa817ee3670a39c01c69d</sign>
</mp>

Response

AttributesTypeDescriptionMandatory
ref_idStringYour order number / reference ID ( must unique )Yes
statusDoubleTransaction Status. List of status:
0:PROCESS 1:SUCCESS 2:FAILED
Yes
product_codeStringProduct CodeYes
customer_idStringCustomer IDYes
priceDoubleProduct priceYes
messageStringMessageYes
snStringSerial Number (only appear when status is success). See here for SN formatNo
pinStringPin (only appear in games product)No
activation_codeStringActivation Code (only appear in esim product)No
balanceDoubleFinal BalanceYes
tr_idIntegerTransaction IDYes
rcStringResponse code. See response code listYes

Success Response Example

{
  "data": {
    "ref_id": "order001",
    "status": 1,
    "product_code": "xld25000",
    "customer_id": "0817777215",
    "price": 25000,
    "message": "SUCCESS",
    "sn": "123456789",
    "balance": 997061249,
    "tr_id": 3482,
    "rc": "00"
  }
}
<?xml version="1.0"?>
<mp>
  <ref_id>order001</ref_id>
  <status>1</status>
  <product_code>xld25000</code>
  <customer_id>0817777215</customer_id>
  <price>25000</price>
  <message>SUCCESS</message>
  <sn>123456789</sn>
  <balance>69000</balance>
  <tr_id>6159309</tr_id>
  <rc>00</rc>
</mp>

Failed Response Example

{
  "data": {
    "ref_id": "order001",
    "status": 2,
    "product_code": "xld25000",
    "customer_id": "0817777215",
    "price": 25000,
    "message": "FAILED",
    "balance": 997061249,
    "tr_id": 3482,
    "rc": "07"
  }
<?xml version="1.0"?>
<mp>
  <ref_id>order001</ref_id>
  <status>2</status>
  <product_code>xld25000</product_code>
  <customer_id>0817777215</customer_id>
  <price>25000</price>
  <message>FAILED</message>
  <balance>69000</balance>
  <tr_id>6159309</tr_id>
  <rc>07</rc>
</mp>

Live Testing

Request URL
https://prepaid.iak.dev/api/check-status
Request Method
Request Header
Content-Type: application/json
Body
Result

Tutorial Video

You can see this video for check status code explanation using Laravel.

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