Filtering by Date in Sale API not working

santshkm89santshkm89 Posts: 1Member
edited November 14 in Development

1 comment

  • Adrian SamuelAdrian Samuel Posts: 205Moderator, Lightspeed Staff moderator
    hey @santshkm89 this timeStamp isn't in a valid format, it needs to follow the ISO 8601 standard. Plus, the completeTime hour and second value isn't provided so won't return any results. So try something like this:{{AccountID}}/Sale.json?completeTime=><,2014-09-18T00:00:00,2018-09-19T00:00:00

    This will search between all sales completed between September 18th and September the 19th. 

    As we use UTC time, feel free to add an offset. You can read more about this in our documentation here:

Sign In or Register to comment.