How to add customer/contact ID to sales order via api.

How to add customer/contact ID to sales order via api.

Hello,

We have a webform that creates a new contact, and then add a sales order with that contact as customer.
The only way I have found to add the contact to the sales order, is by using the "Contact Name".

My concern is that we might get costumers with same names, so I would like to use the ID i get in return when creating a Contact, to link the sales order to that contact, by ID, not name.

what field should I put the Contact-ID in, in the Sales Order XML?