لم يُكتب وصف هذه العملية بالعربية بعد، فأوصافها بالإنجليزية.
Send conversation template
POST
/ admin/ v1/ stores/ {store_id}/ conversations/ {conversation_id}/ template- messages:write
- يدعم Idempotency-Key
Sends one of the store's approved WhatsApp templates in the conversation, to write again after the 24 hours. Utility templates only: marketing goes out as a campaign. Needs the store's own number.
معاملات المسار
store_idstringمطلوبمعرّف من نوع
store، مثلstore_01k8qs5s…. يصل إلى التطبيق مع التثبيت، في رابط OAuth وفي رد رمز الوصول.conversation_idstringمطلوبمعرّف من نوع
conv، مثلconv_01k8qs5s….
الترويسات
Idempotency-Keystringأرسل المفتاح نفسه لإعادة المحاولة بأمان: تُعاد الإجابة الأولى لمدة ٢٤ ساعة.
shop-api-versionYYYY-MMالإصدار الذي تُكتب به الإجابة. بدونه يُستخدم الإصدار المثبّت لتطبيقك، وإلا الأحدث.
الجسم
namestringمطلوبlanguagestringمطلوبparametersarray of strings
ما يُرجعه
201 Queued.
الأخطاء
- 404
not_foundNo such conversation or template. - 409Not a WhatsApp conversation, or the store's own number isn't connected (
own_number_needed). - 422
validation_failedThe template's values don't fit.