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

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

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.

الأخطاء

  • 404not_foundNo such conversation or template.
  • 409Not a WhatsApp conversation, or the store's own number isn't connected (own_number_needed).
  • 422validation_failedThe template's values don't fit.