OVIRO LogoOVIRO
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)
is_defaultintegerCó phải mã mặc định không (1: Yes, 0: No)
ip_addressstringĐịa chỉ IP tạo
date_createdintegerThời gian tạo (UNIX timestamp)
date_modifiedintegerThời gian sửa đổi mới nhất (UNIX timestamp)
affiliateAffiliate ObjectThông tin đối tác affiliate
customerCustomer ObjectThông tin khách hàng

Ví dụ JSON object

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

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