NICEPAY API
...
API Version 1 (V1)
V1 Enterprise

Virtual Account - V1 Enterprise

8min

Virtual Account



 offers

as

. This method allows

to make

via ATM,


ing, Internet

ing, or Mobile

ing. Real Time Notification will be sent when

has completed


.

Supported Bank by NICEPAY

  1. 
    
    Mandiri.
  2. 
    
    International
    
    Maybank.
  3. 
    
    Permata.
  4. 
    
    Permata Syariah.
  5. 
    
    Central Asia (BCA).
  6. 
    
    Negara
    
    46 (BNI).
  7. 
    
    KEB Hana
    
    .
  8. 
    
    Rakyat
    
    (BRI).
  9. 
    
    CIMB Niaga.
  10. 
    
    DANAMON.

We support



for Other

via ATM BERSAMA, ALTO, LINK, and PRIMA.

VA Flow V1

  1. 
    
    request VA Registration to
    
    .
  2. 
    
    display VA Details and How-To-Pay Details.
  3. 
    
    make
    
    with preferred channel (m-
    
    ing, ATM, etc).
  4. 
    
    send Notification to
    
    .

Virtual Account Flow V1 Enterprise

Virtual Account Flow V1 Enterprise
Virtual Account Flow V1 Enterprise


Transaction flow:

  1. 
    
    send
    
    data to
    
    .
  2. 
    
    send Request Registration using Regist API to
    
    .
  3. 
    
    send response VA number and TXID to
    
    .
  4. 
    
    save VA number.
  5. 
    
    send
    
    about VA to
    
    .
  6. 
    
    input VA number then send
    
    data to
    
    .
  7. 
    
    send
    
    about Inquiry to
    
    .
  8. 
    
    make
    
    using VA to
    
    .
  9. 
    
    validate
    
    
    .
  10. 
    
    send
    
    result
    
    to
    
    .
  11. 
    
    send
    
    Notification/
    
    Message to
    
    .
  12. 
    
    update
    
    
    .
  13. 
    
    send dbProcessUrl
    
    to
    
    .
  14. 
    
    receive
    
    .
  15. 
    
    check Inquiry Status using Inquiry
    
    to
    
    .
  16. 
    
    send response to
    
    .
  17. 
    
    update
    
    .
  18. 
    
    send order confirmation to
    
    .



VA Registration



API Specifications - VA Registration

API Endpoint

/nicepay/api/onePass.do

Request Method application/x-www-form-urlencoded

POST

Description

Request vacctNo for





Merchant Token

SHA256(iMid+referenceNo+amt+merchantKey)

Payment Method

02



Request Parameter - VA Registration

Sample API Request


Parameter

Type

Size

Description

Example / Catatan

iMid

Required

AN

10



 ID

IONPAYTEST

payMethod Required 

AN

2

02

currency Required 

N

3

Currency

IDR

amt Required 

N

12

Goods Amount

15000

referenceNo Required

ANS

40



 Order Number

ordNo123124

goodsNm Required 

AN

100

Goods Name

Test Goods

billingNm Required 

A

A

Billing Name

John Doe

billingPhone Required 

N

15

Billing Phone Number

08123456789

billingEmail Required 

AN

40

Billing E-mail

billingAddr

AN

100

Billing Address

Billing Address

billingCity Required

A

50

Billing City

Jakarta

billingState Required 

A

50

Billing State

DKI Jakarta

billingPostCd Required 

N

10

Billing Post Number

14350

billingCountry Required 

A

10

Billing Country





callBackUrl Required 

ANS

255



 Result URL

https://merchant.com/callBackUrl

dbProcessUrl Required 

ANS

255



 Notif URL

https://merchant.com/dbProcessUrl

description Required 

AN

100

Description

test item

merchantToken Required 

AN

255



 Token

6cfccfc0046773c1b589d8e 98f8b596c284f3c70a4ecf8 6eba14c18944b74bcd

userIP Required

ANS

15

User IP (

)

127.0.0.1

cartData Required

JSON OBJECT

4000

Cart Data (JSON Format)

{}

bankCd Required

A

4

Bank Code

CENA

deliveryNm

A

30

Delivery Name

John Doe

deliveryPhone

N

15

Delivery Phone

08125912342

deliveryAddr

AN

100

Delivery Address

Jln Merak

deliveryCity

A

50

Delivery City

Jakarta

deliveryState

A

50

Delivery State

DKI Jakarta

deliveryPostCd

A

10

Delivery Post Code

14350

deliveryCountry

A

10

Delivery Country





vat

N

12

Vat

0

fee

N

12

Service Tax

0

notaxAmt

N

12

Tax Free Amount

0

reqDt

N

8

Request Date (YYYYMMDD)

20160301

reqTm

N

6

Request Time (HH24MISS)

135959

reqDomain

ANS

100

Request Domain

merchant.com

reqServerIP

ANS

15

Request Server IP

127.0.0.1

reqClientVer

ANS

50

Request Client Version

1.0

userSessionID

AN

100

User Session ID

userSessionID

userAgent

ANS

100

User Agent

Mozilla

userLanguage

ANS

2

User Language

en-US

merFixAcctId

AN

40



 Reserved VA ID

9999000000000001



Only VA Fix Account

vacctValidDt

N

8

VA Expiry Date (YYYYMMDD)

20200303

vacctValidTm

N

6

VA Expiry Time (HH24MISS)

135959



Response Parameter - VA Registration

Sample API Response


Parameter

Type

Size

Description

Example / Notes

resultCd

N

4

Result Code

0000

resultMsg

AN

255

SUCCESS

tXid

AN

30

Transaction ID

TESTIDTEST02201803011047210789

referenceNo

ANS

40



 Order Number

99997

payMethod

N

2

02

amount

N

12



 Amount

10000

transDt

N

8

Transaction Date (YYYYMMDD)

20180301

transTm

N

6

Transaction Time (HH24MISS)

104721

description

ANS

100

Transaction Description



 of Reference Number 99997, This Description

callbackUrl

ANS

100

Callback URL

bankCd

A

4

Bank Code

BMRI

bankVacctNo

N

20

VA Number

1047210789

currency

A

3

Currency

IDR

goodsNm

AN

100

Goods Name

Test Transaction



billingNm

A

30

Buyer Name

Buyer Name

Thomas Alfa Edison

vacctValidDt

N

8

VA Expired Date (YYYYMMDD)

20180308

vacctValidTm

N

6

VA Expired Time (HH24MISS)

235959