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

USD, EUR, GBP, JPY

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

either CREDIT_CARD or DEBIT_CARD

orderStatus

string

Y

transaction status, please refer to error code

webUrl

string

Y

redirect URL

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

{
    language=en, 
    merchantOrderNo=1575203520668,
    sign=VgEc8YsqcFbiQRyE5PlDEonClj7oRrSv3eYBNSiQzw9WajDoOT1BBTrWd63eW6XmC0rSeg8bvHd06lTrtm2NnknAiFKtkUkSsFJWYFNB+1wO+5g+9hOkQ74TAweEXg/CpPLqNZnP+FSj5oqC2tcnw84hSAKM2Wt+U2rrkCoXHFo=,
    timeStamp=1575174775814,
    merchantNo=XP02200000001
  }

Response sample

{
   "meta":{
      "success":true,
      "code":"0000",
      "message":"Request Success"
   },
   "data":{
       "merchantNo":"AC202237083",
       "merchantOrderNo":"PAY202207272790784161",
       "orderNo":"R08OC0220727012238117504288178",
       "currency":"USD",
       "orderAmount":12100,
       "orderFee":221,
       "payModel":"CREDIT_CARD",
       "orderStatus":"WAIT3D",
       "webUrl":"https://api-gw.sparkpsp.com/v1/Company3dRequest?order_no=R08CH02207270122381906777110710144&type=PL&return_url=https://payment.alchemytech.cc/nh-gateway/toPageResult/R08CH022072701223819067771107&notify_url=https://payment.alchemytech.cc/nh-gateway/spark/callBack",
       "page":null,
       "orderTime":1658827358118,
       "finishTime":0,
       "sign":"RssFfOMWFTX1+CH0sDhhjFhdafTPtAK+/NtdKo9M4oE/eazrSb3rWcXBeEI/J7cSk6COc80/yrbKs7zWt4UAFeYc+4/D05VBEGdEqjPdzF0KUTvm6i339zwroopNdMpWwGLia0wnBjzCXnSVspd+yLNVy8P6dV+X3a65HSzkqs2GNiLp2InRJcSbQXn201bJ9RehO21HscrLBgMO+qPr6n8b9rpt5LPJVrcQZbcuiiaV/23Cg64Zy9WBgF5i3sxG8HPw1PvOYjhBVgblli3etaJt3V7bag1kNIzPaH6PmJwTA5UlZpz2OyyabYOY9BbIjUvRdmSwI+LX8QFUodG10C9FQB/KavFRcY1MiYlSjq1/21/JniX9y54c+GGgw9EirdO4Hv2K+XI66JAOUa7t3enUqO9zWB3fKqr0IcFQiwX8yiyc+oJyNbXx26UIJ+kEK3qVMMMHtnTyZewq5NXQiO+SKGFL2OKfRu0xaP2gh48011GOrRc6Jgy8qGtkmBizS2CdZjEdIBcxtwwAmi8aoDz2AGM2bLw27IN5T5TPH/mbZzs5jnbF5t/qFxDn6p8vW6Yofn6wvEAP+fMrl978DN2N5zlqfYzMN0SyJjQArj/Ygva+IIXsOExPMIRhj2sjJpfZuMg2zX6S7ooc4UuO214L/4lVnSe7jfyEZuCIf5I=",
       "remark":""
   }
}