# Bito Integration API > Bito is an ERP for businesses in Uzbekistan and Central Asia. This is the guide to its Integration API: authentication (API key or OAuth 2.0), webhooks, widgets and publishing. Exact parameters and responses of every method are in the OpenAPI spec. Other languages: [uz](https://docs.bito.uz/llms.txt), [ru](https://docs.bito.uz/ru/llms.txt) ## Getting started - [Overview](https://docs.bito.uz/en/guide/index.md): What a Bito integration is and how it is built, tested and published to the marketplace. - [Quick start](https://docs.bito.uz/en/guide/quick-start.md): Your first successful API call with an API key, in about five minutes. - [First sale](https://docs.bito.uz/en/guide/first-sale.md): From a fresh API key to a real sale visible in the admin panel: collect the ids you need, call trade/create and check the result. - [Becoming a Bito developer](https://docs.bito.uz/en/guide/developer-account.md) - [Verify in Bito](https://docs.bito.uz/en/guide/verify.md): Where a record created through the API shows up in the Bito admin panel, how to find what your integration created, and where to see webhook health. - [Common scenarios](https://docs.bito.uz/en/guide/scenarios.md): The four common integrations — storefront, online order, warehouse and BI — with the methods and webhooks for each, and what the API does not have. - [Create an integration](https://docs.bito.uz/en/guide/create.md): Creating a custom integration in the Bito admin panel: name, URLs, role and permissions. - [Your credentials](https://docs.bito.uz/en/guide/credentials.md): The three values issued when an integration is saved (client_id, client_secret, api_key) and how to store them. - [For AI agents](https://docs.bito.uz/en/guide/ai.md): Set up Claude Code, Codex or Cursor for the Bito API with one prompt; llms.txt, Markdown versions of every page, and the OpenAPI file. ## Recipes - [Online order](https://docs.bito.uz/en/guide/recipes/online-order.md): Writing an order from a website or bot into Bito: find or create the customer, get the price, create the order, follow its status, and turn it into a sale. - [External sale](https://docs.bito.uz/en/guide/recipes/sale.md): Recording a sale made at a till or on a marketplace in Bito: payment, effect on stock, duplicate protection and refunds. - [Catalog sync](https://docs.bito.uz/en/guide/recipes/catalog-sync.md): Pushing products, prices and stock from Bito to a website or marketplace: the first full load, incremental updates, deletes, and stock per warehouse. - [Stock and prices](https://docs.bito.uz/en/guide/recipes/stock-prices.md): Reading stock and prices from Bito and keeping an external catalog in step with them: warehouse counters, price lists, incremental updates and webhooks. - [Write-off](https://docs.bito.uz/en/guide/recipes/write-off.md): Writing off damaged, lost or consumed goods in Bito through the API: picking a reason and a responsible employee, creating the document, its stock effect and cancelling it. - [Sales export to BI](https://docs.bito.uz/en/guide/recipes/sales-export.md): Pulling sales, their lines, refunds and cash flow into a BI tool or 1C: incremental export, POS receipts, and ready-made reports. ## Concepts - [Data model](https://docs.bito.uz/en/guide/concepts/data-model.md): The main entities and how they reference each other: organization, warehouse, product, price, stock, customer, sale order, trade and transaction. - [Sale lifecycle](https://docs.bito.uz/en/guide/concepts/sale-lifecycle.md): The sale-order (order) and trade (sale) documents: their states, which API call moves between them, and the effect on stock and money. - [Warehouse documents](https://docs.bito.uz/en/guide/concepts/warehouse.md): Purchase, income, purchase return, transfer, write-off and stocktaking: what the API exposes, document states and their effect on stock. ## Building - [Calling the API](https://docs.bito.uz/en/guide/api.md): Base URL, auth headers, HTTP methods, response envelope, paging, soft delete and errors. - [OAuth 2.0 overview](https://docs.bito.uz/en/guide/oauth/index.md): OAuth 2.0: acting on behalf of a customer account, the two flows and the tokens. - [Install flow (Flow A)](https://docs.bito.uz/en/guide/oauth/install-flow.md): The marketplace flow: the customer installs inside Bito, and you exchange the code for tokens. - [Connect flow (Flow B)](https://docs.bito.uz/en/guide/oauth/connect-flow.md): The "Connect to Bito" flow that starts in your own product. - [Working with tokens](https://docs.bito.uz/en/guide/oauth/tokens.md): access_token and refresh_token: sending, refreshing, revoking, and rate limits. - [One-time tokens](https://docs.bito.uz/en/guide/oauth/one-time-tokens.md): The one-time JWT signed with your client secret, and verifying it without calling Bito. - [OAuth reference](https://docs.bito.uz/en/guide/oauth/reference.md): OAuth endpoints, parameters and error codes. - [Custom widgets overview](https://docs.bito.uz/en/guide/widget.md): Custom widgets: a ZIP front-end app that runs inside the Bito admin panel, with consent per release. - [Mount surfaces](https://docs.bito.uz/en/guide/widget-surfaces.md) - [The widget.zip format](https://docs.bito.uz/en/guide/widget-package.md) - [The CustomWidget lifecycle](https://docs.bito.uz/en/guide/widget-lifecycle.md) - [The bito SDK](https://docs.bito.uz/en/guide/widget-sdk.md) - [jQuery compatibility](https://docs.bito.uz/en/guide/widget-jquery.md) - [A widget for your own account](https://docs.bito.uz/en/guide/private-widget.md) - [Your app page](https://docs.bito.uz/en/guide/developer-app.md) - [Publishing a release](https://docs.bito.uz/en/guide/widget-release.md) - [Install & uninstall hooks](https://docs.bito.uz/en/guide/lifecycle-hooks.md): The server-to-server calls Bito makes when your integration is installed and uninstalled. - [Data webhooks](https://docs.bito.uz/en/guide/webhooks.md): Subscribing to data changes, verifying the signature, and what webhooks do not guarantee. - [Rotating credentials](https://docs.bito.uz/en/guide/rotate.md): Rotating the API key and the client secret without downtime. ## Publishing - [Checklist](https://docs.bito.uz/en/guide/checklist.md): What your integration must do before you submit it for review. - [Submit for review](https://docs.bito.uz/en/guide/submit.md): Submitting a finished integration for review. - [Review & publication](https://docs.bito.uz/en/guide/review.md): The review outcome: what happens on approval and on rejection. ## Reference - [Glossary](https://docs.bito.uz/en/guide/glossary.md): The API reference terms integrators confuse most, and the states of the main documents: order vs sale, purchase vs income, the two kinds of stock, price lists. - [Error codes](https://docs.bito.uz/en/guide/errors.md): The code values in Integration API errors: auth, permissions, validation, rate limit, sales, stock, customers and products. - [Diagnosing 403 and 404](https://docs.bito.uz/en/guide/403-404.md): Step-by-step checks for 403, 404 and 401: permissions, user roles, ip_whitelist, HTTP method and base URL. - [API changelog](https://docs.bito.uz/en/guide/changelog.md): Dated changes to the Integration API and its docs: new methods and fields, fixes, and removals. - [FAQ & troubleshooting](https://docs.bito.uz/en/guide/faq.md): A symptom map, plus questions on credentials, auth, webhooks, publishing and API behaviour. - [Support](https://docs.bito.uz/en/guide/support.md): How to reach support and what to include in your message. ## API - [OpenAPI 3.0 spec](https://docs.bito.uz/openapi.json): all 464 methods, the source of truth for agents - [API reference](https://docs.bito.uz/en/api/index.md): one page per resource, with code samples ## Optional - [Complete guide](https://docs.bito.uz/en/llms-full.txt): every page in one file