I’m trying to create a private app to connect Freshdesk with Squarespace Commerce. I’m trying fetch order details. When I call the API without any parameter, the call went through just fine. But when I added time parameter (using ISO date) format, I got 401 error.
The call without parameter
https://api.squarespace.com/1.0/commerce/orders
The call with time parameter
https://api.squarespace.com/1.0/commerce/orders?modifiedBefore=2022-07-07T12:00:00Z&modifiedAfter=2020-07-05T12:00:00Z
This makes me think that adding the parameter changed the bearer token format somehow? I ran the same calls via Postman and didn’t get 401 error.
Any thoughts or directions on troubleshooting this issue? Thanks in advance!
This is the API call details:
I converted the date to ISODate format:
The payload:
The error: