Jump to content

403 Forbidden error when using Inventory API

Recommended Posts

Does anybody have experience with the API's?  Trying to get any response from the Inventory API and I keep getting 403 Forbidden response.   I made the API key and using JS fetch().    See photo for code (ignore green as those are commented out trying different things.).      "token" variable is defined above this photo with the API key.

Screen Shot 2022-12-06 at 6.41.42 PM.png

Link to comment
  • Replies 1
  • Views 233
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Posted Images

11 hours ago, veganedge said:

Does anybody have experience with the API's?  Trying to get any response from the Inventory API and I keep getting 403 Forbidden response.   I made the API key and using JS fetch().    See photo for code (ignore green as those are commented out trying different things.).      "token" variable is defined above this photo with the API key.

Screen Shot 2022-12-06 at 6.41.42 PM.png

You can get reference from here: https://developers.squarespace.com/commerce-apis/authentication-and-permissions

We have a step to run Authenticating requests and get the API key

Hope it makes sense

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you!

 

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.