POST api/buy/mass

批量续费

Request Information

URI Parameters

None.

Body Parameters

订单提交信息

Collection of OneBuy
NameDescriptionTypeAdditional information
BizArgs

订单商务参数

OrderRecord

Required

NewVm

新购买主机配置参数

NewVm

None.

NewDisk

新购买硬盘参数

NewDisk

None.

NewIp

新购买IP参数

NewDisk

None.

UpVm

升级主机参数

UpVm

None.

UpDisk

升级硬盘参数

UpDisk

None.

UpBandwidth

升级带宽参数

UpBandwidth

None.

UpProtectBW

升级防护带宽参数

UpProtectBW

None.

RenewVm

续费主机参数

RenewVm

None.

RenewDisk

续费磁盘参数

RenewDisk

None.

RenewIp

续费IP参数

RenewIp

None.

RenewGroup

多个对象续费组

RenewGroup

None.

Id

Onebuy编号

integer

None.

UsedDiscountRule

输入值,优惠详情id

Collection of integer

None.

Request Formats

application/json

Sample:

An exception has occurred while using the formatter 'JsonMediaTypeFormatter' to generate sample for media type 'application/json'. Exception message: Self referencing loop detected with type 'Ecloud.IoObjects.Order.RenewIp'. Path '[0].RenewVm.Ips[0].GroupIps'.

text/json

Sample:

An exception has occurred while using the formatter 'JsonMediaTypeFormatter' to generate sample for media type 'text/json'. Exception message: Self referencing loop detected with type 'Ecloud.IoObjects.Order.RenewIp'. Path '[0].RenewVm.Ips[0].GroupIps'.

application/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'application/xml'. Exception message: 不应为数据协定名称为“VolumeCreateInput:http://schemas.datacontract.org/2004/07/Ecloud.IoObjects.Order”的类型“Ecloud.IoObjects.Order.VolumeCreateInput”。请考虑使用 DataContractResolver,或将任何未知类型以静态方式添加到已知类型的列表。例如,可以使用 KnownTypeAttribute 特性,或者将未知类型添加到传递给 DataContractSerializer 的已知类型列表。

text/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'text/xml'. Exception message: 不应为数据协定名称为“VolumeCreateInput:http://schemas.datacontract.org/2004/07/Ecloud.IoObjects.Order”的类型“Ecloud.IoObjects.Order.VolumeCreateInput”。请考虑使用 DataContractResolver,或将任何未知类型以静态方式添加到已知类型的列表。例如,可以使用 KnownTypeAttribute 特性,或者将未知类型添加到传递给 DataContractSerializer 的已知类型列表。

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'OneBuy[]'.

Response Information

Resource Description

订单详情

OrderBrief
NameDescriptionTypeAdditional information
Id

integer

None.

Number

订单流水号

string

None.

Name

订单名称

string

None.

TotalPrice

总价

decimal number

None.

OrigPrice

原总价

decimal number

None.

Status

订单状态

OrderStatus

None.

CreateAt

创建时间

date

None.

UpdateAt

更新时间

date

None.

Remark

提交订单时的备注信息

string

None.

CreatorId

创建者Id

integer

None.

CreateBy

UserBrief

None.

IsTrial

是否是试用订单

boolean

None.

OrderCatalog

订单操作类型,如续费、新增、升级、降级等订单

OrderCatalog

None.

TrialRejectReason

试用审核拒绝原因

string

None.

Details

订单项集合

Collection of DetailBrief

None.

Transactions

交易记录

Collection of TransactionLogBrief

None.

DiscountViewList

优惠详情

DiscountViewList

None.

Response Formats

application/json, text/json

Sample:

Sample not available.