bigcommerce / bigcommerce-api-php

Connect PHP applications with the Bigcommerce Platform
https://developer.bigcommerce.com
MIT License
143 stars 186 forks source link

How to get the store hash key in bigcommerce #227

Open vinaysikarwar opened 6 years ago

vinaysikarwar commented 6 years ago

I am not able to find the store_hash key in bigcommerce panel

Unable to get response

$response = Bigcommerce::configure(array( 'client_id' => 'fsdfsdfsdfsdf', 'auth_token' => 'used my access token', 'store_hash' => 'where to fin this value' ));

karen-white commented 6 years ago

If you generated your API token from the control panel, your store hash will be in the API Path on the Create API Account screen:

https://api.bigcommerce.com/stores/{{Store Hash}}/v3/

bobbyshaw commented 4 years ago

And if you are looking to request OAuth then it is provided by BigCommerce in the original request as "context", e.g. in Laravel

$storeHash = $request->input('context')
VishalRKumar commented 3 years ago

You can try with this API: https://developer.bigcommerce.com/api-reference/store-management/store-information-api/store-information/getstore