Dịch vụChọn dịch vụ hoặc lịch sử quản lý
Hóa đơn dịch vụ
TTD Public API v1

Một API thống nhất cho toàn bộ dịch vụ

Hosting, Cloud VPS, Reseller Hosting, Proxy, Mã nguồn, Tên miền, Cronjob, Logo và Website cùng dùng Bearer Token + JSON.

Dịch vụ
9
Endpoints
73+
Xác thực

Gửi API Token trong HTTP header. Token query chỉ còn để tương thích endpoint Cron cũ và không nên dùng cho tích hợp mới.

Authorization: Bearer YOUR_API_TOKEN
Base URL: https://trungtamdev.com/api/ttd/v1
POST: Content-Type: application/json. Nên gửi Idempotency-Key khi mua/gia hạn để chống tạo giao dịch trùng.
API Token của bạn
Đăng nhập để xem API Token.
Endpoint chung

Các endpoint áp dụng trước khi chọn dịch vụ.

GET
Health check
/api/ttd/v1/health

Không yêu cầu token.

curl -X GET "https://trungtamdev.com/api/ttd/v1/health" \ -H "Authorization: Bearer YOUR_API_TOKEN"
GET
Thông tin tài khoản
/api/ttd/v1/account

Số dư, giảm giá thành viên và hồ sơ API.

curl -X GET "https://trungtamdev.com/api/ttd/v1/account" \ -H "Authorization: Bearer YOUR_API_TOKEN"
GET
Danh sách dịch vụ
/api/ttd/v1/services

Danh sách namespace dịch vụ.

curl -X GET "https://trungtamdev.com/api/ttd/v1/services" \ -H "Authorization: Bearer YOUR_API_TOKEN"
API theo dịch vụ

Chọn dịch vụ để xem catalog, đơn hàng, mua mới và action quản lý.

Cloud Hosting

Hosting cPanel/WHM nhiều máy chủ.

namespace: hosting
GET
Danh sách gói
/api/ttd/v1/hosting/plans

Lấy catalog/gói đang mở bán.

cURL
curl -X GET "https://trungtamdev.com/api/ttd/v1/hosting/plans" \ -H "Authorization: Bearer YOUR_API_TOKEN"
GET
Danh sách đơn
/api/ttd/v1/hosting/orders?page=1&limit=20

Chỉ trả đơn thuộc API Token hiện tại.

cURL
curl -X GET "https://trungtamdev.com/api/ttd/v1/hosting/orders?page=1&limit=20" \ -H "Authorization: Bearer YOUR_API_TOKEN"
GET
Chi tiết đơn
/api/ttd/v1/hosting/orders/{id}

Chi tiết một đơn thuộc tài khoản.

cURL
curl -X GET "https://trungtamdev.com/api/ttd/v1/hosting/orders/1" \ -H "Authorization: Bearer YOUR_API_TOKEN"
POST
Tạo đơn mới
/api/ttd/v1/hosting/orders

Thanh toán bằng số dư hoặc bank nếu service hỗ trợ.

JSON body
{ "package_id": 1, "domain": "example.com", "email": "user@example.com", "months": 1, "coupon": "", "payment_method": "balance" }
cURL
curl -X POST "https://trungtamdev.com/api/ttd/v1/hosting/orders" \ -H "Authorization: Bearer YOUR_API_TOKEN" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: order-20260924-001" \ -d '{ "package_id": 1, "domain": "example.com", "email": "user@example.com", "months": 1, "coupon": "", "payment_method": "balance" }'
Actions

Dùng POST /api/ttd/v1/hosting/orders/{id}/actions/{action}.

