---
title: Status Inquiry - API Paylater
slug: en/nicepay-api-non-snap-status-inquiry-api-paylater
description: Information about Non-SNAP Payment API - Status Inquiry - Paylater API available on NICEPAY system
image: https://archbee-image-uploads.s3.amazonaws.com/ZHvSjR5ZrsoxwKbJa3xmo/jDhLJU9fxq_nPDZbdD3T6_nicepay-docs-logo.png
icon: {"faIcon":"fa-solid fa-book"}
docTags: 
createdAt: 2022-12-01T07:48:24.000Z
---

# About API Paylater Status Inquiry

***

Integration of the Status Inquiry API in Paylater is required so that Merchants can check the ongoing status of the transaction process carried out by the Customer whether the status is success, fail, and others. So, the system can have a report on that information.



# API Paylater Status Inquiry

***

Integration of Inquiry Status on the Paylater aims to enable Merchants to connect with the API system to check the status of Paylater payment methods regularly.



| **API End Point**  | `/nicepay/direct/v2/inquiry`                                |
| ------------------ | ------------------------------------------------------------ |
| **Request Method** | <font color="#3b9f0f">**POST**</font>****                    |
| **Description**    | Performs Inquiry Request to NICEPAY for Status Checking&#xD; |
| **Merchant Token** | SHA256(`timeStamp`+`iMid`+`referenceNo`+`amt`+`merchantKey`) |
| **Request Format** | `application/json`                                           |

:::hint{type="info"}
When your `dbProcessUrl` received a notification, NICEPAY strongly encourage Merchants to verify the notification using the [Status Inquiry - API Paylater](docId\:C7bY1comgVlnAUoQJixnx)
:::

:::hint{type="info"}
`Notification Handling` is very useful to minimize the risk of Fraud. We strongly encourage Merchants to verify `Notification Handling`. You can read more detailed information about `Notification Handling` on [Notification - API Paylater](docId\:S6hf8yM1-SQ0qMTGLZWGy) page.
:::



## Request Parameter for Paylater Status Inquiry&#x20;

***

The following is a list of responses to request status inquiries on Paylater transaction processes.

| **Parameter**                                                | **Type** | **Size** | **Description**                        | **Example / Notes**                                              |
| ------------------------------------------------------------ | -------- | -------- | -------------------------------------- | ---------------------------------------------------------------- |
| `timeStamp`<br /><font color="#2166ae">Required</font>&#xD;  | N        | 14       | Request Timestamp (`YYYYMMDDHH24MISS`) | 20221114114338                                                   |
| `tXid`<br /><font color="#2166ae">Required</font>          | AN&#xD;  | 30       | Transaction ID                         | PAYLOANTES06202212051018325178                                   |
| `iMid`<br /><font color="#2166ae">Required</font>           | AN       | 10       | Merchant ID                            | PAYLOANTES                                                       |
| `referenceNo`<br /><font color="#2166ae">Required</font>    | ANS      | 40       | Merchant Order Number                  | ORD12345                                                         |
| `amt`<br /><font color="#2166ae">Required</font>           | N&#xD;   | 12&#xD;  | Transaction Amount	                    | 10000                                                            |
| `merchantToken`<br /><font color="#2166ae">Required</font> | AN&#xD;  | 255&#xD; | Merchant token                         | 3a04d0c8581ae37727f87130a0b32f2fe9fe39c66b88347352e7b90aeb5cb6e6 |



## Response Parameter for Paylater Status Inquiry &#x20;

***

The following is a list of responses to request status inquiries on Paylater transaction processes.

