Skip to content

Message settings ​

Outbound messaging settings

INFO

Every response arrives in the shared envelope — code, message, messages, status_code, time — with the payload in data. The tables below describe what is inside 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.

Request body

FieldTypeRequiredDescription
bot_typestringYesBot channel type. One of: CUSTOMER_BOT, REPORT_BOT, SMS
message_typestringYesBusiness event category the settings apply to. One of: TRADE, PURCHASE, TRANSACTION, TRANSFER, PRODUCTION, TASK
json
{
  "bot_type": "CUSTOMER_BOT",
  "message_type": "TRADE"
}

Response

FieldTypeDescription
_idstringDocument ObjectId
account_idstringTenant identifier
bot_typestringBot channel type. One of: CUSTOMER_BOT, REPORT_BOT, SMS
message_typestringBusiness event category the settings apply to. One of: 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.

Request body

FieldTypeRequiredDescription
bot_typestringYesBot channel type. One of: CUSTOMER_BOT, REPORT_BOT, SMS
message_typestringYesBusiness event category the settings apply to. One of: TRADE, PURCHASE, TRANSACTION, TRANSFER, PRODUCTION, TASK
is_task_createdbooleanNoNotify when a task is created
is_task_closedbooleanNoNotify when a task is closed
is_refundobjectNo
is_refund.showbooleanNoWhether this field is shown in the message
is_refund.positionintegerNoDisplay position (0-based)
sold_atobjectNo
sold_at.showbooleanNoWhether this field is shown in the message
sold_at.positionintegerNoDisplay position (0-based)
stateobjectNo
state.showbooleanNoWhether this field is shown in the message
state.positionintegerNoDisplay position (0-based)
organizationobjectNo
organization.showbooleanNoWhether this field is shown in the message
organization.positionintegerNoDisplay position (0-based)
sellerobjectNo
seller.showbooleanNoWhether this field is shown in the message
seller.positionintegerNoDisplay position (0-based)
customerobjectNo
customer.showbooleanNoWhether this field is shown in the message
customer.positionintegerNoDisplay position (0-based)
noteobjectNo
note.showbooleanNoWhether this field is shown in the message
note.positionintegerNoDisplay position (0-based)
total_amountobjectNo
total_amount.showbooleanNoWhether this field is shown in the message
total_amount.positionintegerNoDisplay position (0-based)
itemsobjectNo
items.showbooleanNoWhether this field is shown in the message
items.positionintegerNoDisplay position (0-based)
discountobjectNo
discount.showbooleanNoWhether this field is shown in the message
discount.positionintegerNoDisplay position (0-based)
included_taxobjectNo
included_tax.showbooleanNoWhether this field is shown in the message
included_tax.positionintegerNoDisplay position (0-based)
added_taxobjectNo
added_tax.showbooleanNoWhether this field is shown in the message
added_tax.positionintegerNoDisplay position (0-based)
totalobjectNo
total.showbooleanNoWhether this field is shown in the message
total.positionintegerNoDisplay position (0-based)
paymentsobjectNo
payments.showbooleanNoWhether this field is shown in the message
payments.positionintegerNoDisplay position (0-based)
by_balanceobjectNo
by_balance.showbooleanNoWhether this field is shown in the message
by_balance.positionintegerNoDisplay position (0-based)
is_installment_planobjectNo
is_installment_plan.showbooleanNoWhether this field is shown in the message
is_installment_plan.positionintegerNoDisplay position (0-based)
debtobjectNo
debt.showbooleanNoWhether this field is shown in the message
debt.positionintegerNoDisplay position (0-based)
applied_cashbacksobjectNo
applied_cashbacks.showbooleanNoWhether this field is shown in the message
applied_cashbacks.positionintegerNoDisplay position (0-based)
initial_paymentobjectNo
initial_payment.showbooleanNoWhether this field is shown in the message
initial_payment.positionintegerNoDisplay position (0-based)
purchaseobjectNo
purchase.showbooleanNoWhether this field is shown in the message
purchase.positionintegerNoDisplay position (0-based)
balanceobjectNo
balance.showbooleanNoWhether this field is shown in the message
balance.positionintegerNoDisplay position (0-based)
earned_cashbackobjectNo
earned_cashback.showbooleanNoWhether this field is shown in the message
earned_cashback.positionintegerNoDisplay position (0-based)
marksobjectNo
marks.showbooleanNoWhether this field is shown in the message
marks.positionintegerNoDisplay position (0-based)
dateobjectNo
date.showbooleanNoWhether this field is shown in the message
date.positionintegerNoDisplay position (0-based)
responsibleobjectNo
responsible.showbooleanNoWhether this field is shown in the message
responsible.positionintegerNoDisplay position (0-based)
supplierobjectNo
supplier.showbooleanNoWhether this field is shown in the message
supplier.positionintegerNoDisplay position (0-based)
purchase_created_atobjectNo
purchase_created_at.showbooleanNoWhether this field is shown in the message
purchase_created_at.positionintegerNoDisplay position (0-based)
ordersobjectNo
orders.showbooleanNoWhether this field is shown in the message
orders.positionintegerNoDisplay position (0-based)
transactionobjectNo
transaction.showbooleanNoWhether this field is shown in the message
transaction.positionintegerNoDisplay position (0-based)
transaction_typeobjectNo
transaction_type.showbooleanNoWhether this field is shown in the message
transaction_type.positionintegerNoDisplay position (0-based)
cashboxobjectNo
cashbox.showbooleanNoWhether this field is shown in the message
cashbox.positionintegerNoDisplay position (0-based)
cashierobjectNo
cashier.showbooleanNoWhether this field is shown in the message
cashier.positionintegerNoDisplay position (0-based)
invoiceobjectNo
invoice.showbooleanNoWhether this field is shown in the message
invoice.positionintegerNoDisplay position (0-based)
tradeobjectNo
trade.showbooleanNoWhether this field is shown in the message
trade.positionintegerNoDisplay position (0-based)
employeeobjectNo
employee.showbooleanNoWhether this field is shown in the message
employee.positionintegerNoDisplay position (0-based)
personobjectNo
person.showbooleanNoWhether this field is shown in the message
person.positionintegerNoDisplay position (0-based)
amountobjectNo
amount.showbooleanNoWhether this field is shown in the message
amount.positionintegerNoDisplay position (0-based)
payment_methodobjectNo
payment_method.showbooleanNoWhether this field is shown in the message
payment_method.positionintegerNoDisplay position (0-based)
payment_typeobjectNo
payment_type.showbooleanNoWhether this field is shown in the message
payment_type.positionintegerNoDisplay position (0-based)
production_numberobjectNo
production_number.showbooleanNoWhether this field is shown in the message
production_number.positionintegerNoDisplay position (0-based)
used_warehouseobjectNo
used_warehouse.showbooleanNoWhether this field is shown in the message
used_warehouse.positionintegerNoDisplay position (0-based)
produced_warehouseobjectNo
produced_warehouse.showbooleanNoWhether this field is shown in the message
produced_warehouse.positionintegerNoDisplay position (0-based)
used_dateobjectNo
used_date.showbooleanNoWhether this field is shown in the message
used_date.positionintegerNoDisplay position (0-based)
produced_dateobjectNo
produced_date.showbooleanNoWhether this field is shown in the message
produced_date.positionintegerNoDisplay position (0-based)
currencyobjectNo
currency.showbooleanNoWhether this field is shown in the message
currency.positionintegerNoDisplay position (0-based)
route_sheetobjectNo
route_sheet.showbooleanNoWhether this field is shown in the message
route_sheet.positionintegerNoDisplay position (0-based)
production_created_byobjectNo
production_created_by.showbooleanNoWhether this field is shown in the message
production_created_by.positionintegerNoDisplay position (0-based)
production_codeobjectNo
production_code.showbooleanNoWhether this field is shown in the message
production_code.positionintegerNoDisplay position (0-based)
total_producedobjectNo
total_produced.showbooleanNoWhether this field is shown in the message
total_produced.positionintegerNoDisplay position (0-based)
total_usedobjectNo
total_used.showbooleanNoWhether this field is shown in the message
total_used.positionintegerNoDisplay position (0-based)
total_costobjectNo
total_cost.showbooleanNoWhether this field is shown in the message
total_cost.positionintegerNoDisplay position (0-based)
total_expenseobjectNo
total_expense.showbooleanNoWhether this field is shown in the message
total_expense.positionintegerNoDisplay position (0-based)
linkobjectNo
link.showbooleanNoWhether this field is shown in the message
link.positionintegerNoDisplay position (0-based)
state_changesobjectNo
state_changes.showbooleanNoWhether this field is shown in the message
state_changes.positionintegerNoDisplay position (0-based)
state_changeobjectNo
state_change.showbooleanNoWhether this field is shown in the message
state_change.positionintegerNoDisplay position (0-based)
transferobjectNo
transfer.showbooleanNoWhether this field is shown in the message
transfer.positionintegerNoDisplay position (0-based)
sender_organizationobjectNo
sender_organization.showbooleanNoWhether this field is shown in the message
sender_organization.positionintegerNoDisplay position (0-based)
receiver_organizationobjectNo
receiver_organization.showbooleanNoWhether this field is shown in the message
receiver_organization.positionintegerNoDisplay position (0-based)
sender_warehouseobjectNo
sender_warehouse.showbooleanNoWhether this field is shown in the message
sender_warehouse.positionintegerNoDisplay position (0-based)
sender_employeeobjectNo
sender_employee.showbooleanNoWhether this field is shown in the message
sender_employee.positionintegerNoDisplay position (0-based)
reasonobjectNo
reason.showbooleanNoWhether this field is shown in the message
reason.positionintegerNoDisplay position (0-based)
productsobjectNo
products.showbooleanNoWhether this field is shown in the message
products.positionintegerNoDisplay position (0-based)
customer_balanceobjectNo
customer_balance.showbooleanNoWhether this field is shown in the message
customer_balance.positionintegerNoDisplay position (0-based)
transfer_created_atobjectNo
transfer_created_at.showbooleanNoWhether this field is shown in the message
transfer_created_at.positionintegerNoDisplay position (0-based)
production_created_atobjectNo
production_created_at.showbooleanNoWhether this field is shown in the message
production_created_at.positionintegerNoDisplay position (0-based)
changeobjectNo
change.showbooleanNoWhether this field is shown in the message
change.positionintegerNoDisplay position (0-based)
sign_amountobjectNo
sign_amount.showbooleanNoWhether this field is shown in the message
sign_amount.positionintegerNoDisplay position (0-based)
numberobjectNo
number.showbooleanNoWhether this field is shown in the message
number.positionintegerNoDisplay position (0-based)
transaction_created_byobjectNo
transaction_created_by.showbooleanNoWhether this field is shown in the message
transaction_created_by.positionintegerNoDisplay position (0-based)
device_nameobjectNo
device_name.showbooleanNoWhether this field is shown in the message
device_name.positionintegerNoDisplay position (0-based)
total_discountobjectNo
total_discount.showbooleanNoWhether this field is shown in the message
total_discount.positionintegerNoDisplay position (0-based)
task_typeobjectNo
task_type.showbooleanNoWhether this field is shown in the message
task_type.positionintegerNoDisplay position (0-based)
task_descriptionobjectNo
task_description.showbooleanNoWhether this field is shown in the message
task_description.positionintegerNoDisplay position (0-based)
resultobjectNo
result.showbooleanNoWhether this field is shown in the message
result.positionintegerNoDisplay position (0-based)
task_deadlineobjectNo
task_deadline.showbooleanNoWhether this field is shown in the message
task_deadline.positionintegerNoDisplay position (0-based)
task_created_atobjectNo
task_created_at.showbooleanNoWhether this field is shown in the message
task_created_at.positionintegerNoDisplay position (0-based)
phone_numberobjectNo
phone_number.showbooleanNoWhether this field is shown in the message
phone_number.positionintegerNoDisplay 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
  }
}

Response

Same response shape as POST /message-settings/get.


This page is generated from the OpenAPI spec.

Bito 2.0 Integration API