Using the Storefront API, access the Recharge API using browser-safe tokens that can be called directly from the storefront without the use of middleware. Recharge will automatically scope permission to the specific customer, filter out information customers should not see, and inhibit customers from operations for admins. With storefront access, the Recharge JS SDK was created to offer full coverage of common needs and uses the storefront API to improve the developer experience.
Visit the Recharge Storefront Client Developer Docs to view guides for using the Storefront API and JS SDK.
Benefits of using the JS SDK include:
- Reduce the complexity and cost of the build.
- No need to learn a new API and is fully typed, with auto-complete and debugging capabilities.
- Supports development in custom applications such as customer portal, custom bundles, and product pages.
- Pre-made functions such as authentication, data fetching, and streamlining store operations.
- Enables JS only integrations with the Shopify storefront such as Shopify Hydrogen apps, React apps, and other up and coming technology frameworks.
To create a Storefront API token:
- Select Apps from the merchant portal.
- Click API tokens, then select Create a Storefront API token.
- Enter Token nickname and Contact email, then click Save to generate token.
Updated 3 months ago