reset-passwordrebuildupgradetransferadd-addon-domainadd-subdomainadd-cronchange-domainstatsblock-ipunblock-ipauto-renewrenewdelete-local
POST
Action: reset-password
/api/ttd/v1/hosting/orders/{id}/actions/reset-password
curl -X POST "https://trungtamdev.com/api/ttd/v1/hosting/orders/1/actions/reset-password" \ -H "Authorization: Bearer YOUR_API_TOKEN" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: order-20260924-001" \ -d '[]'
POST
Action: rebuild
/api/ttd/v1/hosting/orders/{id}/actions/rebuild
curl -X POST "https://trungtamdev.com/api/ttd/v1/hosting/orders/1/actions/rebuild" \ -H "Authorization: Bearer YOUR_API_TOKEN" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: order-20260924-001" \ -d '[]'
POST
Action: upgrade
/api/ttd/v1/hosting/orders/{id}/actions/upgrade
curl -X POST "https://trungtamdev.com/api/ttd/v1/hosting/orders/1/actions/upgrade" \ -H "Authorization: Bearer YOUR_API_TOKEN" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: order-20260924-001" \ -d '{ "package_id": 2 }'
POST
Action: transfer
/api/ttd/v1/hosting/orders/{id}/actions/transfer
curl -X POST "https://trungtamdev.com/api/ttd/v1/hosting/orders/1/actions/transfer" \ -H "Authorization: Bearer YOUR_API_TOKEN" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: order-20260924-001" \ -d '{ "email": "receiver@example.com" }'
POST
Action: add-addon-domain
/api/ttd/v1/hosting/orders/{id}/actions/add-addon-domain
curl -X POST "https://trungtamdev.com/api/ttd/v1/hosting/orders/1/actions/add-addon-domain" \ -H "Authorization: Bearer YOUR_API_TOKEN" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: order-20260924-001" \ -d '{ "domain": "addon.example.com" }'
POST
Action: add-subdomain
/api/ttd/v1/hosting/orders/{id}/actions/add-subdomain
curl -X POST "https://trungtamdev.com/api/ttd/v1/hosting/orders/1/actions/add-subdomain" \ -H "Authorization: Bearer YOUR_API_TOKEN" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: order-20260924-001" \ -d '{ "subdomain": "shop", "rootdomain": "example.com" }'
POST
Action: add-cron
/api/ttd/v1/hosting/orders/{id}/actions/add-cron
curl -X POST "https://trungtamdev.com/api/ttd/v1/hosting/orders/1/actions/add-cron" \ -H "Authorization: Bearer YOUR_API_TOKEN" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: order-20260924-001" \ -d '{ "cron_url": "https://example.com/cron.php", "minute": 5 }'
POST
Action: change-domain
/api/ttd/v1/hosting/orders/{id}/actions/change-domain
curl -X POST "https://trungtamdev.com/api/ttd/v1/hosting/orders/1/actions/change-domain" \ -H "Authorization: Bearer YOUR_API_TOKEN" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: order-20260924-001" \ -d '{ "domain": "new-example.com" }'
POST
Action: stats
/api/ttd/v1/hosting/orders/{id}/actions/stats
curl -X POST "https://trungtamdev.com/api/ttd/v1/hosting/orders/1/actions/stats" \ -H "Authorization: Bearer YOUR_API_TOKEN" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: order-20260924-001" \ -d '[]'
POST
Action: block-ip
/api/ttd/v1/hosting/orders/{id}/actions/block-ip
curl -X POST "https://trungtamdev.com/api/ttd/v1/hosting/orders/1/actions/block-ip" \ -H "Authorization: Bearer YOUR_API_TOKEN" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: order-20260924-001" \ -d '{ "ip": "1.2.3.4" }'
POST
Action: unblock-ip
/api/ttd/v1/hosting/orders/{id}/actions/unblock-ip
curl -X POST "https://trungtamdev.com/api/ttd/v1/hosting/orders/1/actions/unblock-ip" \ -H "Authorization: Bearer YOUR_API_TOKEN" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: order-20260924-001" \ -d '{ "ip": "1.2.3.4" }'
POST
Action: auto-renew
/api/ttd/v1/hosting/orders/{id}/actions/auto-renew
curl -X POST "https://trungtamdev.com/api/ttd/v1/hosting/orders/1/actions/auto-renew" \ -H "Authorization: Bearer YOUR_API_TOKEN" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: order-20260924-001" \ -d '{ "enabled": true }'
POST
Action: renew
/api/ttd/v1/hosting/orders/{id}/actions/renew
curl -X POST "https://trungtamdev.com/api/ttd/v1/hosting/orders/1/actions/renew" \ -H "Authorization: Bearer YOUR_API_TOKEN" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: order-20260924-001" \ -d '{ "months": 1, "coupon": "" }'
POST
Action: delete-local
/api/ttd/v1/hosting/orders/{id}/actions/delete-local
curl -X POST "https://trungtamdev.com/api/ttd/v1/hosting/orders/1/actions/delete-local" \ -H "Authorization: Bearer YOUR_API_TOKEN" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: order-20260924-001" \ -d '[]'

