لم يُكتب وصف هذه العملية بالعربية بعد، فأوصافها بالإنجليزية.
Connect inbox whatsapp
POST
/ admin/ v1/ stores/ {store_id}/ inbox/ channels/ whatsapp- يدعم Idempotency-Key
Connects the store's own WhatsApp number with what Meta's Embedded Signup handed the browser. Every WhatsApp message of the store goes out on it from then on. , by a person.
معاملات المسار
store_idstringمطلوبمعرّف من نوع
store، مثلstore_01k8qs5s…. يصل إلى التطبيق مع التثبيت، في رابط OAuth وفي رد رمز الوصول.
الترويسات
Idempotency-Keystringأرسل المفتاح نفسه لإعادة المحاولة بأمان: تُعاد الإجابة الأولى لمدة ٢٤ ساعة.
shop-api-versionYYYY-MMالإصدار الذي تُكتب به الإجابة. بدونه يُستخدم الإصدار المثبّت لتطبيقك، وإلا الأحدث.
الجسم
codestringمطلوبaccepts_commerce_policybooleanمطلوبThe store sells nothing WhatsApp's Commerce Policy forbids.
waba_idstring · أو nullphone_number_idstring · أو null
ما يُرجعه
201 Connected.
الأخطاء
- 409Not set up here (
not_set_up), not shared with snizu (not_granted), connected to another store (connected_elsewhere), or Meta refused (meta_refused). - 422
validation_failedThe Commerce Policy wasn't confirmed.