# 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.

**Required permission:** none — closed to an app that declares permissions · [how permissions work](https://docs.bito.uz/en/api/permissions.md)

**Example request**

::: code-group

```bash [curl]
curl -X POST 'https://api.bito.uz/integration-api/integration/api/v2/message-settings/get' \
  -H "api-key: $BITO_API_KEY" \
  -H 'Content-Type: application/json' \
  -d '{
  "bot_type": "CUSTOMER_BOT",
  "message_type": "TRADE"
}'
```

```js [JavaScript]
const res = await fetch('https://api.bito.uz/integration-api/integration/api/v2/message-settings/get', {
  method: 'POST',
  headers: { 'api-key': process.env.BITO_API_KEY, 'Content-Type': 'application/json' },
  body: JSON.stringify({
    "bot_type": "CUSTOMER_BOT",
    "message_type": "TRADE"
  }),
})
const { code, data } = await res.json()
```

```python [Python]
import os
import requests

res = requests.request(
    "POST",
    "https://api.bito.uz/integration-api/integration/api/v2/message-settings/get",
    headers={"api-key": os.environ["BITO_API_KEY"]},
    json={
        "bot_type": "CUSTOMER_BOT",
        "message_type": "TRADE",
    },
)
print(res.json())
```

```php [PHP]
<?php
$body = <<<'JSON'
{
  "bot_type": "CUSTOMER_BOT",
  "message_type": "TRADE"
}
JSON;

$ch = curl_init('https://api.bito.uz/integration-api/integration/api/v2/message-settings/get');
curl_setopt_array($ch, [
    CURLOPT_CUSTOMREQUEST => 'POST',
    CURLOPT_HTTPHEADER => ['api-key: ' . getenv('BITO_API_KEY'), 'Content-Type: application/json'],
    CURLOPT_POSTFIELDS => $body,
    CURLOPT_RETURNTRANSFER => true,
]);
$response = json_decode(curl_exec($ch), true);
```

:::

**Request body**

| Field | Type | Required | Description |
|---|---|---|---|
| `bot_type` | `string` | Yes | Bot channel type. One of: `CUSTOMER_BOT`, `REPORT_BOT`, `SMS` |
| `message_type` | `string` | Yes | Business event category the settings apply to. One of: `TRADE`, `PURCHASE`, `TRANSACTION`, `TRANSFER`, `PRODUCTION`, `TASK` |

```json
{
  "bot_type": "CUSTOMER_BOT",
  "message_type": "TRADE"
}
```

**Response**

| Field | Type | Description |
|---|---|---|
| `_id` | `string` | Document ObjectId |
| `account_id` | `string` | Tenant identifier |
| `bot_type` | `string` | Bot channel type. One of: `CUSTOMER_BOT`, `REPORT_BOT`, `SMS` |
| `message_type` | `string` | Business event category the settings apply to. One of: `TRADE`, `PURCHASE`, `TRANSACTION`, `TRANSFER`, `PRODUCTION`, `TASK` |
| `is_task_created` | `boolean` |  |
| `is_task_closed` | `boolean` |  |
| `is_refund` | `any` |  |
| `sold_at` | `any` |  |
| `state` | `any` |  |
| `organization` | `any` |  |
| `seller` | `any` |  |
| `customer` | `any` |  |
| `note` | `object` |  |
| `note.show` | `boolean` | Whether this field is shown in the message |
| `note.position` | `integer` | Display position (0-based) |
| `total_amount` | `any` |  |
| `items` | `any` |  |
| `discount` | `any` |  |
| `included_tax` | `any` |  |
| `added_tax` | `any` |  |
| `total` | `any` |  |
| `payments` | `any` |  |
| `by_balance` | `any` |  |
| `is_installment_plan` | `any` |  |
| `debt` | `any` |  |
| `applied_cashbacks` | `any` |  |
| `initial_payment` | `any` |  |
| `purchase` | `any` |  |
| `balance` | `any` |  |
| `earned_cashback` | `any` |  |
| `marks` | `any` |  |
| `date` | `any` |  |
| `responsible` | `any` |  |
| `supplier` | `any` |  |
| `purchase_created_at` | `any` |  |
| `orders` | `any` |  |
| `transaction` | `any` |  |
| `transaction_type` | `any` |  |
| `cashbox` | `any` |  |
| `cashier` | `any` |  |
| `invoice` | `any` |  |
| `trade` | `any` |  |
| `employee` | `any` |  |
| `person` | `any` |  |
| `amount` | `any` |  |
| `payment_method` | `any` |  |
| `payment_type` | `any` |  |
| `production_number` | `any` |  |
| `used_warehouse` | `any` |  |
| `produced_warehouse` | `any` |  |
| `used_date` | `any` |  |
| `produced_date` | `any` |  |
| `currency` | `any` |  |
| `route_sheet` | `any` |  |
| `production_created_by` | `any` |  |
| `production_code` | `any` |  |
| `total_produced` | `any` |  |
| `total_used` | `any` |  |
| `total_cost` | `any` |  |
| `total_expense` | `any` |  |
| `link` | `any` |  |
| `state_changes` | `any` |  |
| `state_change` | `any` |  |
| `transfer` | `any` |  |
| `sender_organization` | `any` |  |
| `receiver_organization` | `any` |  |
| `sender_warehouse` | `any` |  |
| `sender_employee` | `any` |  |
| `reason` | `any` |  |
| `products` | `any` |  |
| `customer_balance` | `any` |  |
| `transfer_created_at` | `any` |  |
| `production_created_at` | `any` |  |
| `change` | `any` |  |
| `sign_amount` | `any` |  |
| `number` | `any` |  |
| `transaction_created_by` | `any` |  |
| `device_name` | `any` |  |
| `total_discount` | `any` |  |
| `task_type` | `any` |  |
| `task_description` | `any` |  |
| `result` | `any` |  |
| `task_deadline` | `any` |  |
| `task_created_at` | `any` |  |
| `phone_number` | `any` |  |
| `created_at` | `string (date-time)` |  |
| `updated_at` | `string (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": null,
    "sold_at": null,
    "state": null,
    "organization": null,
    "seller": null,
    "customer": null,
    "note": {
      "show": false,
      "position": 0
    },
    "total_amount": null,
    "items": null,
    "discount": null,
    "included_tax": null,
    "added_tax": null,
    "total": null,
    "payments": null,
    "by_balance": null,
    "is_installment_plan": null,
    "debt": null,
    "applied_cashbacks": null,
    "initial_payment": null,
    "purchase": null,
    "balance": null,
    "earned_cashback": null,
    "marks": null,
    "date": null,
    "responsible": null,
    "supplier": null,
    "purchase_created_at": null,
    "orders": null,
    "transaction": null,
    "transaction_type": null,
    "cashbox": null,
    "cashier": null,
    "invoice": null,
    "trade": null,
    "employee": null,
    "person": null,
    "amount": null,
    "payment_method": null,
    "payment_type": null,
    "production_number": null,
    "used_warehouse": null,
    "produced_warehouse": null,
    "used_date": null,
    "produced_date": null,
    "currency": null,
    "route_sheet": null,
    "production_created_by": null,
    "production_code": null,
    "total_produced": null,
    "total_used": null,
    "total_cost": null,
    "total_expense": null,
    "link": null,
    "state_changes": null,
    "state_change": null,
    "transfer": null,
    "sender_organization": null,
    "receiver_organization": null,
    "sender_warehouse": null,
    "sender_employee": null,
    "reason": null,
    "products": null,
    "customer_balance": null,
    "transfer_created_at": null,
    "production_created_at": null,
    "change": null,
    "sign_amount": null,
    "number": null,
    "transaction_created_by": null,
    "device_name": null,
    "total_discount": null,
    "task_type": null,
    "task_description": null,
    "result": null,
    "task_deadline": null,
    "task_created_at": null,
    "phone_number": null,
    "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.

**Required permission:** none — closed to an app that declares permissions · [how permissions work](https://docs.bito.uz/en/api/permissions.md)

**Example request**

::: code-group

```bash [curl]
curl -X PUT 'https://api.bito.uz/integration-api/integration/api/v2/message-settings/set' \
  -H "api-key: $BITO_API_KEY" \
  -H 'Content-Type: application/json' \
  -d '{
  "bot_type": "CUSTOMER_BOT",
  "message_type": "TRADE"
}'
```

```js [JavaScript]
const res = await fetch('https://api.bito.uz/integration-api/integration/api/v2/message-settings/set', {
  method: 'PUT',
  headers: { 'api-key': process.env.BITO_API_KEY, 'Content-Type': 'application/json' },
  body: JSON.stringify({
    "bot_type": "CUSTOMER_BOT",
    "message_type": "TRADE"
  }),
})
const { code, data } = await res.json()
```

```python [Python]
import os
import requests

