Skip to content

Message settings ​

Outbound messaging settings

INFO

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

POST /message-settings/get ​

Get the message settings for a specific (bot_type, message_type) combination. Auto-creates the document with defaults if it does not exist yet. Because the resource is keyed by a composite — not an ObjectId — the request requires a body with both keys.

Тело запроса

ПолеТипОбязательноОписание
bot_typestringДаBot channel type. Допустимые значения: CUSTOMER_BOT, REPORT_BOT, SMS
message_typestringДаBusiness event category the settings apply to. Допустимые значения: TRADE, PURCHASE, TRANSACTION, TRANSFER, PRODUCTION, TASK
json
{
  "bot_type": "CUSTOMER_BOT",
  "message_type": "TRADE"
}

Ответ

ПолеТипОписание
_idstringDocument ObjectId
account_idstringTenant identifier
bot_typestringBot channel type. Допустимые значения: CUSTOMER_BOT, REPORT_BOT, SMS
message_typestringBusiness event category the settings apply to. Допустимые значения: TRADE, PURCHASE, TRANSACTION, TRANSFER, PRODUCTION, TASK
is_task_createdboolean
is_task_closedboolean
is_refundobject
is_refund.showbooleanWhether this field is shown in the message
is_refund.positionintegerDisplay position (0-based)
sold_atobject
sold_at.showbooleanWhether this field is shown in the message
sold_at.positionintegerDisplay position (0-based)
stateobject
state.showbooleanWhether this field is shown in the message
state.positionintegerDisplay position (0-based)
organizationobject
organization.showbooleanWhether this field is shown in the message
organization.positionintegerDisplay position (0-based)
sellerobject
seller.showbooleanWhether this field is shown in the message
seller.positionintegerDisplay position (0-based)
customerobject
customer.showbooleanWhether this field is shown in the message
customer.positionintegerDisplay position (0-based)
noteobject
note.showbooleanWhether this field is shown in the message
note.positionintegerDisplay position (0-based)
total_amountobject
total_amount.showbooleanWhether this field is shown in the message
total_amount.positionintegerDisplay position (0-based)
itemsobject
items.showbooleanWhether this field is shown in the message
items.positionintegerDisplay position (0-based)
discountobject
discount.showbooleanWhether this field is shown in the message
discount.positionintegerDisplay position (0-based)
included_taxobject
included_tax.showbooleanWhether this field is shown in the message
included_tax.positionintegerDisplay position (0-based)
added_taxobject
added_tax.showbooleanWhether this field is shown in the message
added_tax.positionintegerDisplay position (0-based)
totalobject
total.showbooleanWhether this field is shown in the message
total.positionintegerDisplay position (0-based)
paymentsobject
payments.showbooleanWhether this field is shown in the message
payments.positionintegerDisplay position (0-based)
by_balanceobject
by_balance.showbooleanWhether this field is shown in the message
by_balance.positionintegerDisplay position (0-based)
is_installment_planobject
is_installment_plan.showbooleanWhether this field is shown in the message
is_installment_plan.positionintegerDisplay position (0-based)
debtobject
debt.showbooleanWhether this field is shown in the message
debt.positionintegerDisplay position (0-based)
applied_cashbacksobject
applied_cashbacks.showbooleanWhether this field is shown in the message
applied_cashbacks.positionintegerDisplay position (0-based)
initial_paymentobject
initial_payment.showbooleanWhether this field is shown in the message
initial_payment.positionintegerDisplay position (0-based)
purchaseobject
purchase.showbooleanWhether this field is shown in the message
purchase.positionintegerDisplay position (0-based)
balanceobject
balance.showbooleanWhether this field is shown in the message
balance.positionintegerDisplay position (0-based)
earned_cashbackobject
earned_cashback.showbooleanWhether this field is shown in the message
earned_cashback.positionintegerDisplay position (0-based)
marksobject
marks.showbooleanWhether this field is shown in the message
marks.positionintegerDisplay position (0-based)
dateobject
date.showbooleanWhether this field is shown in the message
date.positionintegerDisplay position (0-based)
responsibleobject
responsible.showbooleanWhether this field is shown in the message
responsible.positionintegerDisplay position (0-based)
supplierobject
supplier.showbooleanWhether this field is shown in the message
supplier.positionintegerDisplay position (0-based)
purchase_created_atobject
purchase_created_at.showbooleanWhether this field is shown in the message
purchase_created_at.positionintegerDisplay position (0-based)
ordersobject
orders.showbooleanWhether this field is shown in the message
orders.positionintegerDisplay position (0-based)
transactionobject
transaction.showbooleanWhether this field is shown in the message
transaction.positionintegerDisplay position (0-based)
transaction_typeobject
transaction_type.showbooleanWhether this field is shown in the message
transaction_type.positionintegerDisplay position (0-based)
cashboxobject
cashbox.showbooleanWhether this field is shown in the message
cashbox.positionintegerDisplay position (0-based)
cashierobject
cashier.showbooleanWhether this field is shown in the message
cashier.positionintegerDisplay position (0-based)
invoiceobject
invoice.showbooleanWhether this field is shown in the message
invoice.positionintegerDisplay position (0-based)
tradeobject
trade.showbooleanWhether this field is shown in the message
trade.positionintegerDisplay position (0-based)
employeeobject
employee.showbooleanWhether this field is shown in the message
employee.positionintegerDisplay position (0-based)
personobject
person.showbooleanWhether this field is shown in the message
person.positionintegerDisplay position (0-based)
amountobject
amount.showbooleanWhether this field is shown in the message
amount.positionintegerDisplay position (0-based)
payment_methodobject
payment_method.showbooleanWhether this field is shown in the message
payment_method.positionintegerDisplay position (0-based)
payment_typeobject
payment_type.showbooleanWhether this field is shown in the message
payment_type.positionintegerDisplay position (0-based)
production_numberobject
production_number.showbooleanWhether this field is shown in the message
production_number.positionintegerDisplay position (0-based)
used_warehouseobject
used_warehouse.showbooleanWhether this field is shown in the message
used_warehouse.positionintegerDisplay position (0-based)
produced_warehouseobject
produced_warehouse.showbooleanWhether this field is shown in the message
produced_warehouse.positionintegerDisplay position (0-based)
used_dateobject
used_date.showbooleanWhether this field is shown in the message
used_date.positionintegerDisplay position (0-based)
produced_dateobject
produced_date.showbooleanWhether this field is shown in the message
produced_date.positionintegerDisplay position (0-based)
currencyobject
currency.showbooleanWhether this field is shown in the message
currency.positionintegerDisplay position (0-based)
route_sheetobject
route_sheet.showbooleanWhether this field is shown in the message
route_sheet.positionintegerDisplay position (0-based)
production_created_byobject
production_created_by.showbooleanWhether this field is shown in the message
production_created_by.positionintegerDisplay position (0-based)
production_codeobject
production_code.showbooleanWhether this field is shown in the message
production_code.positionintegerDisplay position (0-based)
total_producedobject
total_produced.showbooleanWhether this field is shown in the message
total_produced.positionintegerDisplay position (0-based)
total_usedobject
total_used.showbooleanWhether this field is shown in the message
total_used.positionintegerDisplay position (0-based)
total_costobject
total_cost.showbooleanWhether this field is shown in the message
total_cost.positionintegerDisplay position (0-based)
total_expenseobject
total_expense.showbooleanWhether this field is shown in the message
total_expense.positionintegerDisplay position (0-based)
linkobject
link.showbooleanWhether this field is shown in the message
link.positionintegerDisplay position (0-based)
state_changesobject
state_changes.showbooleanWhether this field is shown in the message
state_changes.positionintegerDisplay position (0-based)
state_changeobject
state_change.showbooleanWhether this field is shown in the message
state_change.positionintegerDisplay position (0-based)
transferobject
transfer.showbooleanWhether this field is shown in the message
transfer.positionintegerDisplay position (0-based)
sender_organizationobject
sender_organization.showbooleanWhether this field is shown in the message
sender_organization.positionintegerDisplay position (0-based)
receiver_organizationobject
receiver_organization.showbooleanWhether this field is shown in the message
receiver_organization.positionintegerDisplay position (0-based)
sender_warehouseobject
sender_warehouse.showbooleanWhether this field is shown in the message
sender_warehouse.positionintegerDisplay position (0-based)
sender_employeeobject
sender_employee.showbooleanWhether this field is shown in the message
sender_employee.positionintegerDisplay position (0-based)
reasonobject
reason.showbooleanWhether this field is shown in the message
reason.positionintegerDisplay position (0-based)
productsobject
products.showbooleanWhether this field is shown in the message
products.positionintegerDisplay position (0-based)
customer_balanceobject
customer_balance.showbooleanWhether this field is shown in the message
customer_balance.positionintegerDisplay position (0-based)
transfer_created_atobject
transfer_created_at.showbooleanWhether this field is shown in the message
transfer_created_at.positionintegerDisplay position (0-based)
production_created_atobject
production_created_at.showbooleanWhether this field is shown in the message
production_created_at.positionintegerDisplay position (0-based)
changeobject
change.showbooleanWhether this field is shown in the message
change.positionintegerDisplay position (0-based)
sign_amountobject
sign_amount.showbooleanWhether this field is shown in the message
sign_amount.positionintegerDisplay position (0-based)
numberobject
number.showbooleanWhether this field is shown in the message
number.positionintegerDisplay position (0-based)
transaction_created_byobject
transaction_created_by.showbooleanWhether this field is shown in the message
transaction_created_by.positionintegerDisplay position (0-based)
device_nameobject
device_name.showbooleanWhether this field is shown in the message
device_name.positionintegerDisplay position (0-based)
total_discountobject
total_discount.showbooleanWhether this field is shown in the message
total_discount.positionintegerDisplay position (0-based)
task_typeobject
task_type.showbooleanWhether this field is shown in the message
task_type.positionintegerDisplay position (0-based)
task_descriptionobject
task_description.showbooleanWhether this field is shown in the message
task_description.positionintegerDisplay position (0-based)
resultobject
result.showbooleanWhether this field is shown in the message
result.positionintegerDisplay position (0-based)
task_deadlineobject
task_deadline.showbooleanWhether this field is shown in the message
task_deadline.positionintegerDisplay position (0-based)
task_created_atobject
task_created_at.showbooleanWhether this field is shown in the message
task_created_at.positionintegerDisplay position (0-based)
phone_numberobject
phone_number.showbooleanWhether this field is shown in the message
phone_number.positionintegerDisplay position (0-based)
created_atstring (date-time)
updated_atstring (date-time)
json
{
  "code": 0,
  "message": "Success",
  "status_code": 200,
  "data": {
    "_id": "string",
    "account_id": "string",
    "bot_type": "CUSTOMER_BOT",
    "message_type": "TRADE",
    "is_task_created": false,
    "is_task_closed": false,
    "is_refund": {
      "show": false,
      "position": 0
    },
    "sold_at": {
      "show": false,
      "position": 0
    },
    "state": {
      "show": false,
      "position": 0
    },
    "organization": {
      "show": false,
      "position": 0
    },
    "seller": {
      "show": false,
      "position": 0
    },
    "customer": {
      "show": false,
      "position": 0
    },
    "note": {
      "show": false,
      "position": 0
    },
    "total_amount": {
      "show": false,
      "position": 0
    },
    "items": {
      "show": false,
      "position": 0
    },
    "discount": {
      "show": false,
      "position": 0
    },
    "included_tax": {
      "show": false,
      "position": 0
    },
    "added_tax": {
      "show": false,
      "position": 0
    },
    "total": {
      "show": false,
      "position": 0
    },
    "payments": {
      "show": false,
      "position": 0
    },
    "by_balance": {
      "show": false,
      "position": 0
    },
    "is_installment_plan": {
      "show": false,
      "position": 0
    },
    "debt": {
      "show": false,
      "position": 0
    },
    "applied_cashbacks": {
      "show": false,
      "position": 0
    },
    "initial_payment": {
      "show": false,
      "position": 0
    },
    "purchase": {
      "show": false,
      "position": 0
    },
    "balance": {
      "show": false,
      "position": 0
    },
    "earned_cashback": {
      "show": false,
      "position": 0
    },
    "marks": {
      "show": false,
      "position": 0
    },
    "date": {
      "show": false,
      "position": 0
    },
    "responsible": {
      "show": false,
      "position": 0
    },
    "supplier": {
      "show": false,
      "position": 0
    },
    "purchase_created_at": {
      "show": false,
      "position": 0
    },
    "orders": {
      "show": false,
      "position": 0
    },
    "transaction": {
      "show": false,
      "position": 0
    },
    "transaction_type": {
      "show": false,
      "position": 0
    },
    "cashbox": {
      "show": false,
      "position": 0
    },
    "cashier": {
      "show": false,
      "position": 0
    },
    "invoice": {
      "show": false,
      "position": 0
    },
    "trade": {
      "show": false,
      "position": 0
    },
    "employee": {
      "show": false,
      "position": 0
    },
    "person": {
      "show": false,
      "position": 0
    },
    "amount": {
      "show": false,
      "position": 0
    },
    "payment_method": {
      "show": false,
      "position": 0
    },
    "payment_type": {
      "show": false,
      "position": 0
    },
    "production_number": {
      "show": false,
      "position": 0
    },
    "used_warehouse": {
      "show": false,
      "position": 0
    },
    "produced_warehouse": {
      "show": false,
      "position": 0
    },
    "used_date": {
      "show": false,
      "position": 0
    },
    "produced_date": {
      "show": false,
      "position": 0
    },
    "currency": {
      "show": false,
      "position": 0
    },
    "route_sheet": {
      "show": false,
      "position": 0
    },
    "production_created_by": {
      "show": false,
      "position": 0
    },
    "production_code": {
      "show": false,
      "position": 0
    },
    "total_produced": {
      "show": false,
      "position": 0
    },
    "total_used": {
      "show": false,
      "position": 0
    },
    "total_cost": {
      "show": false,
      "position": 0
    },
    "total_expense": {
      "show": false,
      "position": 0
    },
    "link": {
      "show": false,
      "position": 0
    },
    "state_changes": {
      "show": false,
      "position": 0
    },
    "state_change": {
      "show": false,
      "position": 0
    },
    "transfer": {
      "show": false,
      "position": 0
    },
    "sender_organization": {
      "show": false,
      "position": 0
    },
    "receiver_organization": {
      "show": false,
      "position": 0
    },
    "sender_warehouse": {
      "show": false,
      "position": 0
    },
    "sender_employee": {
      "show": false,
      "position": 0
    },
    "reason": {
      "show": false,
      "position": 0
    },
    "products": {
      "show": false,
      "position": 0
    },
    "customer_balance": {
      "show": false,
      "position": 0
    },
    "transfer_created_at": {
      "show": false,
      "position": 0
    },
    "production_created_at": {
      "show": false,
      "position": 0
    },
    "change": {
      "show": false,
      "position": 0
    },
    "sign_amount": {
      "show": false,
      "position": 0
    },
    "number": {
      "show": false,
      "position": 0
    },
    "transaction_created_by": {
      "show": false,
      "position": 0
    },
    "device_name": {
      "show": false,
      "position": 0
    },
    "total_discount": {
      "show": false,
      "position": 0
    },
    "task_type": {
      "show": false,
      "position": 0
    },
    "task_description": {
      "show": false,
      "position": 0
    },
    "result": {
      "show": false,
      "position": 0
    },
    "task_deadline": {
      "show": false,
      "position": 0
    },
    "task_created_at": {
      "show": false,
      "position": 0
    },
    "phone_number": {
      "show": false,
      "position": 0
    },
    "created_at": "2025-05-01T12:00:00Z",
    "updated_at": "2025-05-01T12:00:00Z"
  },
  "time": "2025-05-01T12:00:00Z"
}

