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

Element

Mandatory

Data Type

Remarks

merchantCode

Y

string

once a merchant has been on-boarded with Alchemy Pay, the merchant will be provided with the credentials with merchantCode&Key

transcationId

Y

string

transaction ID

from

Y

string

Alchemy Pay assigned unique user ID

to

Y

string

merchantCode

crypto

Y

string

crypto type: c_TRON_USDT
c_BSC_USDT

amount

Y

string

crypto amount

sign

Y

string

signature

Http response

Element

Mandatory

Data Type

Remarks

code

Y

string

response code

msg

Y

string

response message

data

Y

hash

response data

result

Y

string

success
fail

merchantCode

y

string

once a merchant has been on-boarded with Alchemy Pay, the merchant will be provided with the credentials with merchantCode&Key

transferId

Y

string

transfer ID

sign

Y

string

signature

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"
    }
}