لم يُكتب وصف هذه العملية بالعربية بعد، فأوصافها بالإنجليزية.
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.
- sms
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 · أو nullUnsaved edits to send; the saved template when absent.
ما يُرجعه
202 Queued.
الأخطاء
- 403
forbiddenMissingnotifications:manage. - 404
not_foundNo such message, or not on this channel. - 409The channel is not connected, or no WhatsApp template is chosen.
- 422
validation_failedInvalid address, or a draft that does not render.