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>

{
    "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

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

email

string

Email

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

facebook

string

Link facebook cá nhân

twitter

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

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

email

string

Email

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

facebook

string

Link facebook cá nhân

twitter

string

Link twitter cá nhân

{
    "status": 200,
    "status_code": 200,
    "message": "Success!"
}

Last updated

Was this helpful?