API cho chương trình thành viên giới thiệu thành viên (MGM)
Đối với chương trình giới thiệu thành viên, thay vì tạo các conversion, doanh nghiệp sẽ tạo thành các event trên hệ thống, hệ thống ScaleF sẽ khởi tạo tự động các chuyển đổi và hoa hồng tương ứng
Base URL:
https://<host-name>/api/v2/push-event
Method: POST
Header:
X-Network-Id : 2
X-Port-Type : PUB
Content-Type : application/json
Authorization : Bearer {access_token}
Example Request
{
"event_type": "ACTIVE",
"identifier_id":"6477853091020073",
"action_info" : {
"action_time": "2020-04-29T13:44:04+0700"
},
"referrer_info" : {
"click_id": "eeebc9f5bb934407ac4958ed451c1ab7"
}
}
Attribute
Type
Required
Description
1
event_type
string
Yes
Là event khai báo của campaign
2
identifier_id
string
Yes
ID member publisher của hệ thống
3
action_time
date
Yes
Ngày phát sinh event, format ISO8601
4
click_id
string
Yes
Giá trị click ID của referrer link
Response
{
"status" : "success",
"data": "eyJpdiI6Inl6bjluWHJnYjRZNThSZVY5UDlaUVE9PSIsInZhbHVlIjoiclJMeVlQSDRzWGljQTllbnU3YitmUzdsUXdnVUYwY0JYNGlIcmY2Y1ZkTjk5SU1HMURQR2IvZ3F2Vm9PaXVHbCIsIm1hYyI6IjM2ZDgwZWQ4ODNkMGU2NWNmMzgxODRlZDg2NjRhMmUxYTU2YWEyYmE1MGQ0MDBmNDE5ZWQ0YmRmODgyODk4NjYifQ=="
}
Data sau giải mã
{
"message": "Success",
"code": 0
}
Last updated
Was this helpful?