# API reference

Every endpoint of the Integration API. These pages are generated from the OpenAPI spec, so they always match the running API.

Base URL, authentication, response envelope and errors: [Calling the API](https://docs.bito.uz/en/guide/api.md).

<a href="../../openapi.json" download="bito-openapi.json">Download the OpenAPI file</a> — Import the spec into Postman, Insomnia or a client-code generator.

<a href="../../bito-api.postman_collection.json" download>Postman / Insomnia collection</a> — every method, ready to send; fill in only the `api_key` variable.

[Permissions](https://docs.bito.uz/en/api/permissions.md) — how permissions work.

## Resources

### Catalog

| Resource | Endpoints |
|---|---|
| [Product](https://docs.bito.uz/en/api/product.md) | 12 |
| [Category](https://docs.bito.uz/en/api/category.md) | 7 |
| [Attribute](https://docs.bito.uz/en/api/attribute.md) | 5 |
| [Custom field](https://docs.bito.uz/en/api/custom-field.md) | 2 |
| [Tag](https://docs.bito.uz/en/api/tag.md) | 5 |
| [Units of measure](https://docs.bito.uz/en/api/units-of-measure.md) | 7 |
| [Box types](https://docs.bito.uz/en/api/box-types.md) | 7 |
| [Price](https://docs.bito.uz/en/api/price.md) | 3 |
| [Discount](https://docs.bito.uz/en/api/discount.md) | 7 |

### Customers

| Resource | Endpoints |
|---|---|
| [Customer](https://docs.bito.uz/en/api/customer.md) | 8 |
| [Customer Bulk](https://docs.bito.uz/en/api/customer-bulk.md) | 1 |
| [Customer category](https://docs.bito.uz/en/api/customer-category.md) | 6 |
| [Person](https://docs.bito.uz/en/api/person.md) | 3 |
| [Balance](https://docs.bito.uz/en/api/balance.md) | 1 |
| [Cashback](https://docs.bito.uz/en/api/cashback.md) | 1 |
| [Cashback settings](https://docs.bito.uz/en/api/cashback-settings.md) | 7 |
| [Public lead form](https://docs.bito.uz/en/api/public-lead-form.md) | 5 |
| [Source](https://docs.bito.uz/en/api/source.md) | 2 |

### Sales

| Resource | Endpoints |
|---|---|
| [Trade](https://docs.bito.uz/en/api/trade.md) | 11 |
| [Sale order](https://docs.bito.uz/en/api/sale-order.md) | 9 |
| [Sale Order Bulk](https://docs.bito.uz/en/api/sale-order-bulk.md) | 2 |
| [Open ticket](https://docs.bito.uz/en/api/open-ticket.md) | 5 |
| [Booking table](https://docs.bito.uz/en/api/booking-table.md) | 6 |
| [Invoice](https://docs.bito.uz/en/api/invoice.md) | 5 |
| [Recon act](https://docs.bito.uz/en/api/recon-act.md) | 3 |
| [Task](https://docs.bito.uz/en/api/task.md) | 8 |
| [Task type](https://docs.bito.uz/en/api/task-type.md) | 2 |
| [Reason](https://docs.bito.uz/en/api/reason.md) | 5 |
| [Pipeline action](https://docs.bito.uz/en/api/pipeline-action.md) | 6 |
| [States](https://docs.bito.uz/en/api/states.md) | 1 |
| [States settings](https://docs.bito.uz/en/api/states-settings.md) | 5 |
| [Sms template](https://docs.bito.uz/en/api/sms-template.md) | 5 |

### Warehouse

| Resource | Endpoints |
|---|---|
| [Warehouse](https://docs.bito.uz/en/api/warehouse.md) | 4 |
| [Warehouse settings](https://docs.bito.uz/en/api/warehouse-settings.md) | 2 |
| [Product stock](https://docs.bito.uz/en/api/product-stock.md) | 2 |
| [Product warehouse](https://docs.bito.uz/en/api/product-warehouse.md) | 2 |
| [Internal transfer](https://docs.bito.uz/en/api/internal-transfer.md) | 6 |
| [Organizational transfer](https://docs.bito.uz/en/api/organizational-transfer.md) | 6 |
| [Revision](https://docs.bito.uz/en/api/revision.md) | 5 |
| [Write off](https://docs.bito.uz/en/api/write-off.md) | 4 |

### Purchasing

| Resource | Endpoints |
|---|---|
| [Purchase](https://docs.bito.uz/en/api/purchase.md) | 5 |
| [Purchase order](https://docs.bito.uz/en/api/purchase-order.md) | 4 |
| [Purchase return](https://docs.bito.uz/en/api/purchase-return.md) | 2 |
| [Supplier](https://docs.bito.uz/en/api/supplier.md) | 5 |
| [Extra cost](https://docs.bito.uz/en/api/extra-cost.md) | 7 |

### Finance

| Resource | Endpoints |
|---|---|
| [Transaction](https://docs.bito.uz/en/api/transaction.md) | 11 |
| [Income](https://docs.bito.uz/en/api/income.md) | 4 |
| [Payment method](https://docs.bito.uz/en/api/payment-method.md) | 7 |
| [Payment type](https://docs.bito.uz/en/api/payment-type.md) | 7 |
| [Tax](https://docs.bito.uz/en/api/tax.md) | 8 |
| [Cashbox](https://docs.bito.uz/en/api/cashbox.md) | 1 |
| [Cashbox session](https://docs.bito.uz/en/api/cashbox-session.md) | 5 |
| [Finance settings](https://docs.bito.uz/en/api/finance-settings.md) | 2 |
| [Currency](https://docs.bito.uz/en/api/currency.md) | 4 |

### Production

| Resource | Endpoints |
|---|---|
| [Production operation](https://docs.bito.uz/en/api/production-operation.md) | 5 |
| [Production route sheet](https://docs.bito.uz/en/api/production-route-sheet.md) | 8 |
| [Production tech map](https://docs.bito.uz/en/api/production-tech-map.md) | 5 |
| [Production group](https://docs.bito.uz/en/api/production-group.md) | 5 |
| [Production order](https://docs.bito.uz/en/api/production-order.md) | 5 |
| [Production plan](https://docs.bito.uz/en/api/production-plan.md) | 6 |
| [Production step](https://docs.bito.uz/en/api/production-step.md) | 5 |
| [Production task](https://docs.bito.uz/en/api/production-task.md) | 8 |

### Staff

| Resource | Endpoints |
|---|---|
| [Employee](https://docs.bito.uz/en/api/employee.md) | 7 |
| [Role](https://docs.bito.uz/en/api/role.md) | 5 |
| [Position](https://docs.bito.uz/en/api/position.md) | 5 |
| [Section](https://docs.bito.uz/en/api/section.md) | 5 |
| [Kpi settings](https://docs.bito.uz/en/api/kpi-settings.md) | 6 |
| [Device](https://docs.bito.uz/en/api/device.md) | 6 |

### Reports

| Resource | Endpoints |
|---|---|
| [Report](https://docs.bito.uz/en/api/report.md) | 7 |
| [Report dashboard](https://docs.bito.uz/en/api/report-dashboard.md) | 20 |
| [Report sales](https://docs.bito.uz/en/api/report-sales.md) | 12 |
| [Report pos](https://docs.bito.uz/en/api/report-pos.md) | 31 |
| [Report finance](https://docs.bito.uz/en/api/report-finance.md) | 14 |
| [Report warehouse](https://docs.bito.uz/en/api/report-warehouse.md) | 5 |
| [Report production](https://docs.bito.uz/en/api/report-production.md) | 4 |
| [Report distribution](https://docs.bito.uz/en/api/report-distribution.md) | 4 |
| [Report analysis](https://docs.bito.uz/en/api/report-analysis.md) | 3 |

### Platform

| Resource | Endpoints |
|---|---|
| [Organization](https://docs.bito.uz/en/api/organization.md) | 2 |
| [Profile](https://docs.bito.uz/en/api/profile.md) | 1 |
| [Sale settings](https://docs.bito.uz/en/api/sale-settings.md) | 2 |
| [Marketing settings](https://docs.bito.uz/en/api/marketing-settings.md) | 2 |
| [Message settings](https://docs.bito.uz/en/api/message-settings.md) | 2 |
| [Reminder settings](https://docs.bito.uz/en/api/reminder-settings.md) | 2 |
| [File](https://docs.bito.uz/en/api/file.md) | 3 |
| [Export records](https://docs.bito.uz/en/api/export-records.md) | 4 |
