我們正試圖通過在門戶網站中創建的現有報價的API訂購Sydney1 DC中的BareMetal服務器。 我們提取我們在python使用這種方法報價容器:SoftLayer訂單從報價失敗,錯誤價格ID 876不存在
container = client['Billing_Order_Quote'].getRecalculatedOrderContainer(id=quote_id)
我們不是做在容器中的價格標識進行任何更改。當我們試圖確認訂單或使用下訂單:
result = client['Product_Order'].verifyOrder(container)
它失敗,出現以下錯誤:
Failed to order due to error: SoftLayerAPIError(SoftLayer_Exception_Public): Price # 876 does not exist.
這是容器的顯示ID 876的JSON提取物:
"currentPriceFlag": "",
"hourlyRecurringFee": "0",
"id": 876,
"item": {
"activePresaleEvents": [],
"attributes": [],
"availabilityAttributes": [],
"bundle": [],
"description": "Non-RAID",
"id": 487,
"itemCategory": {
"categoryCode": "disk_controller",
"id": 11,
"name": "Disk Controller",
"quantityLimit": 0,
"questions": []
},
"itemTaxCategoryId": 166,
"keyName": "DISK_CONTROLLER_NONRAID",
"softwareDescriptionId": "",
"thirdPartyPolicyAssignments": [],
"upgradeItemId": ""
},
已嘗試使用不同硬件的不同引號。如果我們通過門戶網站使用相同的報價進行訂購,它的工作原理是這樣的,只有API在Non-Raid
有問題?這個相同的腳本也在一週前工作過,所以對Product_Order API有任何修改嗎?該報價也是在我們開始接收錯誤時在同一天創建的新報價。
嘗試都verifyOrder和placeOrder和同時失敗與以下錯誤:'無法訂購由於錯誤:SoftLayerAPIError(SoftLayer_Exception):對象不存在於上執行方法。 (SoftLayer_Billing_Order_Quote :: placeOrder)' – LurgenB
哦,我看到發生了什麼是我的錯誤抱歉,方法需要一個initId參數,它是quoteId我更新了e。g請補充一下,請再試 –
好吧,失敗,同樣的錯誤'價格#876不存在' – LurgenB