NICEPAY Service Status API - Advance API
About NICEPAY Service Status API - Advance API
NICEPAY API Service Status Request uses to check service status from NICEPAY system. This API assist Merchant and NICEPAY team to monitoring status for each payment method and acknowledge incident status service detail on NICEPAY system. Merchant must register the NICEPAY service firsthand before using this API.
NICEPAY Service Status Request API
API Endpoint | /nicepay/api/serviceStatus.do |
|---|---|
Request Method | POST |
Description | Check Service Status API |
Merchant Token | SHA256(iMid+merchantKey) |
Request Format | application/json |
Request Parameter for NICEPAY Service Status Request
Parameter | Type | Size | Description | Example/Remark |
|---|---|---|---|---|
merchantToken Required | AN | 255 | Merchant Token | 141fd2368aa80ea0e600b1b4d7a42c1e731e74a27a03521e8e28150cc00bc05b |
iMid Required | AN | 10 | Merchant ID | IONPAYTEST
|
Response Parameter for NICEPAY Service Status Request
Parameter | Type | Size | Description | Example/Remark |
|---|---|---|---|---|
payMethod | Array | - | Payment Method | {} Payout and payment method QRIS are still on maintenance, other payment methods are available |
message | A | 255 | Status message | NICEPAY not fully operational
|
Date | N | 30 | Date Time check | 20180703170410 |
incidentDetail | Array | - | If service have down | [{}] |
Sample Parameter for NICEPAY Service Status Request
HashMap < String,Object >
requestMap = new HashMap < String, Object > ();
requestMap.put(“iMid”, ”nicePay.get(iMid)”);
requestMap.put(“merchantToken”, nicePay, makeToken(nicePay.get(iMid))
try { //Make json
ObjectMapper mapper = new ObjectMapper();
String contents = mapper.writeValueAsString(requestMap);
URL url = new URL(myDomain + "/nicepay/serviceStatus.do");
URLConnection conn = url.openConnection();
conn.setDoOutput(true);
conn.setUseCaches(false);
conn.setRequestProperty("Content-Type", "application/json");
DataOutputStream os = null;
try {
os = new DataOutputStream(conn.getOutputStream());
os.writeBytes(contents);
os.flush();
} finally {
if (out != null) os.close();
}
InputStreamReader isr = new InputStreamReader(conn.getInputStream(), "UTF-8");
BufferedReader br = new BufferedReader(isr);
String str = "";
resultData = "";
while ((str = br.readLine()) != null) {
resultData += str;
}
br.close();
} catch(MalformedURLException e) {
System.out.println("The URL address is incorrect.");
e.printStackTrace();
} catch(Exception e) {
System.out.println("It can't connect to the web page.");
e.printStackTrace();
}