Select a product from your BigCommerce store
You'll have to provide your store's GraphQL endpoint and the respective authorization token.
This url is typically of the form https://store-HASH.mybigcommerce.com/graphql
, where HASH is the store hash required by the management API.
Alternatively, you can go to your store's dashboard > Advanced Settings > Storefront API playground, and copy the url from there.
- Generate an API key with the "Storefront API Tokens" permission. More information here.
- Get the GraphQL API authorization token. You can read more about it here or send the request from here.
- You'll have to specify a
expires_at
clause; - And also the
allowed_cors_origins
. This needs to be "https://plugins-cdn.datocms.com", since plugins are served from there.
- You'll have to specify a
This plugin was heavily inspired by https://github.com/datocms/plugins/tree/master/shopify-product.