انتقل إلى المحتوى

لم يُكتب وصف هذه العملية بالعربية بعد، فأوصافها بالإنجليزية.

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 وفي رد رمز الوصول.

معاملات الاستعلام

  • emailstring

    Exactly this email, in any case.

  • phonestring

    Exactly this number, in any format the store's country reads.

الترويسات

  • shop-api-versionYYYY-MM

    الإصدار الذي تُكتب به الإجابة. بدونه يُستخدم الإصدار المثبّت لتطبيقك، وإلا الأحدث.

ما يُرجعه

200 The customer.

الأخطاء

  • 404not_foundNo customer has it.
  • 422validation_failedNeither, both, or not a phone number.