NICEPAY API
API Versi 1

V1 Cancel Transaction

6min

Tentang Cancel Transaction





 ini digunakan untuk membatalkan


sudah terdaftar baik sudah melewati waktu

maupun

belum.



API Specifications - Cancel Order



API Endpoint

/nicepay/api/onePassAllCancel.do

Request Method application/x-www-form-urlencoded

POST

Description

Mengajukan Pembatalan Transaksi ke



Merchant Token

SHA256(iMid+tXid+amt+merchantKey)



Request Parameters - Cancel Order

Java


Parameter

Tipe

Ukuran

Deskripsi

Contoh / Catatan

iMid

Required

AN

10



 ID

IONPAYTEST

merchantToken

Required

AN

255



 Token

c69fd0a2e36fb9d97fc8418f6b22699143a1177e570769dac2cf4d2008558946

tXid Required

AN

30

Transaction ID

IONPAYTEST02201603091207051498

payMethod Required

N

2

01

cancelType Required

N

2

1

amt Required

N

12

Cancellation Amount

1000

cancelMsg

AN

255

Cancellation Message

Cancel Message

fee

N

12

Service Fee

0

vat

N

12



 Number

0

cancelServerIp

ANS

15

Server IP Address

127.0.0.1

cancelUserId

AN

30

User ID



cancelUserIp

ANS

15

User IP Address

127.0.0.1

cancelUserInfo

AN

100

User Information



 Cancel Transaction

cancelRetryCnt

N

2

Retry Count for Cancel

2

worker

N

10

Worker





Response Parameter - Cancel Order

JSON


Parameter

Tipe

Ukuran

Deskripsi

Contoh / Catatan

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": "332510237487" }

tXid

AN

30

Transaction ID

IONPAYTEST02201603091207051498

referenceNo

ANS

40



 Order Number

OrdNo20160525000-52104

resultCd

N

4

Result Code

0000

resultMsg

AN

255

SUCCESS

transDt

N

8

Transaction Date

20160303

transTm

N

6

Transaction Time

135959

description

AN

255

Description



 of OrdNo20160525000-52104

amount

N

8

Amount

1000

canceltXid

AN

30

Cancel Transaction ID

IONPAYTEST02201603091207051499

cancelTrxSn

AN

32

Cancel Transaction Number