API Service Website

Thông tin chung về API

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

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, renew

  • action=services: danh sách gói dịch vụ website
  • action=buy: tham số serviceId, shopAccount, shopPassword, domainName, paymentOption, domainType (tuỳ chọn), discountCode (tuỳ chọn)
  • action=renew: tham số orderId, coupon (tuỳ chọn)

JSON mẫu

Request (services)
{"auth_token":"YOUR_TOKEN","action":"services"}
Request (buy)
{
  "auth_token":"YOUR_TOKEN",
  "action":"buy",
  "serviceId":1,
  "shopAccount":"shopdemo",
  "shopPassword":"123456",
  "domainName":"shopdemo.vn",
  "paymentOption":2,
  "domainType":0,
  "discountCode":"WEB10"
}
Request (renew)
{"auth_token":"YOUR_TOKEN","action":"renew","orderId":99,"coupon":"RENEW5"}
← Quay lại danh mục