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

Create tracking link

API mô tả cách tạo tracking link của các campaign

Method: POST

HTTP Request

https://api.accesstrade.vn/v1/product_link/create

Data Parameter

Params

Required

Descriptions

campaign_id

Required

Campaign ID

urls

Optional

List link

utm_source

Optional

Addition parameter

utm_medium

Optional

Addition parameter

utm_campaign

Optional

Addition parameter

utm_content

Optional

Addition parameter

sub1

Optional

Addition parameter

sub2

Optional

Addition parameter

sub3

Optional

Addition parameter

sub4

Optional

Addition parameter

CURL Example


curl --location 'https://api.accesstrade.vn//v1/product_link/create' \
--header 'Content-Type: application/json' \
--header 'Authorization: token {your_token}' \
--data '{
    "campaign_id": "4348614231480407268",
    "urls": ["https://shopee.vn/m/ma-giam-gia","https://shopee.vn/m/ma-giam-gia1"],
    "utm_source": "test_source",
    "url_enc": true,
    "utm_medium": "test_medium",
    "utm_campaign": "test_campaign",
    "utm_content": "test_content",
    "sub1": "test_sub1",
    "sub2": "test_sub2",
    "sub3": "test_sub3"
    }'

API response:

```json
{
    "data": {
        "error_link": [],
        "success_link": [
            {
                "aff_link": "https://tracking.dev.accesstrade.me/deep_link/4348611760548105593/4751584435713464237?utm_campaign=test_campaign&sub4=test_sub4&sub2=test_sub2&sub3=test_sub3&sub1=test_sub1&url=https%3A%2F%2Fshopee.vn&utm_content=test_content&utm_source=test_source&utm_medium=test_medium",
                "first_link": null,
                "short_link": "https://shorten.dev.accesstrade.me/ujrBHxpc",
                "url_origin": "https://shopee.vn"
            }
        ],
        "suspend_url": []
    },
    "success": true
}
```
PreviousGet the campaigns listNextGet the list of commission ratio of campaign

Last updated 1 year ago

Was this helpful?