We're constantly trying to improve your support experience, and your feedback is extremely valuable to us.

Please take a moment to tell us about your experience today.
Sign up for future Help Center user research studies.

Getting started

To get started using the JS Buy SDK, you'll need to create a private app, get a storefront access token, and make your products and collections available for your custom storefront. Once products and collections are available, you can retrieve them using their respective IDs.

Generate an access token for the JavaScript Buy SDK

To generate your JavaScript Buy SDK access token, see private authentication.

When creating a private app, make sure to enable Allow this app to access your storefront data using the Storefront API and select what types of data that the app needs to access. The access token is generated when you save the private app, and you include this access token with any calls made from the JS Buy SDK to Shopify.

Make your products and collections visible

You'll need to make products and collections available to your private app to access them from JS Buy SDK.

To make products available:

  1. From Shopify admin navigate to Products.
  2. Click the product's name to open its details.
  3. In Sales channels click Manage.
  4. Make sure to check the box next to the name of your private app.

To make collections available:

  1. From Shopify admin navigate to Products>Collections.
  2. Click the collection's name to open its details.
  3. In Sales channels click Manage.
  4. Make sure to check the box next to the name of your private app.

If you have many products and/or collections, you can use bulk actions to make them available in one step.

Next steps

If you've completed the tasks above, then you're ready to start building with the JS Buy SDK:

View the JS Buy SDK on GitHub

Sign up for a Partner account to get started.

Sign up