Status Inquiry - API Direct Debit
Integration of the Status Inquiry API on Direct Debit is required so that Merchants can check the current status of the transaction process carried out by the Customer whether the status is success, fail, and others. So that the system can have a report on that information.
The integration of Inquiry status on Direct Debit aims to allow merchants to connect with the API system to check the status of the Direct Debit payment method on a regular basis.
API Endpoint | /nicepay/direct/v2/inquiry |
Request Method | POST |
Description | Performs Inquiry Request to NICEPAY for Status Checking |
Merchant Token | SHA256(timeStamp+iMid+referenceNo+amt+merchantKey) |
Request Format | application/json |
When your dbProcessUrl received a notification, NICEPAY strongly recommend Merchant to verify the notification using the Status Inquiry - API Direct Debit.
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 Direct Debit
The following is a list of parameters for requesting a status inquiry in the Direct Debit transaction process.
Parameter | Type | Size | Description | Example / Notes |
timeStamp Required | N | 14 | Request Timestamp (YYYYMMDDHH24MISS) | 20220521144206 |
tXid Required | AN | 30 | Transaction Id | TNICECP04104202205191442060467 |
iMid Required | AN | 10 | Merchant ID | TNICECP041 |
referenceNo Required | ANS | 40 | Merchant Order No | 20220519144204 |
amt Required | N | 12 | Transaction Amount | 2000 |
merchantToken Required | AN | 255 | Merchant Token | 415c63ed51b7fd1f8fb39b48138cd15d8edf301309b2330f7548970196a0073c |
The following is a list of responses to request status inquiry on the Direct Debit transaction process.
Parameter | Type | Size | Description | Example / Notes |
resultCd | N | 4 | 0000 | |
resultMsg | AN | 255 | Result Message: Error Code | unpaid |
tXid | AN | 30 | Transaction ID | TNICECP04104202205191442060467 |
iMid | AN | 10 | Merchant Id | TNICECP041 |
referenceNo | ANS | 40 | Merchant Ref. No | 20220519144204 |
payMethod | N | 2 | 04 | |
amt | N | 12 | Payment Amount | 2000 |
CancelAmt | N | 12 | Cancel amount | null |
reqDt | N | 8 | Transaction request date (YYYYMMDD) | 20220519 |
reqTm | N | 6 | Transaction request time (HH24MISS) | 144206 |
transDt | N | 8 | Transaction Date (YYYYMMDD) | null |
transTm | N | 6 | Transction Time (HH24MISS) | null |
depositDt | N | 8 | Transaction deposit date (YYYYMMDD) | null |
depositTm | N | 6 | Transaction deposit time (HH24MISS) | null |
mitraCd | A | 4 | null | |
instmntMon | N | 2 | Installment Month | null |
instmntType | N | 2 | 1 | |
cardNo | N | 20 | Credit Card Number | null |
preauthToken | AN | 64 | Pre-Auth Token | null |
acquBankCd | A | 4 | null | |
issuBankCd | A | 4 | null | |
vacctValidDt | N | 8 | VA Expiry Date (YYYYMMDD) | null |
vacctValidTm | N | 6 | VA Expiry Time (HH24MISS) | null |
vacctNo | N | 20 | Virtual Account No. | null |
bankCd | A | 4 | null | |
payNo | N | 12 | CVS number (CVS) | null |
receiptCode | ANS | 20 | Authorization No | null |
recurringToken | AN | 64 | Recurring Payment Token | null |
ccTransType | N | 2 | null | |
payValidDt | N | 8 | Expiry Date (YYYYMMDD) | null |
payValidTm | N | 6 | Expiry Time (HH24MISS) | null |
mRefNo | AN | 18 | Bank Reference No | null |
acquStatus | N | 2 | Purchase Status 1: Normal 2: Recurring 3: Pre-auth 4: Capture | null |
cardExpYymm | N | 4 | Card Expiration (YYMM) | null |
acquBankNm | A | 255 | Acquiring Bank Name | null |
issuBankNm | A | 255 | Issuing Bank Name | null |
depositDt | N | 8 | Deposit Date (YYYYMMDD) | null |
depositTm | N | 6 | Deposit Time (HH24MISS) | null |
paymentExpDt | N | 6 | QR Payment Expiry Date (YYYYMMDD) | null |
paymentExpTm | N | 6 | QR Payment Expiry Time (HH24MISS) | null |
paymentTrxSn | N | 32 | Payment Transaction Number | null |
cancelAmt | N | 12 | Cancel Amount | null |
cancelTrxSn | AN | 32 | Cancel Transaction Number | null |
currency | A | 3 | Currency | IDR |
goodsNm | AN | 100 | Goods Name | Test Transaction |
billingNm | A | 100 | Buyer name | John Doe |
status | N | 1 | 9 | |
userId | AN | 128 | QRIS User ID Hash | null |
shopId | AN | 32 | Shop Id | null |