Transaction Enquiry

Request URL

https://payment.alchemytech.cc/nh-gateway/card/query

Http method

  • POST
  • Content-Type: application/x-www-form-urlencoded

Http request

Element

Data Type

Required

Signed

Remarks

merchantNo

string

R

Y

merchant unique ID, once a merchant has been on-boarded with Alchemy Pay, the merchant will be provided with the credentials

timeStamp

string

R

Y

GMT time with 13 digit to represent time in milliseconds

language

string

O

N

en

sign

string

R

N

signature with RsaUtil.sign method

merchantOrderNo

string

R

Y

merchant defined transaction ID, must be unique for each request

Http response

Element

Data Type

Signed

Remarks

merchantNo

string

Y

merchant unique ID, once a merchant has been on-boarded with Alchemy Pay, the merchant will be provided with the credentials

merchantOrderNo

string

Y

merchant defined transaction ID, must be unique for each request

orderNo

string

Y

Alchemy Pay defined transaction ID

currency

string

Y

IDR

orderAmount

long

Y

transaction amount,
unit in cents (i.e. 100 = $1)

orderFee

long

Y

transaction fee, unit in cents (i.e. 100 = $1)

payModel

string

Y

DIRECT
OVO
DANA
QRIS

orderStatus

string

Y

PENDING
SUCCESS
FAIL
CANCEL

webUrl

string

Y

for DANA, it is a H5 page; for QRIS, please rendering the string to QR code; for OVO, it is a order ID coupled with mobile number; for DIRECT, it is a virtual account with amount set, end user just transfer fund into, in case amount unmatch, transaction will fail

page

string

N

NULL

orderTime

long

N

timestamp

finishTime

long

N

0

remark

string

N

error description from payment gateway

sign

string

Y

signature with RsaUtil.sign method

Request sample - payModel: DIRECT

{
	"merchantNo":"AC20220**97",
	"merchantOrderNo":"3101659672096687001",
	"timeStamp":"1659643424135",
	"sign":"VgEc8YsqcFbiQRyE5PlDEonClj7oRrSv3eYBNSiQzw9WajDoOT1BBTrWd63eW6XmC0rSeg8bvHd06lTrtm2NnknAiFKtkUkSsFJWYFNB"
}

Response sample - payModel: DIRECT

{
	"merchantNo":"AC20220**97",
	"merchantOrderNo":"3101659672096687001",
	"orderNo":"R08OC0220805120138137132808676",
	"currency":"IDR",
	"orderAmount":"5000000",
	"orderFee":"825000",
	"payModel":"DIRECT",
	"orderStatus":"PENDING",
	"webUrl":"7136219000042042",
	"page":"null",
	"orderTime":"1659643298139",
	"finishTime":"0",
	"remark":"",
	"sign":"Vpa9m7qG3oj1qV6oGbZB/NJ0cm1yKbgwBKkObU/XvlbKhwGADuRw5LF46bd33fHrKYzEd1FGkFgHURH1m6VXLSozqeVvbgT7tH3HTxnHXHQaAvcXVvCWUuQ7FezG8LqvHQzG+m0VtrcWc7ebc49vvrqGdc8T1rN9J0bwRkg2T4mPKCYDiSHrifQOtlxQ95PYTZOZJjp3xmaJFvDXOY93sN4kPTi7U5VNn90ym58JUxO9Xq+R03okuN95eZG8RbMa7omKF3GSPPx07HJQR3m8oQCpITlQCI7vq9q32M+aRqDIiQyzcGqHGlyp7SntzfSBYUkKjYhKnfZL8sgwRaRRaw=="
}

Request sample - payModel: OVO

{
	"merchantNo":"AC20223**12",
	"merchantOrderNo":"3101659673358670001",
	"timeStamp":"1659643424135",
	"sign":"VgEc8YsqcFbiQRyE5PlDEonClj7oRrSv3eYBNSiQzw9WajDoOT1BBTrWd63eW6XmC0rSeg8bvHd06lTrtm2NnknAiFKtkUkSsFJWYFNB"
}

Response sample - payModel: OVO

{
    "merchantNo":"AC20223**12",
    "merchantOrderNo":"3101659673358670001",
    "orderNo":"R08OC0220805122239875569032548",
    "currency":"IDR",
    "orderAmount":"7000000",
    "orderFee":"380000",
    "payModel":"OVO",
    "orderStatus":"PENDING",
    "webUrl":"https://openapi.simfy.net/cash/html/OV.html?type=OV&orderNum=PRE61555408923283034112&number=70000&redirectUrl=https://gateway.xinpay.org/nh-gateway/toPageResult/R08CH022080512223994904217677&phone=081388231163",
    "page":"null",
    "orderTime":"1659644559876",
    "finishTime":"0",
    "remark":"",
    "sign":"eqmQJsKeEHqZxyckreOekQyDL70oudm/GTG4PHNcVIL2NYJW638GzYD8toitRWvWyrvpugta8+Hkro9RmbMLBP8kIt9PntERfW+XZQaSLB7TXCvGCQf99Nas3NsBXeYvT8mWWStgC8uyalu9z7A4MinjoCtsi0k9NTZf+4a7mEqGzmUcYgDI4Xflp/NVgPkXo4sEmedh/csdtaGhIYKLQwA/7iuGe1eq4aubhH7uxkUgGvLMfir6jFCRoEfP2KITgxrfyXNO305AhedD0kON/ka1nNMs82BQhWK88j2JzRpPPdOOZouod2CHp6eELB1czXAM9gQmJy15k2gkqshbtgLO+/LRrQ0QpFrIHbRBkUe4QqnRl4ygqwDtF0M3XkRahBMJeO61+BqDKintt8M5sW0ZgJQfkcoCtlKtmYMb7V7oRM7OwNz/4xjH64JWl8Y5Bdk8rg4UbwPnu1+Xd9JG8zAzK3X709zkquAZ8apJPQqbkkdbg7gsPQoST/e4/As9lV5Czp0YtT/Dk6w63/XPVIZJokobXyPxCkm5qc+z87Ifix0CH+X3+XQG3wxiZ/W1ld3IHPKdIz0V2TtXcqui3ctetjVuOBKagQzrGs9MG2OawfoXFnbVmb8O+s+90ypnbd0Z51m75nuuXnY4YrZv5NS9jX/LtXEdiXuSYEs9AuM="
}

