Skip to content
View as Markdown

Error codes ​

An error response has a non-zero code. The HTTP status table is in Calling the API → Errors.

The status alone is not enough: many errors, including a wrong API key and rate limiting, come back as 400. Branch on code.

json
{
    "code": 10001,
    "message": "Please pay attention to the filled information",
    "data": "organization_id",
    "status_code": 400,
    "messages": { "uz": "...", "ru": "...", "en": "..." },
    "time": "2026-11-05T12:00:00Z"
}
  • When data is present, the detail is there: a field name, a missing permission, a record id. Its type differs by code.
  • Accept-Language sets the language of message. Some codes only have English text.

These are the codes you are most likely to meet. For a code that is not listed, read message and data.

Auth and permissions ​

Step-by-step checks: Diagnosing 403 and 404.

codeHTTPMeaningWhat to do
10004401No key or token sent, or the session was endedCheck the header; with OAuth, authorize again
10014401The access token is invalid or expiredRefresh the token
115006, 11000400Wrong API key, or user not foundCopy the whole key again and check the user_id header
115004400The integration is not installed, or was uninstalledThe merchant has to install it again
115000400Integration not foundThe merchant has to install it again
10003403No permission for the action; data names the permission or sectionDiagnosing 403
10024403The call came from an IP outside ip_whitelist; data is the IP Bito sawAdd the IP to the list

Request, rate limit and server ​

codeHTTPMeaningWhat to do
10001400Validation failed; data is usually the field nameCompare the field's type and format with the API reference
10028400The data does not match the storage formatCheck the field values
10031400A date is later than the current time; data is the field nameCheck your server's clock and time zone
10021400Rate limitedWait and retry
10000400Unexpected error; malformed JSON lands here tooCheck the JSON. If it persists, send the time and path to support
10030503The account's data is being updatedRetry in a few minutes
10032503The service is temporarily unavailableRetry with backoff; keep your token

WARNING

Do not retry a write blindly: create is not idempotent. Check first that the record was not created.

Referenced records ​

An id in the request does not exist, is deleted or belongs to another account. This is a 400, not a 404.

codeWhat is missing or does not fitWhat to do
13000OrganizationTake the id from organization/get-all
182000WarehouseTake the id from the warehouse list
182006The organization has no main warehouseSend warehouse_id, or ask the merchant to set a main warehouse
127000Price listCheck price_id
127002No main price listAsk the merchant to set one up
19000CurrencyTake the id from currency/get-all
18000, 18005Payment method not found, or not usable for this operationPick another payment method
62000Payment type (payment-type)Check the id
60000CashboxTake the id from cashbox/get-all
176000Unit of measureCheck the id
174000, 174005, 174006State (pipeline column) not found, from another organization, or of another typeTake a matching column from states/get-all
164000, 164002Custom field not found, or its value is wrongCheck the field id and value type
251000TagCheck the id
227000The source in the source_id header is not your integration'sSend the id of your own source

Sales ​

How states change: Sale lifecycle.

codeMeaningWhat to do
149000Sale not foundCheck the id
149002The sale state cannot be changed this wayRe-read the current state
149005, 149021No credit sale without a customer / settings require a customerSend customer_id
149024, 149023Credit or installment sales are switched offSend full payment
149036A debt return date is requiredSend paying_date or an installment plan
149008The installment plan does not match the debtThe plan must add up to debt
149025, 149026Total quantity in the sale is below the minimum / above the maximum; data is the limitAdjust quantities
149012The account owner has to approve the debt or discountA merchant setting; the owner approves the sale
149004Refunding more than was soldAccount for refunded_amount on the lines
149009A sale with a refund cannot be cancelledRefund the rest instead
149010Goods from the sale were already used, so it cannot be cancelledUse a refund
149020A product in the sale is deletedThe merchant has to restore the product
123002, 123003The refund amount exceeds what was paid / what is payableRecalculate the amount
123004The payment exceeds the unpaid remainderRecalculate the amount
157002Not enough money in the cashboxPick another cashbox or lower the amount
236014An open cashbox session is requiredSend cashbox_session_id
236007, 236009The cashbox session is closed / must be closedClose it and open a new one

Orders (sale-order) ​

codeMeaningWhat to do
151000Order not foundCheck the id
151002A done or canceled order cannot be changedRead the state before updating
151003The organization has no regular pipeline columnAsk the merchant to add one
151005Selling more than was orderedStay within the order's remainder
151006Required custom fields are empty; data lists their idsSend those fields
151007, 149028The discount exceeds the allowed limitLower the discount
151011, 151012A payment needs a customer / the order already has a paymentSend customer_id; do not add a second payment

Bulk operations

sale-order/delete-many and update-status-many respond before the records are processed: errors on individual orders never reach the response. Verify the result by reading the orders again.

Warehouse and stock ​

See Warehouse and stock.

codeMeaningWhat to do
124009, 149003Not enough stock; data is the product id or nameCheck amount in product-warehouse/get-paging
124000, 146000No stock record for the productCheck that product, warehouse and organization match
124005, 124006Marking codes missing / their count differs from the quantitySend one code per unit
124003, 124007A marking code is wrong or not in the warehouseCheck it with product-stock/get-by-mark
124008That marking code already existsRemove the duplicate
26008The operation is not possible with a compound productWork with its components
26014It is a service, not a productDo not put services in warehouse documents
132000Write-off not foundCheck the id
132002Goods from the document were already used, so it cannot be cancelledCorrect the stock with a new document
144000Transfer not foundCheck the id
144002, 144003, 144004The current state does not allow changing the state, editing or receivingRe-read the state
144007The transfer request is neither in progress nor approvedCheck the request's state
144009, 144011Transferred goods were already used; data lists the productsMake a reverse transfer

Customers ​

codeMeaningWhat to do
43000, 43009Customer not found / deletedCheck the id
43001, 142001That customer or person already exists (for example by phone number)Search with customer/get-by-phone-number first
142000Person record not foundCheck person_id
166000Customer category not foundCheck the id
43006The debt limit would be exceededLower the debt or take a payment
43003, 43004A customer with an order / a sale cannot be deletedDo not delete
142003A customer with a non-zero balance cannot be deletedSettle the balance first
43005, 142007The customer is merged with another record or linked to an organizationThe merchant has to unlink it in Bito

Products ​

codeMeaningWhat to do
26000Product not foundCheck the id
26022The product is not available in this organizationEnable it for the organization
26001, 26018That product or barcode already existsFind it with get-by-barcode or get-by-sku and update it
26003None of is_product, is_material, is_semi_product, is_service is trueSet at least one
26002The image value is not in imagesAdd the main image to images too
25000, 141000, 167000Category, box type or attribute not foundCheck the id
26004–26007A product in stock, in transit or booked cannot be deletedBring the stock to zero first
26010–26013It cannot be archived for the same reasonsBring the stock to zero first
26009Not possible on a single variant of a variant productSend the parent product id
26017The delivery service cannot be modifiedLeave it out of the list
26023, 26024, 26025MXIK or package code not found in the tasnif catalog / the catalog is not respondingCheck class_code and package_code; on 26025 retry later

Bito 2.0 Integration API