MarketingMã giới thiệu

AffiliateCode Object Schema

Chi tiết các trường dữ liệu của một object `AffiliateCode`

JSON Schema

Trường (Field)Kiểu (Type)Mô tả (Description)
company_idintegerID công ty
creator_idintegerID người tạo mã giới thiệu
affiliate_idintegerID đối tác affiliate
idintegerID mã giới thiệu
codestringMã giới thiệu
descriptionstringMô tả mã giới thiệu
tagstringTag phân loại mã giới thiệu
statusintegerTrạng thái mã giới thiệu (1: Active, 0: Inactive)
date_createdintegerThời gian tạo (UNIX timestamp)
date_modifiedintegerThời gian sửa đổi mới nhất (UNIX timestamp)
customerobjectThông tin khách hàng (phiên bản hiện tại luôn trả null)
affiliateobjectThông tin đối tác affiliate (phiên bản hiện tại luôn trả null)

Ví dụ JSON object

{
  "id": 2,
  "company_id": 1,
  "creator_id": 1,
  "affiliate_id": 2,
  "code": "aaacb2f2f",
  "description": "",
  "tag": "",
  "status": 1,
  "date_created": 1761469316,
  "date_modified": 1761469316,
  "customer": null,
  "affiliate": null
}

Trạng thái & Mã giá trị

Giá trị để xác định trạng thái mã giới thiệu, thường là field có tên status

Giá trịMô tảCode
1Hoạt độngSTATUS_ENABLE
0Tạm dừngSTATUS_DISABLED

On this page