I am trying to pull invoices between a range of dates using the API, but when I add the filter parameter to the url I receive curl error #3 indicating the the url is a bad format or is missing. Should I be able to use an API key get filtered results?
Here is an example of the URL I am trying to use: "https://rest.method.me/api/v1/tables/Invoice?filter=TimeCreated ge '2023-03-01T00:00-04:00' and TimeCreated lt '2023-03-20T00:00-04:00'"
I am able to pull invoices if I leave the filter parameter blank, but if I add anything to it I get the curl error.
Thanks for reaching out to Method!
I was able to use the same query and able to fetch the desired results. One thing to make sure to add APIKey in front of your key. Below is a screenshot of what it looks like:
Please try that and let me know if you are still running into the issue. You can email me the error at firstname.lastname@example.org.