Refund API
Description
API for refund, we will review and process the refund after we receive the request.
Test environment:
https://api-nft-sbx.alchemytech.cc/nft/openapi/order/refund
Production environment:
https://openapi-nft.alchemypay.org/nft/openapi/order/refund
Http method
- POST
- Content-Type: application/json
Http header
Element | Mandatory | Data Type | Remarks |
---|---|---|---|
access-token | Y | string | AccessToken from Fetch Token API |
appId | Y | string | Partner unique ID, once a merchant has been on-boarded with Alchemy Pay, the merchant will be provided with the credentials with appId and appSecret |
timestamp | Y | string | UTC time with 13 digit to represent time in milliseconds, expiration period is 5 minutes. |
sign | Y | string | SHA1(appId + appSecret + timestamp), please refer to Sign demo for Initiate API |
Http body
Element | Mandatory | Data Type | Remarks |
---|---|---|---|
nftOrderNo | Y | string | NFT order number |
refundType | N | string | Refund type: FIAT/USDT FIAT: refund fiat USDT: refund USDT |
Request sample - Body
{
"nftOrderNo": "1037293297469669376",
"refundType": "USDT"
}
Response sample
{
"success": true,
"returnCode": "0000",
"returnMsg": "SUCCESS",
"extend": "",
"data": {
"refundOrderNo":"945628891261980032"
}
}
Updated about 1 month ago