閱讀801 返回首頁    go 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 域名目前無法注冊

示例

請求示例

  1. https://domain.aliyuncs.com/?Action=CreateOrder
  2. &SubOrderParam.1.Action=activate
  3. &SubOrderParam.1.RelatedName=ab.red
  4. &SubOrderParam.1.Period=12
  5. &SubOrderParam.1.DomainTemplateID=0000000
  6. &SubOrderParam.2.Action=activate
  7. &SubOrderParam.2.RelatedName=ab.top
  8. &SubOrderParam.2.Period=12
  9. &SubOrderParam.2.DomainTemplateID=0000000
  10. &<公共請求參數>

返回示例

XML示例

  1. <CreateOrder>
  2. <RequestId>37675261-9687-488E-A980-42B6FDC48804</RequestId>
  3. <OrderID>D201600000000000</OrderID>
  4. </CreateOrder>

JSON示例

  1. {
  2. "OrderID": "D201600000000000",
  3. "RequestId": "37675261-9687-488E-A980-42B6FDC48804"
  4. }

最後更新:2016-11-23 16:04:16

  上一篇:go 查詢訂單__訂單服務接口_API文檔_域名-阿裏雲
  下一篇:go 域名狀態信息__數據類型_API文檔_域名-阿裏雲