Skip to content

Message settings ​

Outbound messaging settings

INFO

Har bir javob umumiy konvertda qaytadi — code, message, messages, status_code, time — foydali yuk esa data ichida. Quyidagi jadvallar faqat data ichini tavsiflaydi.

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.

So‘rov tanasi

MaydonTurMajburiyTavsif
bot_typestringHaBot channel type. Mumkin qiymatlar: CUSTOMER_BOT, REPORT_BOT, SMS
message_typestringHaBusiness event category the settings apply to. Mumkin qiymatlar: TRADE, PURCHASE, TRANSACTION, TRANSFER, PRODUCTION, TASK
json
{
  "bot_type": "CUSTOMER_BOT",
  "message_type": "TRADE"
}

Javob

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

So‘rov tanasi

MaydonTurMajburiyTavsif
bot_typestringHaBot channel type. Mumkin qiymatlar: CUSTOMER_BOT, REPORT_BOT, SMS
message_typestringHaBusiness event category the settings apply to. Mumkin qiymatlar: TRADE, PURCHASE, TRANSACTION, TRANSFER, PRODUCTION, TASK
is_task_createdbooleanYo‘qNotify when a task is created
is_task_closedbooleanYo‘qNotify when a task is closed
is_refundobjectYo‘q
is_refund.showbooleanYo‘qWhether this field is shown in the message
is_refund.positionintegerYo‘qDisplay position (0-based)
sold_atobjectYo‘q
sold_at.showbooleanYo‘qWhether this field is shown in the message
sold_at.positionintegerYo‘qDisplay position (0-based)
stateobjectYo‘q
state.showbooleanYo‘qWhether this field is shown in the message
state.positionintegerYo‘qDisplay position (0-based)
organizationobjectYo‘q
organization.showbooleanYo‘qWhether this field is shown in the message
organization.positionintegerYo‘qDisplay position (0-based)
sellerobjectYo‘q
seller.showbooleanYo‘qWhether this field is shown in the message
seller.positionintegerYo‘qDisplay position (0-based)
customerobjectYo‘q
customer.showbooleanYo‘qWhether this field is shown in the message
customer.positionintegerYo‘qDisplay position (0-based)
noteobjectYo‘q
note.showbooleanYo‘qWhether this field is shown in the message
note.positionintegerYo‘qDisplay position (0-based)
total_amountobjectYo‘q
total_amount.showbooleanYo‘qWhether this field is shown in the message
total_amount.positionintegerYo‘qDisplay position (0-based)
itemsobjectYo‘q
items.showbooleanYo‘qWhether this field is shown in the message
items.positionintegerYo‘qDisplay position (0-based)
discountobjectYo‘q
discount.showbooleanYo‘qWhether this field is shown in the message
discount.positionintegerYo‘qDisplay position (0-based)
included_taxobjectYo‘q
included_tax.showbooleanYo‘qWhether this field is shown in the message
included_tax.positionintegerYo‘qDisplay position (0-based)
added_taxobjectYo‘q
added_tax.showbooleanYo‘qWhether this field is shown in the message
added_tax.positionintegerYo‘qDisplay position (0-based)
totalobjectYo‘q
total.showbooleanYo‘qWhether this field is shown in the message
total.positionintegerYo‘qDisplay position (0-based)
paymentsobjectYo‘q
payments.showbooleanYo‘qWhether this field is shown in the message
payments.positionintegerYo‘qDisplay position (0-based)
by_balanceobjectYo‘q
by_balance.showbooleanYo‘qWhether this field is shown in the message
by_balance.positionintegerYo‘qDisplay position (0-based)
is_installment_planobjectYo‘q
is_installment_plan.showbooleanYo‘qWhether this field is shown in the message
is_installment_plan.positionintegerYo‘qDisplay position (0-based)
debtobjectYo‘q
debt.showbooleanYo‘qWhether this field is shown in the message
debt.positionintegerYo‘qDisplay position (0-based)
applied_cashbacksobjectYo‘q
applied_cashbacks.showbooleanYo‘qWhether this field is shown in the message
applied_cashbacks.positionintegerYo‘qDisplay position (0-based)
initial_paymentobjectYo‘q
initial_payment.showbooleanYo‘qWhether this field is shown in the message
initial_payment.positionintegerYo‘qDisplay position (0-based)
purchaseobjectYo‘q
purchase.showbooleanYo‘qWhether this field is shown in the message
purchase.positionintegerYo‘qDisplay position (0-based)
balanceobjectYo‘q
balance.showbooleanYo‘qWhether this field is shown in the message
balance.positionintegerYo‘qDisplay position (0-based)
earned_cashbackobjectYo‘q
earned_cashback.showbooleanYo‘qWhether this field is shown in the message
earned_cashback.positionintegerYo‘qDisplay position (0-based)
marksobjectYo‘q
marks.showbooleanYo‘qWhether this field is shown in the message
marks.positionintegerYo‘qDisplay position (0-based)
dateobjectYo‘q
date.showbooleanYo‘qWhether this field is shown in the message
date.positionintegerYo‘qDisplay position (0-based)
responsibleobjectYo‘q
responsible.showbooleanYo‘qWhether this field is shown in the message
responsible.positionintegerYo‘qDisplay position (0-based)
supplierobjectYo‘q
supplier.showbooleanYo‘qWhether this field is shown in the message
supplier.positionintegerYo‘qDisplay position (0-based)
purchase_created_atobjectYo‘q
purchase_created_at.showbooleanYo‘qWhether this field is shown in the message
purchase_created_at.positionintegerYo‘qDisplay position (0-based)
ordersobjectYo‘q
orders.showbooleanYo‘qWhether this field is shown in the message
orders.positionintegerYo‘qDisplay position (0-based)
transactionobjectYo‘q
transaction.showbooleanYo‘qWhether this field is shown in the message
transaction.positionintegerYo‘qDisplay position (0-based)
transaction_typeobjectYo‘q
transaction_type.showbooleanYo‘qWhether this field is shown in the message
transaction_type.positionintegerYo‘qDisplay position (0-based)
cashboxobjectYo‘q
cashbox.showbooleanYo‘qWhether this field is shown in the message
cashbox.positionintegerYo‘qDisplay position (0-based)
cashierobjectYo‘q
cashier.showbooleanYo‘qWhether this field is shown in the message
cashier.positionintegerYo‘qDisplay position (0-based)
invoiceobjectYo‘q
invoice.showbooleanYo‘qWhether this field is shown in the message
invoice.positionintegerYo‘qDisplay position (0-based)
tradeobjectYo‘q
trade.showbooleanYo‘qWhether this field is shown in the message
trade.positionintegerYo‘qDisplay position (0-based)
employeeobjectYo‘q
employee.showbooleanYo‘qWhether this field is shown in the message
employee.positionintegerYo‘qDisplay position (0-based)
personobjectYo‘q
person.showbooleanYo‘qWhether this field is shown in the message
person.positionintegerYo‘qDisplay position (0-based)
amountobjectYo‘q
amount.showbooleanYo‘qWhether this field is shown in the message
amount.positionintegerYo‘qDisplay position (0-based)
payment_methodobjectYo‘q
payment_method.showbooleanYo‘qWhether this field is shown in the message
payment_method.positionintegerYo‘qDisplay position (0-based)
payment_typeobjectYo‘q
payment_type.showbooleanYo‘qWhether this field is shown in the message
payment_type.positionintegerYo‘qDisplay position (0-based)
production_numberobjectYo‘q
production_number.showbooleanYo‘qWhether this field is shown in the message
production_number.positionintegerYo‘qDisplay position (0-based)
used_warehouseobjectYo‘q
used_warehouse.showbooleanYo‘qWhether this field is shown in the message
used_warehouse.positionintegerYo‘qDisplay position (0-based)
produced_warehouseobjectYo‘q
produced_warehouse.showbooleanYo‘qWhether this field is shown in the message
produced_warehouse.positionintegerYo‘qDisplay position (0-based)
used_dateobjectYo‘q
used_date.showbooleanYo‘qWhether this field is shown in the message
used_date.positionintegerYo‘qDisplay position (0-based)
produced_dateobjectYo‘q
produced_date.showbooleanYo‘qWhether this field is shown in the message
produced_date.positionintegerYo‘qDisplay position (0-based)
currencyobjectYo‘q
currency.showbooleanYo‘qWhether this field is shown in the message
currency.positionintegerYo‘qDisplay position (0-based)
route_sheetobjectYo‘q
route_sheet.showbooleanYo‘qWhether this field is shown in the message
route_sheet.positionintegerYo‘qDisplay position (0-based)
production_created_byobjectYo‘q
production_created_by.showbooleanYo‘qWhether this field is shown in the message
production_created_by.positionintegerYo‘qDisplay position (0-based)
production_codeobjectYo‘q
production_code.showbooleanYo‘qWhether this field is shown in the message
production_code.positionintegerYo‘qDisplay position (0-based)
total_producedobjectYo‘q
total_produced.showbooleanYo‘qWhether this field is shown in the message
total_produced.positionintegerYo‘qDisplay position (0-based)
total_usedobjectYo‘q
total_used.showbooleanYo‘qWhether this field is shown in the message
total_used.positionintegerYo‘qDisplay position (0-based)
total_costobjectYo‘q
total_cost.showbooleanYo‘qWhether this field is shown in the message
total_cost.positionintegerYo‘qDisplay position (0-based)
total_expenseobjectYo‘q
total_expense.showbooleanYo‘qWhether this field is shown in the message
total_expense.positionintegerYo‘qDisplay position (0-based)
linkobjectYo‘q
link.showbooleanYo‘qWhether this field is shown in the message
link.positionintegerYo‘qDisplay position (0-based)
state_changesobjectYo‘q
state_changes.showbooleanYo‘qWhether this field is shown in the message
state_changes.positionintegerYo‘qDisplay position (0-based)
state_changeobjectYo‘q
state_change.showbooleanYo‘qWhether this field is shown in the message
state_change.positionintegerYo‘qDisplay position (0-based)
transferobjectYo‘q
transfer.showbooleanYo‘qWhether this field is shown in the message
transfer.positionintegerYo‘qDisplay position (0-based)
sender_organizationobjectYo‘q
sender_organization.showbooleanYo‘qWhether this field is shown in the message
sender_organization.positionintegerYo‘qDisplay position (0-based)
receiver_organizationobjectYo‘q
receiver_organization.showbooleanYo‘qWhether this field is shown in the message
receiver_organization.positionintegerYo‘qDisplay position (0-based)
sender_warehouseobjectYo‘q
sender_warehouse.showbooleanYo‘qWhether this field is shown in the message
sender_warehouse.positionintegerYo‘qDisplay position (0-based)
sender_employeeobjectYo‘q
sender_employee.showbooleanYo‘qWhether this field is shown in the message
sender_employee.positionintegerYo‘qDisplay position (0-based)
reasonobjectYo‘q
reason.showbooleanYo‘qWhether this field is shown in the message
reason.positionintegerYo‘qDisplay position (0-based)
productsobjectYo‘q
products.showbooleanYo‘qWhether this field is shown in the message
products.positionintegerYo‘qDisplay position (0-based)
customer_balanceobjectYo‘q
customer_balance.showbooleanYo‘qWhether this field is shown in the message
customer_balance.positionintegerYo‘qDisplay position (0-based)
transfer_created_atobjectYo‘q
transfer_created_at.showbooleanYo‘qWhether this field is shown in the message
transfer_created_at.positionintegerYo‘qDisplay position (0-based)
production_created_atobjectYo‘q
production_created_at.showbooleanYo‘qWhether this field is shown in the message
production_created_at.positionintegerYo‘qDisplay position (0-based)
changeobjectYo‘q
change.showbooleanYo‘qWhether this field is shown in the message
change.positionintegerYo‘qDisplay position (0-based)
sign_amountobjectYo‘q
sign_amount.showbooleanYo‘qWhether this field is shown in the message
sign_amount.positionintegerYo‘qDisplay position (0-based)
numberobjectYo‘q
number.showbooleanYo‘qWhether this field is shown in the message
number.positionintegerYo‘qDisplay position (0-based)
transaction_created_byobjectYo‘q
transaction_created_by.showbooleanYo‘qWhether this field is shown in the message
transaction_created_by.positionintegerYo‘qDisplay position (0-based)
device_nameobjectYo‘q
device_name.showbooleanYo‘qWhether this field is shown in the message
device_name.positionintegerYo‘qDisplay position (0-based)
total_discountobjectYo‘q
total_discount.showbooleanYo‘qWhether this field is shown in the message
total_discount.positionintegerYo‘qDisplay position (0-based)
task_typeobjectYo‘q
task_type.showbooleanYo‘qWhether this field is shown in the message
task_type.positionintegerYo‘qDisplay position (0-based)
task_descriptionobjectYo‘q
task_description.showbooleanYo‘qWhether this field is shown in the message
task_description.positionintegerYo‘qDisplay position (0-based)
resultobjectYo‘q
result.showbooleanYo‘qWhether this field is shown in the message
result.positionintegerYo‘qDisplay position (0-based)
task_deadlineobjectYo‘q
task_deadline.showbooleanYo‘qWhether this field is shown in the message
task_deadline.positionintegerYo‘qDisplay position (0-based)
task_created_atobjectYo‘q
task_created_at.showbooleanYo‘qWhether this field is shown in the message
task_created_at.positionintegerYo‘qDisplay position (0-based)
phone_numberobjectYo‘q
phone_number.showbooleanYo‘qWhether this field is shown in the message
phone_number.positionintegerYo‘qDisplay 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
  }
}

Javob

Javob tuzilishi quyidagi bilan bir xil: POST /message-settings/get.


Bu sahifa OpenAPI spetsifikatsiyasidan yaratilgan.

Bito 2.0 Integration API