Question1: Why can’t I see the instance detail billing information by calling API QueryInstanceBill?
Answer: When calling QueryInstanceBill API there is a switch called “IsBillingItem”. It is a non-required item and the default value is “false”, that only to return instance level data instead billing item data.
To get detail billing item data you need to set IsBillingItem to “true”. Please see the detail explanation as well as an example:
Question2: Why can’t I get order information by calling QueryOrders API, even when I have tried a combination of different subscription types (PAYG and Subscription) as well as Product codes (oss and ecs)?
Answer: the API will by default return orders created within 1 hour, so it’s not strange the API will not return data if there is no order places within last hour. To fetch orders during a specific period you need to put “CreateTimeStart” and “CreateTimeEnd” parameters.
CreateTimeStart String No The start time of the period when the specified orders were created. Will query latest 1 hour orders if blank.CreateTimeEnd String No The end time of the period when the specified orders were created. Will query latest 1 hour orders if blank.
This api retrieves order created between latest one hour by default.
Question3: When calling API QueryAvailableInstances, why can I still see the “RenewStatus” and “RenewalDurationUnit” items for a “PayAsYouGo” subscription instance?
Answer: The renewal concept is only applicable to “Subscription” type instance and there is no renewal concept for “PayAsYouGo” instance. However to make the interface structure consistent it’s also returned from the API. You can just ignore those “RenewStatus” and “RenewalDurationUnit” information for “PayAsYouGo” instance.