Skip to main content

1. Get Storefront Token

1

Open Shopify Admin

Settings → Apps and sales channels → Develop apps
2

Create App

Create an app → Name it “OpenBridge”
3

Configure Storefront API

Configuration → Storefront API integration → ConfigureEnable scopes:
  • unauthenticated_read_product_listings
  • unauthenticated_read_collection_listings
  • unauthenticated_read_customers
  • unauthenticated_write_customers
  • unauthenticated_read_customer_tags
4

Get Token

API credentials → Install app → Copy Storefront API access token
Use the Storefront token, not Admin. Storefront tokens are safe for client-side use.
By default the token works from any origin. To lock it down to your own domains, see Allowed Origins.

2. Add Script


3. Initialize

init() returns Promise<boolean> — resolves to true once the Storefront API has been reached successfully.

Configuration options


4. Query Data


5. Customer Authentication


Next

Products

Query products

Collections

Query collections

Cart

Manage cart

Customer

Authentication

Allowed Origins

Restrict your token