Medusa v1.3.5: Introducing the Sales Channel API
Tags: news, javascript, webdev, showdev
Published: 2022-08-04 12:32:03

This week we released a new version of [Medusa](https://github.com/medusajs/medusa)!

Version 1.3.5 introduces the long-awaited Sales Channel API and numerous bug fixes. The release of the Sales Channel API is also accompanied by a release to the Medusa admin.

Keep reading below to learn more about the Sales Channel API and what upcoming features you can expect from Medusa.

## Sales Channel API

Sales Channels allow merchants to sell across multiple channels while fully controlling the products and orders associated with each channel. The channels can be used to separate between the different platforms your business operates in, such as websites, apps, physical stores, or marketplaces.


![](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/yc7sp37on1776bqzeuaf.gif)

### Products in Sales Channels

Merchants can create as many Sales Channels as they want. When creating a Sales Channel, merchants can select the products that are available in that sales channel. They can also specify the Sales Channel availability of Products when editing and creating them.

![](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/fkxz6tn8gtj6h4jneuo0.png)

### Orders in Sales Channels

When a customer creates an Order from a specific Sales Channel, the order will be associated with that Sales Channel. In Medusa Admin, Orders can be filtered by specific Sales Channels. This allows merchants to have an aggregated overview of all orders as well as view orders for specific Sales Channels.

![](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ta6ebm0pejiaxi8pepjr.png)

### How to Enable Sales Channels

Sales Channels are guarded by Feature Flags which we introduced in [v1.3.3](https://medusajs.com/blog/medusa-v-1-3-3#feature-flags). To enable Sales Channels, first, update to the latest Medusa version on your Medusa server:

```bash
npm install @medusajs/medusa@latest medusa-interfaces @medusajs/medusa-cli
```

Then, you can enable Sales Channels by adding the following environment variable to your server:

```bash
MEDUSA_FF_SALES_CHANNELS=true
```

Finally, run the migrations to update your database schema with the latest changes:

```bash
medusa migrations run
```

You’ll then have Sales Channels on your Medusa server!

To ensure that you can also use Sales Channels on the admin, make sure to update your Medusa Admin as well. You can do that by pulling new changes from the [Medusa Admin repository](https://github.com/medusajs/admin) into your Medusa Admin.

## Upcoming Features

### Product Import

After implementing the export feature in the 1.3.3 release, we’ll work on the import feature. This will allow users to import products stored in CSV files into their Medusa server. With both Import and Export functionalities available, migrating data from one Medusa server to another will be much easier.

### Tax-Inclusive Pricing

Some countries have the same currency but different tax rates. Currently, merchants operating in those countries have to manually calculate the tax-exclusive price of products to ensure that the price remains the same across those countries when their tax rates are applied. 

So, this new feature would allow merchants to specify tax-inclusive pricing. This saves merchants from doing the manual work as the Medusa server would do the heavy lifting of calculating the taxes of each country and pushing the necessary details to accounting and reporting tools.

## Did you miss out on?

- [Announcement: Medusa's $8M USD Seed Round](https://medusajs.com/blog/announcement-8m-usd-seed-round-to-build-the-leading-ecom-platform-for-devs)
- [Case Study: How Palmes built a Global on-brand Store in <6 Weeks with Medusa](https://medusajs.com/blog/palmes-use-case)
- [Medusa vs. Magento: Comparing two open source ecommerce frameworks](https://medusajs.com/blog/medusa-vs-magento-comparing-two-open-source-ecommerce-frameworks)
- [Medusa’s Next.js Ecommerce Storefront Comes Packed with Ready Integrations to PayPal, MeiliSearch, Stripe, and more!](https://medusajs.com/blog/nextjs-ecommerce-storefront-comes-packed-with-ready-integrations-to-paypal-meilisearch-stripe-and-more)