AccessTrade.vn
  • TÀI LIỆU API HƯỚNG DẪN PUBLISHER
  • API DÀNH CHO PUBLISHER BẢN TIẾNG VIỆT
    • Authentication
    • Lấy danh sách campaigns
    • Tạo tracking link
    • Lấy danh sách giao dịch
    • Lấy danh sách đơn hàng v2
    • Lấy thông tin sản phẩm của đơn hàng
    • Lấy thông tin chi tiết sản phẩm
    • Lấy thông tin datafeeds
    • Lấy thông tin vouchers / coupons / deals
      • Hướng dẫn lấy mã nhúng danh sách khuyến mãi lên website
      • [Wordpress] Hướng dẫn nhúng vào bài post
      • [Wordpress] Hướng dẫn tạo 1 trang riêng nhúng code
      • API - Lấy danh sách thông tin khuyến mại theo nhà cung cấp & ngành hàng.
    • Lấy thông tin các khuyến mại đang hoạt động
    • Top các sản phẩm bán chạy nhất
    • Errors
  • API PUBLISHER ENGLISH VERSION
    • Authentication
    • Get the campaigns list
    • Create tracking link
    • Get the list of commission ratio of campaign
    • Get the list of transaction
    • Get the list of order v2
    • Get products information of the order
    • Get detailed information of the product
    • Get Datafeeds information
    • Get promotional information
    • Top selling products
    • Errors
    • Get detailed information of the order
Powered by GitBook
On this page

Was this helpful?

  1. API PUBLISHER ENGLISH VERSION

Get the list of commission ratio of campaign

Method: GET

HTTP Request

https://api.accesstrade.vn/v1/commission_policies

Query Parameters

The parameters passed into HTTP Request according to Key-Value pair, begin the parameters with “?” and separate each parameter with the sign “&”. Ex:

https://api.accesstrade.vn/v1/commission_policies?camp_id=5338806296999499238&month=01-2021

Parameters

Required

Description

camp_id

Required

Id of campaign (URL detail campaign)

month

Optional

Month the regulation is in operation

Describe the results

Parameters

Description

category.category_id

Category Id

category.sales_price

Value of sales being split (fixed) per each successful conversion.

category.sales_ratio

The ratio of the split for the value of each sales for every successful conversion.

category.taget_month

Active month(s).

product.category_id

Product Id

product.sales_price

Value of sales being split (fixed) per each successful conversion

product.sales_ratio

The ratio of the split for the value of each sales for every successful conversion.

product.taget_month

Active month(s)

default.result_id

Default commission types: 1 - Fixed price. 3 - Split according to each product. 30 - Split according to each category.

default.reward_type

Method of calculating commission: 1 - Calculating default price. 2 - Calculating ration per value of order.

default.sales_price

Value of sales being split (fixed) per each successful conversion.

default.sales_ratio

The ratio of the split for the value of each sales for every successful conversion.

default.taget_month

Active month(s)

category.category_id

Category Id

category.sales_price

Value of sales being split (fixed) per each successful conversion.

category.sales_ratio

The ratio of the split for the value of each sales for every successful conversion.

category.customer_type

Type of customer. Example: new user/ old user, app user/ web user

Example (Using Postman tool to call API)

{
    "category": [
        {
            "category_id": "Tren 10",
            "category_name": null,
            "customer_type": null,
            "sales_price": 200000.0,
            "sales_ratio": 0.0,
            "taget_month": "01/2021"
        },
        {
            "category_id": "Tu 1-4",
            "category_name": null,
            "customer_type": null,
            "sales_price": 160000.0,
            "sales_ratio": 0.0,
            "taget_month": "01/2021"
        },
        {
            "category_id": "Tu 5-9",
            "category_name": null,
            "customer_type": null,
            "sales_price": 175000.0,
            "sales_ratio": 0.0,
            "taget_month": "01/2021"
        },
        {
            "category_id": "cat_129739_rank6",
            "category_name": null,
            "customer_type": null,
            "sales_price": 200000.0,
            "sales_ratio": 0.0,
            "taget_month": "01/2021"
        },
        {
            "category_id": "cat_3982_rank6",
            "category_name": null,
            "customer_type": null,
            "sales_price": 200000.0,
            "sales_ratio": 0.0,
            "taget_month": "01/2021"
        }
    ],
    "default": [
        {
            "customer_type": null,
            "result_id": 30,
            "reward_type": 1,
            "sales_price": 160000.0,
            "sales_ratio": 0.0,
            "taget_month": "01/2021"
        }
    ],
    "product": []
}

PreviousCreate tracking linkNextGet the list of transaction

Last updated 4 years ago

Was this helpful?