- API đồng bộ tracker metric
- Description:
- Đồng bộ thông tin các điểm bán có Daily Active trong ngày sang Hermes
- Không require real time nên chỉ cần schedule chạy hàng ngày hoặc vài tiếng 1 lần.
- Url:
- Request body:
- (String | Required)
tokenKey
: Mã token key đã khai báo
- (String | Required)
productCode
: Mã sản phẩm tương ứng - (String | Required)
reportDate
: Ngày active của các store. Nếu truyền lại data thì truyền ngày quá khứ đều được.yyyy-mm-dd hh:mm:ss
- (Array<> | Required)
dataTrackingMetrics
: list chi tiết tracking metric- (String | Required)
employeeEmail
: email nhân viên hermes - (String| Required)
trackingIdMapper
: mapper Id của từng sản phẩm (ivtStoreId, hrmEmail, fabiStoreId…) - (Array<> | Required)
metrics
: Danh sách metrics đồng bộ- (String| Required)
name
: tên metric - (String| Required)
metricCode
: mã metric - (Integer| Required)
dailyActive
: Số lần thực hiện trong ngày
- (String| Required)
- (String | Required)
- (String | Required)
- Request headers:
accessToken
- cURL example:
curl --location --request POST '
https://apibilling.iposdev.com/billing/api/partner/sync/trackerMetric
' \
--header 'accessToken: ABNBKPEPC6ZSY3VL5SDAGB7QBTO9NU63' \
--header 'Content-Type: application/json' \
--data-raw '{
"productCode": "HRM",
"reportDate": "2024-04-11 10:37:29",
"tokenKey": "4iuirDspJMdA",
"dataTrackingMetrics": [
{
"trackingIdMapper": "hung.nguyen10@ipos.vn",
"employeeEmail": "hung.nguyen10@ipos.vn",
"metrics": [
{
"name": "Checkin ca thường",
"metricCode": "CHECKIN_NORMAL",
"dailyActive": 1
]
}
]
}'
2. API danh sách tracking product nhân viên
- Description:
- Danh sách tracking id product được gắn cho nhân viên
- Url:
- QueryParams:
- trackerIdTokenKey: trackerId đã khai báocURL example:
curl --location --request GET '
https://apibilling.iposdev.com/billing/api/ipos/employeeTracking/list
' \
3. API kéo lại dữ liệu ngày từ các đầu sản phẩm
- Description:
- Kéo lại dữ liệu metric từ sản phẩm
- Url:
- (Long | Required)
tran_date
: Ngày lấy lại dữ liệu theo timestampRequest body:- (String | Required)
mapping_id
: Mapping id của nhân viên (hrmEmail, fabiStoreId, ivtStoreId….)
- (String | Required)
- (Long | Required)
- cURL example:
curl --location --request POST '
https://hrmapi.ipos.vn/api/v2/tool/sync-employee-tracking-hermes?token=VHZHQLRJSCVQUBBBTSMRKDXTPBDAKMLN
' \
--header 'Content-Type: application/json' \
--data-raw '{
"mapping_id": "employee@email.com",
"tran_date": "1712809735",
}'
Leave A Comment?