2016-09-17 49 views
0

我試圖刪除發票項與日期範圍回來了invoiceTotalAmount不爲零。我使用的URL:使用ObjectFilter的多個條件

https://api.softlayer.com/rest/v3/SoftLayer_Account/getInvoices.json?resultLimit=0,200&objectMask=mask[createDate,closedDate,typeCode,statusCode,invoiceTotalAmount,invoiceTopLevelItems[id,description,hostName,domainName,totalRecurringAmount,totalOneTimeAmount,parentId,categoryCode,billingItemId,billingItem[id,cancellationDate,createDate,hourlyFlag,lastBillDate,cancellationReason,orderItemId,orderItem[id,order[id,userRecord[username]]]]]]&objectFilter={"invoices":{"invoiceTotalAmount":{"operation":"!=0"},"createDate":{"operation":"betweenDate","options":[{"name":"startDate","value":["7/29/2016 0:0:0"]},{"name":"endDate","value":["7/30/2016 23:59:59"]}]}}} 

我被退回:

RC 500味精「內部服務器錯誤」內容「{」錯誤「:」在處理您的請求時出現錯誤。請稍後再試「」代碼「:」 SoftLayer_Exception_Public「}」

是不是有什麼毛病多objectFilters規範

感謝

回答

0

過濾時我能夠重現該錯誤信息? invoiceTotalAmount

https://api.softlayer.com/rest/v3/SoftLayer_Account/getInvoices?resultLimit=0,50&objectMask=mask[id,createDate,invoiceTotalAmount]&objectFilter={ "invoices": {  "invoiceTotalAmount": {  "operation": "!=0"  } } } 

過濾器似乎並沒有被工作爲relational property我建議打開SL票這個問題

。 0