When I make the following API request...
/customers/get/code/0
I expected to get a 404 or similar error, but instead I get back a list of all my customers.
I stumbled onto this during testing, when I inadvertently made a
request for a single customer with an invalid customer code. If
this is expected behavior, then I need to make doubly sure I don't
pass in a customer code of 0.

#1 Posted by Marc Guyer Support staff on 13 Mar, 2013 01:23 PM
Hi Frank -- That is known behavior but not intended. In fact, requests to
customers/getwithout a customercodeoridparam will soon be deprecated. Acustomers/getempty request (or one with a a0or empty value forcodeorid) will return an error. Anything else will be redirected to the newcustomers/search.#2 Posted by Frank Koehl on 13 Mar, 2013 02:54 PM
So
customers/searchis replacingcustomers/get?#3 Posted by Marc Guyer Support staff on 13 Mar, 2013 08:37 PM
Yes, but only when the request does not include a
codeoridparam. In effect, we're keepingcustomers/getonly for single customer requests. Any multiple customer requests will be directed tocustomers/search.#4 Posted by Frank Koehl on 14 Mar, 2013 03:06 PM
Gotcha, makes sense. Thanks for clearing that up.
Dean closed this discussion on 14 Mar, 2013 03:13 PM.