801
windows
創建訂單__訂單服務接口_API文檔_域名-阿裏雲
CreateOrder
描述
根據傳入訂單參數創建訂單購買域名。傳入訂單參數為包含一個子訂單列表的訂單信息。目前,僅支持采用餘額支付的方式自動支付訂單,請確保賬戶內有足夠的餘額。
請求參數
公共請求參數,詳見公共參數。
名稱 | 類型 | 是否必須 | 描述 |
---|---|---|---|
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 | 域名目前無法注冊 |
示例
請求示例
https://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"
}
最後更新:2016-11-23 16:04:16
上一篇:
查詢訂單__訂單服務接口_API文檔_域名-阿裏雲
下一篇:
域名狀態信息__數據類型_API文檔_域名-阿裏雲
推送日誌到OSS__日誌管理使用幫助_控製台使用幫助_消息服務-阿裏雲
大規模分布式壓測__最佳實踐_性能測試-阿裏雲
更新自定義轉碼模版__自定義轉碼模板接口_API使用手冊_媒體轉碼-阿裏雲
事務說明__用戶指南_雲數據庫 PetaData-阿裏雲
搜索水印模板__水印模板接口_API使用手冊_媒體轉碼-阿裏雲
短信服務(Short Message Service)服務條款__服務協議條款_短信服務-阿裏雲
Lite腳本編寫SDK__手工腳本編寫_Lite用戶使用手冊_性能測試-阿裏雲
TAG列表__tag相關_API 列表_OpenAPI 2.0_移動推送-阿裏雲
CapacityUnit__DataType_API 參考_表格存儲-阿裏雲
雲計算服務價格仍未觸底 阿裏雲部分企業級服務器降價35%
相關內容
常見錯誤說明__附錄_大數據計算服務-阿裏雲
發送短信接口__API使用手冊_短信服務-阿裏雲
接口文檔__Android_安全組件教程_移動安全-阿裏雲
運營商錯誤碼(聯通)__常見問題_短信服務-阿裏雲
設置短信模板__使用手冊_短信服務-阿裏雲
OSS 權限問題及排查__常見錯誤及排除_最佳實踐_對象存儲 OSS-阿裏雲
消息通知__操作指南_批量計算-阿裏雲
設備端快速接入(MQTT)__快速開始_阿裏雲物聯網套件-阿裏雲
查詢API調用流量數據__API管理相關接口_API_API 網關-阿裏雲
使用STS訪問__JavaScript-SDK_SDK 參考_對象存儲 OSS-阿裏雲