get /shops/{SHOP_ID}/customers/{CUSTOMER_ID}/load_customer_notes
GET/shops/{SHOP_ID}/customers/{CUSTOMER_ID}/load_customer_notesGọi qua 360: GET https://partner.quantri360.com/v1/pancake_pos/shops/{SHOP_ID}/customers/{CUSTOMER_ID}/load_customer_notes
Sắp mở. API này đã chạy thật qua 360 và đang được chốt giá — bạn có thể đọc tài liệu và chuẩn bị tích hợp trước.
Mô tả API
Ghi chú nội bộ về một khách hàng (nhân viên ghi khi tư vấn / chăm sóc), kèm ảnh, link, đơn liên quan, lịch sử sửa. Dùng để hiển thị lịch sử chăm sóc khách trong CRM của bạn.
- Phản hồi KHÔNG có
success; khách không có ghi chú →{"customer_notes":[{"notes":[]}]}. Truyềnidthay vìcustomer_idcũng trả rỗng (không báo lỗi). - Thời gian ở đây là Unix MILI giây (khác các API khác trả chuỗi giờ UTC).
Request
Địa chỉ
GET https://partner.quantri360.com/v1/pancake_pos/shops/{SHOP_ID}/customers/{CUSTOMER_ID}/load_customer_notes
Xác thực & gian hàng
| Tên | Vị trí | Kiểu | Mẫu | Mô tả |
|---|---|---|---|---|
| Authorization | header | header | Bearer q360_live_ab12cd34_… | Khóa API của brand (tạo ở mục API key). Bắt buộc với mọi request. Brand suy từ key — không truyền mã brand. |
| platform_shop_id | query | string | 1234567 | SHOP_ID đã nối — có thể bỏ khi đường dẫn có /shops/{SHOP_ID}. |
Tham số request
| Tên | Vị trí | Kiểu | Bắt buộc | Mẫu | Mô tả |
|---|---|---|---|---|---|
| SHOP_ID | path | int | Có | 1234567 | Mã cửa hàng đã nối với 360. |
| CUSTOMER_ID | path | string | Có | ed5948f9-fd5b-40e1-8485-3f043fa4ba89 | Trường customer_id ở danh sách khách. |
Ví dụ request
curl -s "https://partner.quantri360.com/v1/pancake_pos/shops/1234567/customers/ed5948f9-fd5b-40e1-8485-3f043fa4ba89/load_customer_notes" \ -H "Authorization: Bearer $KEY"
Python
import requests
KEY = "q360_live_..." # khóa API của brand
r = requests.get(
"https://partner.quantri360.com/v1/pancake_pos/shops/1234567/customers/ed5948f9-fd5b-40e1-8485-3f043fa4ba89/load_customer_notes",
params={},
headers={"Authorization": f"Bearer {KEY}"},
timeout=60,
)
print(r.status_code)
print(r.json())Node.js
const KEY = 'q360_live_...'; // khóa API của brand
const url = new URL('https://partner.quantri360.com/v1/pancake_pos/shops/1234567/customers/ed5948f9-fd5b-40e1-8485-3f043fa4ba89/load_customer_notes');
for (const [k, v] of Object.entries({})) url.searchParams.set(k, typeof v === 'object' ? JSON.stringify(v) : String(v));
const r = await fetch(url, {
method: 'GET',
headers: { Authorization: `Bearer ${KEY}` },
});
console.log(r.status, await r.json());PHP
<?php $key = 'q360_live_...'; // khóa API của brand $url = 'https://partner.quantri360.com/v1/pancake_pos/shops/1234567/customers/ed5948f9-fd5b-40e1-8485-3f043fa4ba89/load_customer_notes' . '?' . http_build_query([]); $ch = curl_init($url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_HTTPHEADER, ['Authorization: Bearer ' . $key]); $res = curl_exec($ch); $status = curl_getinfo($ch, CURLINFO_HTTP_CODE); curl_close($ch); echo $status, "\n", $res;
Response
Tham số phản hồi (nguyên của Pancake POS)
| Tên | Kiểu | Mẫu | Mô tả |
|---|---|---|---|
| customer_notes | object[] | Thường đúng 1 phần tử. | |
| notes | object[] | Ghi chú. | |
| id | string | … | |
| message | string | Khách hẹn cuối tháng lấy thêm size M | Nội dung. |
| created_at / updated_at | int | 1783572739752 | Unix MILI giây. |
| created_by | object | Người ghi: fb_id, fb_name, uid… | |
| order_id | string | 90085115502652 | Đơn liên quan (nếu có). |
| images / links | array | [] | |
| edit_history | object[] | ||
| removed_at | null |
Mẫu phản hồi
{
"customer_notes": [
{
"notes": [
{
"id": "…",
"message": "Khách hẹn cuối tháng lấy thêm size M",
"created_at": 1783572739752,
"updated_at": 1783572746696,
"order_id": "90085115502652",
"images": [],
"links": [],
"created_by": {
"fb_name": "Nhân viên B"
},
"removed_at": null
}
]
}
]
}
Bắt đầu dùng
- Đăng ký tài khoản Partner
- Mở loại dữ liệu thuộc nhóm Khách hàng ở trang nền tảng
- Tạo API key (tick kênh Pancake POS)
- Gọi theo ví dụ ở trên