Cart page purchase workflow

What is the correct workflow if there are multiple sellers’ items in the cart? If there are multiple sellers of items in the cart, I find this process complicated and confusing. For example, notifying each seller of an order (such as purchased items and their individual amounts) and creating a purchase history for the current user.

(Google Translate)

Once the user has checked out, you run a back end workflow on a list of sellers.

So take the cart (assuming there is a product and the product has a link to the seller).

Then make this :unique so you get a list of all the sellers.

Pass this list (and the cart) to the API workflow (schedule an API workflow on a list) for each seller in the cart.

Then send them an email etc. You can filter the cart using the individual seller you have passed in.