Refund
Request URL
https://payment.alchemytech.cc/nh-gateway/card/refund
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 | 
| version | string | R | Y | 1.0 | 
| tradeOrderNo | string | R | Y | original orderNo | 
| refundAmount | string | R | Y | refund amount, unit in cents (i.e. 100 = $1) | 
| currency | string | R | Y | USD, EUR, GBP, JPY | 
| reason | string | R | N | reason to refund | 
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. | 
| refundOrderNo | string | Y | Alchemy Pay defined refund ID, used to cancel refund | 
| tradeOrderNo | string | Y | original orderNo | 
| currency | string | Y | USD, EUR, GBP, JPY | 
| refundAmount | string | Y | refund amount, unit in cents (i.e. 100 = $1) | 
| refundFee | string | Y | refund fee, unit in cents (i.e. 100 = $1) | 
| refundStatus | string | Y | refund status SUCCESS/FAIL/ PENDING/CANCEL | 
| createTime | long | N | refund receive time | 
| refundTime | long | N | refund complete time | 
| sign | string | N | signature with RsaUtil.sign method | 
Updated about 2 years ago