docs: update docs across projects following publishable API key change in store routes (#9098)
* docs: update docs across projects following publishable API key change in store routes * rename env variable * move subscribe route out of store
This commit is contained in:
1 parent
ef8dc4087e
commit
58f06be44d
66 files changed
+577
-298
No files matched your search
@@ -13,3 +13,15 @@ You're free to choose how to build your storefront. You can start with our Next.
|
||||
To learn how to build a storefront from scratch, check out the [Storefront Development guides](!resources!/storefront-development) in the Learning Resources documentation.
|
||||
|
||||
</Note>
|
||||
|
||||
---
|
||||
|
||||
## Passing a Publishable API Key in Storefront Requests
|
||||
|
||||
When sending a request to an API route starting with `/store`, you must include a publishable API key in the header of your request.
|
||||
|
||||
A publishable API key sets the scope of your request to one or more sales channels.
|
||||
|
||||
Then, when you retrieve products, only products of those sales channels are retrieved. This also ensures you retrieve correct inventory data, and associate created orders with the scoped sales channel.
|
||||
|
||||
Learn more about passing the publishable API key in [this storefront development guide](!resources!/storefront-development/publishable-api-keys).
|
||||
Reference in new issue
Block a user