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

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

Reply in conversation

POST/admin/v1/stores/{store_id}/conversations/{conversation_id}/messages
  • messages:write
  • يدعم Idempotency-Key

Writes in the conversation: a reply while the channel allows (WhatsApp: 24 hours after the customer's last message; Instagram and Messenger: 24 hours, then 7 under the human agent tag when snizu's app has it), an answer to one of the customer's comments, or a note for the team.

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

  • store_idstringمطلوب

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

  • conversation_idstringمطلوب

    معرّف من نوع conv، مثل conv_01k8qs5s….

الترويسات

  • Idempotency-Keystring

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

  • shop-api-versionYYYY-MM

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

الجسم

  • bodystringمطلوب

    1 to 4096 characters (a note: 2000; a public answer under a comment: 2000).

  • noteboolean

    true: a note for the team, never sent.

  • comment_idstring · أو null

    Answers this comment of the customer's…

  • reply_modeenum · أو null

    …publicly under it, or with the one private message Meta allows.

    • public
    • private

ما يُرجعه

201 Queued, or kept (a note).

الأخطاء

  • 404not_foundNo such conversation or comment.
  • 409The channel's window is closed (window_closed, private_reply_closed, private_reply_sent), or its account isn't connected (whatsapp_unavailable, channel_unavailable).
  • 422validation_failedEmpty or too long.
  • 429rate_limitedThe store's team wrote too much this minute.