Create User

Description

Merchant use this API to create user and assign a fixed token address to 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

ElementMandatoryData TypeRemarks
merchantCodeYstringonce a merchant has been on-boarded with Alchemy Pay, the merchant will be provided with the credentials with merchantCode&Key
unionIdYstringuser's unique ID can't be duplicated, can be user's mail or merchant defined ID
cryptoYstringthere 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
noticeUrlNstringWebhook URL to get the notify message from Alchemy Pay
signYstringsignature

Http response

ElementMandatoryData TypeRemarks
codeYstringresponse code
msgYstringresponse message
dataYhashresponse data
merchantCodeYstringonce a merchant has been on-boarded with Alchemy Pay, the merchant will be provided with the credentials with merchantCode&Key
unionIdYstringuser's unique ID can't be duplicated, can be user's mail or merchant defined ID
useridYstringAlchemy Pay assigned unique user ID
dataInfoYhash
cryptoYstringcrypto type,
c_TRON_USDT
c_BSC_USDT
multiple crypto must be separated by commas
addressYstringcrypto address
signYstringsignature

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": "****************"
        }]
    }
}