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

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

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مطلوب

    sms or whatsapp

الترويسات

  • Idempotency-Keystring

    أرسل المفتاح نفسه لإعادة المحاولة بأمان: تُعاد الإجابة الأولى لمدة ٢٤ ساعة.

  • shop-api-versionYYYY-MM

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

الجسم

  • tostringمطلوب

    A mobile number in any usual form.

  • templatestring · أو null

    WhatsApp: an approved template without variables (default hello_world).

  • languagestring · أو null

    WhatsApp: that template's language (default en_US).

ما يُرجعه

202 Queued.

الأخطاء

  • 403forbiddenMissing notifications:manage.
  • 404not_foundNo account on this channel.
  • 409The account is turned off or incomplete.
  • 422validation_failedInvalid phone number.