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

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

Send test notification

POST/admin/v1/stores/{store_id}/notifications/messages/{message}/test
  • notifications:manage
  • يدعم Idempotency-Key

Send a message with its sample data to an address of your choice, through the real channel. It shows in the delivery log as a test.

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

  • store_idstringمطلوب

    معرّف من نوع store، مثل store_01k8qs5s…. يصل إلى التطبيق مع التثبيت، في رابط OAuth وفي رد رمز الوصول.

  • messagestringمطلوب

    Message key

الترويسات

  • Idempotency-Keystring

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

  • shop-api-versionYYYY-MM

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

الجسم

  • channelenumمطلوب

    How a message reaches its recipient.

    • email
    • sms
    • whatsapp
  • localeenumمطلوب

    The languages notification templates come in. Recipients in other languages get English.

    • en
    • ar
  • tostringمطلوب

    An email address, or a phone number for SMS and WhatsApp.

  • draftobject · أو null

    Unsaved edits to send; the saved template when absent.

ما يُرجعه

202 Queued.

الأخطاء

  • 403forbiddenMissing notifications:manage.
  • 404not_foundNo such message, or not on this channel.
  • 409The channel is not connected, or no WhatsApp template is chosen.
  • 422validation_failedInvalid address, or a draft that does not render.