| **Parameter**    | **Type** | **Size** | **Description**                                                                                               | **Example / Notes**            |
| ---------------- | -------- | -------- | ------------------------------------------------------------------------------------------------------------- | ------------------------------ |
| `resultCd`       | N        | 4        | [Result Code](docId:9eC3yH9CQqpb6cRWauWWO)                                                                    | 0000                           |
| `resultMsg`     | AN       | 255      | Result Message: [Error Code](docId\:FsX1GESJKxOp0T9rvUHp_)                                                    | init                           |
| `tXid`           | AN       | 30       | Transaction ID&#xD;                                                                                           | PAYLOANTES06202212051018325178 |
| `iMid `          | AN       | 10       | Merchant ID&#xD;<br />                                                                                        | PAYLOANTES                     |
| `referenceNo`    | ANS      | 40       | Merchant Reference Number&#xD;                                                                                | ORD12345                       |
| `payMethod `     | N        | 2        | [Payment Method Code](docId\:NQ1y7vMa25ZtvQHN5He6W)                                                           | 06                             |
| `amt `           | N        | 12       | Payment Amount                                                                                                | 10000                          |
| `CancelAmt`      | N        | 12       | Cancel Amount                                                                                                 | Null                           |
| `reqDt`          | N&#xD;   | 8        | Transaction Request Date (`YYYYMMDD`)**&#xD;**                                                                | 20221205                       |
| `reqTm`          | N&#xD;   | 6        | Transaction Request Time (`HH24MISS`)&#xD;                                                                    | 101832                         |
| `transDt`        | N        | 8        | Transaction Date (`YYYYMMDD`)&#xD;                                                                            | Null                           |
| `transTm`        | N        | 6        | Transaction Time (`HH24MISS`)&#xD;                                                                            | Null                           |
| `depositDt`     | N        | 8        | Transaction Deposit Date (`YYYYMMDD`)                                                                         | Null                           |
| `depositTm`     | N        | 6        | Transaction Deposit Time (`HH24MISS`)                                                                         | Null                           |
| `currency `      | A        | 3        | Currency                                                                                                      | IDR                            |
| `goodsNm`       | AN       | 100      | Goods Name                                                                                                    | Test Transaction NICEPAY       |
| `billingNm `     | A        | 100      | Buyer Name&#xD;                                                                                               | John Doe                       |
| `status`        | N        | 1        | [Payment Status Code](docId\:QPNU5VtJKCzpxFRhiayAS)                                                           | 9                              |
| `instmntMon`     | N        | 2        | Installment Month                                                                                             | 1                              |
| `instmntType`    | N        | 2        | [Installment Type Code](docId:_Wzur5wjwhrDR8YXI-Ppi)                                                          | 2                              |
| `cardNo`         | N        | 20       | Credit Card Number                                                                                            | Null                           |
| `preauthToken`   | AN       | 64       | Pre-Auth Token                                                                                                | Null                           |
| `acquBankCd`     | A        | 4        | [Acquiring Bank Code](docId\:HlxvgrXVxWD90n8ohNKm0)                                                           | Null                           |
| `issuBankCd`     | A        | 4        | [Issuing Bank Code](docId\:HlxvgrXVxWD90n8ohNKm0)                                                             | Null                           |
| `vacctValidDt`   | N        | 8        | VA Expiry Date (`YYYYMMDD`)                                                                                   | Null                           |
| `vacctValidTm`   | N        | 6        | VA Expiry Time (`HH24MISS`)                                                                                   | Null                           |
| `vacctNo`        | N        | 20       | VA Number                                                                                                     | Null                           |
| `bankCd`         | A        | 4        | [Bank Code](docId\:HlxvgrXVxWD90n8ohNKm0)                                                                     | Null                           |
| `payNo`          | N        | 12       | Payment Number                                                                                                | Null                           |
| `mitraCd`        | A        | 4        | [Mitra Code](docId:0luP35KfOWksiSrzKx6yZ)                                                                     | KDVI                           |
| `receiptCode`    | ANS      | 20       | Authorization Number                                                                                          | Null                           |
| `cancelAmt`      | N        | 12       | Cancel Amount                                                                                                 | Null                           |
| `recurringToken` | AN       | 255      | Recurring Token (Needed for Recurring Payment)                                                                |                                |
| `ccTransType`    | N        | 2        | [Credit Card Transaction Type](docId:7PAs_VD5YLG4VDurMygWo)                                                   | Null                           |
| `payValidDt`     | N        | 8        | CVS Expiry Date (`YYYYMMDD`) (CVS)                                                                            | Null                           |
| `payValidTm`     | N        | 6        | CVS Expiry Time (`HH24MISS`) (CVS)                                                                            | Null                           |
| `mRefNo`         | AN       | 20       | Bank Reference Number (Direct Debit)                                                                          | Null                           |
| `acquStatus`     | N        | 2        | Purchase Status&#xD;<br />`1`: Normal&#xD;<br />`2`: Recurring&#xD;<br />`3`: Pre-Auth&#xD;<br />`4`: Capture | Null                           |
| `cardExpYymm`    | N        | 4        | Expiry (`YYMM`)                                                                                               | Null                           |
| `acquBankNm`     | A        | 255      | Acquiring Bank Name                                                                                           | Null                           |
| `issuBankNm`     | A        | 255      | Issuing Bank Name                                                                                             | Null                           |
| `paymentExpDt`   | N        | 6        | QR Payment Expiry Date (`YYYYMMDD`)                                                                           | Null                           |
| `paymentExpTm`   | N        | 6        | QR Payment Expiry Time (`HH24MISS`)                                                                           | Null                           |
| `cancelTrxSn`    | AN       | 32       | Cancel Transaction Number                                                                                     | Null                           |
| `userId`         | AN       | 128      | QRIS User ID Hash                                                                                             | Null                           |
| `shopId`         | AN       | 32       | Shop ID                                                                                                       | Null                           |



