Create User
Description
Merchant can use this API to create a user and assign a fixed token address to the user
Test environment
https://paytest.alchemypay.cc/openApi/createUser
Prod environment
https://service.alchemypay.cc/openApi/createUser
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 |
unionId | Y | string | user's unique ID can't be duplicated, can be user's mail or merchant defined ID |
crypto | Y | string | there are two choices for now: c_TRON_USDT c_BSC_USDT in case user want to have both, please input to be separated by commas, please refer to the request sample |
noticeUrl | N | string | Webhook URL to get the notify message from Alchemy Pay |
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 |
merchantCode | Y | string | once a merchant has been on-boarded with Alchemy Pay, the merchant will be provided with the credentials with merchantCode&Key |
unionId | Y | string | user's unique ID can't be duplicated, can be user's mail or merchant defined ID |
userid | Y | string | Alchemy Pay assigned unique user ID |
dataInfo | Y | hash | |
crypto | Y | string | crypto type, c_TRON_USDT c_BSC_USDT multiple crypto must be separated by commas |
address | Y | string | crypto address |
sign | Y | string | signature |
Request sample with multiple crypto
{
"unionId":"T1111111111111",
"sign":"FEDC425FE93549B48B4ACAB451979F2B",
"merchantCode":"ME1634111841889",
"crypto":"c_TRON_USDT,c_BSC_USDT"
}
Request sample with one crypto
{
"unionId":"T1111111111111",
"sign":"FEDC425FE93549B48B4ACAB451979F2B",
"merchantCode":"ME1634111841889",
"crypto":"c_TRON_USDT"
}
Response sample with multiple crypto
{
"code": "000000",
"msg": "success",
"data": {
"sign": "7B1D87F47CC8EF4DA8342D330503B1C4",
"merchantCode": " ME1634111841889Y",
"unionId": "T1111111111111",
"userid": "U11111111",
"dataInfo": [{
"crypto": "c_TRON_USDT",
"address": "****************"
"crypto": "c_BSC_USDT",
"address": "****************"
}]
}
}
Response sample with one crypto
{
"code": "000000",
"msg": "success",
"data": {
"sign": "7B1D87F47CC8EF4DA8342D330503B1C4",
"merchantCode": "ME1634111841889Y",
"unionId": "T2222222222",
"userid": "U11111111",
"dataInfo": [{
"crypto": "c_TRON_USDT",
"address": "****************"
}]
}
}
Updated 3 months ago