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

ElementMandatoryData TypeRemarks
access-tokenYstringAccessToken from Fetch Token API
appIdYstringPartner unique ID, once a merchant has been on-boarded with Alchemy Pay, the merchant will be provided with the credentials with appId and appSecret
timestampYstringUTC time with 13 digit to represent time in milliseconds, expiration period is 5 minutes.
signYstringSHA1(appId + appSecret + timestamp), please refer to Sign demo for Initiate API

Http body

ElementMandatoryData TypeRemarks
nftOrderNoNFT order number
refundTypeRefund type FIAT/USDT

Request sample - Body

{
    "nftOrderNo": "1037293297469669376",
    "refundType": "USDT"
}

Response sample

{
    "success": true,
    "returnCode": "0000",
    "returnMsg": "SUCCESS",
    "extend": "",
    "data": {
        "refundOrderNo":"945628891261980032"
    }
}