REST API v1 · 開發者
BotGG Hosting Protocol v1
帳務面板與 BotGG 之間的協定。WHMCS、Blesta 與 Paymenter 模組都是它的參考實作;任何其他帳務系統或自建面板只要實作它,就能使用 BotGG 主機服務的全部功能。兩個方向、一組連線密鑰,每個請求都經過簽章。
開發者文件
本頁目錄
運作方式
- 面板 → BotGG:你的面板把事件(訂單、停用、已付帳單…)傳送到事件網址,在客戶同意 BotGG 登入後建立帳號連結,並在設定時呼叫交握。
- BotGG → 面板:BotGG 會呼叫你的橋接端點,也就是一個回應
POST { "op", "params" }的 HTTPS 網址,用來讀取服務、帳單與產品目錄;若你支援,也用來同步客服單、按下電源按鈕或建立優惠碼。 - 事件只是提示,不是指令:BotGG 在給予或移除身分組前,一定會透過橋接端點重新讀取客戶的服務。偽造或順序錯亂的事件最多只會造成一次多餘的讀取。
- 資料最小化:事件只包含 ID 與狀態,絕不包含電子郵件、姓名、地址、電話、IP、密碼或卡片資料。結構驗證很嚴格,未知欄位會被拒絕。唯一的例外是客服單同步:訊息內容與作者的顯示名稱。
- 所有 ID 在傳輸時都是字串。
accountId是面板的登入身分(WHMCS、Blesta 或 Paymenter 使用者);每個連線中,一位 Discord 使用者只連結一個帳號,反之亦然。
連線金鑰
伺服器擁有者在控制台新增帳務連線時,BotGG 只會顯示一次連線金鑰。請把它貼到模組設定並加密保存:模組需要的一切都在裡面。
hcn_0123456789abcdef.<secret: 43 characters>.hc_<32 hex>.botgg_cs_<43 characters>
└ connection id └ HMAC secret └ OAuth client id └ OAuth client secret- 每個請求的
X-BotGG-Connection都帶有連線 ID;HMAC 密鑰用來簽署兩個方向的請求。 - OAuth 用戶端(
hc_…與密鑰)用於 BotGG 登入:使用 PKCE S256 的授權碼流程、scopeidentify、重新導向網址鎖定為你的 callback、存取權杖 10 分鐘有效,且沒有 refresh token。 - 在控制台更換密鑰後,舊密鑰仍有效 24 小時,讓你不必停機就能更新模組。
請求簽章
兩個方向都使用相同的四個標頭。簽章是以密鑰字串為金鑰、對時間戳記、nonce、方法、請求目標與原始內容以點連接後計算的 HMAC-SHA256,以小寫 hex 表示:
X-BotGG-Connection: hcn_<16 hex>
X-BotGG-Timestamp: <unix seconds>
X-BotGG-Nonce: <16 random bytes, 32 hex characters>
X-BotGG-Signature: v1=<hex HMAC-SHA256(secret, timestamp + "." + nonce + "." + METHOD + "." + path + "." + body)>path是實際送出的請求目標:路徑加上查詢字串(/index.php?m=botgg&action=bridge)。body是原始內容位元組;空內容以空字串簽章。- 接收端以固定時間比較,接受 ±300 秒內的時間戳記,並拒絕最近 10 分鐘內看過的 nonce。請在簽章比對成功後才記錄 nonce。
- 簽章請求絕不跟隨重新導向:請直接以 HTTPS 在橋接網址回應。
secret = c2lnbmluZy1maXh0dXJlLXNlY3JldC0wMDEtYWJjZGU
timestamp = 1795947300
nonce = 0123456789abcdef0123456789abcdef
method = POST
path = /api/hooks/hosting/Zm9vYmFyYmF6cXV4cXV1eHF1dXhxdXV4
body = {"id":"evt_service_suspended_0005","type":"service.suspended","occurredAt":"2026-11-29T10:15:00Z","accountId":"12","clientId":"34","data":{"serviceId":"56","productId":"7","groupId":"2","status":"suspended","reason":"Overdue on payment"}}
signed string:
1795947300.0123456789abcdef0123456789abcdef.POST./api/hooks/hosting/Zm9vYmFyYmF6cXV4cXV1eHF1dXhxdXV4.{"id":"evt_service_suspended_0005","type":"service.suspended","occurredAt":"2026-11-29T10:15:00Z","accountId":"12","clientId":"34","data":{"serviceId":"56","productId":"7","groupId":"2","status":"suspended","reason":"Overdue on payment"}}
X-BotGG-Signature: v1=224d6f9dc9ec40276bb848f0241702780622abfbf000cb42814abc44007aad27<?php
// BotGG Hosting Protocol v1: sign requests to BotGG and verify requests from BotGG (PHP 7.4+, no extensions beyond hash).
// Signature: X-BotGG-Signature: v1=<hex HMAC-SHA256(secret, timestamp.nonce.METHOD.path.body)>
const BOTGG_TOLERANCE_SECONDS = 300;
/** The signed string. $path = the request target exactly as sent (path + ?query), $body = the raw body ('' if none). */
function botgg_signature_base(string $timestamp, string $nonce, string $method, string $path, string $body = ''): string
{
return $timestamp . '.' . $nonce . '.' . strtoupper($method) . '.' . $path . '.' . $body;
}
/** v1=<hex> for one request. The key is the connection secret string itself. */
function botgg_sign(string $secret, string $timestamp, string $nonce, string $method, string $path, string $body = ''): string
{
return 'v1=' . hash_hmac('sha256', botgg_signature_base($timestamp, $nonce, $method, $path, $body), $secret);
}
/** Headers for a request you send to BotGG (events, links, handshake), as "Name: value" lines for curl. */
function botgg_signed_headers(string $connectionId, string $secret, string $method, string $path, string $body = ''): array
{
$timestamp = (string) time();
$nonce = bin2hex(random_bytes(16)); // 32 hex characters, new for every request
return [
'Content-Type: application/json',
'X-BotGG-Connection: ' . $connectionId,
'X-BotGG-Timestamp: ' . $timestamp,
'X-BotGG-Nonce: ' . $nonce,
'X-BotGG-Signature: ' . botgg_sign($secret, $timestamp, $nonce, $method, $path, $body),
];
}
/**
* Verify a request BotGG sends to your bridge. $headers = lower-case names, $rawBody = file_get_contents('php://input').
* $claimNonce($nonce) must return true only the first time a nonce is seen (store nonces for 10 minutes).
*/
function botgg_verify(string $secret, string $method, string $path, array $headers, string $rawBody, ?int $now = null, ?callable $claimNonce = null): bool
{
$now = $now ?? time();
$timestamp = (string) ($headers['x-botgg-timestamp'] ?? '');
$nonce = (string) ($headers['x-botgg-nonce'] ?? '');
$given = (string) ($headers['x-botgg-signature'] ?? '');
if (!preg_match('/^\d{9,11}$/', $timestamp) || abs($now - (int) $timestamp) > BOTGG_TOLERANCE_SECONDS) {
return false;
}
if (!preg_match('/^[0-9a-f]{32}$/', $nonce)) {
return false;
}
if (!hash_equals(botgg_sign($secret, $timestamp, $nonce, $method, $path, $rawBody), $given)) {
return false;
}
return $claimNonce ? (bool) $claimNonce($nonce) : true; // only after the signature matched
}// BotGG Hosting Protocol v1 — sign requests to BotGG and verify requests from BotGG (Node.js 18+, no dependencies).
// Signature: X-BotGG-Signature: v1=<hex HMAC-SHA256(secret, timestamp.nonce.METHOD.path.body)>
import crypto from 'node:crypto';
export const TOLERANCE_SECONDS = 300;
/** The signed string. `path` = the request target exactly as sent (path + ?query), `body` = the raw body ('' if none). */
export function signatureBase({ timestamp, nonce, method, path, body = '' }) {
return `${timestamp}.${nonce}.${method.toUpperCase()}.${path}.${body}`;
}
/** `v1=<hex>` for one request. The key is the connection secret string itself. */
export function sign(secret, parts) {
return `v1=${crypto.createHmac('sha256', secret).update(signatureBase(parts), 'utf8').digest('hex')}`;
}
/** Headers for a request you send to BotGG (events, links, handshake). */
export function signedHeaders({ connectionId, secret, method, path, body = '' }) {
const timestamp = String(Math.floor(Date.now() / 1000));
const nonce = crypto.randomBytes(16).toString('hex'); // 32 hex characters, new for every request
return {
'Content-Type': 'application/json',
'X-BotGG-Connection': connectionId,
'X-BotGG-Timestamp': timestamp,
'X-BotGG-Nonce': nonce,
'X-BotGG-Signature': sign(secret, { timestamp, nonce, method, path, body }),
};
}
/**
* Verify a request BotGG sends to your bridge. `headers` = lower-case names, `rawBody` = the exact body string.
* `claimNonce(nonce)` must return true only the first time a nonce is seen (store nonces for 10 minutes).
*/
export function verify(secret, { method, path, headers, rawBody }, { now = Date.now(), claimNonce = () => true } = {}) {
const timestamp = String(headers['x-botgg-timestamp'] ?? '');
const nonce = String(headers['x-botgg-nonce'] ?? '');
const given = String(headers['x-botgg-signature'] ?? '');
if (!/^\d{9,11}$/.test(timestamp) || Math.abs(Math.floor(now / 1000) - Number(timestamp)) > TOLERANCE_SECONDS) return false;
if (!/^[0-9a-f]{32}$/.test(nonce)) return false;
const expected = sign(secret, { timestamp, nonce, method, path, body: rawBody });
if (given.length !== expected.length || !crypto.timingSafeEqual(Buffer.from(given), Buffer.from(expected))) return false;
return claimNonce(nonce); // only after the signature matched, so forged requests can't burn nonces
}
// Example: send an event to the events URL from the handshake answer.
// const body = JSON.stringify(event);
// const path = new URL(eventsUrl).pathname;
// await fetch(eventsUrl, { method: 'POST', body, headers: signedHeaders({ connectionId, secret, method: 'POST', path, body }) });# BotGG Hosting Protocol v1: sign requests to BotGG and verify requests from BotGG (Python 3.8+, standard library only).
# Signature: X-BotGG-Signature: v1=<hex HMAC-SHA256(secret, timestamp.nonce.METHOD.path.body)>
import hashlib
import hmac
import re
import secrets
import time
TOLERANCE_SECONDS = 300
def signature_base(timestamp: str, nonce: str, method: str, path: str, body: str = "") -> str:
"""The signed string. path = the request target exactly as sent (path + ?query), body = the raw body ("" if none)."""
return f"{timestamp}.{nonce}.{method.upper()}.{path}.{body}"
def sign(secret: str, timestamp: str, nonce: str, method: str, path: str, body: str = "") -> str:
"""v1=<hex> for one request. The key is the connection secret string itself."""
base = signature_base(timestamp, nonce, method, path, body)
return "v1=" + hmac.new(secret.encode("utf-8"), base.encode("utf-8"), hashlib.sha256).hexdigest()
def signed_headers(connection_id: str, secret: str, method: str, path: str, body: str = "") -> dict:
"""Headers for a request you send to BotGG (events, links, handshake)."""
timestamp = str(int(time.time()))
nonce = secrets.token_hex(16) # 32 hex characters, new for every request
return {
"Content-Type": "application/json",
"X-BotGG-Connection": connection_id,
"X-BotGG-Timestamp": timestamp,
"X-BotGG-Nonce": nonce,
"X-BotGG-Signature": sign(secret, timestamp, nonce, method, path, body),
}
def verify(secret: str, method: str, path: str, headers: dict, raw_body: str, now=None, claim_nonce=lambda nonce: True) -> bool:
"""Verify a request BotGG sends to your bridge. headers = lower-case names, raw_body = the exact body string.
claim_nonce(nonce) must return True only the first time a nonce is seen (store nonces for 10 minutes)."""
now = time.time() if now is None else now
timestamp = str(headers.get("x-botgg-timestamp", ""))
nonce = str(headers.get("x-botgg-nonce", ""))
given = str(headers.get("x-botgg-signature", ""))
if not re.fullmatch(r"\d{9,11}", timestamp) or abs(int(now) - int(timestamp)) > TOLERANCE_SECONDS:
return False
if not re.fullmatch(r"[0-9a-f]{32}", nonce):
return False
expected = sign(secret, timestamp, nonce, method, path, raw_body)
if not hmac.compare_digest(given, expected):
return False
return claim_nonce(nonce) # only after the signature matched, so forged requests can't burn nonces傳送事件
以 JSON 內容 { id, type, occurredAt, accountId?, clientId?, data } 呼叫 POST <eventsUrl>。事件網址(內含秘密權杖)在交握回應中取得。id 是去重鍵:重試時傳送相同的 id,BotGG 只會儲存一次。內容上限 64 kB,每個 IP 每分鐘 120 個請求,每個連線每分鐘 600 個。
POST /api/hooks/hosting/<token> HTTP/1.1
Host: botgg.app
Content-Type: application/json
X-BotGG-Connection: hcn_0123456789abcdef
X-BotGG-Timestamp: 1795947300
X-BotGG-Nonce: 0123456789abcdef0123456789abcdef
X-BotGG-Signature: v1=224d6f9dc9ec40276bb848f0241702780622abfbf000cb42814abc44007aad27
{"id":"evt_service_suspended_0005","type":"service.suspended","occurredAt":"2026-11-29T10:15:00Z","accountId":"12","clientId":"34","data":{"serviceId":"56","productId":"7","groupId":"2","status":"suspended","reason":"Overdue on payment"}}{
"id": "evt_service_suspended_0005",
"type": "service.suspended",
"occurredAt": "2026-11-29T10:15:00Z",
"accountId": "12",
"clientId": "34",
"data": {
"serviceId": "56",
"productId": "7",
"groupId": "2",
"status": "suspended",
"reason": "Overdue on payment"
}
}| 群組 | 類型 | 何時傳送 |
|---|---|---|
order | order.created, order.accepted, order.fraud | 有新訂單、管理員接受訂單,或訂單被標記為詐騙。 |
service | service.activated, service.suspended, service.unsuspended, service.terminated, service.cancellationRequested, service.changed | 服務開通、停用、恢復、終止、變更,或客戶申請取消。 |
invoice | invoice.created, invoice.paid, invoice.overdue | 帳單建立、付款完成或逾期。 |
ticket | ticket.opened, ticket.customerReplied, ticket.staffReplied, ticket.closed, ticket.reopened | 面板客服單開立、客戶或管理員回覆、客服單關閉或重新開啟(客服單同步)。 |
status | status.issue | 網路問題或維護開始、更新或解決。 |
product | product.restocked | 售完的產品重新補貨。 |
| 狀態 | 內容 | 意義 |
|---|---|---|
| 202 | { "status": "queued" } | 已儲存;機器人會在數秒內處理。 |
| 200 | { "status": "duplicate" } | 這個 id 已收過:視為已送達。 |
| 200 | { "status": "ignored", "reason": … } | 已接受但未使用(功能已關閉或連線因方案暫停)。請勿重試。 |
| 400 | { "error": "bad_request" } | JSON 無效,或有未知/多餘的欄位。 |
| 401 | { "error": "bad_signature" } | 簽章不符。 |
| 404 | { "error": "not_found" } | 未知或已中斷的事件網址。 |
| 409 | { "error": "replay" } | 時間戳記過期或 nonce 重複。 |
| 413 / 429 | { "error": … } | 內容過大/超過速率限制:請稍後再試。 |
請從具重試機制的待送佇列傳送事件(例如 1 分鐘、5 分鐘、30 分鐘、2 小時後重試):傳送失敗不應阻擋面板本身的 hook。未連結帳號的事件也會被接受,用於管理員通知。
帳號連結與 BotGG 登入
- 已登入的客戶在客戶專區點擊連結 Discord。你的模組帶著
client_id、redirect_uri、state、code_challenge(S256)與scope=identify重新導向到authorizationEndpoint。 - 客戶在 BotGG 以 Discord 登入並同意。BotGG 帶著
code與state導回你的 callback。 - 模組在
tokenEndpoint交換授權碼(伺服器對伺服器,附用戶端密鑰與code_verifier),並可呼叫userinfoEndpoint→{ sub, username, globalName, avatarUrl }。 - 模組帶著帳號 ID 與存取權杖呼叫
POST /api/hosting/v1/links(需簽章)。BotGG 會確認權杖是在最近 10 分鐘內發給此連線的用戶端,並從權杖取得 Discord ID:模組永遠無法自行指定任意的 Discord ID。
POST https://console.botgg.app/api/hosting/v1/links
{ "accountId": "12", "accessToken": "<the access token from /oauth/token>" }
→ 201 { "ok": true, "accountId": "12", "userId": "876543210987654321", "linkedAt": "2026-11-29T10:15:00.000Z" }- 從面板解除連結:
DELETE /api/hosting/v1/links/<accountId>(需簽章,內容為空)。客戶在 BotGG 端解除連結時,BotGG 會呼叫橋接操作unlink,讓你刪除快取的對應。 - 使用 Discord 登入:相同的 OAuth 流程,之後以面板本身的工作階段機制登入已連結的帳號。絕不建立帳號,也絕不以電子郵件比對;請遵守主機商的兩步驟驗證設定(
signIn.twoFactor:refuse或allow)。 - 主機商端點接受最多 16 kB 的內容,每個連線每分鐘 120 個請求。
交握
POST /api/hosting/v1/handshake(需簽章)是設定測試。BotGG 會回應,並在同一個請求中呼叫你橋接端點的 ping,證明兩個方向都暢通,連線隨即標示為已驗證。回應會提供模組事件網址與登入設定;變更設定後請再呼叫一次。
POST https://console.botgg.app/api/hosting/v1/handshake
{ "module": "custom", "moduleVersion": "1.0.0", "platformVersion": "2.4", "protocol": 1 }
→ 200 {
"ok": true,
"protocol": 1,
"connectionId": "hcn_0123456789abcdef",
"eventsUrl": "https://console.botgg.app/api/hooks/hosting/<token>",
"linksUrl": "https://console.botgg.app/api/hosting/v1/links",
"oauth": {
"issuer": "https://console.botgg.app",
"authorizationEndpoint": "https://console.botgg.app/oauth/authorize",
"tokenEndpoint": "https://console.botgg.app/oauth/token",
"userinfoEndpoint": "https://console.botgg.app/oauth/userinfo",
"redirectUri": "https://billing.example.com/<your callback path>"
},
"signIn": { "enabled": false, "twoFactor": "refuse" },
"bridge": { "ok": true }
}橋接端點
一個以 JSON 回應 BotGG 簽章請求 POST { "op": "<op>", "params": { … } } 的 HTTPS 網址。BotGG 最多等待 5 秒、最多讀取 512 kB;services 一次最多查詢 50 個帳號。執行任何動作前,請先驗證每個請求(簽章、±300 秒、nonce)。
POST https://billing.example.com/<your bridge path>
X-BotGG-Connection / X-BotGG-Timestamp / X-BotGG-Nonce / X-BotGG-Signature (signed by BotGG)
{"op":"services","params":{"accountIds":["12","99"]}}
→ 200 {
"accounts": [
{
"accountId": "12",
"linked": true,
"services": [
{
"serviceId": "56",
"clientId": "34",
"productId": "7",
"groupId": "2",
"product": "Minecraft 4 GB",
"label": "mc.example.net",
"status": "active",
"nextDueDate": "2026-12-29",
"manageUrl": "https://billing.example.com/clientarea.php?action=productdetails&id=56",
"panel": {
"kind": "pterodactyl",
"powerable": true
}
},
{
"serviceId": "57",
"clientId": "34",
"productId": "11",
"groupId": "3",
"product": "VPS S",
"label": null,
"status": "suspended",
"nextDueDate": "2026-11-20",
"manageUrl": null,
"panel": null
}
]
},
{
"accountId": "99",
"linked": false,
"services": []
}
]
}| 操作 | params | 回應 | 實作 | 帳號 |
|---|---|---|---|---|
ping | — | { ok, module, moduleVersion, platformVersion, protocol, capabilities } | 必要 | 任何帳號 |
catalog | — | { groups, products, departments, promos } | 必要 | 任何帳號 |
services | { accountIds } | { accounts } | 必要 | 僅限已連結帳號 |
invoices | { accountId } | { invoices, summary } | 必要 | 僅限已連結帳號 |
status | — | { issues } | 選用(capability) | 任何帳號 |
unlink | { accountId } | { ok } | 必要 | 僅限已連結帳號 |
ticket.open | { accountId, departmentId, subject, message, serviceId, originId, attachments } | { ticketId } | 選用(capability) | 僅限已連結帳號 |
ticket.reply | { accountId, ticketId, message, authorName, staff, originId } | { ticketId } | 選用(capability) | 僅限已連結帳號 |
ticket.close | { accountId, ticketId, originId } | { ticketId } | 選用(capability) | 僅限已連結帳號 |
panel.power | { accountId, serviceId, signal } | { ok } | 選用(capability) | 僅限已連結帳號 |
panel.state | { accountId, serviceId } | { state, cpu, ramMb } | 選用(capability) | 僅限已連結帳號 |
promo.create | { type, value, productIds, maxUses, expiresAt, code } | { code } | 選用(capability) | 任何帳號 |
- 只回應已連結的帳號(標示「任何帳號」的操作除外)、只回應該帳號擁有的客戶,且只提供主機商啟用的欄位(關閉主機名稱 →
label: null)。services中未知或未連結的帳號會回傳{ accountId, linked: false, services: [] }。 - 狀態已標準化:服務為
pending | active | suspended | terminated | cancelled | fraud | completed;帳單為unpaid | overdue | paymentPending。 - 寫入操作(客服單、電源、優惠碼)每次呼叫都會重新檢查連結與擁有權,有速率限制,也會寫入面板的活動日誌。
錯誤
錯誤是 4xx(internal 為 5xx)狀態,內容為 { "error": "<code>", "message"?: "…" }。BotGG 會把 unauthorized、bad_signature 與 replay 視為連線故障,其餘為一般的業務回應。
| error | HTTP | 意義 |
|---|---|---|
bad_request | 400 | 請求內容或參數無效。 |
unauthorized | 401 | 缺少或無法識別的憑證(連線 ID、權杖)。 |
bad_signature | 401 | 簽章不符。 |
replay | 409 | 時間戳記超出 ±300 秒,或 nonce 已被使用。 |
not_linked | 403 | 帳號未連結 Discord 使用者。 |
not_owner | 403 | 帳號不擁有此服務,或權杖屬於其他連線。 |
not_found | 404 | 未知的帳號、服務、客服單或路徑。 |
not_supported | 400 | 尚未實作此操作(只宣告你支援的功能)。 |
disabled | 403 | 主機商已在模組設定中關閉此功能。 |
inactive | 409 | 服務未啟用(例如已停用伺服器的電源按鈕)。 |
rate_limited | 429 | 請求過多,請稍後再試。 |
internal | 500 | 回應端發生未預期的錯誤。 |
橋接端點的健康狀態會顯示在控制台的連線上:連續失敗 5 次後擁有者會看到警告,中斷 30 分鐘後管理員會收到私訊,身分組同步也會暫停(橋接端點故障時絕不大量移除身分組)。
功能宣告
每個模組都必須實作 ping、catalog、services、invoices、unlink。其他功能在 ping.capabilities[] 中宣告;控制台會隱藏模組不支援的部分,BotGG 也絕不呼叫未宣告的操作。
| 功能 | 意義 |
|---|---|
status | status 操作:進行中的網路問題與維護。 |
ticket.open | 客服單同步:從 Discord 在面板開立客服單。 |
ticket.reply | 客服單同步:回覆面板客服單。 |
ticket.close | 客服單同步:關閉面板客服單。 |
panel.power | 遊戲伺服器的啟動/停止/重新啟動按鈕(Pterodactyl/Pelican)。 |
panel.state | 電源按鈕旁顯示遊戲伺服器狀態、CPU 與 RAM。 |
promo.create | 在面板中建立 Discord 專屬優惠碼。 |
signIn | 面板登入頁的「使用 Discord 登入」。 |
stock | catalog 回報庫存(補貨通知)。 |
hostnames | 服務帶有標籤(主機名稱/網域)。 |
events.order | 模組會傳送 order.* 事件。 |
events.service | 模組會傳送 service.* 事件。 |
events.invoice | 模組會傳送 invoice.* 事件。 |
events.ticket | 模組會傳送 ticket.* 事件。 |
events.status | 模組會傳送 status.* 事件。 |
events.product | 模組會傳送 product.* 事件。 |
測試你的實作
協定測試套件會針對運作中的模組檢查每個操作與每種事件格式。除非你允許寫入,否則它只會讀取。
npm run hosting:protocol-test -- --url https://billing.example.com/<bridge path> --key <connection key>
--account <id> a linked test account (services, invoices, panel.state)
--service <id> a service of that account
--allow-writes also run ticket.*, promo.create and panel.power (creates real rows)
--listen <port> validate the events your module sends to http://127.0.0.1:<port>/events現成模組的安裝指南:WHMCS、Blesta、Paymenter。