MT#9447 Add external_id query parametere for customers.

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