لم يُكتب وصف هذه العملية بالعربية بعد، فأوصافها بالإنجليزية.
Lookup customer
GET
/ admin/ v1/ stores/ {store_id}/ customers/ lookup- customers:read
The customer with exactly this email or phone: send one. Unlike q on the list, which finds what's similar, this can be trusted to change a customer afterwards.
معاملات المسار
store_idstringمطلوبمعرّف من نوع
store، مثلstore_01k8qs5s…. يصل إلى التطبيق مع التثبيت، في رابط OAuth وفي رد رمز الوصول.
معاملات الاستعلام
emailstringExactly this email, in any case.
phonestringExactly this number, in any format the store's country reads.
الترويسات
shop-api-versionYYYY-MMالإصدار الذي تُكتب به الإجابة. بدونه يُستخدم الإصدار المثبّت لتطبيقك، وإلا الأحدث.
ما يُرجعه
200 The customer.
الأخطاء
- 404
not_foundNo customer has it. - 422
validation_failedNeither, both, or not a phone number.