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

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

Save notification channel

PUT/admin/v1/stores/{store_id}/notifications/channels/{channel}
  • notifications:manage

Connect the store's SMS provider or WhatsApp account, or change it. Credentials are sealed at rest and never returned; send only the ones you change. Send If-Match: "v{version}" to avoid overwriting someone else's changes.

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

  • store_idstringمطلوب

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

  • channelstringمطلوب

    sms or whatsapp

الترويسات

  • If-Matchstring · أو null

    ETag from the last read, e.g. "v3"

  • shop-api-versionYYYY-MM

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

الجسم

  • providerenumمطلوب

    A messaging provider a store can connect.

    • unifonic
    • taqnyat
    • msegat
    • meta
  • senderstringمطلوب
  • credentialsobject

    New credential values by key. Absent or blank keys keep their stored values.

  • activeboolean

ما يُرجعه

200 The account.

الأخطاء

  • 403forbiddenMissing notifications:manage.
  • 404not_foundNo such channel.
  • 412precondition_failedThe account changed since it was read.
  • 422validation_failedValidation failed.