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
Name | Type | Description |
---|---|---|
phone | string | số điện thoại |
pos_id | string | id địa điểm |
Headers
Name | Type | Description |
---|---|---|
Authorization | string | bearer <access_token> |
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
Name | Type | Description |
---|---|---|
pos_id | string | id địa điểm |
Headers
Name | Type | Description |
---|---|---|
Content-Type | string | application/json |
Authorization | string | Bearer <access_token> |
Request Body
Name | Type | Description |
---|---|---|
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 |
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
Name | Type | Description |
---|---|---|
pos_id | string | id địa điểm |
Headers
Name | Type | Description |
---|---|---|
Content-Type | string | application/json |
Authorization | string | Bearer <access_token> |
Request Body
Name | Type | Description |
---|---|---|
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 |
Last updated