# Extra cost

::: 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 /extra-cost/create

This method allows adding extra-cost into the account.

**Kerakli ruxsat:** `extra_cost_create` · [ruxsatlar qanday ishlaydi](https://docs.bito.uz/api/permissions.md)

**So‘rov namunasi**

::: code-group

```bash [curl]
curl -X POST 'https://api.bito.uz/integration-api/integration/api/v2/extra-cost/create' \
  -H "api-key: $BITO_API_KEY" \
  -H 'Content-Type: application/json' \
  -d '{
  "name": "string",
  "is_affect_price": false,
  "recommended_amount": 0,
  "max_amount": 0,
  "currency_id": "646b0c2f3d4e1a001f8b4567",
  "payment_type_id": "646b0c2f3d4e1a001f8b4567",
  "status": "active"
}'
```

```js [JavaScript]
const res = await fetch('https://api.bito.uz/integration-api/integration/api/v2/extra-cost/create', {
  method: 'POST',
  headers: { 'api-key': process.env.BITO_API_KEY, 'Content-Type': 'application/json' },
  body: JSON.stringify({
    "name": "string",
    "is_affect_price": false,
    "recommended_amount": 0,
    "max_amount": 0,
    "currency_id": "646b0c2f3d4e1a001f8b4567",
    "payment_type_id": "646b0c2f3d4e1a001f8b4567",
    "status": "active"
  }),
})
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/extra-cost/create",
    headers={"api-key": os.environ["BITO_API_KEY"]},
    json={
        "name": "string",
        "is_affect_price": False,
        "recommended_amount": 0,
        "max_amount": 0,
        "currency_id": "646b0c2f3d4e1a001f8b4567",
        "payment_type_id": "646b0c2f3d4e1a001f8b4567",
        "status": "active",
    },
)
print(res.json())
```

```php [PHP]
<?php
$body = <<<'JSON'
{
  "name": "string",
  "is_affect_price": false,
  "recommended_amount": 0,
  "max_amount": 0,
  "currency_id": "646b0c2f3d4e1a001f8b4567",
  "payment_type_id": "646b0c2f3d4e1a001f8b4567",
  "status": "active"
}
JSON;

$ch = curl_init('https://api.bito.uz/integration-api/integration/api/v2/extra-cost/create');
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);
```

:::

**So‘rov tanasi**

| Maydon | Tur | Majburiy | Tavsif |
|---|---|---|---|
| `name` | `string` | Ha |  |
| `is_affect_price` | `boolean` | Ha | Standart: `false` |
| `distribution_method` | `string` | Yo‘q | Required when `is_affect_price` is true.. Mumkin qiymatlar: `byPrice`, `byAmount`, `byGrossWeight`, `byVolume`, `manual`. Standart: `"byPrice"` |
| `recommended_amount` | `number` | Ha | Standart: `0` |
| `max_amount` | `number` | Ha | Standart: `0` |
| `currency_id` | `string` | Ha |  |
| `payment_type_id` | `string` | Ha |  |
| `user_type` | `string` | Yo‘q | Mumkin qiymatlar: `supplier`, `employee`, `customer`, `person`, `other`. Standart: `"supplier"` |
| `customer_id` | `string` | Yo‘q |  |
| `supplier_id` | `string` | Yo‘q |  |
| `employee_id` | `string` | Yo‘q |  |
| `person_id` | `string` | Yo‘q |  |
| `status` | `string` | Ha | Mumkin qiymatlar: `active`, `inactive`. Standart: `"active"` |
| `note` | `string` | Yo‘q |  |

```json
{
  "name": "string",
  "is_affect_price": false,
  "distribution_method": "byPrice",
  "recommended_amount": 0,
  "max_amount": 0,
  "currency_id": "646b0c2f3d4e1a001f8b4567",
  "payment_type_id": "646b0c2f3d4e1a001f8b4567",
  "user_type": "supplier",
  "customer_id": "646b0c2f3d4e1a001f8b4567",
  "supplier_id": "646b0c2f3d4e1a001f8b4567",
  "employee_id": "646b0c2f3d4e1a001f8b4567",
  "person_id": "646b0c2f3d4e1a001f8b4567",
  "status": "active",
  "note": "string"
}
```

**Javob**

| Maydon | Tur | Tavsif |
|---|---|---|
| `name` | `string` |  |
| `is_affect_price` | `boolean` |  |
| `distribution_method` | `string` |  |
| `amount` | `number` |  |
| `should_create_transaction` | `boolean` |  |
| `recommended_amount` | `number` |  |
| `max_amount` | `number` |  |
| `note` | `string` |  |
| `status` | `string` | Mumkin qiymatlar: `active`, `inactive` |
| `payment_type` | `object` |  |
| `payment_type._id` | `string` |  |
| `payment_type.name` | `string` |  |
| `payment_type.user_type` | `string` |  |
| `currency_id` | `string` |  |
| `currency` | `object` |  |
| `currency._id` | `string` |  |
| `currency.name` | `string` |  |
| `updated_by_user` | `object` |  |
| `updated_by_user._id` | `string` |  |
| `updated_by_user.full_name` | `string` |  |
| `created_by_user` | `object` |  |
| `created_by_user._id` | `string` |  |
| `created_by_user.full_name` | `string` |  |
| `employee` | `object` |  |
| `employee._id` | `string` |  |
| `employee.full_name` | `string` |  |
| `customer` | `object` |  |
| `customer._id` | `string` |  |
| `customer.name` | `string` |  |
| `supplier` | `object` |  |
| `supplier._id` | `string` |  |
| `supplier.name` | `string` |  |
| `person` | `object` |  |
| `person._id` | `string` |  |
| `person.name` | `string` |  |

```json
{
  "code": 0,
  "message": "Success",
  "status_code": 200,
  "data": {
    "name": "string",
    "is_affect_price": false,
    "distribution_method": "string",
    "amount": 0,
    "should_create_transaction": false,
    "recommended_amount": 0,
    "max_amount": 0,
    "note": "string",
    "status": "active",
    "payment_type": {
      "_id": "string",
      "name": "string",
      "user_type": "string"
    },
    "currency_id": "string",
    "currency": {
      "_id": "string",
      "name": "string"
    },
    "updated_by_user": {
      "_id": "string",
      "full_name": "string"
    },
    "created_by_user": {
      "_id": "string",
      "full_name": "string"
    },
    "employee": {
      "_id": "string",
      "full_name": "string"
    },
    "customer": {
      "_id": "string",
      "name": "string"
    },
    "supplier": {
      "_id": "string",
      "name": "string"
    },
    "person": {
      "_id": "string",
      "name": "string"
    }
  },
  "time": "2025-05-01T12:00:00Z"
}
```

## PUT /extra-cost/update

This method allows updating extra-cost in the account.

**Kerakli ruxsat:** `extra_cost_update` · [ruxsatlar qanday ishlaydi](https://docs.bito.uz/api/permissions.md)

**So‘rov namunasi**

::: code-group

```bash [curl]
curl -X PUT 'https://api.bito.uz/integration-api/integration/api/v2/extra-cost/update' \
  -H "api-key: $BITO_API_KEY" \
  -H 'Content-Type: application/json' \
  -d '{
  "name": "string",
  "is_affect_price": false,
  "recommended_amount": 0,
  "max_amount": 0,
  "currency_id": "646b0c2f3d4e1a001f8b4567",
  "payment_type_id": "646b0c2f3d4e1a001f8b4567",
  "status": "active",
  "_id": "646b0c2f3d4e1a001f8b4567"
}'
```

```js [JavaScript]
const res = await fetch('https://api.bito.uz/integration-api/integration/api/v2/extra-cost/update', {
  method: 'PUT',
  headers: { 'api-key': process.env.BITO_API_KEY, 'Content-Type': 'application/json' },
  body: JSON.stringify({
    "name": "string",
    "is_affect_price": false,
    "recommended_amount": 0,
    "max_amount": 0,
    "currency_id": "646b0c2f3d4e1a001f8b4567",
    "payment_type_id": "646b0c2f3d4e1a001f8b4567",
    "status": "active",
    "_id": "646b0c2f3d4e1a001f8b4567"
  }),
})
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/extra-cost/update",
    headers={"api-key": os.environ["BITO_API_KEY"]},
    json={
        "name": "string",
        "is_affect_price": False,
        "recommended_amount": 0,
        "max_amount": 0,
        "currency_id": "646b0c2f3d4e1a001f8b4567",
        "payment_type_id": "646b0c2f3d4e1a001f8b4567",
        "status": "active",
        "_id": "646b0c2f3d4e1a001f8b4567",
    },
)
print(res.json())
```

```php [PHP]
<?php
$body = <<<'JSON'
{
  "name": "string",
  "is_affect_price": false,
  "recommended_amount": 0,
  "max_amount": 0,
  "currency_id": "646b0c2f3d4e1a001f8b4567",
  "payment_type_id": "646b0c2f3d4e1a001f8b4567",
  "status": "active",
  "_id": "646b0c2f3d4e1a001f8b4567"
}
JSON;

$ch = curl_init('https://api.bito.uz/integration-api/integration/api/v2/extra-cost/update');
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);
```

:::

**So‘rov tanasi**

| Maydon | Tur | Majburiy | Tavsif |
|---|---|---|---|
| `_id` | `string` | Ha |  |
| `name` | `string` | Ha |  |
| `is_affect_price` | `boolean` | Ha | Standart: `false` |
| `distribution_method` | `string` | Yo‘q | Required when `is_affect_price` is true.. Mumkin qiymatlar: `byPrice`, `byAmount`, `byGrossWeight`, `byVolume`, `manual`. Standart: `"byPrice"` |
| `recommended_amount` | `number` | Ha | Standart: `0` |
| `max_amount` | `number` | Ha | Standart: `0` |
| `currency_id` | `string` | Ha |  |
| `payment_type_id` | `string` | Ha |  |
| `user_type` | `string` | Yo‘q | Mumkin qiymatlar: `supplier`, `employee`, `customer`, `person`, `other`. Standart: `"supplier"` |
| `customer_id` | `string` | Yo‘q |  |
| `supplier_id` | `string` | Yo‘q |  |
| `employee_id` | `string` | Yo‘q |  |
| `person_id` | `string` | Yo‘q |  |
| `status` | `string` | Ha | Mumkin qiymatlar: `active`, `inactive`. Standart: `"active"` |
| `note` | `string` | Yo‘q |  |

```json
{
  "_id": "646b0c2f3d4e1a001f8b4567",
  "name": "string",
  "is_affect_price": false,
  "distribution_method": "byPrice",
  "recommended_amount": 0,
  "max_amount": 0,
  "currency_id": "646b0c2f3d4e1a001f8b4567",
  "payment_type_id": "646b0c2f3d4e1a001f8b4567",
  "user_type": "supplier",
  "customer_id": "646b0c2f3d4e1a001f8b4567",
  "supplier_id": "646b0c2f3d4e1a001f8b4567",
  "employee_id": "646b0c2f3d4e1a001f8b4567",
  "person_id": "646b0c2f3d4e1a001f8b4567",
  "status": "active",
  "note": "string"
}
```

**Javob**

Javob tuzilishi quyidagi bilan bir xil: [POST /extra-cost/create](#post-extra-cost-create).

## DELETE /extra-cost/delete/{id}

Delete a extra-cost

**Kerakli ruxsat:** `extra_cost_delete` · [ruxsatlar qanday ishlaydi](https://docs.bito.uz/api/permissions.md)

**So‘rov namunasi**

::: code-group

```bash [curl]
curl -X DELETE 'https://api.bito.uz/integration-api/integration/api/v2/extra-cost/delete/6712f0a9c4d1e87b3a0f9911' \
  -H "api-key: $BITO_API_KEY"
```

```js [JavaScript]
const res = await fetch('https://api.bito.uz/integration-api/integration/api/v2/extra-cost/delete/6712f0a9c4d1e87b3a0f9911', {
  method: 'DELETE',
  headers: { 'api-key': process.env.BITO_API_KEY },
})
const { code, data } = await res.json()
```

```python [Python]
import os
import requests

res = requests.request(
    "DELETE",
    "https://api.bito.uz/integration-api/integration/api/v2/extra-cost/delete/6712f0a9c4d1e87b3a0f9911",
    headers={"api-key": os.environ["BITO_API_KEY"]},
)
print(res.json())
```

```php [PHP]
<?php
$ch = curl_init('https://api.bito.uz/integration-api/integration/api/v2/extra-cost/delete/6712f0a9c4d1e87b3a0f9911');
curl_setopt_array($ch, [
    CURLOPT_CUSTOMREQUEST => 'DELETE',
    CURLOPT_HTTPHEADER => ['api-key: ' . getenv('BITO_API_KEY')],
    CURLOPT_RETURNTRANSFER => true,
]);
$response = json_decode(curl_exec($ch), true);
```

:::

**Yo‘l parametrlari**

| Parametr | Tur | Majburiy | Tavsif |
|---|---|---|---|
| `id` | `string` | Ha |  |

**So‘rov tanasi**

So‘rov tanasi talab qilinmaydi.

**Javob**

```json
{
  "code": 0,
  "message": "Success",
  "status_code": 200,
  "data": "ok",
  "time": "2025-05-01T12:00:00Z"
}
```

## GET /extra-cost/get-all

Get all extra-costs

**Kerakli ruxsat:** `extra_cost` · [ruxsatlar qanday ishlaydi](https://docs.bito.uz/api/permissions.md)

**So‘rov namunasi**

::: code-group

```bash [curl]
curl -X GET 'https://api.bito.uz/integration-api/integration/api/v2/extra-cost/get-all' \
  -H "api-key: $BITO_API_KEY"
```

```js [JavaScript]
const res = await fetch('https://api.bito.uz/integration-api/integration/api/v2/extra-cost/get-all', {
  method: 'GET',
  headers: { 'api-key': process.env.BITO_API_KEY },
})
const { code, data } = await res.json()
```

```python [Python]
import os
import requests

res = requests.request(
    "GET",
    "https://api.bito.uz/integration-api/integration/api/v2/extra-cost/get-all",
    headers={"api-key": os.environ["BITO_API_KEY"]},
)
print(res.json())
```

```php [PHP]
<?php
$ch = curl_init('https://api.bito.uz/integration-api/integration/api/v2/extra-cost/get-all');
curl_setopt_array($ch, [
    CURLOPT_CUSTOMREQUEST => 'GET',
    CURLOPT_HTTPHEADER => ['api-key: ' . getenv('BITO_API_KEY')],
    CURLOPT_RETURNTRANSFER => true,
]);
$response = json_decode(curl_exec($ch), true);
```

:::

**So‘rov parametrlari**

| Parametr | Tur | Majburiy | Tavsif |
|---|---|---|---|
| `status` | `string` | Yo‘q | Mumkin qiymatlar: `active`, `inactive` |
| `distribution_method_ne` | `string` | Yo‘q | Mumkin qiymatlar: `byPrice`, `byAmount`, `byGrossWeight`, `byVolume`, `manual` |

**So‘rov tanasi**

So‘rov tanasi talab qilinmaydi.

**Javob**

```json
{
  "code": 0,
  "message": "Success",
  "status_code": 200,
  "data": [
    {
      "name": "string",
      "is_affect_price": false,
      "distribution_method": "string",
      "amount": 0,
      "should_create_transaction": false,
      "recommended_amount": 0,
      "max_amount": 0,
      "note": "string",
      "status": "active",
      "payment_type": {
        "_id": "string",
        "name": "string",
        "user_type": "string"
      },
      "currency_id": "string",
      "currency": {
        "_id": "string",
        "name": "string"
      },
      "updated_by_user": {
        "_id": "string",
        "full_name": "string"
      },
      "created_by_user": {
        "_id": "string",
        "full_name": "string"
      },
      "employee": {
        "_id": "string",
        "full_name": "string"
      },
      "customer": {
        "_id": "string",
        "name": "string"
      },
      "supplier": {
        "_id": "string",
        "name": "string"
      },
      "person": {
        "_id": "string",
        "name": "string"
      }
    }
  ],
  "time": "2025-05-01T12:00:00Z"
}
```

## GET /extra-cost/get-by-id/{id}

Get extra-cost using its _id

**Kerakli ruxsat:** `extra_cost` · [ruxsatlar qanday ishlaydi](https://docs.bito.uz/api/permissions.md)

**So‘rov namunasi**

::: code-group

```bash [curl]
curl -X GET 'https://api.bito.uz/integration-api/integration/api/v2/extra-cost/get-by-id/6712f0a9c4d1e87b3a0f9911' \
  -H "api-key: $BITO_API_KEY"
```

```js [JavaScript]
const res = await fetch('https://api.bito.uz/integration-api/integration/api/v2/extra-cost/get-by-id/6712f0a9c4d1e87b3a0f9911', {
  method: 'GET',
  headers: { 'api-key': process.env.BITO_API_KEY },
})
const { code, data } = await res.json()
```

```python [Python]
import os
import requests

res = requests.request(
    "GET",
    "https://api.bito.uz/integration-api/integration/api/v2/extra-cost/get-by-id/6712f0a9c4d1e87b3a0f9911",
    headers={"api-key": os.environ["BITO_API_KEY"]},
)
print(res.json())
```

```php [PHP]
<?php
$ch = curl_init('https://api.bito.uz/integration-api/integration/api/v2/extra-cost/get-by-id/6712f0a9c4d1e87b3a0f9911');
curl_setopt_array($ch, [
    CURLOPT_CUSTOMREQUEST => 'GET',
    CURLOPT_HTTPHEADER => ['api-key: ' . getenv('BITO_API_KEY')],
    CURLOPT_RETURNTRANSFER => true,
]);
$response = json_decode(curl_exec($ch), true);
```

:::

**Yo‘l parametrlari**

| Parametr | Tur | Majburiy | Tavsif |
|---|---|---|---|
| `id` | `string` | Ha |  |

**So‘rov tanasi**

So‘rov tanasi talab qilinmaydi.

**Javob**

Javob tuzilishi quyidagi bilan bir xil: [POST /extra-cost/create](#post-extra-cost-create).

## GET /extra-cost/get-deleted

Get deleted extra-cost ids

**Kerakli ruxsat:** `extra_cost` · [ruxsatlar qanday ishlaydi](https://docs.bito.uz/api/permissions.md)

**So‘rov namunasi**

::: code-group

```bash [curl]
curl -X GET 'https://api.bito.uz/integration-api/integration/api/v2/extra-cost/get-deleted?deleted_at=DELETED_AT' \
  -H "api-key: $BITO_API_KEY"
```

```js [JavaScript]
const res = await fetch('https://api.bito.uz/integration-api/integration/api/v2/extra-cost/get-deleted?deleted_at=DELETED_AT', {
  method: 'GET',
  headers: { 'api-key': process.env.BITO_API_KEY },
})
const { code, data } = await res.json()
```

```python [Python]
import os
import requests

res = requests.request(
    "GET",
    "https://api.bito.uz/integration-api/integration/api/v2/extra-cost/get-deleted?deleted_at=DELETED_AT",
    headers={"api-key": os.environ["BITO_API_KEY"]},
)
print(res.json())
```

```php [PHP]
<?php
$ch = curl_init('https://api.bito.uz/integration-api/integration/api/v2/extra-cost/get-deleted?deleted_at=DELETED_AT');
curl_setopt_array($ch, [
    CURLOPT_CUSTOMREQUEST => 'GET',
    CURLOPT_HTTPHEADER => ['api-key: ' . getenv('BITO_API_KEY')],
    CURLOPT_RETURNTRANSFER => true,
]);
$response = json_decode(curl_exec($ch), true);
```

:::

**So‘rov parametrlari**

| Parametr | Tur | Majburiy | Tavsif |
|---|---|---|---|
| `deleted_at` | `string` | Ha |  |

**So‘rov tanasi**

So‘rov tanasi talab qilinmaydi.

**Javob**

```json
{
  "code": 0,
  "message": "Success",
  "status_code": 200,
  "data": [
    "string"
  ],
  "time": "2025-05-01T12:00:00Z"
}
```

## POST /extra-cost/get-paging

Get extra-cost by paging

**Kerakli ruxsat:** `extra_cost` · [ruxsatlar qanday ishlaydi](https://docs.bito.uz/api/permissions.md)

**So‘rov namunasi**

::: code-group

```bash [curl]
curl -X POST 'https://api.bito.uz/integration-api/integration/api/v2/extra-cost/get-paging' \
  -H "api-key: $BITO_API_KEY" \
  -H 'Content-Type: application/json' \
  -d '{
  "page": 1,
  "limit": 20
}'
```

```js [JavaScript]
const res = await fetch('https://api.bito.uz/integration-api/integration/api/v2/extra-cost/get-paging', {
  method: 'POST',
  headers: { 'api-key': process.env.BITO_API_KEY, 'Content-Type': 'application/json' },
  body: JSON.stringify({
    "page": 1,
    "limit": 20
  }),
})
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/extra-cost/get-paging",
    headers={"api-key": os.environ["BITO_API_KEY"]},
    json={
        "page": 1,
        "limit": 20,
    },
)
print(res.json())
```

```php [PHP]
<?php
$body = <<<'JSON'
{
  "page": 1,
  "limit": 20
}
JSON;

$ch = curl_init('https://api.bito.uz/integration-api/integration/api/v2/extra-cost/get-paging');
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);
```

:::

**So‘rov tanasi**

| Maydon | Tur | Majburiy | Tavsif |
|---|---|---|---|
| `page` | `number` | Ha | Standart: `1` |
| `limit` | `number` | Ha | Standart: `20` |
| `search` | `string` | Yo‘q |  |
| `distribution_method_ne` | `string` | Yo‘q | Mumkin qiymatlar: `byPrice`, `byAmount`, `byGrossWeight`, `byVolume`, `manual`. Standart: `"byPrice"` |
| `status` | `string` | Yo‘q | Mumkin qiymatlar: `active`, `inactive` |

```json
{
  "page": 1,
  "limit": 20,
  "search": "string",
  "distribution_method_ne": "byPrice",
  "status": "active"
}
```

**Javob**

`data.total` — jami yozuvlar soni, `data.data[]` — joriy sahifadagi yozuvlar. Quyidagi jadval bitta yozuvni tavsiflaydi.

| Maydon | Tur | Tavsif |
|---|---|---|
| `name` | `string` |  |
| `is_affect_price` | `boolean` |  |
| `distribution_method` | `string` |  |
| `amount` | `number` |  |
| `should_create_transaction` | `boolean` |  |
| `recommended_amount` | `number` |  |
| `max_amount` | `number` |  |
| `note` | `string` |  |
| `status` | `string` | Mumkin qiymatlar: `active`, `inactive` |
| `payment_type` | `object` |  |
| `payment_type._id` | `string` |  |
| `payment_type.name` | `string` |  |
| `payment_type.user_type` | `string` |  |
| `currency_id` | `string` |  |
| `currency` | `object` |  |
| `currency._id` | `string` |  |
| `currency.name` | `string` |  |
| `updated_by_user` | `object` |  |
| `updated_by_user._id` | `string` |  |
| `updated_by_user.full_name` | `string` |  |
| `created_by_user` | `object` |  |
| `created_by_user._id` | `string` |  |
| `created_by_user.full_name` | `string` |  |
| `employee` | `object` |  |
| `employee._id` | `string` |  |
| `employee.full_name` | `string` |  |
| `customer` | `object` |  |
| `customer._id` | `string` |  |
| `customer.name` | `string` |  |
| `supplier` | `object` |  |
| `supplier._id` | `string` |  |
| `supplier.name` | `string` |  |
| `person` | `object` |  |
| `person._id` | `string` |  |
| `person.name` | `string` |  |

```json
{
  "code": 0,
  "message": "Success",
  "status_code": 200,
  "data": {
    "total": 0,
    "data": [
      {
        "name": "string",
        "is_affect_price": false,
        "distribution_method": "string",
        "amount": 0,
        "should_create_transaction": false,
        "recommended_amount": 0,
        "max_amount": 0,
        "note": "string",
        "status": "active",
        "payment_type": {
          "_id": "string",
          "name": "string",
          "user_type": "string"
        },
        "currency_id": "string",
        "currency": {
          "_id": "string",
          "name": "string"
        },
        "updated_by_user": {
          "_id": "string",
          "full_name": "string"
        },
        "created_by_user": {
          "_id": "string",
          "full_name": "string"
        },
        "employee": {
          "_id": "string",
          "full_name": "string"
        },
        "customer": {
          "_id": "string",
          "name": "string"
        },
        "supplier": {
          "_id": "string",
          "name": "string"
        },
        "person": {
          "_id": "string",
          "name": "string"
        }
      }
    ]
  },
  "time": "2025-05-01T12:00:00Z"
}
```

---

*Bu sahifa OpenAPI spetsifikatsiyasidan yaratilgan.*
