Location API

API cho phép tạo mới và cập nhật thông tin địa điểm

Tạo mới địa điểm

POST {{base_url}}/create_location

Cho phép tạo mới một địa điểm

Query Parameters

Name
Type
Description

merchant_id_app

string

id chuỗi ( setting trong nextify.crm.vn/apps )

pos_id

string

id địa điểm

method

string

"add"

Headers

Name
Type
Description

Content-Type

string

multipart/form-data

Authorization

string

Bearer <access_token>

Request Body

Name
Type
Description

name

string

tên địa điểm

google_pixel_code

string

code pixel google

connect_button

string

text nút kết nối

welcome_member_text_splash

string

lời chào trang mặc định

page_id

string

ID page

facebook_pixel_id

string

ID facebook pixel

facebook_pixel_code

string

code facebook pixel

ignore_resgister

string

bỏ qua yêu cầu đăng ký

wifi_access_code

string

code access wifi

user_otp_required

string

yêu cầu bắt buộc otp user

user_otp

string

sử dụng mã otp

facebook_page

string

Facebook page

zalo_oa_id

string

zalo oa ID

zalo_oa_key

string

Zalo oa key

date_start_contract

string

Ngày bắt đầu hợp đồng

date_end_contract

string

Ngày kết thúc hợp đồng

auto_popup

string

Chuyển hướng sau đăng nhập

logo

string

ảnh logo

background

string

ảnh nền

phone

string

số điện thoại

email

string

email

website

string

website trang chủ

hotline

string

số hotline

address

string

địa chỉ

{
    "status": 200,
    "message": "success!",
    "data": {
        "_id": "5d9dfab67c0268d2439de2a5",
        "pos_id": "578965",
        "name": "chuong123test",
        "email_template": {
            "announcement": {},
            "return": {},
            "lost": {},
            "happy_birthday": {},
            "welcome": {},
            "loyal": {}
        },
        "sms": {
            "announcement": {},
            "return": {},
            "lost": {},
            "happy_birthday": {},
            "welcome": {},
            "loyal": {}
        },
        "splash_lang": "vi",
        "phone": "0396804012",
        "background": "7f7e2b3dd5307666bc68a075b97c6fcf.jpeg",
        "welcome_member_text_splash": null,
        "logo": "7f7e2b3dd5307666bc68a075b97c6fcf.jpeg",
        "merchant_id": "5a616f383fd79c2db9147c6a",
        "slug": "chuong123test"
    }
}

Update địa điểm

PUT {{base_url}}/create_location

Cho phép update địa điểm

Query Parameters

Name
Type
Description

pos_id

string

id địa điểm

Headers

Name
Type
Description

Authorization

string

Bearer <access_token>

Request Body

Name
Type
Description

name

string

tên địa điểm

background

string

ảnh nền

logo

string

ảnh logo

phone

string

số điện thoại

email

string

email

website

string

website công ty

hotline

string

số hotline

address

string

địa chỉ

facebook_page

string

trang facebook địa điểm

zalo_oa_id

string

zalo oa id

zalo_oa_key

string

zalo oa key

date_start_contract

string

Ngày bắt đầu hợp đồng

date_end_contract

string

Ngày kết thúc hợp đồng

auto_popup

string

Trang chuyển hướng khi kết nối

ignore_register

string

wifi_access_code

string

use_otp_required

string

yêu cầu bắt buộc otp

connect_button

string

text nút kết nối

welcome_member_text_splash

string

lời chào trang mặc định

page_id

string

id page

facebook_pixel_id

string

id facebook pixel

facebook_pixel_code

string

code pixel facebook

google_pixel_code

string

code pixel google

Lấy thông tin địa điểm

GET {{base_url}}/locations

Cho phép lấy thông tin địa điểm

Query Parameters

Name
Type
Description

pos_id

string

id địa điểm

Headers

Name
Type
Description

Authorization

string

Bearer <access_token>

Last updated

Was this helpful?