Hi, I'm completely new to writing API requests and I'm trying to write the following request:
I want to get all closed deals from Hubspot over the current fiscal year (which runs April to Mar) so I can build a revenue klip. I've written the following API, but think I might have made mistake with the end of year part.
https://api.hubapi.com/deals/v1/deal/closed?start-date={date.firstMOY("apr").startOfYear.format()}&end-date={date.last MOY("mar").endOfYear.format()}
I receive the following error message when trying to create the query.
We couldn't retrieve the data you requested. Check your account permissions and connection and try again.
Any help would be greatly appreciated.