console-center-aggregate API Documentation
Updated: 2026-05-21 16:57:58
Query Mall Package Version Details
API Endpoint
GET /v3/console/mall-package-version/get
API Description
Query the details of a mall package version.
This API is provided by console-center-aggregate and interfaces with the mall side MallApiClient#getVersionDetail, returning version information corresponding to the specified version ID.
Request Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id |
Integer |
Yes | Mall package version ID |
Notes:
- When
idis empty, the API returns a parameter error. - This API does not perform additional business transformations; it primarily passes through the mall version details data.
Request Example
GET /v3/console/mall-package-version/get?id=1001
Response Structure
Response Type: ResponseVO<VersionVO>
ResponseVO Fields
| Field | Type | Description |
|---|---|---|
code |
Integer |
Status code, typically 200 on success |
status |
String |
success / error |
requestId |
String |
Request ID |
error |
Object |
Error message |
data |
VersionVO |
Return data |
VersionVO Fields
| Field | Type | Description |
|---|---|---|
id |
Integer |
Version ID |
name |
String |
Version name |
code |
String |
Version code |
category |
String |
Version category code |
categoryDisplay |
String |
Version category display name |
crmProductId |
String |
CRM product ID |
description |
String |
Version description |
sortOrder |
Integer |
Sort value |
mainPackageType |
String |
Main package type code |
mainPackageTypeDisplay |
String |
Main package type display name |
concurrentSubType |
String |
Concurrent subtype code |
concurrentSubTypeDisplay |
String |
Concurrent subtype display name |
mainPackageQuotaDisplay |
String |
Main package quota display value |
priceCycle |
String |
Price period code |
priceCycleValue |
Integer |
Price period value |
priceCycleDisplay |
String |
Price period display name |
unitPrice |
String |
Unit price |
featureSwitches |
List<FeatureSwitchVO> |
Feature switch list |
resourceQuotas |
List<ResourceQuota> |
Resource quota list |
packageTemplateId |
Integer |
Package template ID |
packageTemplateName |
String |
Package template name |
salesChannels |
List<Integer> |
Sales channel ID list |
salesChannelsInfo |
List<SalesChannelInfo> |
Sales channel details list |
createdAt |
String |
Creation time |
updatedAt |
String |
Update time |
FeatureSwitchVO Fields
| Field | Type | Description |
|---|---|---|
code |
String |
Feature code |
open |
Boolean |
Whether the feature is enabled |
functionType |
String |
Configuration type |
value |
String |
Extended value |
sys |
String |
Product code |
ResourceQuota Fields
| Field | Type | Description |
|---|---|---|
type |
String |
Resource type |
unit |
String |
Resource unit |
quota |
Integer |
Resource quota value |
resourceCode |
String |
Resource code |
resourceName |
String |
Resource name |
crmProductId |
String |
CRM product ID |
isMainPackage |
Boolean |
Whether it is a main package resource |
SalesChannelInfo Fields
| Field | Type | Description |
|---|---|---|
id |
Integer |
Sales channel ID |
name |
String |
Sales channel name |
Successful Response Example
{
"code": 200,
"status": "success",
"data": {
"id": 1001,
"name": "直播标准版",
"code": "live_standard_v1",
"category": "live",
"categoryDisplay": "直播",
"crmProductId": "CRM1001",
"description": "直播标准套餐版本",
"sortOrder": 1,
"mainPackageType": "duration",
"mainPackageTypeDisplay": "直播分钟数",
"concurrentSubType": "normal",
"concurrentSubTypeDisplay": "标准并发",
"mainPackageQuotaDisplay": "50000分钟",
"priceCycle": "year",
"priceCycleValue": 1,
"priceCycleDisplay": "1年",
"unitPrice": "120000",
"resourceQuotas": [
{
"type": "live_duration",
"unit": "minute",
"quota": 50000,
"resourceCode": "LIVE_DURATION",
"resourceName": "直播分钟数",
"crmProductId": "CRM-R-1001",
"isMainPackage": true
}
],
"salesChannels": [
1,
2
],
"salesChannelsInfo": [
{
"id": 1,
"name": "控制台"
}
],
"createdAt": "2026-05-21 16:00:00",
"updatedAt": "2026-05-21 16:00:00"
}
}
Failed Response Example
{
"code": 400,
"status": "error",
"error": {
"code": 400,
"desc": "参数错误"
}
}
