I managed to use Squarespace API for orders and export to google sheet. I’d like to do the same with the Squarespace API for transactions but for some reason, I’m getting the “no result” error message.
Hummm the last data it’s able to fetch is from 2018-11-06T21:35:41.227Z despite increasing the number of pages to gather data from. Is this a transaction API thing versus the order API that can go back to 2016?
I believe this API is pretty new, so it certainly could have a limitation on how far back it can pull.
Could you reach out to their team and ask that? I won’t be able to answer it, but I think it would be valuable for the community to know! Happy to help you answer any questions they have about how you are fetching the data.
Would you please be able to share the request you’re currently making when attempting to pull all transactions? My guess here is that if you are using the modifiedBefore and modifiedAfter parameters, it may be preventing you from pulling the dates you’re looking for. The reasoning behind this is that sometimes if a mass import or something similar has occurred, it will update the modification date to whenever that event happened. By leaving out those parameters, you should be able pull all transactions, regardless of modification date, and then sort by createdOn.
With pagination.nextPageUrl being replaced by the URL in that position in the prior response to page through all available pages. That parameter is omitted from the first call.
Our accounting database and service were both established in 2018, so there are no guarantees for accounting data in our system prior to 01-01-2018. Since the accounting database didn’t go live until Fall of 2018, any 2018 transactions prior to that date had to be backfilled. Whenever there is a backfill, the modifiedOn date of the transaction will be listed on the date when the transaction was backfilled, which is why you will see all 2018 transactions starting in mid-2018.
I’ve made a note to our team to add this information to our documentation.
In the meanwhile, you can always export your entire order history through the CMS by navigating to Orders --> Export.