Valid BigCommerce Autoresponder Authorization Error "Getting Authorization" Getting webhooks?

I went through a two-step process to get a long-lived access token. I can verify that the access token is valid by successfully making several API calls using cURL ...

curl -XGET 
  -H 'X-Auth-Client: xxxxxxxxxxxxxxxxxxx'
  -H 'X-Auth-Token: xxxxxxxxxxxxxxxxxxx'   
https://api.bigcommerce.com/stores/xxxxx/v2/products

... returns store products as expected. Preparatory webhooks return results as expected. However, it asks for a list of web hosts :

curl -XGET 
  -H 'X-Auth-Client: xxxxxxxxxxxxxxxxxxx'
  -H 'X-Auth-Token: xxxxxxxxxxxxxxxxxxx'   
https://api.bigcommerce.com/stores/xxxxx/v2/hooks

Valid Values {"error":"Authorization Error."}

Sign for the store owner. The store owner has all the visible permissions allowed in the admin interface, and, as indicated above, has the ability to provide new websites.

Are there any permissions to be included in the list of sites? Is the BigCommerce API just a bug?

+1
1

Authorization Error. . , accept curl:

curl -XGET 
  -H 'X-Auth-Client: xxxxxxxxxxxxxxxxxxx'
  -H 'X-Auth-Token: xxxxxxxxxxxxxxxxxxx'   
  -H 'Accept: application/json'
https://api.bigcommerce.com/stores/xxxxx/v2/hooks

.

+2

Source: https://habr.com/ru/post/1546216/


All Articles