Scalef Developer
  • Hướng dẫn sử dụng tài liệu
  • Hướng dẫn tích hợp chiến dịch
    • Tích hợp ghi nhận đơn hàng từ Website
      • Mục đích và cách hoạt động
      • Postback tạo đơn hàng
      • Tích hợp qua Java Script
      • API tạo và cập nhật đơn hàng
        • Create conversion không có thông tin sản phẩm
        • Create conversion
        • Update status conversion
    • Tích hợp qua các nền tảng Website Builder phổ biến
      • Haravan
      • WordPress
    • Tích hợp các CRM phổ biến để tạo và theo dõi đơn hàng
      • Hubspot
      • PushSale
    • Tích hợp ghi nhận đơn hàng từ App
      • Firebase
      • Appsflyer
  • Cách thức cập nhật đơn hàng tự động
  • Tích hợp hệ thống trang của Publisher - API backend
    • Publisher API
      • Sử dụng script chèn vào landing page
      • API get notifications
      • Sign firebase token push notification
      • API Get conversions by publisher
      • API Join campaigns with array campaign id
      • API report publisher
      • API get top publisher
      • Create order by Publisher
      • Authentication
      • Danh sách Campaigns và chi tiết
      • Khởi tạo referral link
      • GET click detail
      • API cho chương trình thành viên giới thiệu thành viên (MGM)
      • Report người giới thiệu và người được giới thiệu
        • Lấy danh sách members
        • Chi tiết thông tin member
        • Lấy danh sách Top members
      • Report thông tin chuyển đổi và hoa hồng
      • Thanh toán hoa hồng cho người giới thiệu
Powered by GitBook
On this page

Was this helpful?

  1. Tích hợp hệ thống trang của Publisher - API backend
  2. Publisher API

API get top publisher

Base URL (develop enviroment) : https://pub-be-dev.mp.directsale.vn/api/v1

ENDPOINT: /report/publisher/rank

METHOD: POST

PARAMETERS: None

BODY:

{
    "field": "pub_commission",
    "order": "desc",
    "page": 1,
    "page_size": 20,
    "from_date": "2020-09-01",
    "to_date": "2020-10-05"
}

RESPONSE:

1.Status: Error

 {
     "status": "fail",
     "message": "Something went wrong!"
 }

1.Status: Success

 {
     "status": "success",
     "data": {
         "field": "pub_commission",
         "order": "desc",
         "size": 20,
         "from_date": "2020-09-01 00:00:00",
         "to_date": "2020-10-05 00:00:00",
         "report_data": [
             {
                 "publisher_id": "17075",
                 "avatar": "https://admin-be-dev.mp.directsale.vn/storage/photos/users/avatar/oyZnKy3jyovcjYVhREq9YMVQT2LwesTHgZ4uNppR.png",
                 "first_name": "Stark",
                 "last_name": "Arya",
                 "atsp": 408640
             },
             {
                 "publisher_id": "39",
                 "atsp": 320000
             },
             {
                 "publisher_id": "16813",
                 "avatar": null,
                 "first_name": "huyentrinh",
                 "last_name": "N/A",
                 "atsp": 190222.22
             },
             {
                 "publisher_id": "9",
                 "avatar": "https://admin-be-dev.mp.directsale.vn/storage/photos/users/avatar/zaxZnYpcpeSicCSl5ztA6VH8LqS7wUY2WlFFHXpO.jpeg",
                 "first_name": "FName Huyền",
                 "last_name": "L Name Trịnh",
                 "atsp": 1000
             },
             {
                 "publisher_id": "11",
                 "avatar": null,
                 "first_name": "Mr",
                 "last_name": "PUB3",
                 "atsp": 0
             },
             {
                 "publisher_id": "17026",
                 "avatar": null,
                 "first_name": "Thế Thái",
                 "last_name": "Thế Thái",
                 "atsp": 0
             },
             {
                 "publisher_id": "17059",
                 "avatar": null,
                 "first_name": "username69",
                 "last_name": "N/A",
                 "atsp": 0
             },
             {
                 "publisher_id": "17156",
                 "avatar": null,
                 "first_name": "V600",
                 "last_name": "N/A",
                 "atsp": 0
             }
         ]
     }
 }
PreviousAPI report publisherNextCreate order by Publisher

Last updated 4 years ago

Was this helpful?