hesedelhesedel MemberComments: Received thanks: 0 Member since: April 1

Hi,

I'm trying to simply get the list of categories with the following JS script but all I get is a 404 error.

The docs also say that "The Storefront API does only require the client_id, which you can find in the Administration -> Sales Channel. "

But I can't find a client_id in the Administration.

fetch('https://escada-7427.pg.shopware.com/storefront-api/category', {
  headers: new Headers({
    'x-sw-access-key': 'SWSCY2NIOUYWUEVHEES4BTVFQQ'
  })
}).then(result => result.json().then(result => {
  console.log(result);
}))

 

Sign In or Register to comment.