Inquiry PLN
API to check whether PLN Prepaid Subscriber is valid or invalid.
Path
Method | Path |
---|---|
POST | v1/legacy/index |
Test Case
Use below test case in development environment only.
hp | Response Message |
---|---|
12345678901 | SUCCESS |
Other than 12345678901 | INCORRECT DESTINATION NUMBER |
Request Body
Attributes | Type | Description | Mandatory |
---|---|---|---|
commands | String | Value: inquiry_pln | Yes |
username | String | Your registered phone number | Yes |
hp | String | Customer ID | Yes |
sign | String | Signature. Value: md5(username+api_key+hp) | Yes |
{
"commands" : "inquiry_pln",
"username" : "123123123",
"hp" : "12345678901",
"sign" : "6c4bbf2365e7e40423a76b713e3a5f0b"
}
Response
Attributes | Type | Description | Mandatory |
---|---|---|---|
status | String | Transaction Status. List of status: 1:SUCCESS 2:FAILED | Yes |
hp | String | Customer ID | Yes |
meter_no | String | Meter Number | Yes |
subscriber_id | String | Customer ID information | Yes |
name | String | Customer name | Yes |
segment_power | String | Segment Power | Yes |
message | String | Message | Yes |
rc | String | Response code. See response code list | Yes |
{
"data": {
"status": "1",
"hp": "12345678901",
"meter_no": "548933889287",
"subscriber_id": "12345678901",
"name": "Sintya Oktaviani",
"segment_power": "R1 \/000001300",
"message": "SUCCESS",
"rc": "00"
}
}
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 inquiry PLN check code explanation using Laravel.
Or you can see this video for inquiry PLN check code explanation using PHP.
Table of Contents