MarketingĐối tác affiliate

Cập nhật đối tác

Cập nhật thông tin đối tác

Endpoint

PUT /v1/affiliates/:id

Path Parameters

TênKiểuBắt buộcMô tả
idintCóID đối tác affiliate

Request Payload

JSON Object Payload:

{
  "company_id": 10311,
  "creator_id": 1,
  "affiliate_group_id": 2,
  "source": 1,
  "customer_id": 0,
  "external_id": "",
  "parent_id": 0,
  "name": "ABC",
  "email": "[email protected]",
  "phone": "123456789",
  "website": "",
  "company": "",
  "tax_code": "",
  "address": "",
  "note": "",
  "payment_threshold": 0,
  "payment_method": 1,
  "payment_note": "",
  "bank_name": "",
  "bank_account_name": "",
  "bank_account_number": "",
  "reviewer_id": 0,
  "reviewer_note": "",
  "file_id_list": [],
  "status": 3
}
TênKiểuBắt buộcMô tả
company_idintCóID công ty (phải trùng công ty của phiên đăng nhập)
creator_idintCóID người tạo
namestringCóTên đối tác affiliate
các trường khácXem Affiliate Object Schema

Lưu ý

Đây là cập nhật toàn bộ: các trường không gửi lên sẽ bị ghi đè thành giá trị rỗng / 0. Hãy gửi đầy đủ object.

Response Schema

HTTP 200 - JSON Object

Xem Affiliate Object Schema

Error Codes

Xem các lỗi khi tạo đối tác affiliate (lỗi hệ thống trả error_edit). Trả 404 error_not_found nếu không tìm thấy đối tác.

On this page