Request sample - DANA

{
	"merchantNo":"AC20220**97",
	"merchantOrderNo":"310165961726721600",
	"timeStamp":"1659643424135",
	"sign":"VgEc8YsqcFbiQRyE5PlDEonClj7oRrSv3eYBNSiQzw9WajDoOT1BBTrWd63eW6XmC0rSeg8bvHd06lTrtm2NnknAiFKtkUkSsFJWYFNB"
}

Response sample - DANA

{
    "merchantNo":"AC20220**97",
    "merchantOrderNo":"3101659672096687001",
    "orderNo":"R08OC0220804204748665186638392",
    "currency":"IDR",
    "orderAmount":"5000000",
    "orderFee":"300000",
    "payModel":"DANA",
    "orderStatus":"PENDING",
    "webUrl":"LINKQU000105202208041947509522",
    "page":"null",
    "orderTime":"1659588468666",
    "finishTime":"0",
    "remark":"",
    "sign":"m6ldW78wAjpINLILyGq+nJiLot4YniBk3Yd2Q6aWjPsaqmurJEAQUHfqkWT5ST9kNuUhauojyh4i+HuuXuelHefV9nUf4x12BJEyCTJFyL7z7CY4sgHzyWAEwP3EJ1nMuypsjkPtC3UlbhgmtqO4irKCLg3Fk1PCfbrblk7eje2bj803bieudwLetJ7SJmQXQzHP9VHV4MHKmVLIGH6fOMJtVFbz5KFZmWz2MOP0EfRgt+adjPxa7HXgPiP0MNKRl+xKoHA6WiF3eIzYy34QpLLDKu8KzZ0TLtr1hAb+5WcNnN2NC5eY6tSGNwyfPEoIVt2Wv9iDPU9UJbv9BfdULIvSJLCOKgJt5GZp/kJvN7z6Ob9XJDPvOrEamj5X0IZTaJHH/PGrZ3PoIoaWvcXty0yhjuuEVwPCZwg1McwOoSI+qzEOcDJ1PGvDvMtvQDbaSbQ51dQdD5hvyo/d28BKIYxJl1idO3T+mwdvwPoxKFOeQXcds++KRMT8x0T/iR8n"
}

Request sample - payModel: QRIS

{
	"merchantNo":"AC20220**97",
	"merchantOrderNo":"510165960885783600",
	"timeStamp":"1659643424135",
	"sign":"VgEc8YsqcFbiQRyE5PlDEonClj7oRrSv3eYBNSiQzw9WajDoOT1BBTrWd63eW6XmC0rSeg8bvHd06lTrtm2NnknAiFKtkUkSsFJWYFNB"
}

Response sample - payModel: QRIS

{
    "merchantNo":"AC20220**97",
    "merchantOrderNo":"5101659608857836001",
    "orderNo":"R08OC0220804182739338123672143",
    "currency":"IDR",
    "orderAmount":"15000000",
    "orderFee":"525000",
    "payModel":"QRIS",
    "orderStatus":"PENDING",
    "webUrl":"00020101021226640017ID.CO.DANAMON.WWW0118936000110000105785021010317452530303UBE51440014ID.CO.QRIS.WWW0215ID20210950325990303UBE626901090007887390518QRIS155513838838910709LI524PJTL991700020001071033768530336054061500006008SIDOARJO520459995906LinkQu5802ID61056125363042737",
    "page":"null",
    "orderTime":"1659580059339",
    "finishTime":"0",
    "remark":"",
    "sign":"F46olCi4TEYcz0cS8/gUCf5KHEcWvotsRejhivRN5TknmKUw6IRRdtp/rAOU9jYf/sq2KVJ1T+Wr6nqcZ1Ir1BloUpwhczHRpJyXO3WjaHsvO62YkGY04nO929VjiZC/qcpYJN9PWBmXOTmtiq+fgSBM2VgkRFpoKS6yrEUO2oNlr1ENBQ7G0NrWK9E/WoNpL2HFR/LaIgLjC6+WyaYPZAyvKzx9c5EULdPPk3PAJuj/+8npr7TaBm9J0A1CpqfVymYE3uv3dYVH0cYAzQBSXhbIwBrMXDdSSpbRNy6gectXXdGIjj57x11Bns62a7ViMV1F3vow1n96FItDnP2lTCsLjQZ0FC0dtqb90jFEv2djgjSSDZnb3+lM4uvs+MykI5ZOP2YbdeJ8LD9/iIZHxxRx8a7qHOVXGYbvaPnPqb35cKEpb0cJxdOsa7E06kr4utSE8j7JGHMqhJ4UjbxChfPybMaW9Bv3HjPCNfJJtiVBf0HCPvxfSN63baofbvpzOVNVmEStkjAiN3ndzSs3wWoL83pbuFEEADfgrO98ly/U6zZdRtQUdFGl4Z67mexkAMyz7fQLzVAi25/2D7/qEh5nzadsunjrTEJdLveSdZgr4btDS6/mGZAD/y29fWI8ZrXnB4dn352zIyeW4YA4kuxGbww/2JLnGY9OACx0e/8="
}