Can't find existing customers if using a different email address
S
Steven Sproat
I have some code that places an order using the API, so the first step is to find the customer. Via the API, the only way I can search for a customer is by email address, and if this returns nothing then I create a new customer.
If a new email address is used, and it's an existing customer, then I'm unable to create the customer due to an error of "The first name, last name and postcode must be unique."
It'd be good to be able to expand the "/api/Customer/{emailAddress}" method to take in various different parameters - if I could search by email/postcode/first name/surname (or a combo of all) then I could find this customer.