更新时间:2017-10-26 19:11
描述:根据传入订单参数创建订单购买域名。传入订单参数为包含一个子订单列表的订单信息。目前,仅支持采用余额支付的方式自动支付订单,请确保账户内有足够的余额。
公共请求参数,详见 公共参数。
名称 | 类型 | 是否必须 | 描述 |
---|---|---|---|
Action | String | 是 | 操作接口名,系统规定参数,取值:CreateOrder。 |
SubOrderParam | SubOrderParamType | 是 | 子订单列表。 |
名称 | 类型 | 描述 |
---|---|---|
RequestId | String | 唯一请求识别码。 |
OrderID | String | 购买成功时返回主订单编号。 |
对于所有接口的通用性错误,请参考 错误代码表。
错误代码 | 描述 | HTTP 状态码 | 语义 |
---|---|---|---|
ContactInformationError | The contact information is invalid. | 400 | 联系人信息有误,可能为联系人模板编号无效或联系人模板内容无效 |
OrderInformationIncomplete | The order information is incomplete. | 400 | 订单信息不完整 |
ActionNotAllowed | This action is not allowed. | 400 | 操作不允许 |
ActivateSaleIdError | The SaleId of activation must be empty. | 400 | 域名新购时不允许填写业务编号 |
RenewSaleIdError | The SaleId of renewal should not be empty. | 400 | 域名续费时业务编号不能为空 |
BusinessNotFound | This business is not found. | 400 | 业务不存在 |
OrderProcessing | There are processing orders in this business. | 400 | 业务中存在处理中的订单,未处理成功前无法进行当前操作 |
OrderNotPay | There are unpaid orders in this business. | 400 | 业务中存在未支付订单,未处理之前无法进行当前操作 |
EmptyDomain | Domain name should not be empty. | 400 | 域名不能为空 |
InvalidDomainName | This domain name is invalid. | 400 | 域名信息无效 |
BlackListDomainName | This domain name contains blacklist words. | 400 | 域名包含黑名单词,无法使用 |
UserNotEXist | This user does not exiest. | 400 | 用户不存在 |
PriceError | Price of this product is null. | 400 | 产品未定价 |
InsufficientBalance | Account balance is insufficient. | 400 | 账户余额不足 |
OrderNotFound | This order is not found. | 400 | 订单不存在 |
PaymentFailed | Order payment failure. | 400 | 订单支付失败 |
CouponsNotFound | Coupons are not found. | 400 | 代金券未找到,支付失败 |
PurchaseNotAllowed | Purchase is not allowed in your region. | 400 | 您所在的地区不支持订购该项业务 |
DomainNameRegistered | This domain name is registered. | 400 | 域名已被注册 |
DomainNameNotAvailable | This domain name can not be purchased at present. | 400 | 域名目前无法注册 |
http://domain.aliyuncs.com/?Action=CreateOrder
&SubOrderParam.1.Action=activate
&SubOrderParam.1.RelatedName=ab.red
&SubOrderParam.1.Period=12
&SubOrderParam.1.DomainTemplateID=0000000
&SubOrderParam.2.Action=activate
&SubOrderParam.2.RelatedName=ab.top
&SubOrderParam.2.Period=12
&SubOrderParam.2.DomainTemplateID=0000000
&<公共请求参数>
XML 示例
<CreateOrder>
<RequestId>37675261-9687-488E-A980-42B6FDC48804</RequestId>
<OrderID>D201600000000000</OrderID>
</CreateOrder>
JSON 示例
{
"OrderID": "D201600000000000",
"RequestId": "37675261-9687-488E-A980-42B6FDC48804"
}
在文档使用中是否遇到以下问题
更多建议
匿名提交