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": []
}
Last updated
Was this helpful?