I am using rest API to get invoices whose create date is greater than some date (eg: After 1st September 2015).
GET
https://{{sluser}}:{{slkey}}@api.softlayer.com/rest/v3.1/SoftLayer_Account/getInvoices?objectFilter={"createDate":{"operation":"greaterThanDate","options":[{"name":"date", "value":"10/01/2015"}]}}&resultLimit=1,5
but this seems to be giving first 5 invoices. May I now what is wrong in the objectFilter? Also how can I specify the date format dd-MM-YYYY
or mm-dd-yyyy
or yyyy-mm-dd
?
Try the following REST request:
Where:
date format
ismm-dd-yyyy
.This is other example using “betweenDate”:
References:
Object Filters
More SoftLayer REST API Examples