我使用API列出typeCode = RECURRING的发票。
我注意到我在顶部获得了最早的发票(最旧的createDate)的输出。我可以按相反的顺序输出输出,即顶部有最新createDate的发票吗?
感谢。
答案 0 :(得分:0)
试试这个:
GET https://api.softlayer.com/rest/v3.1/SoftLayer_Account/getInvoices?objectFilter={"invoices": {"typeCode": {"operation": "RECURRING"}, "createDate": {"operation": "orderBy", "options": [{"name": "sort", "value": ["ASC"]}, {"name": "lower"}, {"name": "sortOrder", "value":[1]}]}}}
如果您需要以相反顺序输出,请按“DESC”更改“ASC”
此致