Cloud VPS

Cloud VPS TaiVPS, hỗ trợ gói theo giờ và theo tháng/năm.

namespace: vps
GET
Danh sách gói
/api/ttd/v1/vps/plans

Lấy catalog/gói đang mở bán.

cURL
curl -X GET "https://trungtamdev.com/api/ttd/v1/vps/plans" \ -H "Authorization: Bearer YOUR_API_TOKEN"
GET
Danh sách đơn
/api/ttd/v1/vps/orders?page=1&limit=20

Chỉ trả đơn thuộc API Token hiện tại.

cURL
curl -X GET "https://trungtamdev.com/api/ttd/v1/vps/orders?page=1&limit=20" \ -H "Authorization: Bearer YOUR_API_TOKEN"
GET
Chi tiết đơn
/api/ttd/v1/vps/orders/{id}

Chi tiết một đơn thuộc tài khoản.

cURL
curl -X GET "https://trungtamdev.com/api/ttd/v1/vps/orders/1" \ -H "Authorization: Bearer YOUR_API_TOKEN"
POST
Tạo đơn mới
/api/ttd/v1/vps/orders

Thanh toán bằng số dư hoặc bank nếu service hỗ trợ.

JSON body
{ "product_id": 6, "os_id": 6, "billing_cycle": "monthly", "hostname": "server01.example.com", "coupon": "", "payment_method": "balance" }
cURL
curl -X POST "https://trungtamdev.com/api/ttd/v1/vps/orders" \ -H "Authorization: Bearer YOUR_API_TOKEN" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: order-20260924-001" \ -d '{ "product_id": 6, "os_id": 6, "billing_cycle": "monthly", "hostname": "server01.example.com", "coupon": "", "payment_method": "balance" }'
Actions

Dùng POST /api/ttd/v1/vps/orders/{id}/actions/{action}.

syncstartstoprestartrebuildrenew
POST
Action: sync
/api/ttd/v1/vps/orders/{id}/actions/sync
curl -X POST "https://trungtamdev.com/api/ttd/v1/vps/orders/1/actions/sync" \ -H "Authorization: Bearer YOUR_API_TOKEN" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: order-20260924-001" \ -d '[]'
POST
Action: start
/api/ttd/v1/vps/orders/{id}/actions/start
curl -X POST "https://trungtamdev.com/api/ttd/v1/vps/orders/1/actions/start" \ -H "Authorization: Bearer YOUR_API_TOKEN" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: order-20260924-001" \ -d '[]'
POST
Action: stop
/api/ttd/v1/vps/orders/{id}/actions/stop
curl -X POST "https://trungtamdev.com/api/ttd/v1/vps/orders/1/actions/stop" \ -H "Authorization: Bearer YOUR_API_TOKEN" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: order-20260924-001" \ -d '[]'
POST
Action: restart
/api/ttd/v1/vps/orders/{id}/actions/restart
curl -X POST "https://trungtamdev.com/api/ttd/v1/vps/orders/1/actions/restart" \ -H "Authorization: Bearer YOUR_API_TOKEN" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: order-20260924-001" \ -d '[]'
POST
Action: rebuild
/api/ttd/v1/vps/orders/{id}/actions/rebuild
curl -X POST "https://trungtamdev.com/api/ttd/v1/vps/orders/1/actions/rebuild" \ -H "Authorization: Bearer YOUR_API_TOKEN" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: order-20260924-001" \ -d '{ "os_id": 6 }'
POST
Action: renew
/api/ttd/v1/vps/orders/{id}/actions/renew
curl -X POST "https://trungtamdev.com/api/ttd/v1/vps/orders/1/actions/renew" \ -H "Authorization: Bearer YOUR_API_TOKEN" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: order-20260924-001" \ -d '{ "coupon": "" }'

Reseller Hosting

Reseller Hosting WHM từ SUNIHOST hoặc WHM Root.

namespace: reseller
GET
Danh sách gói
/api/ttd/v1/reseller/plans

Lấy catalog/gói đang mở bán.

cURL
curl -X GET "https://trungtamdev.com/api/ttd/v1/reseller/plans" \ -H "Authorization: Bearer YOUR_API_TOKEN"
GET
Danh sách đơn
/api/ttd/v1/reseller/orders?page=1&limit=20

