Danh mục thao tác

Tạo hoá đơn nâng / gia hạn gói

billing.invoice.createMCP:billing_invoice_createBộ công cụ: Quản trị workspace

Create an upgrade/renewal invoice (a person pays by bank transfer). Confirmation required.

Hỏi xác nhận hai bước
Quản trị
Quyền: Quản trị workspace
Quyền: Thao tác không hoàn tác

Gọi bằng REST v2

curl -X POST https://zl.builera.app/api/public/v2/ops/billing.invoice.create \
  -H "Authorization: Bearer za_live_…" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{"planKey":"xx","period":"month"}'

Mỗi khoá/kết nối tối đa 300 lệnh đọc và 60 lệnh ghi mỗi phút. Gọi lại cùng Idempotency-Key trả đúng kết quả cũ, không làm lại.

Gọi qua MCP

{
  "method": "tools/call",
  "params": {
    "name": "billing_invoice_create",
    "arguments": {
      "planKey": "xx",
      "period": "month"
    }
  }
}

Thêm https://zl.builera.app/mcp vào ứng dụng AI rồi cho phép kết nối; AI chỉ thấy công cụ trong bộ bạn chọn.

Kết quả

HTTP 428
{ "status": "confirmation_required", "operationId": "…", "confirmToken": "…", "expiresAt": "…", "data": { "summary": "…" } }

→ gửi lại đúng lệnh với header X-Confirm-Token trong 5 phút

Ví dụ đầu vào

{
  "planKey": "xx",
  "period": "month"
}

Thay mã (id) mẫu bằng mã thật lấy từ các thao tác liệt kê/tìm kiếm.

Lược đồ đầu vào (JSON Schema)

{
  "type": "object",
  "properties": {
    "planKey": {
      "type": "string",
      "minLength": 2,
      "maxLength": 40
    },
    "period": {
      "type": "string",
      "enum": [
        "month",
        "year"
      ]
    }
  },
  "required": [
    "planKey",
    "period"
  ],
  "additionalProperties": false
}

Cùng bộ công cụ