## Additional Response Parameter for Paylater Status Inquiry

***

The following is additional response list information from request status inquiry in other transaction processes.

| **Parameter** | **Type** | **Size** | **Description**                                                                    |
| ------------- | -------- | -------- | ---------------------------------------------------------------------------------- |
| `mitraCd`     | A        | 4        | [Mitra Code](docId:0luP35KfOWksiSrzKx6yZ)  (CVS, Direct Debit, E-Wallet, Paylater) |
| `payNo`       | N        | 12       | CVS Number (CVS)&#xD;<br />&#xD;                                                   |
| `payValidDt`  | N        | 8        | CVS Expiry Date (`YYYYMMDD`) (CVS)&#xD;                                            |
| `payValidTm`  | N        | 6        | CVS Expiry Time (`HH24MISS`) (CVS)                                                 |
| `receiptCode` | ANS      | 20       | Authorization Code (CVS)&#xD;                                                      |
| `mRefNo`      | AN       | 20       | Bank Reference Number (Direct Debit)&#xD;                                          |



Sample JSON for Paylater Status Inquiry&#x20;
---------------------------------------------

***

:::CodeblockTabs
JSON Request

```json
{
	"timeStamp":"20221114114338",
	"tXid":"PAYLOANTES06202212051018325178",
	"iMid":"PAYLOANTES",
	"referenceNo":"ORD12345",
	"amt":"10000",
	"merchantToken":"3a04d0c8581ae37727f87130a0b32f2fe9fe39c66b88347352e7b90aeb5cb6e6"
}
```

JSON Response

```json
{
    "tXid": "PAYLOANTES06202212051018325178",
    "iMid": "PAYLOANTES",
    "currency": "IDR",
    "amt": "10000",
    "instmntMon": "1",
    "instmntType": "2",
    "referenceNo": "ORD12345",
    "goodsNm": "Test Transaction Nicepay",
    "payMethod": "06",
    "billingNm": "John Doe",
    "reqDt": "20221205",
    "reqTm": "101832",
    "status": "9",
    "resultCd": "0000",
    "resultMsg": "init",
    "cardNo": null,
    "preauthToken": null,
    "acquBankCd": null,
    "issuBankCd": null,
    "vacctValidDt": null,
    "vacctValidTm": null,
    "vacctNo": null,
    "bankCd": null,
    "payNo": null,
    "mitraCd": "KDVI",
    "receiptCode": null,
    "cancelAmt": null,
    "transDt": null,
    "transTm": null,
    "recurringToken": null,
    "ccTransType": null,
    "payValidDt": null,
    "payValidTm": null,
    "mRefNo": null,
    "acquStatus": null,
    "cardExpYymm": null,
    "acquBankNm": null,
    "issuBankNm": null,
    "depositDt": null,
    "depositTm": null,
    "paymentExpDt": null,
    "paymentExpTm": null,
    "paymentTrxSn": null,
    "cancelTrxSn": null,
    "userId": null,
    "shopId": null
}
```

Java Request

```java
//Inquiry Registration//
nicePay.setTimeStamp("20221208091279");
nicePay.setiMid("IONPAYTEST");
nicePay.setAmt("10000");
nicePay.setReferenceNo("ordNo20221202141217");
nicePay.setMerchantToken(nicePay.makeToken(nicePay.getMerchantToken());
nicePay.settXid("IONPAYTEST08202212080918308275");

// Request Inquiry
nicePay.inquiry();

// Response String //
System.out.println("Final Response String : " + nicePay.getResponseString());

String resultCd = nicePay.Get("resultCd");
String resultMsg = nicePay.Get("resultMsg");
String tXid = nicePay.Get("tXid");
String referenceNo = nicePay.Get("referenceNo");
String payMethod = nicePay.Get("payMethod");
String status = nicePay.Get("status")
String amt = nicePay.Get("amt");
String transDt = nicePay.Get("transDt");
String transTm = nicePay.Get("transTm");
String shopId = nicePay.Get("shopId");
```
:::

