Sign up a new user

Sign-up

POST https://api.vndc.io/merchant/register_account

A merchant can create a new account for a new user that they referred.

Headers

Request Body

{
    "code": "success",
    "message": "Đăng ký thành công. Vui lòng kiểm tra email để kích hoạt.",
    "data": {
        "user": {
            "id": "6277729709289981854",
            "display": "Test User 2",
            "shortDisplay": "4936354455"
        },
        "generatedPasswords": [],
        "rootUrl": "https://wallet.vndc.io/email",
        "principals": [
            {
                "value": "4936354455",
                "type": {
                    "id": "6277729709576826782",
                    "name": "Login name",
                    "internalName": "username",
                    "kind": "username"
                }
            },
            {
                "value": "it_011@trustpay.vn",
                "type": {
                    "id": "6277729709576828830",
                    "name": "E-mail",
                    "internalName": "email",
                    "kind": "email"
                }
            }
        ],
        "status": "emailValidation"
    }
}

Resend phone verification code

POST https://api.vndc.io/merchant/resend_verification_code

Send OTP to verify the user again.

Request Body

{
    "code": "success",
    "message": "Gửi mã xác thực thành công"
}

Verify the phone

POST https://api.vndc.io/merchant/verify_phone

Request Body

{
    "code": "success",
    "message": "Kích hoạt SMS thành công"
}

Last updated