Balance Transfer

Description

Merchant use this API to transfer user's balance to merchant's to swap merchant's points, points swap policy is defined by merchant.

Test environment

https://paytest.alchemypay.cc/openApi/balanceTransfer

Prod environment

https://service.alchemypay.cc/openApi/balanceTransfer

Http method

  • POST
  • Content-Type: application/JSON

Http request

ElementMandatoryData TypeRemarks
merchantCodeYstringonce a merchant has been on-boarded with Alchemy Pay, the merchant will be provided with the credentials with merchantCode&Key
transcationIdYstringtransaction ID
fromYstringAlchemy Pay assigned unique user ID
toYstringmerchantCode
cryptoYstringcrypto type: c_TRON_USDT
c_BSC_USDT
amountYstringcrypto amount
signYstringsignature

Http response

ElementMandatoryData TypeRemarks
codeYstringresponse code
msgYstringresponse message
dataYhashresponse data
resultYstringsuccess
fail
merchantCodeystringonce a merchant has been on-boarded with Alchemy Pay, the merchant will be provided with the credentials with merchantCode&Key
transferIdYstringtransfer ID
signYstringsignature

Request sample

{
    "transcationId": "T22222222222222222",
    "sign": "FEDC425FE93549B48B4ACAB451979F2B",
    "merchantCode": "ME1634111841889",
    "from": "U11111111",
    "to": " ME1634111841889",
    "crypto": "c_TRON_USDT",
    "amount": "1.06800"
}

Response sample

{
    "code":"000000",
    "msg":"success",
    "data":{        
        "sign":"7B1D87F47CC8EF4DA8342D330503B1C4",
        "merchantCode": "ME1634111841889",
        "transferId":"TTTTTTTTTT2222222",
        "result":"success"
    }
}