res = requests.request(
    "PUT",
    "https://api.bito.uz/integration-api/integration/api/v2/message-settings/set",
    headers={"api-key": os.environ["BITO_API_KEY"]},
    json={
        "bot_type": "CUSTOMER_BOT",
        "message_type": "TRADE",
    },
)
print(res.json())
```

```php [PHP]
<?php
$body = <<<'JSON'
{
  "bot_type": "CUSTOMER_BOT",
  "message_type": "TRADE"
}
JSON;

$ch = curl_init('https://api.bito.uz/integration-api/integration/api/v2/message-settings/set');
curl_setopt_array($ch, [
    CURLOPT_CUSTOMREQUEST => 'PUT',
    CURLOPT_HTTPHEADER => ['api-key: ' . getenv('BITO_API_KEY'), 'Content-Type: application/json'],
    CURLOPT_POSTFIELDS => $body,
    CURLOPT_RETURNTRANSFER => true,
]);
$response = json_decode(curl_exec($ch), true);
```

:::

**Request body**

| Field | Type | Required | Description |
|---|---|---|---|
| `bot_type` | `string` | Yes | Bot channel type. One of: `CUSTOMER_BOT`, `REPORT_BOT`, `SMS` |
| `message_type` | `string` | Yes | Business event category the settings apply to. One of: `TRADE`, `PURCHASE`, `TRANSACTION`, `TRANSFER`, `PRODUCTION`, `TASK` |
| `is_task_created` | `boolean` | No | Notify when a task is created |
| `is_task_closed` | `boolean` | No | Notify when a task is closed |
| `is_refund` | `object` | No |  |
| `is_refund.show` | `boolean` | Yes | Whether this field is shown in the message |
| `is_refund.position` | `integer` | Yes | Display position (0-based) |
| `sold_at` | `object` | No |  |
| `sold_at.show` | `boolean` | Yes | Whether this field is shown in the message |
| `sold_at.position` | `integer` | Yes | Display position (0-based) |
| `state` | `object` | No |  |
| `state.show` | `boolean` | Yes | Whether this field is shown in the message |
| `state.position` | `integer` | Yes | Display position (0-based) |
| `organization` | `object` | No |  |
| `organization.show` | `boolean` | Yes | Whether this field is shown in the message |
| `organization.position` | `integer` | Yes | Display position (0-based) |
| `seller` | `object` | No |  |
| `seller.show` | `boolean` | Yes | Whether this field is shown in the message |
| `seller.position` | `integer` | Yes | Display position (0-based) |
| `customer` | `object` | No |  |
| `customer.show` | `boolean` | Yes | Whether this field is shown in the message |
| `customer.position` | `integer` | Yes | Display position (0-based) |
| `note` | `object` | No |  |
| `note.show` | `boolean` | Yes | Whether this field is shown in the message |
| `note.position` | `integer` | Yes | Display position (0-based) |
| `total_amount` | `object` | No |  |
| `total_amount.show` | `boolean` | Yes | Whether this field is shown in the message |
| `total_amount.position` | `integer` | Yes | Display position (0-based) |
| `items` | `object` | No |  |
| `items.show` | `boolean` | Yes | Whether this field is shown in the message |
| `items.position` | `integer` | Yes | Display position (0-based) |
| `discount` | `object` | No |  |
| `discount.show` | `boolean` | Yes | Whether this field is shown in the message |
| `discount.position` | `integer` | Yes | Display position (0-based) |
| `included_tax` | `object` | No |  |
| `included_tax.show` | `boolean` | Yes | Whether this field is shown in the message |
| `included_tax.position` | `integer` | Yes | Display position (0-based) |
| `added_tax` | `object` | No |  |
| `added_tax.show` | `boolean` | Yes | Whether this field is shown in the message |
| `added_tax.position` | `integer` | Yes | Display position (0-based) |
| `total` | `object` | No |  |
| `total.show` | `boolean` | Yes | Whether this field is shown in the message |
| `total.position` | `integer` | Yes | Display position (0-based) |
| `payments` | `object` | No |  |
| `payments.show` | `boolean` | Yes | Whether this field is shown in the message |
| `payments.position` | `integer` | Yes | Display position (0-based) |
| `by_balance` | `object` | No |  |
| `by_balance.show` | `boolean` | Yes | Whether this field is shown in the message |
| `by_balance.position` | `integer` | Yes | Display position (0-based) |
| `is_installment_plan` | `object` | No |  |
| `is_installment_plan.show` | `boolean` | Yes | Whether this field is shown in the message |
| `is_installment_plan.position` | `integer` | Yes | Display position (0-based) |
| `debt` | `object` | No |  |
| `debt.show` | `boolean` | Yes | Whether this field is shown in the message |
| `debt.position` | `integer` | Yes | Display position (0-based) |
| `applied_cashbacks` | `object` | No |  |
| `applied_cashbacks.show` | `boolean` | Yes | Whether this field is shown in the message |
| `applied_cashbacks.position` | `integer` | Yes | Display position (0-based) |
| `initial_payment` | `object` | No |  |
| `initial_payment.show` | `boolean` | Yes | Whether this field is shown in the message |
| `initial_payment.position` | `integer` | Yes | Display position (0-based) |
| `purchase` | `object` | No |  |
| `purchase.show` | `boolean` | Yes | Whether this field is shown in the message |
| `purchase.position` | `integer` | Yes | Display position (0-based) |
| `balance` | `object` | No |  |
| `balance.show` | `boolean` | Yes | Whether this field is shown in the message |
| `balance.position` | `integer` | Yes | Display position (0-based) |
| `earned_cashback` | `object` | No |  |
| `earned_cashback.show` | `boolean` | Yes | Whether this field is shown in the message |
| `earned_cashback.position` | `integer` | Yes | Display position (0-based) |
| `marks` | `object` | No |  |
| `marks.show` | `boolean` | Yes | Whether this field is shown in the message |
| `marks.position` | `integer` | Yes | Display position (0-based) |
| `date` | `object` | No |  |
| `date.show` | `boolean` | Yes | Whether this field is shown in the message |
| `date.position` | `integer` | Yes | Display position (0-based) |
| `responsible` | `object` | No |  |
| `responsible.show` | `boolean` | Yes | Whether this field is shown in the message |
| `responsible.position` | `integer` | Yes | Display position (0-based) |
| `supplier` | `object` | No |  |
| `supplier.show` | `boolean` | Yes | Whether this field is shown in the message |
| `supplier.position` | `integer` | Yes | Display position (0-based) |
| `purchase_created_at` | `object` | No |  |
| `purchase_created_at.show` | `boolean` | Yes | Whether this field is shown in the message |
| `purchase_created_at.position` | `integer` | Yes | Display position (0-based) |
| `orders` | `object` | No |  |
| `orders.show` | `boolean` | Yes | Whether this field is shown in the message |
| `orders.position` | `integer` | Yes | Display position (0-based) |
| `transaction` | `object` | No |  |
| `transaction.show` | `boolean` | Yes | Whether this field is shown in the message |
| `transaction.position` | `integer` | Yes | Display position (0-based) |
| `transaction_type` | `object` | No |  |
| `transaction_type.show` | `boolean` | Yes | Whether this field is shown in the message |
| `transaction_type.position` | `integer` | Yes | Display position (0-based) |
| `cashbox` | `object` | No |  |
| `cashbox.show` | `boolean` | Yes | Whether this field is shown in the message |
| `cashbox.position` | `integer` | Yes | Display position (0-based) |
| `cashier` | `object` | No |  |
| `cashier.show` | `boolean` | Yes | Whether this field is shown in the message |
| `cashier.position` | `integer` | Yes | Display position (0-based) |
| `invoice` | `object` | No |  |
| `invoice.show` | `boolean` | Yes | Whether this field is shown in the message |
| `invoice.position` | `integer` | Yes | Display position (0-based) |
| `trade` | `object` | No |  |
| `trade.show` | `boolean` | Yes | Whether this field is shown in the message |
| `trade.position` | `integer` | Yes | Display position (0-based) |
| `employee` | `object` | No |  |
| `employee.show` | `boolean` | Yes | Whether this field is shown in the message |
| `employee.position` | `integer` | Yes | Display position (0-based) |
| `person` | `object` | No |  |
| `person.show` | `boolean` | Yes | Whether this field is shown in the message |
| `person.position` | `integer` | Yes | Display position (0-based) |
| `amount` | `object` | No |  |
| `amount.show` | `boolean` | Yes | Whether this field is shown in the message |
| `amount.position` | `integer` | Yes | Display position (0-based) |
| `payment_method` | `object` | No |  |
| `payment_method.show` | `boolean` | Yes | Whether this field is shown in the message |
| `payment_method.position` | `integer` | Yes | Display position (0-based) |
| `payment_type` | `object` | No |  |
| `payment_type.show` | `boolean` | Yes | Whether this field is shown in the message |
| `payment_type.position` | `integer` | Yes | Display position (0-based) |
| `production_number` | `object` | No |  |
| `production_number.show` | `boolean` | Yes | Whether this field is shown in the message |
| `production_number.position` | `integer` | Yes | Display position (0-based) |
| `used_warehouse` | `object` | No |  |
| `used_warehouse.show` | `boolean` | Yes | Whether this field is shown in the message |
| `used_warehouse.position` | `integer` | Yes | Display position (0-based) |
| `produced_warehouse` | `object` | No |  |
| `produced_warehouse.show` | `boolean` | Yes | Whether this field is shown in the message |
| `produced_warehouse.position` | `integer` | Yes | Display position (0-based) |
| `used_date` | `object` | No |  |
| `used_date.show` | `boolean` | Yes | Whether this field is shown in the message |
| `used_date.position` | `integer` | Yes | Display position (0-based) |
| `produced_date` | `object` | No |  |
| `produced_date.show` | `boolean` | Yes | Whether this field is shown in the message |
| `produced_date.position` | `integer` | Yes | Display position (0-based) |
| `currency` | `object` | No |  |
| `currency.show` | `boolean` | Yes | Whether this field is shown in the message |
| `currency.position` | `integer` | Yes | Display position (0-based) |
| `route_sheet` | `object` | No |  |
| `route_sheet.show` | `boolean` | Yes | Whether this field is shown in the message |
| `route_sheet.position` | `integer` | Yes | Display position (0-based) |
| `production_created_by` | `object` | No |  |
| `production_created_by.show` | `boolean` | Yes | Whether this field is shown in the message |
| `production_created_by.position` | `integer` | Yes | Display position (0-based) |
| `production_code` | `object` | No |  |
| `production_code.show` | `boolean` | Yes | Whether this field is shown in the message |
| `production_code.position` | `integer` | Yes | Display position (0-based) |
| `total_produced` | `object` | No |  |
| `total_produced.show` | `boolean` | Yes | Whether this field is shown in the message |
| `total_produced.position` | `integer` | Yes | Display position (0-based) |
| `total_used` | `object` | No |  |
| `total_used.show` | `boolean` | Yes | Whether this field is shown in the message |
| `total_used.position` | `integer` | Yes | Display position (0-based) |
| `total_cost` | `object` | No |  |
| `total_cost.show` | `boolean` | Yes | Whether this field is shown in the message |
| `total_cost.position` | `integer` | Yes | Display position (0-based) |
| `total_expense` | `object` | No |  |
| `total_expense.show` | `boolean` | Yes | Whether this field is shown in the message |
| `total_expense.position` | `integer` | Yes | Display position (0-based) |
| `link` | `object` | No |  |
| `link.show` | `boolean` | Yes | Whether this field is shown in the message |
| `link.position` | `integer` | Yes | Display position (0-based) |
| `state_changes` | `object` | No |  |
| `state_changes.show` | `boolean` | Yes | Whether this field is shown in the message |
| `state_changes.position` | `integer` | Yes | Display position (0-based) |
| `state_change` | `object` | No |  |
| `state_change.show` | `boolean` | Yes | Whether this field is shown in the message |
| `state_change.position` | `integer` | Yes | Display position (0-based) |
| `transfer` | `object` | No |  |
| `transfer.show` | `boolean` | Yes | Whether this field is shown in the message |
| `transfer.position` | `integer` | Yes | Display position (0-based) |
| `sender_organization` | `object` | No |  |
| `sender_organization.show` | `boolean` | Yes | Whether this field is shown in the message |
| `sender_organization.position` | `integer` | Yes | Display position (0-based) |
| `receiver_organization` | `object` | No |  |
| `receiver_organization.show` | `boolean` | Yes | Whether this field is shown in the message |
| `receiver_organization.position` | `integer` | Yes | Display position (0-based) |
| `sender_warehouse` | `object` | No |  |
| `sender_warehouse.show` | `boolean` | Yes | Whether this field is shown in the message |
| `sender_warehouse.position` | `integer` | Yes | Display position (0-based) |
| `sender_employee` | `object` | No |  |
| `sender_employee.show` | `boolean` | Yes | Whether this field is shown in the message |
| `sender_employee.position` | `integer` | Yes | Display position (0-based) |
| `reason` | `object` | No |  |
| `reason.show` | `boolean` | Yes | Whether this field is shown in the message |
| `reason.position` | `integer` | Yes | Display position (0-based) |
| `products` | `object` | No |  |
| `products.show` | `boolean` | Yes | Whether this field is shown in the message |
| `products.position` | `integer` | Yes | Display position (0-based) |
| `customer_balance` | `object` | No |  |
| `customer_balance.show` | `boolean` | Yes | Whether this field is shown in the message |
| `customer_balance.position` | `integer` | Yes | Display position (0-based) |
| `transfer_created_at` | `object` | No |  |
| `transfer_created_at.show` | `boolean` | Yes | Whether this field is shown in the message |
| `transfer_created_at.position` | `integer` | Yes | Display position (0-based) |
| `production_created_at` | `object` | No |  |
| `production_created_at.show` | `boolean` | Yes | Whether this field is shown in the message |
| `production_created_at.position` | `integer` | Yes | Display position (0-based) |
| `change` | `object` | No |  |
| `change.show` | `boolean` | Yes | Whether this field is shown in the message |
| `change.position` | `integer` | Yes | Display position (0-based) |
| `sign_amount` | `object` | No |  |
| `sign_amount.show` | `boolean` | Yes | Whether this field is shown in the message |
| `sign_amount.position` | `integer` | Yes | Display position (0-based) |
| `number` | `object` | No |  |
| `number.show` | `boolean` | Yes | Whether this field is shown in the message |
| `number.position` | `integer` | Yes | Display position (0-based) |
| `transaction_created_by` | `object` | No |  |
| `transaction_created_by.show` | `boolean` | Yes | Whether this field is shown in the message |
| `transaction_created_by.position` | `integer` | Yes | Display position (0-based) |
| `device_name` | `object` | No |  |
| `device_name.show` | `boolean` | Yes | Whether this field is shown in the message |
| `device_name.position` | `integer` | Yes | Display position (0-based) |
| `total_discount` | `object` | No |  |
| `total_discount.show` | `boolean` | Yes | Whether this field is shown in the message |
| `total_discount.position` | `integer` | Yes | Display position (0-based) |
| `task_type` | `object` | No |  |
| `task_type.show` | `boolean` | Yes | Whether this field is shown in the message |
| `task_type.position` | `integer` | Yes | Display position (0-based) |
| `task_description` | `object` | No |  |
| `task_description.show` | `boolean` | Yes | Whether this field is shown in the message |
| `task_description.position` | `integer` | Yes | Display position (0-based) |
| `result` | `object` | No |  |
| `result.show` | `boolean` | Yes | Whether this field is shown in the message |
| `result.position` | `integer` | Yes | Display position (0-based) |
| `task_deadline` | `object` | No |  |
| `task_deadline.show` | `boolean` | Yes | Whether this field is shown in the message |
| `task_deadline.position` | `integer` | Yes | Display position (0-based) |
| `task_created_at` | `object` | No |  |
| `task_created_at.show` | `boolean` | Yes | Whether this field is shown in the message |
| `task_created_at.position` | `integer` | Yes | Display position (0-based) |
| `phone_number` | `object` | No |  |
| `phone_number.show` | `boolean` | Yes | Whether this field is shown in the message |
| `phone_number.position` | `integer` | Yes | Display position (0-based) |
| `currency_rate` | `object` | No |  |
| `currency_rate.show` | `boolean` | Yes |  |
| `currency_rate.position` | `number` | Yes |  |
| `supplier_balance` | `object` | No |  |
| `supplier_balance.show` | `boolean` | Yes |  |
| `supplier_balance.position` | `number` | Yes |  |

```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
  },
  "currency_rate": {
    "show": false,
    "position": 0
  },
  "supplier_balance": {
    "show": false,
    "position": 0
  }
}
```

**Response**

Same response shape as [POST /message-settings/get](#post-message-settings-get).

---

*This page is generated from the OpenAPI spec.*
