How does Shopify determine the market when an order is created via orderCreate?

Not seeing much info in the docs on how Shopify determines the business entity / market from an orderCreate.

I am working with a client on consolidating multiple single-entity stores into one multi-entity store. I want to know how orders created via orderCreate get their business entity assigned.

What is the context for this?

I’m pretty sure that the business entity is derived by the shopping context (buyer context / current market at the time of checkout).

Dont think it’s really documented though.

From probing the API, only the shipping address appears to affect the order’s business entity (created via orderCreate API, not through shopping context). Would be great if this could be overridden, as the shipping address does not always correspond to the market/business entity.