Jump to content

403 Forbidden error when using Inventory API

Recommended Posts

Posted

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

  • Replies 1
  • Views 388
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Posted Images

Posted
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 (Pinch/Zoom images, videos - PDFs Lightbox - ...) </>  🗓️ Delivery Date Picker (Date picker form field)
Gallery block 7.1 workaround </> 🤖 Ask me anything

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.