Kiểm tra tài khoản với SĐT khách hàng mong muốn đăng ký thành viên loyalty đã tồn tại hay chưa
Request
Request Method
| Code Block | ||
|---|---|---|
| ||
GET |
Request URL
| Code Block | ||||
|---|---|---|---|---|
| ||||
http://loyalty.sojo247.com/api/sojo-loyalty-members/check-account-exits?phone=phonenumber |
Request params
| Parameter | Required | Type | Value | Description |
|---|---|---|---|---|
| phone | yes | String | Số điện thoại của khách hàng |
Request headers
| Key | Required | Value | Description |
|---|---|---|---|
| popp-key | Yes | 15d28286-05c9-4ee5-aa8d-7a370221b00a | Mã api-key popp cung cấp cho TNH |
| token | Yes | {{token}} | token bảo mật user của hệ thống TNH | requestId | Yes | ID của user cần xem thông tin, id là duy nhất |
Request Examples
| Code Block | ||||
|---|---|---|---|---|
| ||||
curl -X 'GET' \
'http://loyalty.sojo247.com/api/sojo-loyalty-members/check-account-exits?phone=phonenumber' \
-H 'accept: */*' \
-H 'Authorization: {{token}}' |
Response
Response parameters
| Parameter | Type | Description |
|---|---|---|
| code | string | mã trả về, 00 là thành công, khác 00 là chưa thành công |
| message | string | nội dung thông báo trả về |
| 1 là đã tồn tại, 0 là không tồn tại |
Response Examples
| Code Block | ||||
|---|---|---|---|---|
| ||||
"data": [ { "code": "00", "message": "Thành công" }"0 |