question

ahsan avatar image
ahsan asked zgreathouse Deactivated answered

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

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

ahsan avatar image ahsan commented ·

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 Deactivated 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.
10 |2000

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