1 If you send a request to the `/store/products` or `/store/products/:id` API routes and receive the following error in the response:
2
3 ```bash
4 {
5 "type": "invalid_data",
6 "message": "Publishable key needs to have a sales channel configured."
7 }
8 ```
9
10 ## Why this Error Occurred
11
12 This error means you passed a valid `x-publishable-api-key` header, but the key does not have a sales channel configured. The sales channel is required to make requests to the `/store/products` and `/store/products/:id` routes, as it's used to retrieve products available in that sales channel.
13
14 ---
15
16 ## How to Fix it
17
18 To resolve this error, you need to add at least one sales channel to your publishable API key. Refer to the [Manage Publishable API Key User Guide](!user-guide!/settings/developer/publishable-api-keys#manage-publishable-api-keys-sales-channels) to learn how to do that.