如何使用订单ID获取订单信息?

How to use order ID to get order information?

使用 SoftLayer 的 API 在 SoftLayer 中下订单后,我获得了订单 ID。 (您转到 Account -> Sales -> Orders in the SoftLayer control panel 时看到的相同订单 ID)。

我可以使用哪些 API 来使用此订单 ID 获取包括发票或帐单在内的订单信息?我尝试使用 SoftLayer_Billing_OrderSoftLayer_Billing_InvoiceSoftLayer_Billing_Info 等来查看我是否可以使用此订单 ID,其中 none 似乎有效。

使用 SoftLayer API,如果我只有订单 ID,我如何才能获取订单信息、发票信息以及可能的账单信息?

使用 filtersmasks 的休息请求可以帮助您:

https://[username]:[apikey]@api.softlayer.com/rest/v3/SoftLayer_Account/getOrders?objectFilter={   "orders": {     "id": {       "operation": 7907000     }   } }&objectMask=mask[items.billingItem, initialInvoice]

Method: GET

其中:'7907000' 是我的 orderId。

参考文献:

SoftLayer_Account::getOrders