/shops/{SHOP_ID}/productsTạo sản phẩmPUT/shops/{SHOP_ID}/products/{PRODUCT_ID}Cập nhật thông tin sản phẩmPOST/shops/{SHOP_ID}/variations/{VARIATION_ID}/update_quantityCập nhật tồn khoPOST/shops/{SHOP_ID}/variations/update_quantityCập nhật tồn kho nhiều mẫu mãPOST/shops/{SHOP_ID}/variations/update_composite_productCập nhật sản phẩm cấu thànhGET/shops/{SHOP_ID}/products/variationsDanh sách sản phẩmGET/shops/{SHOP_ID}/products/{PRODUCT_SKU}Lấy thông tin 1 sản phẩmPUT/shops/{SHOP_ID}/products/update_hideẨn sản phẩmGET/shops/{SHOP_ID}/tags_productsDanh sách thẻ sản phẩmPOST/shops/{SHOP_ID}/tags_productsTạo thẻ sản phẩmGET/shops/{SHOP_ID}/categoriesDanh mục sản phẩmPOST/shops/{SHOP_ID}/categoriesTạo danh mục sản phẩmGET/shops/{SHOP_ID}/brandDanh sách thương hiệu sản phẩmGET/shops/{SHOP_ID}/materials_productsChất liệu sản phẩmGET/shops/{SHOP_ID}/product_measurements/get_measureDanh sách nhóm đơn vị tínhTạo sản phẩm
/shops/{SHOP_ID}/productsTham số đường dẫn
SHOP_IDintegerbắt buộcMã shop
Nội dung yêu cầu
Thông tin yêu cầu chứa thông tin sản phẩm cần tạo
productProductbắt buộcThông tin sản phẩm
Phản hồi
successbooleanTrạng thái thành công
curl -X POST "https://pos.pages.fm/api/v1/shops/{SHOP_ID}/products?api_key=API_KEY" \
-H "Content-Type: application/json" \
-d '{
"product": {
"name": "Ao so mi nam",
"type": "product",
"category_ids": [
1290021044,
201250699
],
"note_product": "Ghi chú sản phẩm",
"product_attributes": [
{
"name": "Màu",
"values": [
"Đen",
"Trắng",
"Đỏ"
]
},
{
"name": "Size",
"values": [
"S",
"M",
"L"
]
}
],
"tags": [
193,
51
],
"variations": [
{
"fields": [
{
"name": "Màu",
"value": "Trắng"
},
{
"name": "Size",
"value": "M"
}
],
"images": [
"https://statics.pancake.vn/user-content.pancake.vn/2021/8/5/fccd6.jpg"
],
"last_imported_price": 30000,
"retail_price": 140000,
"price_at_counter": 123000,
"retail_price_by_currency": [
{
"currency": "VND",
"retailPriceByCurrency": 140000
},
{
"currency": "USD",
"retailPriceByCurrency": 6
}
],
"weight": 0,
"barcode": "BARCODE123",
"custom_id": "VCUSTOMID",
"is_hidden": false,
"variations_warehouses": [
{
"remain_quantity": 10,
"warehouse_id": "c52e67ad-d9d0-4276-abe4-e0c9f1f7d2da",
"batch_position": "lô 1",
"shelf_position": "1.2"
}
],
"wholesale_price2": [
{
"levelProduct": "1",
"wholesalePrices": "100000"
},
{
"levelProduct": "2",
"wholesalePrices": "200000"
}
]
}
],
"weight": 1,
"custom_id": "PCUSTOMID",
"is_published": true,
"materials": [
182,
193
],
"bonus_products": [
{
"quantity": 1,
"variation_id": "61fb5d14-107d-4b78-908d-8dc04f59d2d6",
"price_original": 11000,
"images": [
"https://statics.pancake.vn/user-content.pancake.vn/2021/8/5/fccd6.jpg"
],
"variation_info": {
"id": "1",
"measure_group_id": "2220",
"measure_info": {
"exchange_value": 100000,
"measure_id": 2252
},
"name": "Combo 10 cây giống Cải nhún",
"product_id": "RAL10.2675",
"weight": 1000
}
}
],
"keyword": "vai|cao cấp",
"brand_id": "c52e67ad-d9d0-4276-abe4-e0c9f1f7d2da"
}
}'{
"success": true
}Cập nhật thông tin sản phẩm
/shops/{SHOP_ID}/products/{PRODUCT_ID}Tham số đường dẫn
SHOP_IDintegerbắt buộcMã shop
PRODUCT_IDstringbắt buộcMã sản phẩm
Nội dung yêu cầu
Thông tin yêu cầu chứa thông tin sản phẩm cần cập nhật
productProductbắt buộcThông tin sản phẩm
Phản hồi
successbooleanTrạng thái thành công
curl -X PUT "https://pos.pages.fm/api/v1/shops/{SHOP_ID}/products/{PRODUCT_ID}?api_key=API_KEY" \
-H "Content-Type: application/json" \
-d '{
"product": {
"name": "Ao so mi nam",
"type": "product",
"category_ids": [
1290021044,
201250699
],
"note_product": "Ghi chú sản phẩm",
"product_attributes": [
{
"name": "Màu",
"values": [
"Đen",
"Trắng",
"Đỏ"
]
},
{
"name": "Size",
"values": [
"S",
"M",
"L"
]
}
],
"variations": [
{
"id": "3c3aca82-030e-4708-a75b-b2eaf538a2f5",
"fields": [
{
"name": "Màu",
"value": "Trắng"
},
{
"name": "Size",
"value": "M"
}
],
"images": [],
"last_imported_price": 30000,
"retail_price": 140000,
"price_at_counter": 123000,
"retail_price_by_currency": [
{
"currency": "VND",
"retailPriceByCurrency": 140000
},
{
"currency": "USD",
"retailPriceByCurrency": 6
}
],
"weight": 0,
"barcode": "BARCODE123",
"custom_id": "VCUSTOMID",
"is_hidden": false,
"variations_warehouses": [
{
"remain_quantity": 10,
"warehouse_id": "c52e67ad-d9d0-4276-abe4-e0c9f1f7d2da",
"batch_position": "lô 1",
"shelf_position": "1.2"
}
],
"wholesale_price2": [
{
"levelProduct": "1",
"wholesalePrices": "100000"
},
{
"levelProduct": "2",
"wholesalePrices": "200000"
}
]
},
{
"fields": [
{
"name": "Màu",
"value": "Đỏ"
},
{
"name": "Size",
"value": "L"
}
],
"images": [
"https://statics.pancake.vn/user-content.pancake.vn/2021/8/5/fccd6.jpg"
],
"last_imported_price": 30000,
"retail_price": 140000,
"price_at_counter": 123000,
"retail_price_by_currency": [
{
"currency": "VND",
"retailPriceByCurrency": 140000
},
{
"currency": "USD",
"retailPriceByCurrency": 6
}
],
"weight": 0,
"barcode": "BARCODE123",
"custom_id": "VCUSTOMID2",
"is_hidden": false,
"variations_warehouses": [
{
"remain_quantity": 10,
"warehouse_id": "c52e67ad-d9d0-4276-abe4-e0c9f1f7d2da",
"batch_position": "lô 1",
"shelf_position": "1.2"
}
],
"wholesale_price2": [
{
"levelProduct": "1",
"wholesalePrices": "100000"
},
{
"levelProduct": "2",
"wholesalePrices": "200000"
}
]
}
],
"weight": 1,
"custom_id": "PCUSTOMID",
"is_published": true,
"tags": [
193,
51
],
"materials": [
182,
193
],
"bonus_products": [
{
"quantity": 1,
"variation_id": "61fb5d14-107d-4b78-908d-8dc04f59d2d6",
"price_original": 11000,
"images": [
"https://statics.pancake.vn/user-content.pancake.vn/2021/8/5/fccd6.jpg"
],
"variation_info": {
"id": "1",
"measure_group_id": "2220",
"measure_info": {
"exchange_value": 100000,
"measure_id": 2252
},
"name": "Combo 10 cây giống Cải nhún",
"product_id": "RAL10.2675",
"weight": 1000
}
}
],
"keyword": "vai|cao cấp"
}
}'{
"success": true
}Cập nhật tồn kho
/shops/{SHOP_ID}/variations/{VARIATION_ID}/update_quantityCập nhật số lượng tồn kho cho mẫu mã
Tham số đường dẫn
SHOP_IDintegerbắt buộcMã shop
VARIATION_IDstringbắt buộcMã mẫu mã
Nội dung yêu cầu
Thông tin yêu cầu chứa thông tin cập nhật tồn kho cho mẫu mã
variations_warehousesarray<object>bắt buộcThông tin kho
Phản hồi
successbooleanTrạng thái thành công
curl -X POST "https://pos.pages.fm/api/v1/shops/{SHOP_ID}/variations/{VARIATION_ID}/update_quantity?api_key=API_KEY" \
-H "Content-Type: application/json" \
-d '{
"variations_warehouses": [
{
"remain_quantity": 20,
"warehouse_id": "a41b5d73-9236-4a5d-9954-4db6d93242d1"
},
{
"remain_quantity": 20,
"warehouse_id": "a41b5d73-9236-4a5d-9954-4db6d93242d4"
},
{
"remain_quantity": 20,
"warehouse_id": "a41b5d73-9236-4a5d-9954-4db6d93242d5"
}
]
}'{
"success": true
}Cập nhật tồn kho nhiều mẫu mã
/shops/{SHOP_ID}/variations/update_quantityCập nhật số lượng tồn kho cho nhiều mẫu mã
Tham số đường dẫn
SHOP_IDintegerbắt buộcMã shop
Nội dung yêu cầu
Thông tin yêu cầu chứa thông tin cập nhật tồn kho cho nhiều mẫu mã
variations_warehousesarray<object>bắt buộcThông tin tồn kho
is_actual_remain_quantitybooleantrue: Cập nhật tồn kho, false: Cập nhật có thể bán
Phản hồi
successbooleanTrạng thái thành công
curl -X POST "https://pos.pages.fm/api/v1/shops/{SHOP_ID}/variations/update_quantity?api_key=API_KEY" \
-H "Content-Type: application/json" \
-d '{
"is_actual_remain_quantity": true,
"variations_warehouses": [
{
"variation_id": "20e7d183-c70c-445e-8ce2-4d7e3a378e34",
"remain_quantity": 15,
"warehouse_id": "229102e4-39c3-4523-bd57-4ed0a45a85ba"
},
{
"variation_id": "5f0cfb8d-aee9-4ec0-9ff0-b5668d3143d2",
"remain_quantity": 15,
"warehouse_id": "24c4447e-c35f-4acc-affa-70e49eb354d1"
}
]
}'{
"success": true
}Cập nhật sản phẩm cấu thành
/shops/{SHOP_ID}/variations/update_composite_productCập nhật thông tin sản phẩm cấu thành
Tham số đường dẫn
SHOP_IDintegerbắt buộcMã shop
Nội dung yêu cầu
Thông tin yêu cầu chứa thông tin cập nhật sản phẩm cấu thành
variation_idstringbắt buộcMã mẫu mã
composite_productsarray<object>bắt buộcDanh sách sản phẩm cấu thành
Phản hồi
successbooleanTrạng thái thành công
curl -X POST "https://pos.pages.fm/api/v1/shops/{SHOP_ID}/variations/update_composite_product?api_key=API_KEY" \
-H "Content-Type: application/json" \
-d '{
"variation_id": "79aecce9-3b1e-4ad3-afe1-2ee658720687",
"composite_products": [
{
"quantity": 1,
"component_id": "67b19856-3226-457e-a746-df26e4ec1360"
}
]
}'{
"success": true
}Danh sách sản phẩm
/shops/{SHOP_ID}/products/variationsLấy danh sách sản phẩm và mẫu mã, kèm thông tin tồn kho theo từng kho, tốc độ bán (để phát hiện sản phẩm sắp hết hàng) và nhà cung cấp.
Tham số đường dẫn
SHOP_IDintegerbắt buộcMã shop
Tham số truy vấn
page_sizeintegerKích thước trang
page_numberintegerSố trang
searchstringTừ khóa tìm kiếm
selling_statusstringTốc độ bán
"none"Thử nghiệm"bad"Bán chậm"normal"Bình thường"star"Bán nhanhproduct_statusstringTrạng thái sản phẩm
"locked"Không hoạt động"not_locked"Hoạt độngcategory_id[]array<integer>Danh sách mã danh mục
is_filter_categories_by_orbooleanLọc danh mục theo điều kiện or
filter_exclude_categoriesbooleanLọc loại trừ danh mục
warehouse_untilstring · date-timeLấy thông tin tồn kho tại 1 thời điểm
promotion_advance[]array<string>ID khuyến mãi nâng cao
manipulationWarehouse[]array<string>Mã kho thao tác
startDateintegerThời điểm đầu tạo sản phẩm
endDateintegerThời điểm cuối tạo sản phẩm
start_time_updateintegerThời điểm đầu cập nhật sản phẩm
end_time_updateintegerThời điểm cuối cập nhật sản phẩm
included_compositestringLọc sản phẩm cấu thành
"parent"Sản phẩm được cấu thành từ sản phẩm khác"children"Sản phẩm cấu thành cho sản phẩm khácfalseKhông lọcvariation_ids[]array<string>Lọc theo mã sản phẩm
product_attributes[]array<string>Lọc theo thuộc tính sản phẩm
remainQuantitystringLọc theo số tồn có thể bán (remain_quantity). Truyền JSON dưới dạng chuỗi:
type:"greaterOrEqual"|"smallerOrEqual"|"between"value: ngưỡng so sánh khitypelàgreaterOrEqual/smallerOrEqualminValue,maxValue: khoảng dùng khitypelàbetweenwarehouseId:"all"| UUID kho | mảng UUID — giới hạn các kho tham gia lọcisFilterTotal:false(mặc định) so sánh từng kho;trueso sánh TỔNG qua các kho được chọn Khi bất kỳ filter số lượng nào (remainQuantity/actualQuantity/waittingQuantity/returningQuantity/pendingQuantity/totalQuantity) được set, mỗi variation trong response sẽ có thêm trườngwarehouse_idsliệt kê các kho match điều kiện.
actualQuantitystringLọc theo số tồn thực có trong kho (actual_remain_quantity). Cùng cấu trúc JSON với remainQuantity.
waittingQuantitystringLọc theo số lượng đang chờ giao (waitting_quantity). Cùng cấu trúc JSON với remainQuantity. (Lưu ý: tên param giữ nguyên cách viết waitt- để tương thích với client hiện hữu.)
returningQuantitystringLọc theo số lượng đang trả về kho (returning_quantity). Cùng cấu trúc JSON với remainQuantity.
pendingQuantitystringLọc theo số lượng đang giữ chỗ (pending_quantity). Cùng cấu trúc JSON với remainQuantity.
totalQuantitystringLọc theo tổng số lượng (total_quantity). Cùng cấu trúc JSON với remainQuantity.
limit_quantity_to_warnbooleanKhi true, chỉ trả về sản phẩm có tồn kho đã chạm ngưỡng cảnh báo — tức sản phẩm sắp hết hàng. Ngưỡng được cấu hình theo từng sản phẩm (limit_quantity_to_warn trên Sản phẩm hoặc Mẫu mã, tùy theo cờ warning_by_variation của sản phẩm đó).
defectQuantitybooleanKhi true, chỉ trả về mẫu mã có hàng lỗi/hỏng (defect_quantity > 0 ở ít nhất một kho).
nearly_outbooleanKhi true, chỉ trả về mẫu mã được đánh dấu sắp hết hàng ở ít nhất một kho (cờ nearly_out đã tính sẵn trên row kho). Tương tự limit_quantity_to_warn nhưng đọc cờ đã lưu theo từng kho thay vì tính lại ngưỡng lúc query.
Phản hồi
dataarray<object>Danh sách sản phẩm và mẫu mã
page_numberintegerSố trang
page_sizeintegerKích thước trang
successbooleanTrạng thái thành công
total_entriesintegerTổng số bản ghi
total_pagesintegerTổng số trang
curl "https://pos.pages.fm/api/v1/shops/{SHOP_ID}/products/variations?api_key=API_KEY"{
"success": true,
"data": [
{
"average_imported_price": 50000,
"barcode": null,
"display_id": "ADXL",
"is_hidden": false,
"is_locked": false,
"is_sell_negative_variation": true,
"fields": [
{
"id": "b032c515-3f71-4a1b-8e1d-77721ae72f37",
"name": "màu",
"value": "nâu"
},
{
"id": "677c14b5-458f-4af6-8d73-08bcb2245547",
"name": "size",
"value": "s"
}
],
"id": "e190db2b-1163-4cc3-b956-7a9528fbf5ef",
"images": [
"https://cf.shopee.vn/file/03e670d02803fcfbb17b2b719762ee17",
"https://cf.shopee.vn/file/9070bb1b0e6fcc84b46b6e5057544023"
],
"inserted_at": "2024-01-10T14:34:44.000000",
"last_imported_price": 55000,
"price_at_counter": 123000,
"product_id": "3b98a639-9d40-4faa-a692-6662f20e128d",
"product": {
"note": "Dễ vỡ",
"note_product": "Ghi chú sản phẩm",
"categories": [],
"display_id": "ADXL",
"image": "https://content.pancake.vn/user-content-dev2.pancake.vn/2024/11/7/1fdf82943574017240257bf9c88bc70a06a8813a.png",
"inserted_at": "2024-01-10T14:34:44",
"measure_group_id": 58,
"name": "ASOS đen XL",
"supplier_product_ids": [
270
],
"tags": [
{
"id": 51,
"note": "the 3"
},
{
"id": 193,
"note": "thẻ 1"
}
],
"is_published": true,
"manipulation_warehouses": [
"c52e67ad-d9d0-4276-abe4-e0c9f1f7d2da"
],
"product_attributes": [
{
"name": "Color",
"values": [
"black",
"white"
]
},
{
"name": "Size",
"values": [
"S",
"M"
]
}
],
"bonus_products": [
{
"quantity": 1,
"variation_id": "61fb5d14-107d-4b78-908d-8dc04f59d2d6",
"price_original": 11000,
"images": [
"https://statics.pancake.vn/user-content.pancake.vn/2021/8/5/fccd6.jpg"
],
"variation_info": {
"id": "1",
"measure_group_id": "2220",
"measure_info": {
"exchange_value": 100000,
"measure_id": 2252
},
"name": "Combo 10 cây giống Cải nhún",
"product_id": "RAL10.2675",
"weight": 1000
}
}
]
},
"remain_quantity": 20,
"retail_price": 140000,
"retail_price_by_currency": [
{
"currency": "VND",
"retailPriceByCurrency": "140000"
},
{
"currency": "USD",
"retailPriceByCurrency": "6"
}
],
"size": {
"length": 10,
"width": 10,
"height": 10
},
"total_purchase_price": 4500000,
"variations_warehouses": [
{
"actual_remain_quantity": 100,
"pending_quantity": 0,
"remain_quantity": 20,
"returning_quantity": 0,
"selling_avg": 0.23,
"total_quantity": 102,
"warehouse_id": "a41b5d73-9236-4a5d-9954-4db6d93242d1"
}
],
"wholesale_price": [],
"price_table": [
{
"id": "a07c-3f7b-2db0-8002-6a88-7d4c-e7c3",
"name": "Giá bán sỉ",
"price": 200000
},
{
"id": "2251-43fa-9de5-765f-89ab-7246-c67b",
"name": "Giá bán lẻ",
"price": 150000
}
],
"keyword": "ANPR",
"updated_at": "2026-03-09T01:45:58.013616"
}
],
"page_number": 1,
"page_size": 30,
"total_entries": 751,
"total_pages": 26
}Lấy thông tin 1 sản phẩm
/shops/{SHOP_ID}/products/{PRODUCT_SKU}Tham số đường dẫn
SHOP_IDintegerbắt buộcMã shop
PRODUCT_SKUstringbắt buộcMã SKU hoặc ID sản phẩm
Phản hồi
namestringbắt buộcTên sản phẩm
weightintegerbắt buộcTrọng lượng sản phẩm
measure_group_idintegerMã nhóm đơn vị tính
typestringLoại hình sản phẩm. product: Sản phẩm (mặc định). accessory: Phụ kiện, đi kèm đơn hàng, không có giá bán (giá bán được đưa về 0) và không tính vào số lượng hàng bán được trong báo cáo. service: Dịch vụ, không cần quản lý tồn kho. LOT: Sản phẩm có HSD, quản lý tồn kho theo lô hạn sử dụng, bắt buộc chọn lô khi nhập/xuất kho (shop cần bật quản lý lô).
"product""accessory""service""LOT"category_idsarray<integer>Danh sách mã danh mục
notestringGhi chú nội bộ
note_productstringGhi chú sản phẩm
product_attributesarray<object>Thuộc tính sản phẩm
tagsarray<integer>Thẻ sản phẩm
custom_idstringMã tùy chỉnh sản phẩm
is_publishedbooleanTrạng thái Store cake
variationsarray<Variation>Danh sách mẫu mã
curl "https://pos.pages.fm/api/v1/shops/{SHOP_ID}/products/{PRODUCT_SKU}?api_key=API_KEY"{
"measure_group_id": 58,
"name": "Ao so mi nam",
"category_ids": [
1290021044,
201250699
],
"note": "dễ vỡ",
"note_product": "Ghi chú sản phẩm",
"product_attributes": [
{
"name": "Color",
"values": [
"black",
"white"
]
},
{
"name": "Size",
"values": [
"s",
"m"
]
}
],
"tags": [
193,
51
],
"weight": 1,
"custom_id": "PCUSTOMID",
"is_published": true,
"variations": [
{
"id": null,
"fields": [
{
"name": "Màu",
"value": "Trắng"
},
{
"name": "Size",
"value": "M"
}
],
"images": [
"https://statics.pancake.vn/user-content.pancake.vn/2021/8/5/fccd6.jpg"
],
"last_imported_price": 30000,
"retail_price": 140000,
"retail_price_by_currency": [
{
"currency": "VND",
"retailPriceByCurrency": "140000"
},
{
"currency": "USD",
"retailPriceByCurrency": "6"
}
],
"price_at_counter": 123000,
"weight": 0,
"size": {
"length": 10,
"width": 10,
"height": 10
},
"barcode": "BARCODE123",
"custom_id": "VCUSTOMID",
"is_hidden": false,
"variations_warehouses": [
{
"remain_quantity": 10,
"warehouse_id": "c52e67ad-d9d0-4276-abe4-e0c9f1f7d2da",
"batch_position": "lô 1",
"shelf_position": "1.2"
}
],
"is_removed": false,
"keyword": "VCUSTOMID"
}
],
"variations_warehouses": [
{
"remain_quantity": 10,
"warehouse_id": "c52e67ad-d9d0-4276-abe4-e0c9f1f7d2da",
"batch_position": "lô 1",
"shelf_position": "1.2"
}
],
"materials": [
182,
193
],
"bonus_products": [
{
"quantity": 1,
"variation_id": "61fb5d14-107d-4b78-908d-8dc04f59d2d6",
"price_original": 11000,
"images": [
"https://statics.pancake.vn/user-content.pancake.vn/2021/8/5/fccd6.jpg"
],
"variation_info": {
"id": "1",
"measure_group_id": "2220",
"measure_info": {
"exchange_value": 100000,
"measure_id": 2252
},
"name": "Combo 10 cây giống Cải nhún",
"product_id": "RAL10.2675",
"weight": 1000
}
}
],
"keyword": "vai|cao cấp"
}Ẩn sản phẩm
/shops/{SHOP_ID}/products/update_hideTham số đường dẫn
SHOP_IDintegerbắt buộcMã shop
Nội dung yêu cầu
Thông tin yêu cầu chứa thông tin ẩn/hiện sản phẩm
is_hidebooleanbắt buộcẨn sản phẩm
product_idsarray<string>bắt buộcDanh sách mã sản phẩm
Phản hồi
successbooleanTrạng thái thành công
curl -X PUT "https://pos.pages.fm/api/v1/shops/{SHOP_ID}/products/update_hide?api_key=API_KEY" \
-H "Content-Type: application/json" \
-d '{
"is_hide": true,
"product_ids": [
"3cbf2227-0205-446e-8c0e-584995f3cb23",
"36b1e64c-f1f7-4518-afeb-1f9d2edc0f3e"
]
}'{
"success": true
}Danh sách thẻ sản phẩm
/shops/{SHOP_ID}/tags_productsLấy danh sách thẻ sản phẩm (không gồm thẻ đã xóa), sắp xếp theo thứ tự hiển thị tăng dần
Tham số đường dẫn
SHOP_IDintegerbắt buộcMã shop
Phản hồi
dataarray<object>Danh sách thẻ sản phẩm
successbooleanTrạng thái thành công
curl "https://pos.pages.fm/api/v1/shops/{SHOP_ID}/tags_products?api_key=API_KEY"{
"success": true,
"data": [
{
"id": 358,
"index": 0,
"inserted_at": "2025-07-15T10:38:48",
"updated_at": "2025-07-15T14:43:16",
"note": "Hàng dễ vỡ",
"shop_id": 224
},
{
"id": 359,
"index": 1,
"inserted_at": "2025-07-15T11:05:21",
"updated_at": "2025-07-15T14:43:16",
"note": "Hàng mới về",
"shop_id": 224
}
]
}Tạo thẻ sản phẩm
/shops/{SHOP_ID}/tags_productsTham số đường dẫn
SHOP_IDintegerbắt buộcMã shop
Nội dung yêu cầu
Thông tin yêu cầu chứa thông tin thẻ sản phẩm cần tạo
namestringbắt buộcTên thẻ
Phản hồi
dataobjectThông tin thẻ sản phẩm
successbooleanTrạng thái thành công
curl -X POST "https://pos.pages.fm/api/v1/shops/{SHOP_ID}/tags_products?api_key=API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Sản phẩm dễ vỡ"
}'{
"success": true,
"data": {
"id": 368,
"index": null,
"inserted_at": "2025-09-19T10:26:38",
"note": "Sản phẩm dễ vỡ",
"shop_id": 20,
"updated_at": "2025-09-19T10:26:38"
}
}Danh mục sản phẩm
/shops/{SHOP_ID}/categoriesLấy danh sách danh mục sản phẩm
Tham số đường dẫn
SHOP_IDintegerbắt buộcMã shop
Phản hồi
dataarray<object>Danh sách danh mục
successbooleanTrạng thái thành công
curl "https://pos.pages.fm/api/v1/shops/{SHOP_ID}/categories?api_key=API_KEY"{
"success": true,
"data": [
{
"id": 865301,
"nodes": [],
"text": "AirSense Áo Khoác Siêu Nhẹ"
},
{
"id": 30163,
"nodes": [
{
"id": 30167,
"nodes": [],
"text": "Áo Thun"
},
{
"id": 30169,
"nodes": [
{
"id": 865293,
"nodes": [],
"text": "Áo Thun In Họa Tiết"
}
],
"text": "Áo Cardigan"
},
{
"id": 865292,
"nodes": [],
"text": "Áo Nỉ & Áo Hoodie"
}
],
"text": "ÁO"
}
]
}Tạo danh mục sản phẩm
/shops/{SHOP_ID}/categoriesTham số đường dẫn
SHOP_IDintegerbắt buộcMã shop
Nội dung yêu cầu
Thông tin yêu cầu chứa thông tin danh mục sản phẩm cần tạo
namestringbắt buộcTên danh mục
parent_idstringMã danh mục cha
Phản hồi
dataobjectThông tin danh mục sản phẩm
successbooleanTrạng thái thành công
curl -X POST "https://pos.pages.fm/api/v1/shops/{SHOP_ID}/categories?api_key=API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Sản phẩm dễ vỡ",
"parent_id": 30163
}'{
"success": true,
"data": {
"id": 3299,
"name": "Sản phẩm dễ vỡ"
}
}Danh sách thương hiệu sản phẩm
/shops/{SHOP_ID}/brandLấy danh sách thương hiệu sản phẩm
Tham số đường dẫn
SHOP_IDintegerbắt buộcMã shop
Tham số truy vấn
pageintegerSố trang
page_sizeintegerKích thước trang
searchstringTìm kiếm theo tên thương hiệu hoặc mã thương hiệu
Phản hồi
dataarray<Brand>Danh sách thương hiệu
curl "https://pos.pages.fm/api/v1/shops/{SHOP_ID}/brand?api_key=API_KEY"{
"data": [
{
"id": "921f6676-4103-4b63-8503-78737fa74d11",
"name": "Movado",
"description": "Brand of Viet Nam",
"inserted_at": "2025-09-05T08:43:54",
"updated_at": "2025-09-05T08:43:54",
"shop_id": 2044252,
"display_id": 170
}
]
}Chất liệu sản phẩm
/shops/{SHOP_ID}/materials_productsLấy danh sách chất liệu sản phẩm
Tham số đường dẫn
SHOP_IDintegerbắt buộcMã shop
Phản hồi
dataarray<object>Danh sách chất liệu
successbooleanTrạng thái thành công
curl "https://pos.pages.fm/api/v1/shops/{SHOP_ID}/materials_products?api_key=API_KEY"{
"success": true,
"data": [
{
"description": "cao cấp",
"id": 180,
"name": "vai",
"nodes": [
{
"description": "chất liệu bò",
"id": 181,
"name": "vải bò",
"nodes": []
}
]
}
]
}Danh sách nhóm đơn vị tính
/shops/{SHOP_ID}/product_measurements/get_measureLấy danh sách nhóm đơn vị tính
Tham số đường dẫn
SHOP_IDintegerbắt buộcMã shop
Phản hồi
dataarray<object>Danh sách nhóm đơn vị tính
successbooleanTrạng thái thành công
curl "https://pos.pages.fm/api/v1/shops/{SHOP_ID}/product_measurements/get_measure?api_key=API_KEY"{
"success": true,
"data": [
{
"id": 58,
"name": "Nước hoa 1",
"nodes": [
{
"exchange_value": 30,
"id": 61,
"is_default": false,
"name": "30 ml",
"parent_id": 58
}
],
"shop_id": 20
}
]
}