Tag API
API cho phép tạo mới , chỉnh sửa và xóa tag
Lấy danh sách tag
GET
{{ base_url }}/tags
Cho phép lấy danh sách tag
Query Parameters
Name | Type | Description |
---|---|---|
merchant_id_app | string | id merchant |
pos_id | string | id địa điểm |
Headers
Name | Type | Description |
---|---|---|
Authorization | string | Bearer <access_token> |
Truyền vào merchant_id_app hoặc pos_id:
+ Nếu truyền vào merchant_id_app sẽ lấy danh sách tất cả các tag của merchant
+ Nếu truyền vào pos_id sẽ lấy danh sách tất cả các tag của shop
Tạo mới và chỉnh sửa tag
POST
{{ base_url }}/tags
api cho phép tạo mới và chỉnh sửa tag
Query Parameters
Name | Type | Description |
---|---|---|
pos_id | string | id địa điểm |
tag_id | string | id tag (nếu không truyền vào sẽ tạo mới, nếu có sẽ update thông tin tag ) |
Headers
Name | Type | Description |
---|---|---|
Authorizatin | string | Bearer <access_token> |
Content-Type | string | multipart/form-data |
Request Body
Name | Type | Description |
---|---|---|
name | string | tên tag |
description | string | mô tả tag |
Xóa tag
DELETE
{{ base_url }}/tags
cho phép xóa tag
Query Parameters
Name | Type | Description |
---|---|---|
pos_id | string | id địa điểm |
tag_id | string | id tag |
Headers
Name | Type | Description |
---|---|---|
Authorization | string | Bearer <access_token> |
Last updated