Balance Transfer

Description

Merchants can use this API to transfer users' balances to the merchants' wallets to swap to merchants' tokens. Tokens swap policy is defined by the 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"
    }
}