Skip to main content

15. Pre-Registered Account Setup

Some shops may have already registered to use GHTK services. In these cases, it is not necessary to create a new account. Instead, simply retrieve the token of the shop account using this API

POST /services/shops/token
POST https://services.giaohangtietkiem.vn/services/shops/token HTTP/1.1
Host: services.giaohangtietkiem.vn
Token: APITokenSample-ca441e70288cB0515F310742
Content-Type: application/json

{
"email": "shoptest@email.com",
"password": "1S@fF#K2"
}

Parameters

ParameterRequiredDescription
emailyesEmail of the account to retrieve the token for
passwordyesPassword of the account to authenticate login

Notes

info

Note: Only B2C accounts are allowed to use this API to retrieve tokens.

Response

Success
{
"success": true,
"message": "Thành công",
"data": {
"code": "S19159",
"token": "5568B780966147C0764EDD207af0233516E4c683"
}
}
When the authentication credentials (email or password) are incorrect
{
"success": false,
"message": "Dữ liệu đăng nhập không hợp lệ"
}
When the B2C account does not have permission to retrieve the token of the requested account
{
"success": false,
"message": "Tài khoản của bạn không có quyền sử dụng API này"
}