لم يُكتب وصف هذه العملية بالعربية بعد، فأوصافها بالإنجليزية.
Test notification channel
POST
/ admin/ v1/ stores/ {store_id}/ notifications/ channels/ {channel}/ test- notifications:manage
- يدعم Idempotency-Key
Send a test message through the store's account: a short text by SMS, or an approved template without variables by WhatsApp (Meta's hello_world unless you name one). Follow it in the delivery log.
معاملات المسار
store_idstringمطلوبمعرّف من نوع
store، مثلstore_01k8qs5s…. يصل إلى التطبيق مع التثبيت، في رابط OAuth وفي رد رمز الوصول.channelstringمطلوبsmsorwhatsapp
الترويسات
Idempotency-Keystringأرسل المفتاح نفسه لإعادة المحاولة بأمان: تُعاد الإجابة الأولى لمدة ٢٤ ساعة.
shop-api-versionYYYY-MMالإصدار الذي تُكتب به الإجابة. بدونه يُستخدم الإصدار المثبّت لتطبيقك، وإلا الأحدث.
الجسم
tostringمطلوبA mobile number in any usual form.
templatestring · أو nullWhatsApp: an approved template without variables (default
hello_world).languagestring · أو nullWhatsApp: that template's language (default
en_US).
ما يُرجعه
202 Queued.
الأخطاء
- 403
forbiddenMissingnotifications:manage. - 404
not_foundNo account on this channel. - 409The account is turned off or incomplete.
- 422
validation_failedInvalid phone number.