Applying discount codes in the cart (prior to checkout)

As far as I understand the app should be a sales channel. You you are making a private app it’s okay. But if you made a public app you may face with the limitation of the appstore. As the sales channel should not only create checkouts/add discounts there but also publish products at the different platforms.