Transaction Enquiry

Request URL

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

Http method

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

Http request

ElementData TypeRequiredSignedRemarks
merchantNostringRYmerchant unique ID, once a merchant has been on-boarded with Alchemy Pay, the merchant will be provided with the credentials
timeStampstringRYGMT time with 13 digit to represent time in milliseconds
languagestringONen
signstringRNsignature with RsaUtil.sign method
merchantOrderNostringRYmerchant defined transaction ID, must be unique for each request

Http response

ElementData TypeSignedRemarks
merchantNostringYmerchant unique ID, once a merchant has been on-boarded with Alchemy Pay, the merchant will be provided with the credentials
merchantOrderNostringYmerchant defined transaction ID, must be unique for each request
orderNostringYAlchemy Pay defined transaction ID
currencystringYUSD, EUR, GBP, JPY
orderAmountlongYtransaction amount,
unit in cents (i.e. 100 = $1)
orderFeelongYtransaction fee, unit in cents (i.e. 100 = $1)
payModelstringYeither CREDIT_CARD or DEBIT_CARD
orderStatusstringYtransaction status, please refer to error code
webUrlstringYredirect URL
pagestringNNULL
orderTimelongNtimestamp
finishTimelongN0
remarkstringNerror description from payment gateway
signstringYsignature 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":""
   }
}