Member API
API quản lý thành viên
Lấy thông tin thành viên
GET
{{base_url}}/customers_location
Cho phép lấy thông tin thành viên của một địa điểm (shop, cửa hàng, nhà hàng...) theo số điện thoại.
Query Parameters
phone
string
số điện thoại
pos_id
string
id địa điểm
Headers
Authorization
string
bearer <access_token>
{
"status": 200,
"message": "Customer info",
"data": {
"_id": "5d8c353a7c857b43b4eff3ae",
"age_range": null,
"year_birthday": "1996",
"home_town": "Ha Noi",
"twitter": null,
"gender": "1",
"created_at": "26-09-2019",
"fb_id": "152134088",
"phone": "0945350398",
"birthday": "05-30",
"facebook": "https://www.facebook.com/CRMX.com.vn/",
"address": "Phao Dai Lang",
"relationship_status": "Chua ket hon",
"client_mac": [],
"email": "phundk59uet@gmail.com",
"name": "Ly Tu Quang Thang",
"updated_at": "26-09-2019"
}
Tạo mới thành viên
POST
{{base_url}}/customers_location
Cho phép tạo mới thành viên vào một địa điểm
Query Parameters
pos_id
string
id địa điểm
Headers
Content-Type
string
application/json
Authorization
string
Bearer <access_token>
Request Body
name
string
Họ và tên
phone
string
Số điện thoại
string
gender
string
Giới tính (nam: 1, nữ: 2)
relationship_status
string
Trạng thái hôn nhân
birthday
string
Sinh nhật (mm-dd)
year_birthday
string
Năm sinh
home_town
string
Quê quán
address
string
Địa chỉ
fb_id
string
id facebook
string
Link facebook cá nhân
string
Link twitter cá nhân
{
"status": 200,
"status_code": 200,
"message": "Success!"
}
Thay đổi thông tin thành viên
PUT
{{base_url}}/customers_location
Cho phép tạo mới thành viên vào một địa điểm
Query Parameters
pos_id
string
id địa điểm
Headers
Content-Type
string
application/json
Authorization
string
Bearer <access_token>
Request Body
name
string
Họ và tên
phone
string
Số điện thoại
string
gender
string
Giới tính (nam: 1, nữ: 2)
relationship_status
string
Trạng thái hôn nhân
birthday
string
Sinh nhật (mm-dd)
year_birthday
string
Năm sinh
home_town
string
Quê quán
address
string
Địa chỉ
fb_id
string
id facebook
string
Link facebook cá nhân
string
Link twitter cá nhân
{
"status": 200,
"status_code": 200,
"message": "Success!"
}
Last updated
Was this helpful?