Hello,
We have a requirement where, when a draft order is created via the API, the corresponding company should be automatically mapped on the draft order page.
I have already created a customer and a company, and assigned a location to the customer. However, when the draft order is created through the API, the company is not mapped automatically (screenshot1). The company gets mapped only if I manually remove and re-add the same customer to the order (screenshot2).
Please refer to the screenshots below for reference.
Is there a way to automatically map the company to the draft order when it is created via the API?