Chỉ trả đơn thuộc API Token hiện tại.

cURL
curl -X GET "https://trungtamdev.com/api/ttd/v1/reseller/orders?page=1&limit=20" \ -H "Authorization: Bearer YOUR_API_TOKEN"
GET
Chi tiết đơn
/api/ttd/v1/reseller/orders/{id}

Chi tiết một đơn thuộc tài khoản.

cURL
curl -X GET "https://trungtamdev.com/api/ttd/v1/reseller/orders/1" \ -H "Authorization: Bearer YOUR_API_TOKEN"
POST
Tạo đơn mới
/api/ttd/v1/reseller/orders

Thanh toán bằng số dư hoặc bank nếu service hỗ trợ.

JSON body
{ "product_id": 1, "domain": "reseller.example.com", "email": "user@example.com", "billing_cycle": "monthly", "coupon": "", "payment_method": "balance" }
cURL
curl -X POST "https://trungtamdev.com/api/ttd/v1/reseller/orders" \ -H "Authorization: Bearer YOUR_API_TOKEN" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: order-20260924-001" \ -d '{ "product_id": 1, "domain": "reseller.example.com", "email": "user@example.com", "billing_cycle": "monthly", "coupon": "", "payment_method": "balance" }'
Actions

Dùng POST /api/ttd/v1/reseller/orders/{id}/actions/{action}.

syncrenewlogin
POST
Action: sync
/api/ttd/v1/reseller/orders/{id}/actions/sync
curl -X POST "https://trungtamdev.com/api/ttd/v1/reseller/orders/1/actions/sync" \ -H "Authorization: Bearer YOUR_API_TOKEN" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: order-20260924-001" \ -d '[]'
POST
Action: renew
/api/ttd/v1/reseller/orders/{id}/actions/renew
curl -X POST "https://trungtamdev.com/api/ttd/v1/reseller/orders/1/actions/renew" \ -H "Authorization: Bearer YOUR_API_TOKEN" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: order-20260924-001" \ -d '{ "coupon": "" }'
POST
Action: login
/api/ttd/v1/reseller/orders/{id}/actions/login
curl -X POST "https://trungtamdev.com/api/ttd/v1/reseller/orders/1/actions/login" \ -H "Authorization: Bearer YOUR_API_TOKEN" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: order-20260924-001" \ -d '[]'

Proxy

Proxy SUNIHOST HTTP/SOCKS5.

namespace: proxy
GET
Danh sách gói
/api/ttd/v1/proxy/plans

Lấy catalog/gói đang mở bán.

cURL
curl -X GET "https://trungtamdev.com/api/ttd/v1/proxy/plans" \ -H "Authorization: Bearer YOUR_API_TOKEN"
GET
Danh sách đơn
/api/ttd/v1/proxy/orders?page=1&limit=20

Chỉ trả đơn thuộc API Token hiện tại.

cURL
curl -X GET "https://trungtamdev.com/api/ttd/v1/proxy/orders?page=1&limit=20" \ -H "Authorization: Bearer YOUR_API_TOKEN"
GET
Chi tiết đơn
/api/ttd/v1/proxy/orders/{id}

Chi tiết một đơn thuộc tài khoản.

cURL
curl -X GET "https://trungtamdev.com/api/ttd/v1/proxy/orders/1" \ -H "Authorization: Bearer YOUR_API_TOKEN"
POST
Tạo đơn mới
/api/ttd/v1/proxy/orders

Thanh toán bằng số dư hoặc bank nếu service hỗ trợ.

JSON body
{ "product_id": 1, "quantity": 1, "days": 30, "protocol": "HTTP", "coupon": "", "payment_method": "balance" }
cURL
curl -X POST "https://trungtamdev.com/api/ttd/v1/proxy/orders" \ -H "Authorization: Bearer YOUR_API_TOKEN" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: order-20260924-001" \ -d '{ "product_id": 1, "quantity": 1, "days": 30, "protocol": "HTTP", "coupon": "", "payment_method": "balance" }'
Actions

Dùng POST /api/ttd/v1/proxy/orders/{id}/actions/{action}.

