Thông tin cửa hàng
GET
/shopsLấy thông tin cửa hàng
Phản hồi
object
shopsarray<Shop>successbooleanYêu cầu
curl "https://pos.pages.fm/api/v1/shops?api_key=API_KEY"Phản hồi 200
{
"shops": [
{
"avatar_url": "https://statics.pancake.vn/user-content-dev2.pancake.vn/2022/7/6/8678250807b2285e2752ac2cbbf43925f19a677c.jpeg",
"name": "Shop thời trang",
"id": 6036602,
"link_post_marketer": [
{
"ad_account_id": null,
"id": "949f1396-f6fa-45d9-93b6-4c37503a9950",
"inserted_at": "2025-08-21T03:02:04",
"marketer": "cee3c05e-5f85-43c4-b27e-889b99c50097",
"multiple_post": [],
"multiple_source": [
{
"account": "2284322048329488",
"key": "-1",
"page_id": "2284322048329488"
}
],
"shop_id": 6036602,
"type": "source"
}
],
"pages": [
{
"id": "104438181227821",
"name": "Quần áo",
"platform": "facebook",
"settings": {
"auto_create_order": true
},
"shop_id": 20
}
]
}
],
"success": true
}Chi tiết cửa hàng
GET
/shops/{SHOP_ID}Lấy một cửa hàng mà người gọi thuộc về, cùng dạng một phần tử của danh sách cửa hàng. Với API key của shop, tài khoản tạo key cần quyền cấu hình cửa hàng.
Tham số đường dẫn
SHOP_IDintegerbắt buộcMã shop
Phản hồi
object
shopShopThông tin cửa hàng
successbooleanTrạng thái thành công
Yêu cầu
curl "https://pos.pages.fm/api/v1/shops/{SHOP_ID}?api_key=API_KEY"Phản hồi 200
{
"success": true,
"shop": {
"id": 20,
"name": "Shop thời trang",
"avatar_url": "https://statics.pancake.vn/user-content-dev2.pancake.vn/2022/7/6/8678250807b2285e2752ac2cbbf43925f19a677c.jpeg",
"currency": "VND",
"preferred_shop": null,
"link_post_marketer": [],
"pages": [
{
"id": "104438181227821",
"name": "Quần áo",
"platform": "facebook",
"settings": {
"auto_create_order": true
},
"shop_id": 20
}
]
}
}