question

Ahsan avatar image
Ahsan asked ·

How do I add new customer to an order?

I want to add a new customer's detail to the new order created. As the customer is new we don't have its customer ID. We want to associate new customers details to the order we have created. Can we add other the details like firstname, lastname, phone number, email, billing address of the customer to the order? How do we do that without creating a new customer?
OrdersCustomers
1 comment
10 |2000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

We are creating the order through api request. We want to associate the new customer to order through API call only.

0 Likes 0 · ·

1 Answer

zgreathouse avatar image
zgreathouse answered ·
You need the customer ID to add the customer to an order. Without a reference ID there is no way to make this association. You would need to create a new customer and populate the information before closing the order.
Share
10 |2000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Welcome to the
Clover Developer Community