获取合同包列表
获取合同包列表
Query Parameters
规格ID
生效状态 待生效 FUTURE 、有效 VALID、失效 EXPIRED
筛选条件 支持 合同包ID/编号/名称 例如: start_date>='2024-01-08T16:00:00Z' AND end_date<='2024-01-18T15:59:59Z' AND display_name="1"
排序
分页大小
分页页码
- 200
- default
OK
Schema
- Array [
- Array [
- Array [
- Array [
- ]
- ]
- Array [
- ]
- Array [
- Array [
- Array [
- ]
- ]
- Array [
- ]
- ]
- Array [
- Array [
- Array [
- ]
- ]
- Array [
- ]
- ]
- ]
- ]
contracts object[]
合同包列表
合同包名称
合同包类型,CT_ORIGINAL 原始、CT_ADDITIONAL 补充
补充合同包的原始合同包ID,默认为空
线下合同编号
线下合同名称
原价(目录价)
金额,合同价(成交价)
sku_amount_money object
价格
货币代码, 参考ISO 4217
价格整数部分
价格小数部分
user_amount_money object
价格
货币代码, 参考ISO 4217
价格整数部分
价格小数部分
Possible values: [PENDING
, COMMITTED
, DELIVERED
, CONSIGN
, TERMINATE
]
状态
有效期-开始日期
有效期-结束日期
租户 UUID
details object[] required
商品明细信息
sku object
最小库存单元
隶属标准化产品单元id
最小库存单元名称
可售卖区域
可售卖可用区
Possible values: [BBC_UNSPECIFIED
, BBC_HOURLY
, BBC_DAILY
, BBC_WEEKLY
, BBC_MONTHLY
, BBC_QUARTERLY
, BBC_YEARLY
]
计费周期, 默认每小时;
Possible values: [BC_UNSPECIFIED
, BC_HOURLY
, BC_DAILY
, BC_WEEKLY
, BC_MONTHLY
, BC_QUARTERLY
, BC_YEARLY
]
账单周期, 默认按月出账;
账单周期数
Possible values: [PM_UNSPECIFIED
, PM_PREPAID
, PM_POSTPAID
]
付费模式
Possible values: [BM_UNSPECIFIED
, BM_USAGE
, BM_MONTHLY
, BM_YEARLY
]
计费模式
Possible values: [PIM_UNSPECIFIED
, PIM_FLATFEE
, PIM_PERUNIT
, PIM_TIERED
, PIM_VOLUME
, PIM_STAIRSTEP
]
计费模型
price object[] required
价格
层次
层次名称
每层最大值
money object[]
价格
货币代码, 参考ISO 4217
价格整数部分
价格小数部分
价格单位
价格上报尺度
库存数量
库存单位
折扣, 从0-100, 100表示不打折
最多可售卖数量
最少可售卖数量
是否含有试用期
试用数量
试用单位
生效时间(已弃用)
失效时间(已弃用)
是否只能购买一次
Possible values: [SP_UNSPECIFIED
, SP_IMMEDIATELY
, SP_ENDOFTERM
, SP_UNCONDITIONALLY_REFUND
, SP_NONREFUNDABLE
]
退订规则
此字段已弃用
此字段已弃用
此字段已弃用
attributes object[]
关联的规格和描述属性
属性id
属性名称
属性后端名称
属性值
属性单位
value scale
属性值id
Possible values: [ATT_KEY
, ATT_SPEC
, ATT_DESCRIPTION
, ATT_BILLING_ITEM
]
属性类型
sku_billing_items object[] required
关联的计费项
计费项id
最小库存单元id
关联计费属性id
属性单位
Possible values: [PIM_UNSPECIFIED
, PIM_FLATFEE
, PIM_PERUNIT
, PIM_TIERED
, PIM_VOLUME
, PIM_STAIRSTEP
]
价格模型
price object[] required
价格
层次
层次名称
每层最大值
money object[]
价格
货币代码, 参考ISO 4217
价格整数部分
价格小数部分
价格单位
价格尺度
库存
库存单位
计费项数量上限
计费项数量下限
value_scales object[]
单位换算关系
属性单位
换算倍数
属性值id
Possible values: [ST_UNSPECIFIED
, ST_RELEASE
, ST_UNRELEASED
]
状态
折扣
计量上报单位
计量上报单位
Possible values: [UST_UST_UNSPECIFIED
, UST_PUBLIC
, UST_SPECIFIED
]
适用类型
适用租户IDs
适用是否可编辑
billing_items object[]
sku_billing_item object
计费项
计费项id
最小库存单元id
关联计费属性id
属性单位
Possible values: [PIM_UNSPECIFIED
, PIM_FLATFEE
, PIM_PERUNIT
, PIM_TIERED
, PIM_VOLUME
, PIM_STAIRSTEP
]
价格模型
price object[] required
价格
层次
层次名称
每层最大值
money object[]
价格
货币代码, 参考ISO 4217
价格整数部分
价格小数部分
价格单位
价格尺度
库存
库存单位
计费项数量上限
计费项数量下限
value_scales object[]
单位换算关系
属性单位
换算倍数
属性值id
Possible values: [ST_UNSPECIFIED
, ST_RELEASE
, ST_UNRELEASED
]
状态
折扣
计量上报单位
成交价
成交价
购买时长,仅用于计算合同包参考价格
合同凭证
下一页页码
总记录数
当前页码
分页大小
{
"contracts": [
{
"id": "string",
"display_name": "string",
"type": "string",
"original_id": "string",
"contract_no": "string",
"contract_name": "string",
"original_amount": 0,
"amount": 0,
"sku_amount_money": {
"currency_code": "string",
"units": 0,
"nanos": 0
},
"user_amount_money": {
"currency_code": "string",
"units": 0,
"nanos": 0
},
"state": "PENDING",
"start_date_time": "2024-11-04T06:28:48.805Z",
"end_date_time": "2024-11-04T06:28:48.805Z",
"tenant_id": "string",
"tenant_name": "string",
"tenant_code": "string",
"customer_type": "string",
"details": [
{
"id": "string",
"contract_id": "string",
"sku_id": "string",
"sku_name": "string",
"sku": {
"spu_id": "string",
"id": "string",
"display_name": "string",
"regions": [
"string"
],
"available_zones": [
"string"
],
"business_billing_cycle": "BBC_UNSPECIFIED",
"billing_cycle": "BC_UNSPECIFIED",
"billing_cycle_number": 0,
"payment_model": "PM_UNSPECIFIED",
"billing_model": "BM_UNSPECIFIED",
"price_model": "PIM_UNSPECIFIED",
"price": [
{
"tier": 0,
"name": "string",
"max_value": 0,
"money": [
{
"currency_code": "string",
"units": 0,
"nanos": 0
}
]
}
],
"price_unit": "string",
"price_scale": 0,
"stock": 0,
"stock_unit": "string",
"discount": 0,
"max_quantity": 0,
"min_quantity": 0,
"have_trial": true,
"trial_count": 0,
"trial_unit": "string",
"effective_time": "2024-11-04T06:28:48.806Z",
"ineffective_time": "2024-11-04T06:28:48.806Z",
"one_time": true,
"cancel_policy": "SP_UNSPECIFIED",
"actions": [
"string"
],
"tags": [
"string"
],
"excess_sku_id": "string",
"attributes": [
{
"attribute_id": "string",
"display_name": "string",
"property_name": "string",
"value": "string",
"value_unit": "string",
"value_scale": 0,
"attribute_value_id": "string",
"attribute_type": "ATT_KEY"
}
],
"status": "ST_UNSPECIFIED",
"spu_name": "string",
"sku_billing_items": [
{
"id": "string",
"sku_id": "string",
"attribute_id": "string",
"display_name": "string",
"property_name": "string",
"value_unit": "string",
"price_model": "PIM_UNSPECIFIED",
"price": [
{
"tier": 0,
"name": "string",
"max_value": 0,
"money": [
{
"currency_code": "string",
"units": 0,
"nanos": 0
}
]
}
],
"price_unit": "string",
"price_scale": 0,
"stock": 0,
"stock_unit": "string",
"max_quantity": 0,
"min_quantity": 0,
"value_scales": [
{
"value_unit": "string",
"value_scale": 0,
"attribute_value_id": "string"
}
],
"status": "ST_UNSPECIFIED",
"discount": 0,
"creator": "string",
"updater": "string",
"create_time": "2024-11-04T06:28:48.806Z",
"update_time": "2024-11-04T06:28:48.806Z",
"meter_unit": "string"
}
],
"creator": "string",
"updater": "string",
"create_time": "2024-11-04T06:28:48.806Z",
"update_time": "2024-11-04T06:28:48.806Z",
"meter_unit": "string",
"usage_scope_type": "UST_UST_UNSPECIFIED",
"usage_scope_tenant_ids": [
"string"
],
"usage_scope_editable": true
},
"spu_id": "string",
"spu_name": "string",
"resource_type": "string",
"region": "string",
"zone": "string",
"number": 0,
"available_number": 0,
"billing_items": [
{
"id": "string",
"contract_detail_id": "string",
"billing_item_id": "string",
"billing_item_key": "string",
"billing_item_name": "string",
"value": 0,
"available_value": 0,
"value_unit": "string",
"sku_id": "string",
"sku_billing_item": {
"id": "string",
"sku_id": "string",
"attribute_id": "string",
"display_name": "string",
"property_name": "string",
"value_unit": "string",
"price_model": "PIM_UNSPECIFIED",
"price": [
{
"tier": 0,
"name": "string",
"max_value": 0,
"money": [
{
"currency_code": "string",
"units": 0,
"nanos": 0
}
]
}
],
"price_unit": "string",
"price_scale": 0,
"stock": 0,
"stock_unit": "string",
"max_quantity": 0,
"min_quantity": 0,
"value_scales": [
{
"value_unit": "string",
"value_scale": 0,
"attribute_value_id": "string"
}
],
"status": "ST_UNSPECIFIED",
"discount": 0,
"creator": "string",
"updater": "string",
"create_time": "2024-11-04T06:28:48.806Z",
"update_time": "2024-11-04T06:28:48.806Z",
"meter_unit": "string"
},
"amount": 0,
"user_amount": 0,
"creator": "string",
"updater": "string",
"create_time": "2024-11-04T06:28:48.806Z",
"update_time": "2024-11-04T06:28:48.806Z",
"creator_name": "string",
"updater_name": "string"
}
],
"amount": 0,
"user_amount": 0,
"length": 0,
"creator": "string",
"updater": "string",
"create_time": "2024-11-04T06:28:48.806Z",
"update_time": "2024-11-04T06:28:48.806Z",
"creator_name": "string",
"updater_name": "string",
"start_time": "2024-11-04T06:28:48.806Z",
"end_time": "2024-11-04T06:28:48.806Z"
}
],
"contract_proof": "string",
"contract_proof_count": 0,
"additional_count": 0,
"effective_state": "FUTURE",
"creator": "string",
"updater": "string",
"create_time": "2024-11-04T06:28:48.806Z",
"update_time": "2024-11-04T06:28:48.806Z",
"creator_name": "string",
"updater_name": "string",
"contract_version": "V1"
}
],
"next_page_token": "string",
"total_size": 0,
"page_number": 0,
"page_size": 0
}
Default error response
Schema
- Array [
- ]
The status code, which should be an enum value of [google.rpc.Code][google.rpc.Code].
A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the [google.rpc.Status.details][google.rpc.Status.details] field, or localized by the client.
details object[]
A list of messages that carry the error details. There is a common set of message types for APIs to use.
The type of the serialized message.
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}