question

manikandan-1 avatar image
manikandan-1 asked

add new customer to order through SDK

com.clover.common.http.RemoteAppException: Cannot apply update: Referenced customer does not exist

List<Customer> customersList = new ArrayList<>();
 Customer newCustomer = new Customer();
newCustomer.setId(order.getId());
newCustomer.setFirstName("Test");
newCustomer.setLastName("USER 001");
customersList.add(0, newCustomer);
currentOrder.setCustomers(customersList);
orderConnector.updateOrder(currentOrder);


i am getting this error

Clover Android SDKCustomersandroid 10
10 |2000

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

0 Answers

·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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