Skip to content

Marketing settings ​

Marketing module settings

INFO

Каждый ответ приходит в общем конверте — code, message, messages, status_code, time — а полезная нагрузка лежит в data. Таблицы ниже описывают содержимое data.

GET /marketing-settings/get ​

Get the tenant's marketing settings (created with defaults on first access).

Тело запроса

Тело запроса не требуется.

Ответ

ПолеТипОписание
_idstring
expected_product_template_idstring
send_by_smsboolean
send_by_botboolean
integration_idstring
templateobject
template._idstring
template.contentstring
integrationobject
integration._idstring
integration.namestring
json
{
  "code": 0,
  "message": "Success",
  "status_code": 200,
  "data": {
    "_id": "string",
    "expected_product_template_id": "string",
    "send_by_sms": false,
    "send_by_bot": false,
    "integration_id": "string",
    "template": {
      "_id": "string",
      "content": "string"
    },
    "integration": {
      "_id": "string",
      "name": "string"
    }
  },
  "time": "2025-05-01T12:00:00Z"
}

PUT /marketing-settings/set ​

Update the tenant's marketing settings (partial patch).

Тело запроса

ПолеТипОбязательноОписание
expected_product_template_idstringНетObjectId of the SMS template used for the expected-product event notification
send_by_smsbooleanНетWhether to send expected-product notifications via SMS
send_by_botbooleanНетWhether to send expected-product notifications via Telegram bot
integration_idstringНетObjectId of the SMS integration to use for outgoing messages
json
{
  "expected_product_template_id": "string",
  "send_by_sms": false,
  "send_by_bot": false,
  "integration_id": "string"
}

Ответ

Структура ответа совпадает с GET /marketing-settings/get.


Эта страница сгенерирована из спецификации OpenAPI.

Bito 2.0 Integration API