bigcommerce-api-php
bigcommerce-api-php copied to clipboard
How to get the store hash key in bigcommerce
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' ));
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/
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')
You can try with this API: https://developer.bigcommerce.com/api-reference/store-management/store-information-api/store-information/getstore