Skip to main content

OrderSellerStrategy

This strategy defines how an Order can be split into multiple sub-orders for the use-case of a multivendor application.

Info

This is configured via the orderOptions.orderSellerStrategy property of your VendureConfig.

Signature

setOrderLineSellerChannel

method(ctx: RequestContext, orderLine: OrderLine) => Channel | undefined | Promise<Channel | undefined>

This method is called whenever a new OrderLine is added to the Order via the addItemToOrder mutation or the underlying addItemToOrder() method of the OrderService.

It should return the Channel to which this OrderLine will be assigned, which will be used to set the OrderLine sellerChannel property.

splitOrder

method(ctx: RequestContext, order: Order) => SplitOrderContents[] | Promise<SplitOrderContents[]>

Upon checkout (by default, when the Order moves from "active" to "inactive" according to the OrderPlacedStrategy), this method will be called in order to split the Order into multiple Orders, one for each Seller.

afterSellerOrdersCreated

method(ctx: RequestContext, aggregateOrder: Order, sellerOrders: Order[]) => void | Promise<void>

This method is called after splitting the orders, including calculating the totals for each of the seller Orders. This method can be used to set platform fee surcharges on the seller Orders as well as perform any payment processing needed.

The DefaultOrderSellerStrategy treats the Order as single-vendor.

Signature

The contents of the aggregate Order which make up a single seller Order.

Signature

channelId

propertyID

state

propertyOrderState

lines

propertyOrderLine[]

shippingLines

propertyShippingLine[]
Was this chapter helpful?
Report Issue
Edited Feb 25, 2026ยทEdit this page