API Product

Thông tin chung về API

Endpoint:
https://portal.trungtamdev.com/api/v19/product

Phương thức HTTP:
POST

Content-Type:
application/x-www-form-urlencoded

Định dạng phản hồi:
JSON

Xác thực Authorization:
Authorization: Bearer {auth_token}
auth_token={token}
Lấy auth_token tại trang profile

🔒 Cảnh báo bảo mật
  • auth_token là chìa khóa truy cập tài khoản - vui lòng bảo mật tuyệt đối
  • Không chia sẻ auth_token với bất kỳ ai, kể cả nhân viên hỗ trợ
  • Thay đổi auth_token thường xuyên để tăng cường bảo mật
  • Nếu nghi ngờ bị lộ, hãy thay đổi ngay lập tức
  • Thông tin VPS và tài khoản chỉ hiển thị cho chủ tài khoản

Actions hỗ trợ: services, buy

  • action=services: danh sách product
  • action=buy: tham số product_id, coupon (tuỳ chọn)

JSON mẫu

Request (services)
{"auth_token":"YOUR_TOKEN","action":"services"}
Request (buy)
{"auth_token":"YOUR_TOKEN","action":"buy","product_id":"PRD123","coupon":"PROD10"}
Response (success)
{"status":"success","message":"Mua sản phẩm thành công"}
← Quay lại danh mục