API Get campaign NEW

1. Mục đích:

Hệ thống AT cung cấp thông tin danh sách campaigns đã chuẩn hóa.

2. Thông tin API

DEV

https://api.accesstrade.vn/v1/cashback/campaigns?page=1&page_size=20

METHOD

GET

Param

Value

Content-Type

Application/json

Authorization

Token {{access_key}}

  • Params

Param

Type

M

Description

page

Int

O

Số trang (không truyền mặc định 1)

page_size

Int

O

Số phần tử trang

category_id

String

O

category_id

sort_by

String

O

Sort by min_commission hoặc max_commission

sort_order

String

O

asc hoặc desc

sort_by_category

Bool

O

Sắp xếp theo category (true, false)

  • Response

Trường

Kiểu dữ liệu

Mô tả

campaign_id

string

ID của campaign từ AT

min_commission

decimal

Mức commission tối thiểu

max_commission

decimal

Mức commission tối đa

commission_type

enum

Loại commission ('percentage', 'fixed')

campaign_type

String

Loại campaign

category_id

string

ID danh mục

category_name

string

Tên danh mục

is_default

boolean

Đánh dấu mức commission mặc định

created_at

timestamp

Thời gian tạo

updated_at

timestamp

Thời gian cập nhật

3. Response example

Last updated

Was this helpful?