renewchange-auth
POST
Action: renew
/api/ttd/v1/proxy/orders/{id}/actions/renew
curl -X POST "https://trungtamdev.com/api/ttd/v1/proxy/orders/1/actions/renew" \ -H "Authorization: Bearer YOUR_API_TOKEN" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: order-20260924-001" \ -d '{ "proxy_id": 17, "days": 30, "coupon": "" }'
POST
Action: change-auth
/api/ttd/v1/proxy/orders/{id}/actions/change-auth
curl -X POST "https://trungtamdev.com/api/ttd/v1/proxy/orders/1/actions/change-auth" \ -H "Authorization: Bearer YOUR_API_TOKEN" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: order-20260924-001" \ -d '{ "proxy_id": 17, "new_username": "proxy_user", "new_password": "StrongPassword123!" }'

Kho Mã Nguồn

Mua mã nguồn/sản phẩm số.

namespace: product
GET
Danh sách gói
/api/ttd/v1/product/plans

Lấy catalog/gói đang mở bán.

cURL
curl -X GET "https://trungtamdev.com/api/ttd/v1/product/plans" \ -H "Authorization: Bearer YOUR_API_TOKEN"
GET
Danh sách đơn
/api/ttd/v1/product/orders?page=1&limit=20

Chỉ trả đơn thuộc API Token hiện tại.

cURL
curl -X GET "https://trungtamdev.com/api/ttd/v1/product/orders?page=1&limit=20" \ -H "Authorization: Bearer YOUR_API_TOKEN"
GET
Chi tiết đơn
/api/ttd/v1/product/orders/{id}

Chi tiết một đơn thuộc tài khoản.

cURL
curl -X GET "https://trungtamdev.com/api/ttd/v1/product/orders/1" \ -H "Authorization: Bearer YOUR_API_TOKEN"
POST
Tạo đơn mới
/api/ttd/v1/product/orders

Thanh toán bằng số dư hoặc bank nếu service hỗ trợ.

JSON body
{ "product_id": 59, "coupon": "", "payment_method": "balance" }
cURL
curl -X POST "https://trungtamdev.com/api/ttd/v1/product/orders" \ -H "Authorization: Bearer YOUR_API_TOKEN" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: order-20260924-001" \ -d '{ "product_id": 59, "coupon": "", "payment_method": "balance" }'

Tên miền

Đăng ký, gia hạn và quản lý nameserver tên miền.

namespace: domain
GET
Danh sách gói
/api/ttd/v1/domain/plans

Lấy catalog/gói đang mở bán.

cURL
curl -X GET "https://trungtamdev.com/api/ttd/v1/domain/plans" \ -H "Authorization: Bearer YOUR_API_TOKEN"
GET
Danh sách đơn
/api/ttd/v1/domain/orders?page=1&limit=20

Chỉ trả đơn thuộc API Token hiện tại.

cURL
curl -X GET "https://trungtamdev.com/api/ttd/v1/domain/orders?page=1&limit=20" \ -H "Authorization: Bearer YOUR_API_TOKEN"
GET
Chi tiết đơn
/api/ttd/v1/domain/orders/{id}

Chi tiết một đơn thuộc tài khoản.

cURL
curl -X GET "https://trungtamdev.com/api/ttd/v1/domain/orders/1" \ -H "Authorization: Bearer YOUR_API_TOKEN"
POST
Tạo đơn mới
/api/ttd/v1/domain/orders

Thanh toán bằng số dư hoặc bank nếu service hỗ trợ.

JSON body
{ "domain": "example.com", "ns1": "ns1.example.net", "ns2": "ns2.example.net", "coupon": "", "payment_method": "balance" }
cURL
curl -X POST "https://trungtamdev.com/api/ttd/v1/domain/orders" \ -H "Authorization: Bearer YOUR_API_TOKEN" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: order-20260924-001" \ -d '{ "domain": "example.com", "ns1": "ns1.example.net", "ns2": "ns2.example.net", "coupon": "", "payment_method": "balance" }'
GET
Kiểm tra tên miền
/api/ttd/v1/domain/check?domain=example.com
cURL
curl -X GET "https://trungtamdev.com/api/ttd/v1/domain/check?domain=example.com" \ -H "Authorization: Bearer YOUR_API_TOKEN"
Actions

Dùng POST /api/ttd/v1/domain/orders/{id}/actions/{action}.

