MT#9447 Add external_id query parametere for customers.

(cherry picked from commit aa99236a2b6d6e86a5dad110edc16eeeb16dc32a)
(cherry picked from commit 806820ebb26be263f0ec5cb08b959c902e144f09)
(cherry picked from commit f5d995b713c64268bd102a8a60b514f1a7bc6263)