NICEPAY API
...
API Version 2 (V2)
Checkout API

Status Inquiry - API Checkout

11min

About Status Inquiry - API Checkout



After you integrate successfully with Registration - API Checkout, your is ready to do s in real with your . However, recommend you to performs other Checkout API like this Inquiry .

This uses to check on you are requested on previous Registration - API Checkout such as successful or failed .

When is completed, you will automatically get from us. strongly recommend you to re-check using Status Inquiry - API Checkout.



Status Inquiry - API Checkout



API URL

/nicepay/direct/v2/inquiry

Request Method

POST

Header

Content-Type: application/json

Merchant Token

SHA256 (timestamp+ iMid+ referenceNo+ amt+ merchantKey)

When received to your dbProcessUrl, we strongly recommend to verify Notification using Status Inquiry - API Checkout.



Notification Handling

Notification Handling is useful to minimalize Fraud actions, we strongly recommend s to verify Notification Handling.

Status Inquiry - Notification Handling
Status Inquiry - Notification Handling




Request Parameters

Parameter

Type

Size

Description

Remark

timeStamp

Required

N

14

 Request Date (YYYYMMDDHH24MISS)

20221012080918

tXid

Required

AN

30

Transaction ID



IONPAYTEST00202212191025073439

iMid

Required

AN

10

 ID



IONPAYTEST

referenceNo

Required

ANS

40

 Order Number



ORDER20221012080918

amt

Required

N

12

Transaction Amount



10000

merchantToken

Required

AN

255

 Token



d8d0968892c568bc6ff5adc17cd755f85334a0b58fce85392682993a9ba653ed



Response Parameters

Parameter

Type

Size

Description

Remark

resultCd

N

4

0000

resultMsg

AN

255

Result Message: Error Code

(empty)

tXid

AN

30

Transaction ID

IONPAYTEST00202212191025073439

iMid

AN

10

 ID

IONPAYTEST

referenceNo

ANS

40

 Order Number

ORDER20221012080918

payMethod

N

2

00

amt

N

12

 Amount

10000

cancelAmt

N

12

Cancel Amount

null

reqDt

N

8

Transaction Request Date (YYYYMMDD)

20221219

reqTm

N

6

Transaction Request Time (HH24MISS)

102507

transDt

N

8

Transaction Date (YYYYMMDD)

null

transTm

N

6

Transaction Time (HH24MISS)

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

billingNm

A

100

Buyer Name

John Doe

status

N

1

null

Additional - Credit Card

Parameter

Type

Size

Description

Remark

authNo

N

10

Approval Number



issuBankCd

A

4



acquBankCd

A

4



acquBankNm

A

255

Acquiring Name



issuBankNm

A

255

Issuing Name



cardNo

ANS

20

Card Number ith Masking



cardExpYymm

N

4

Card Expiration (YYMM)



instmntMon

N

2

Installment Month 1: 1 Month/Full , if instmntType: null/1 3: 3 Months 6: 6 Months 12: 12 Months



instmntType

N

2



preauthToken

AN

255

Pre-Auth Token (Needed for Capture )



recurringToken

AN

255

Recurring Token (Needed for Recurring )



ccTransType

N

2

Credit Card Transaction Type



acquStatus

N

2

Purchase Status 1: Normal 2: Recurring 3: Pre-Auth 4: Capture



acquirerData

Array

20

A dynamic array consisting of a unique reference number RRN that is provided by ing when a refund is ed. This reference number can be used by to track of refund with .

"acquirerData": { "rrn": "332608321717" }

latestFailHistory

Array Object



  • Failed records are only displayed if the transaction fails and
  • 1 Transaction may have more than 1 failed record if the merchant has a retry mechanism.

"latestFailHistory": [ { "resultCd": "1231", "resultMsg": "Fail 3ds", "transDt": "20240707", "transTm": "121213" } ]

vat

N

12





fee

N

12

Service Fee



notaxAmt

N

12

Tax-Fee Amount



Additional - Virtual Account

Parameter

Type

Size

Description

Remark

bankCd

A

4

Bank Code



vacctNo

N

16

 Number



vacctValidDt

N

8

VA Expiry date (YYYYMMDD)



vacctValidTm

N

6

VA Expiry time (HH24MISS)



Additional - Others

Parameter

Type

Size

Description

Remark

mitraCd

A

4

Mitra Code

(CVS, , , )



payNo

N

12

CVS Number (CVS)



payValidDt

N

8

CVS Expiry Date (YYYYMMDD) (CVS)



payValidTm

N

6

CVS Expiry time (HH24MISS) (CVS)



receiptCode

ANS

20

Authorization Code (CVS)



mRefNo

AN

20

 Reference Number ()





Sample JSON for API Checkout Status Inquiry


JSON Request
JSON Response
Java Request