renewnameserverstransfer
POST
Action: renew
/api/ttd/v1/domain/orders/{id}/actions/renew
curl -X POST "https://trungtamdev.com/api/ttd/v1/domain/orders/1/actions/renew" \ -H "Authorization: Bearer YOUR_API_TOKEN" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: order-20260924-001" \ -d '[]'
POST
Action: nameservers
/api/ttd/v1/domain/orders/{id}/actions/nameservers
curl -X POST "https://trungtamdev.com/api/ttd/v1/domain/orders/1/actions/nameservers" \ -H "Authorization: Bearer YOUR_API_TOKEN" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: order-20260924-001" \ -d '{ "ns1": "ns1.example.net", "ns2": "ns2.example.net" }'
POST
Action: transfer
/api/ttd/v1/domain/orders/{id}/actions/transfer
curl -X POST "https://trungtamdev.com/api/ttd/v1/domain/orders/1/actions/transfer" \ -H "Authorization: Bearer YOUR_API_TOKEN" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: order-20260924-001" \ -d '{ "email": "receiver@example.com" }'

Cronjob

Cronjob khách hàng theo chu kỳ giây.

namespace: cron
GET
Danh sách gói
/api/ttd/v1/cron/plans

Lấy catalog/gói đang mở bán.

cURL
curl -X GET "https://trungtamdev.com/api/ttd/v1/cron/plans" \ -H "Authorization: Bearer YOUR_API_TOKEN"
GET
Danh sách đơn
/api/ttd/v1/cron/orders?page=1&limit=20

Chỉ trả đơn thuộc API Token hiện tại.

cURL
curl -X GET "https://trungtamdev.com/api/ttd/v1/cron/orders?page=1&limit=20" \ -H "Authorization: Bearer YOUR_API_TOKEN"
GET
Chi tiết đơn
/api/ttd/v1/cron/orders/{id}

Chi tiết một đơn thuộc tài khoản.

cURL
curl -X GET "https://trungtamdev.com/api/ttd/v1/cron/orders/1" \ -H "Authorization: Bearer YOUR_API_TOKEN"
POST
Tạo đơn mới
/api/ttd/v1/cron/orders

Thanh toán bằng số dư hoặc bank nếu service hỗ trợ.

JSON body
{ "url": "https://example.com/cron.php", "interval_seconds": 60, "method": "GET", "server_id": 1, "months": 1, "coupon": "", "payment_method": "balance" }
cURL
curl -X POST "https://trungtamdev.com/api/ttd/v1/cron/orders" \ -H "Authorization: Bearer YOUR_API_TOKEN" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: order-20260924-001" \ -d '{ "url": "https://example.com/cron.php", "interval_seconds": 60, "method": "GET", "server_id": 1, "months": 1, "coupon": "", "payment_method": "balance" }'
Actions

Dùng POST /api/ttd/v1/cron/orders/{id}/actions/{action}.

pauseresumeeditextend
POST
Action: pause
/api/ttd/v1/cron/orders/{id}/actions/pause
curl -X POST "https://trungtamdev.com/api/ttd/v1/cron/orders/1/actions/pause" \ -H "Authorization: Bearer YOUR_API_TOKEN" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: order-20260924-001" \ -d '[]'
POST
Action: resume
/api/ttd/v1/cron/orders/{id}/actions/resume
curl -X POST "https://trungtamdev.com/api/ttd/v1/cron/orders/1/actions/resume" \ -H "Authorization: Bearer YOUR_API_TOKEN" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: order-20260924-001" \ -d '[]'
POST
Action: edit
/api/ttd/v1/cron/orders/{id}/actions/edit
curl -X POST "https://trungtamdev.com/api/ttd/v1/cron/orders/1/actions/edit" \ -H "Authorization: Bearer YOUR_API_TOKEN" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: order-20260924-001" \ -d '{ "url": "https://example.com/cron-v2.php", "interval_seconds": 120, "method": "GET", "server_id": 1 }'
POST
Action: extend
/api/ttd/v1/cron/orders/{id}/actions/extend
curl -X POST "https://trungtamdev.com/api/ttd/v1/cron/orders/1/actions/extend" \ -H "Authorization: Bearer YOUR_API_TOKEN" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: order-20260924-001" \ -d '{ "months": 1 }'

Thiết kế Logo

Đặt thiết kế logo theo mẫu.

namespace: logo
GET
Danh sách gói
/api/ttd/v1/logo/plans

Lấy catalog/gói đang mở bán.