PUT /message-settings/set ​

Create or update the message settings for a specific (bot_type, message_type) combination. All ~80 DetailSettings toggle fields (show + position) are optional — omitted fields keep their existing values on update, or receive defaults on create.

Тело запроса

ПолеТипОбязательноОписание
bot_typestringДаBot channel type. Допустимые значения: CUSTOMER_BOT, REPORT_BOT, SMS
message_typestringДаBusiness event category the settings apply to. Допустимые значения: TRADE, PURCHASE, TRANSACTION, TRANSFER, PRODUCTION, TASK
is_task_createdbooleanНетNotify when a task is created
is_task_closedbooleanНетNotify when a task is closed
is_refundobjectНет
is_refund.showbooleanНетWhether this field is shown in the message
is_refund.positionintegerНетDisplay position (0-based)
sold_atobjectНет
sold_at.showbooleanНетWhether this field is shown in the message
sold_at.positionintegerНетDisplay position (0-based)
stateobjectНет
state.showbooleanНетWhether this field is shown in the message
state.positionintegerНетDisplay position (0-based)
organizationobjectНет
organization.showbooleanНетWhether this field is shown in the message
organization.positionintegerНетDisplay position (0-based)
sellerobjectНет
seller.showbooleanНетWhether this field is shown in the message
seller.positionintegerНетDisplay position (0-based)
customerobjectНет
customer.showbooleanНетWhether this field is shown in the message
customer.positionintegerНетDisplay position (0-based)
noteobjectНет
note.showbooleanНетWhether this field is shown in the message
note.positionintegerНетDisplay position (0-based)
total_amountobjectНет
total_amount.showbooleanНетWhether this field is shown in the message
total_amount.positionintegerНетDisplay position (0-based)
itemsobjectНет
items.showbooleanНетWhether this field is shown in the message
items.positionintegerНетDisplay position (0-based)
discountobjectНет
discount.showbooleanНетWhether this field is shown in the message
discount.positionintegerНетDisplay position (0-based)
included_taxobjectНет
included_tax.showbooleanНетWhether this field is shown in the message
included_tax.positionintegerНетDisplay position (0-based)
added_taxobjectНет
added_tax.showbooleanНетWhether this field is shown in the message
added_tax.positionintegerНетDisplay position (0-based)
totalobjectНет
total.showbooleanНетWhether this field is shown in the message
total.positionintegerНетDisplay position (0-based)
paymentsobjectНет
payments.showbooleanНетWhether this field is shown in the message
payments.positionintegerНетDisplay position (0-based)
by_balanceobjectНет
by_balance.showbooleanНетWhether this field is shown in the message
by_balance.positionintegerНетDisplay position (0-based)
is_installment_planobjectНет
is_installment_plan.showbooleanНетWhether this field is shown in the message
is_installment_plan.positionintegerНетDisplay position (0-based)
debtobjectНет
debt.showbooleanНетWhether this field is shown in the message
debt.positionintegerНетDisplay position (0-based)
applied_cashbacksobjectНет
applied_cashbacks.showbooleanНетWhether this field is shown in the message
applied_cashbacks.positionintegerНетDisplay position (0-based)
initial_paymentobjectНет
initial_payment.showbooleanНетWhether this field is shown in the message
initial_payment.positionintegerНетDisplay position (0-based)
purchaseobjectНет
purchase.showbooleanНетWhether this field is shown in the message
purchase.positionintegerНетDisplay position (0-based)
balanceobjectНет
balance.showbooleanНетWhether this field is shown in the message
balance.positionintegerНетDisplay position (0-based)
earned_cashbackobjectНет
earned_cashback.showbooleanНетWhether this field is shown in the message
earned_cashback.positionintegerНетDisplay position (0-based)
marksobjectНет
marks.showbooleanНетWhether this field is shown in the message
marks.positionintegerНетDisplay position (0-based)
dateobjectНет
date.showbooleanНетWhether this field is shown in the message
date.positionintegerНетDisplay position (0-based)
responsibleobjectНет
responsible.showbooleanНетWhether this field is shown in the message
responsible.positionintegerНетDisplay position (0-based)
supplierobjectНет
supplier.showbooleanНетWhether this field is shown in the message
supplier.positionintegerНетDisplay position (0-based)
purchase_created_atobjectНет
purchase_created_at.showbooleanНетWhether this field is shown in the message
purchase_created_at.positionintegerНетDisplay position (0-based)
ordersobjectНет
orders.showbooleanНетWhether this field is shown in the message
orders.positionintegerНетDisplay position (0-based)
transactionobjectНет
transaction.showbooleanНетWhether this field is shown in the message
transaction.positionintegerНетDisplay position (0-based)
transaction_typeobjectНет
transaction_type.showbooleanНетWhether this field is shown in the message
transaction_type.positionintegerНетDisplay position (0-based)
cashboxobjectНет
cashbox.showbooleanНетWhether this field is shown in the message
cashbox.positionintegerНетDisplay position (0-based)
cashierobjectНет
cashier.showbooleanНетWhether this field is shown in the message
cashier.positionintegerНетDisplay position (0-based)
invoiceobjectНет
invoice.showbooleanНетWhether this field is shown in the message
invoice.positionintegerНетDisplay position (0-based)
tradeobjectНет
trade.showbooleanНетWhether this field is shown in the message
trade.positionintegerНетDisplay position (0-based)
employeeobjectНет
employee.showbooleanНетWhether this field is shown in the message
employee.positionintegerНетDisplay position (0-based)
personobjectНет
person.showbooleanНетWhether this field is shown in the message
person.positionintegerНетDisplay position (0-based)
amountobjectНет
amount.showbooleanНетWhether this field is shown in the message
amount.positionintegerНетDisplay position (0-based)
payment_methodobjectНет
payment_method.showbooleanНетWhether this field is shown in the message
payment_method.positionintegerНетDisplay position (0-based)
payment_typeobjectНет
payment_type.showbooleanНетWhether this field is shown in the message
payment_type.positionintegerНетDisplay position (0-based)
production_numberobjectНет
production_number.showbooleanНетWhether this field is shown in the message
production_number.positionintegerНетDisplay position (0-based)
used_warehouseobjectНет
used_warehouse.showbooleanНетWhether this field is shown in the message
used_warehouse.positionintegerНетDisplay position (0-based)
produced_warehouseobjectНет
produced_warehouse.showbooleanНетWhether this field is shown in the message
produced_warehouse.positionintegerНетDisplay position (0-based)
used_dateobjectНет
used_date.showbooleanНетWhether this field is shown in the message
used_date.positionintegerНетDisplay position (0-based)
produced_dateobjectНет
produced_date.showbooleanНетWhether this field is shown in the message
produced_date.positionintegerНетDisplay position (0-based)
currencyobjectНет
currency.showbooleanНетWhether this field is shown in the message
currency.positionintegerНетDisplay position (0-based)
route_sheetobjectНет
route_sheet.showbooleanНетWhether this field is shown in the message
route_sheet.positionintegerНетDisplay position (0-based)
production_created_byobjectНет
production_created_by.showbooleanНетWhether this field is shown in the message
production_created_by.positionintegerНетDisplay position (0-based)
production_codeobjectНет
production_code.showbooleanНетWhether this field is shown in the message
production_code.positionintegerНетDisplay position (0-based)
total_producedobjectНет
total_produced.showbooleanНетWhether this field is shown in the message
total_produced.positionintegerНетDisplay position (0-based)
total_usedobjectНет
total_used.showbooleanНетWhether this field is shown in the message
total_used.positionintegerНетDisplay position (0-based)
total_costobjectНет
total_cost.showbooleanНетWhether this field is shown in the message
total_cost.positionintegerНетDisplay position (0-based)
total_expenseobjectНет
total_expense.showbooleanНетWhether this field is shown in the message
total_expense.positionintegerНетDisplay position (0-based)
linkobjectНет
link.showbooleanНетWhether this field is shown in the message
link.positionintegerНетDisplay position (0-based)
state_changesobjectНет
state_changes.showbooleanНетWhether this field is shown in the message
state_changes.positionintegerНетDisplay position (0-based)
state_changeobjectНет
state_change.showbooleanНетWhether this field is shown in the message
state_change.positionintegerНетDisplay position (0-based)
transferobjectНет
transfer.showbooleanНетWhether this field is shown in the message
transfer.positionintegerНетDisplay position (0-based)
sender_organizationobjectНет
sender_organization.showbooleanНетWhether this field is shown in the message
sender_organization.positionintegerНетDisplay position (0-based)
receiver_organizationobjectНет
receiver_organization.showbooleanНетWhether this field is shown in the message
receiver_organization.positionintegerНетDisplay position (0-based)
sender_warehouseobjectНет
sender_warehouse.showbooleanНетWhether this field is shown in the message
sender_warehouse.positionintegerНетDisplay position (0-based)
sender_employeeobjectНет
sender_employee.showbooleanНетWhether this field is shown in the message
sender_employee.positionintegerНетDisplay position (0-based)
reasonobjectНет
reason.showbooleanНетWhether this field is shown in the message
reason.positionintegerНетDisplay position (0-based)
productsobjectНет
products.showbooleanНетWhether this field is shown in the message
products.positionintegerНетDisplay position (0-based)
customer_balanceobjectНет
customer_balance.showbooleanНетWhether this field is shown in the message
customer_balance.positionintegerНетDisplay position (0-based)
transfer_created_atobjectНет
transfer_created_at.showbooleanНетWhether this field is shown in the message
transfer_created_at.positionintegerНетDisplay position (0-based)
production_created_atobjectНет
production_created_at.showbooleanНетWhether this field is shown in the message
production_created_at.positionintegerНетDisplay position (0-based)
changeobjectНет
change.showbooleanНетWhether this field is shown in the message
change.positionintegerНетDisplay position (0-based)
sign_amountobjectНет
sign_amount.showbooleanНетWhether this field is shown in the message
sign_amount.positionintegerНетDisplay position (0-based)
numberobjectНет
number.showbooleanНетWhether this field is shown in the message
number.positionintegerНетDisplay position (0-based)
transaction_created_byobjectНет
transaction_created_by.showbooleanНетWhether this field is shown in the message
transaction_created_by.positionintegerНетDisplay position (0-based)
device_nameobjectНет
device_name.showbooleanНетWhether this field is shown in the message
device_name.positionintegerНетDisplay position (0-based)
total_discountobjectНет
total_discount.showbooleanНетWhether this field is shown in the message
total_discount.positionintegerНетDisplay position (0-based)
task_typeobjectНет
task_type.showbooleanНетWhether this field is shown in the message
task_type.positionintegerНетDisplay position (0-based)
task_descriptionobjectНет
task_description.showbooleanНетWhether this field is shown in the message
task_description.positionintegerНетDisplay position (0-based)
resultobjectНет
result.showbooleanНетWhether this field is shown in the message
result.positionintegerНетDisplay position (0-based)
task_deadlineobjectНет
task_deadline.showbooleanНетWhether this field is shown in the message
task_deadline.positionintegerНетDisplay position (0-based)
task_created_atobjectНет
task_created_at.showbooleanНетWhether this field is shown in the message
task_created_at.positionintegerНетDisplay position (0-based)
phone_numberobjectНет
phone_number.showbooleanНетWhether this field is shown in the message
phone_number.positionintegerНетDisplay position (0-based)
json
{
  "bot_type": "CUSTOMER_BOT",
  "message_type": "TRADE",
  "is_task_created": false,
  "is_task_closed": false,
  "is_refund": {
    "show": false,
    "position": 0
  },
  "sold_at": {
    "show": false,
    "position": 0
  },
  "state": {
    "show": false,
    "position": 0
  },
  "organization": {
    "show": false,
    "position": 0
  },
  "seller": {
    "show": false,
    "position": 0
  },
  "customer": {
    "show": false,
    "position": 0
  },
  "note": {
    "show": false,
    "position": 0
  },
  "total_amount": {
    "show": false,
    "position": 0
  },
  "items": {
    "show": false,
    "position": 0
  },
  "discount": {
    "show": false,
    "position": 0
  },
  "included_tax": {
    "show": false,
    "position": 0
  },
  "added_tax": {
    "show": false,
    "position": 0
  },
  "total": {
    "show": false,
    "position": 0
  },
  "payments": {
    "show": false,
    "position": 0
  },
  "by_balance": {
    "show": false,
    "position": 0
  },
  "is_installment_plan": {
    "show": false,
    "position": 0
  },
  "debt": {
    "show": false,
    "position": 0
  },
  "applied_cashbacks": {
    "show": false,
    "position": 0
  },
  "initial_payment": {
    "show": false,
    "position": 0
  },
  "purchase": {
    "show": false,
    "position": 0
  },
  "balance": {
    "show": false,
    "position": 0
  },
  "earned_cashback": {
    "show": false,
    "position": 0
  },
  "marks": {
    "show": false,
    "position": 0
  },
  "date": {
    "show": false,
    "position": 0
  },
  "responsible": {
    "show": false,
    "position": 0
  },
  "supplier": {
    "show": false,
    "position": 0
  },
  "purchase_created_at": {
    "show": false,
    "position": 0
  },
  "orders": {
    "show": false,
    "position": 0
  },
  "transaction": {
    "show": false,
    "position": 0
  },
  "transaction_type": {
    "show": false,
    "position": 0
  },
  "cashbox": {
    "show": false,
    "position": 0
  },
  "cashier": {
    "show": false,
    "position": 0
  },
  "invoice": {
    "show": false,
    "position": 0
  },
  "trade": {
    "show": false,
    "position": 0
  },
  "employee": {
    "show": false,
    "position": 0
  },
  "person": {
    "show": false,
    "position": 0
  },
  "amount": {
    "show": false,
    "position": 0
  },
  "payment_method": {
    "show": false,
    "position": 0
  },
  "payment_type": {
    "show": false,
    "position": 0
  },
  "production_number": {
    "show": false,
    "position": 0
  },
  "used_warehouse": {
    "show": false,
    "position": 0
  },
  "produced_warehouse": {
    "show": false,
    "position": 0
  },
  "used_date": {
    "show": false,
    "position": 0
  },
  "produced_date": {
    "show": false,
    "position": 0
  },
  "currency": {
    "show": false,
    "position": 0
  },
  "route_sheet": {
    "show": false,
    "position": 0
  },
  "production_created_by": {
    "show": false,
    "position": 0
  },
  "production_code": {
    "show": false,
    "position": 0
  },
  "total_produced": {
    "show": false,
    "position": 0
  },
  "total_used": {
    "show": false,
    "position": 0
  },
  "total_cost": {
    "show": false,
    "position": 0
  },
  "total_expense": {
    "show": false,
    "position": 0
  },
  "link": {
    "show": false,
    "position": 0
  },
  "state_changes": {
    "show": false,
    "position": 0
  },
  "state_change": {
    "show": false,
    "position": 0
  },
  "transfer": {
    "show": false,
    "position": 0
  },
  "sender_organization": {
    "show": false,
    "position": 0
  },
  "receiver_organization": {
    "show": false,
    "position": 0
  },
  "sender_warehouse": {
    "show": false,
    "position": 0
  },
  "sender_employee": {
    "show": false,
    "position": 0
  },
  "reason": {
    "show": false,
    "position": 0
  },
  "products": {
    "show": false,
    "position": 0
  },
  "customer_balance": {
    "show": false,
    "position": 0
  },
  "transfer_created_at": {
    "show": false,
    "position": 0
  },
  "production_created_at": {
    "show": false,
    "position": 0
  },
  "change": {
    "show": false,
    "position": 0
  },
  "sign_amount": {
    "show": false,
    "position": 0
  },
  "number": {
    "show": false,
    "position": 0
  },
  "transaction_created_by": {
    "show": false,
    "position": 0
  },
  "device_name": {
    "show": false,
    "position": 0
  },
  "total_discount": {
    "show": false,
    "position": 0
  },
  "task_type": {
    "show": false,
    "position": 0
  },
  "task_description": {
    "show": false,
    "position": 0
  },
  "result": {
    "show": false,
    "position": 0
  },
  "task_deadline": {
    "show": false,
    "position": 0
  },
  "task_created_at": {
    "show": false,
    "position": 0
  },
  "phone_number": {
    "show": false,
    "position": 0
  }
}

Ответ

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


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

Bito 2.0 Integration API