Gói dịch vụ & thanh toán
Danh sách gói
Lấy danh sách các gói dịch vụ Hubport SaaS đang mở bán
Chỉ có trên Hubport SaaS
Trên bản cài đặt riêng (máy chủ riêng), endpoint trả HTTP 404 error_saas_mode_inactive.
Endpoint
GET /v1/platformsubscriptions/plans
Yêu cầu đăng nhập. Trả các gói đang mở bán công khai (không gồm gói dùng thử), sắp xếp theo thứ tự hiển thị do Hubport đặt. Không phân trang.
Response Schema
HTTP 200 - JSON Object
| Trường | Kiểu | Mô tả |
|---|---|---|
items | array | Mảng Plan Object. Có thể gồm gói miễn phí (is_free = 1); gói miễn phí không mua được qua Chọn gói & tạo hoá đơn |
Error Codes
| HTTP | Mã lỗi | Mô tả |
|---|---|---|
| 403 | error_company_required | Phiên đăng nhập không gắn với công ty nào |
| 404 | error_saas_mode_inactive | Không phải Hubport SaaS |
Ví dụ
curl -X GET "https://api.hubport.vn/v1/platformsubscriptions/plans" \
-H "Authorization: <JWT>"{
"items": [
{
"id": 2,
"code": "FREE",
"name": "Miễn phí",
"description": "",
"price_month": 0,
"price_year": 0,
"limit_marketplace_shops": 0,
"limit_social_channels": 0,
"limit_synced_orders_month": 0,
"paid_features": [],
"is_free": 1
},
{
"id": 3,
"code": "PRO",
"name": "Pro",
"description": "Kết nối nhiều sàn và kênh mạng xã hội",
"price_month": 499000,
"price_year": 4990000,
"limit_marketplace_shops": 5,
"limit_social_channels": 10,
"limit_synced_orders_month": 5000,
"paid_features": ["connector.marketplace", "connector.social", "custom_domain"],
"is_free": 0
}
]
}