cURL
curl -X GET "https://trungtamdev.com/api/ttd/v1/logo/plans" \ -H "Authorization: Bearer YOUR_API_TOKEN"
GET
Danh sách đơn
/api/ttd/v1/logo/orders?page=1&limit=20

Chỉ trả đơn thuộc API Token hiện tại.

cURL
curl -X GET "https://trungtamdev.com/api/ttd/v1/logo/orders?page=1&limit=20" \ -H "Authorization: Bearer YOUR_API_TOKEN"
GET
Chi tiết đơn
/api/ttd/v1/logo/orders/{id}

Chi tiết một đơn thuộc tài khoản.

cURL
curl -X GET "https://trungtamdev.com/api/ttd/v1/logo/orders/1" \ -H "Authorization: Bearer YOUR_API_TOKEN"
POST
Tạo đơn mới
/api/ttd/v1/logo/orders

Thanh toán bằng số dư hoặc bank nếu service hỗ trợ.

JSON body
{ "logo_id": 1, "shop_name": "My Brand", "note": "Phong cách tối giản", "coupon": "", "payment_method": "balance" }
cURL
curl -X POST "https://trungtamdev.com/api/ttd/v1/logo/orders" \ -H "Authorization: Bearer YOUR_API_TOKEN" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: order-20260924-001" \ -d '{ "logo_id": 1, "shop_name": "My Brand", "note": "Phong cách tối giản", "coupon": "", "payment_method": "balance" }'

Thiết kế Website

Đặt website theo mẫu và chu kỳ.

namespace: website
GET
Danh sách gói
/api/ttd/v1/website/plans

Lấy catalog/gói đang mở bán.

cURL
curl -X GET "https://trungtamdev.com/api/ttd/v1/website/plans" \ -H "Authorization: Bearer YOUR_API_TOKEN"
GET
Danh sách đơn
/api/ttd/v1/website/orders?page=1&limit=20

Chỉ trả đơn thuộc API Token hiện tại.

cURL
curl -X GET "https://trungtamdev.com/api/ttd/v1/website/orders?page=1&limit=20" \ -H "Authorization: Bearer YOUR_API_TOKEN"
GET
Chi tiết đơn
/api/ttd/v1/website/orders/{id}

Chi tiết một đơn thuộc tài khoản.

cURL
curl -X GET "https://trungtamdev.com/api/ttd/v1/website/orders/1" \ -H "Authorization: Bearer YOUR_API_TOKEN"
POST
Tạo đơn mới
/api/ttd/v1/website/orders

Thanh toán bằng số dư hoặc bank nếu service hỗ trợ.

JSON body
{ "service_id": 1, "shop_username": "shopadmin", "shop_password": "StrongPassword123!", "domain": "example.com", "domain_type": "have", "months": 1, "coupon": "", "payment_method": "balance" }
cURL
curl -X POST "https://trungtamdev.com/api/ttd/v1/website/orders" \ -H "Authorization: Bearer YOUR_API_TOKEN" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: order-20260924-001" \ -d '{ "service_id": 1, "shop_username": "shopadmin", "shop_password": "StrongPassword123!", "domain": "example.com", "domain_type": "have", "months": 1, "coupon": "", "payment_method": "balance" }'
Actions

Dùng POST /api/ttd/v1/website/orders/{id}/actions/{action}.

renew
POST
Action: renew
/api/ttd/v1/website/orders/{id}/actions/renew
curl -X POST "https://trungtamdev.com/api/ttd/v1/website/orders/1/actions/renew" \ -H "Authorization: Bearer YOUR_API_TOKEN" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: order-20260924-001" \ -d '[]'
Response chuẩn
{ "success": true, "status": "success", "message": "Thành công", "data": { "id": 1 }, "meta": { "api_version": "v1", "request_id": "req_xxx", "timestamp": "2026-09-06T14:00:00Z" } }
HTTP status
200/201Thành công
202Đang xử lý / chờ thanh toán
400/422Dữ liệu không hợp lệ
401Token không hợp lệ
402Số dư không đủ
404Không tìm thấy
409Idempotency conflict
429Quá 120 request/phút
5xxLỗi hệ thống/nhà cung cấp
Legacy Cron API: các URL /api/cron/*/api/v1/order/cron vẫn hoạt động để tương thích. Tích hợp mới nên dùng /api/ttd/v1/cron/*.
Tổng quan Nạp tiền Hỗ trợ Đăng nhập