Recon act
INFO
Каждый ответ приходит в общем конверте — code, message, messages, status_code, time — а полезная нагрузка лежит в data. Таблицы ниже описывают содержимое data.
GET /recon-act/get-by-id/{id}
Get a reconciliation act by its _id.
Нужное разрешение: нет — закрыто для приложения, объявившего разрешения · как работают разрешения
Пример запроса
curl -X GET 'https://api.bito.uz/integration-api/integration/api/v2/recon-act/get-by-id/6712f0a9c4d1e87b3a0f9911' \
-H "api-key: $BITO_API_KEY"const res = await fetch('https://api.bito.uz/integration-api/integration/api/v2/recon-act/get-by-id/6712f0a9c4d1e87b3a0f9911', {
method: 'GET',
headers: { 'api-key': process.env.BITO_API_KEY },
})
const { code, data } = await res.json()import os
import requests
res = requests.request(
"GET",
"https://api.bito.uz/integration-api/integration/api/v2/recon-act/get-by-id/6712f0a9c4d1e87b3a0f9911",
headers={"api-key": os.environ["BITO_API_KEY"]},
)
print(res.json())<?php
$ch = curl_init('https://api.bito.uz/integration-api/integration/api/v2/recon-act/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);Параметры пути
| Параметр | Тип | Обязательно | Описание |
|---|---|---|---|
id | string | Да |
Тело запроса
Тело запроса не требуется.
Ответ
| Поле | Тип | Описание |
|---|---|---|
_id | string | |
number | string | |
organization_id | string | |
customer_id | string | |
supplier_id | string | |
employee_id | string | |
person_id | string | |
type | string | Допустимые значения: debt, credit |
balance_action | string | Допустимые значения: separated, merged |
state | string | Допустимые значения: new, done, canceled |
amount | number | |
currency_id | string | |
after_balance | object | Per-currency balance snapshot map. |
invoice | object | |
invoice._id | string | |
invoice.number | string | |
payment_type | object | |
payment_type._id | string | |
payment_type.name | string | |
created_at | string (date-time) | |
updated_at | string (date-time) |
{
"code": 0,
"message": "Success",
"status_code": 200,
"data": {
"_id": "string",
"number": "string",
"organization_id": "string",
"customer_id": "string",
"supplier_id": "string",
"employee_id": "string",
"person_id": "string",
"type": "debt",
"balance_action": "separated",
"state": "new",
"amount": 0,
"currency_id": "string",
"after_balance": {},
"invoice": {
"_id": "string",
"number": "string"
},
"payment_type": {
"_id": "string",
"name": "string"
},
"created_at": "2025-05-01T12:00:00Z",
"updated_at": "2025-05-01T12:00:00Z"
},
"time": "2025-05-01T12:00:00Z"
}POST /recon-act/get-all
Get reconciliation acts for a customer / supplier / employee / person within a date range.
Нужное разрешение: нет — закрыто для приложения, объявившего разрешения · как работают разрешения
Пример запроса
curl -X POST 'https://api.bito.uz/integration-api/integration/api/v2/recon-act/get-all' \
-H "api-key: $BITO_API_KEY" \
-H 'Content-Type: application/json' \
-d '{
"page": 1,
"limit": 20,
"organization_id": "64b7f4d9e2b3b6a0b7c5d80a",
"customer_id": "string",
"supplier_id": "string",
"employee_id": "string",
"person_id": "string",
"date_from": "2025-05-01T12:00:00Z",
"date_to": "2025-05-01T12:00:00Z",
"states": [
"new"
],
"locale": "uz",
"with_details": false,
"updated_at": "2025-05-01T12:00:00Z"
}'const res = await fetch('https://api.bito.uz/integration-api/integration/api/v2/recon-act/get-all', {
method: 'POST',
headers: { 'api-key': process.env.BITO_API_KEY, 'Content-Type': 'application/json' },
body: JSON.stringify({
"page": 1,
"limit": 20,
"organization_id": "64b7f4d9e2b3b6a0b7c5d80a",
"customer_id": "string",
"supplier_id": "string",
"employee_id": "string",
"person_id": "string",
"date_from": "2025-05-01T12:00:00Z",
"date_to": "2025-05-01T12:00:00Z",
"states": [
"new"
],
"locale": "uz",
"with_details": false,
"updated_at": "2025-05-01T12:00:00Z"
}),
})
const { code, data } = await res.json()import os
import requests
res = requests.request(
"POST",
"https://api.bito.uz/integration-api/integration/api/v2/recon-act/get-all",
headers={"api-key": os.environ["BITO_API_KEY"]},
json={
"page": 1,
"limit": 20,
"organization_id": "64b7f4d9e2b3b6a0b7c5d80a",
"customer_id": "string",
"supplier_id": "string",
"employee_id": "string",
"person_id": "string",
"date_from": "2025-05-01T12:00:00Z",
"date_to": "2025-05-01T12:00:00Z",
"states": [
"new",
],
"locale": "uz",
"with_details": False,
"updated_at": "2025-05-01T12:00:00Z",
},
)
print(res.json())<?php
$body = <<<'JSON'
{
"page": 1,
"limit": 20,
"organization_id": "64b7f4d9e2b3b6a0b7c5d80a",
"customer_id": "string",
"supplier_id": "string",
"employee_id": "string",
"person_id": "string",
"date_from": "2025-05-01T12:00:00Z",
"date_to": "2025-05-01T12:00:00Z",
"states": [
"new"
],
"locale": "uz",
"with_details": false,
"updated_at": "2025-05-01T12:00:00Z"
}
JSON;
$ch = curl_init('https://api.bito.uz/integration-api/integration/api/v2/recon-act/get-all');
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);Тело запроса
| Поле | Тип | Обязательно | Описание |
|---|---|---|---|
page | number | Нет | По умолчанию: 1 |
limit | number | Нет | По умолчанию: 20 |
organization_id | string | Нет | |
customer_id | string | Нет | One of customer_id / supplier_id / employee_id / person_id must be set. |
supplier_id | string | Нет | |
employee_id | string | Нет | |
person_id | string | Нет | |
date_from | string (date-time) | Нет | |
date_to | string (date-time) | Нет | |
states | string[] | Нет | |
locale | string | Нет | Допустимые значения: uz, ru, en, kk, ky, tg |
with_details | boolean | Нет | |
updated_at | string (date-time) | Нет | Only records updated at or after this time. |
{
"page": 1,
"limit": 20,
"organization_id": "64b7f4d9e2b3b6a0b7c5d80a",
"customer_id": "string",
"supplier_id": "string",
"employee_id": "string",
"person_id": "string",
"date_from": "2025-05-01T12:00:00Z",
"date_to": "2025-05-01T12:00:00Z",
"states": [
"new"
],
"locale": "uz",
"with_details": false,
"updated_at": "2025-05-01T12:00:00Z"
}Ответ
| Поле | Тип | Описание |
|---|---|---|
data | any[] | |
before_balance | object | Per-currency balance at date_from. |
after_balance | object | Per-currency balance at date_to. |
{
"code": 0,
"message": "Success",
"status_code": 200,
"data": {
"data": [],
"before_balance": {},
"after_balance": {}
},
"time": "2025-05-01T12:00:00Z"
}POST /recon-act/get-all/export
Export reconciliation acts as XLSX/CSV. Returns a download path.
Нужное разрешение: нет — закрыто для приложения, объявившего разрешения · как работают разрешения
Пример запроса
curl -X POST 'https://api.bito.uz/integration-api/integration/api/v2/recon-act/get-all/export' \
-H "api-key: $BITO_API_KEY" \
-H 'Content-Type: application/json' \
-d '{
"page": 1,
"limit": 20,
"organization_id": "64b7f4d9e2b3b6a0b7c5d80a",
"customer_id": "string",
"supplier_id": "string",
"employee_id": "string",
"person_id": "string",
"date_from": "2025-05-01T12:00:00Z",
"date_to": "2025-05-01T12:00:00Z",
"states": [
"new"
],
"locale": "uz",
"ext_type": "xlsx",
"with_details": false
}'const res = await fetch('https://api.bito.uz/integration-api/integration/api/v2/recon-act/get-all/export', {
method: 'POST',
headers: { 'api-key': process.env.BITO_API_KEY, 'Content-Type': 'application/json' },
body: JSON.stringify({
"page": 1,
"limit": 20,
"organization_id": "64b7f4d9e2b3b6a0b7c5d80a",
"customer_id": "string",
"supplier_id": "string",
"employee_id": "string",
"person_id": "string",
"date_from": "2025-05-01T12:00:00Z",
"date_to": "2025-05-01T12:00:00Z",
"states": [
"new"
],
"locale": "uz",
"ext_type": "xlsx",
"with_details": false
}),
})
const { code, data } = await res.json()import os
import requests
res = requests.request(
"POST",
"https://api.bito.uz/integration-api/integration/api/v2/recon-act/get-all/export",
headers={"api-key": os.environ["BITO_API_KEY"]},
json={
"page": 1,
"limit": 20,
"organization_id": "64b7f4d9e2b3b6a0b7c5d80a",
"customer_id": "string",
"supplier_id": "string",
"employee_id": "string",
"person_id": "string",
"date_from": "2025-05-01T12:00:00Z",
"date_to": "2025-05-01T12:00:00Z",
"states": [
"new",
],
"locale": "uz",
"ext_type": "xlsx",
"with_details": False,
},
)
print(res.json())<?php
$body = <<<'JSON'
{
"page": 1,
"limit": 20,
"organization_id": "64b7f4d9e2b3b6a0b7c5d80a",
"customer_id": "string",
"supplier_id": "string",
"employee_id": "string",
"person_id": "string",
"date_from": "2025-05-01T12:00:00Z",
"date_to": "2025-05-01T12:00:00Z",
"states": [
"new"
],
"locale": "uz",
"ext_type": "xlsx",
"with_details": false
}
JSON;
$ch = curl_init('https://api.bito.uz/integration-api/integration/api/v2/recon-act/get-all/export');
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);Тело запроса
| Поле | Тип | Обязательно | Описание |
|---|---|---|---|
page | number | Нет | По умолчанию: 1 |
limit | number | Нет | По умолчанию: 20 |
organization_id | string | Нет | |
customer_id | string | Нет | One of customer_id / supplier_id / employee_id / person_id must be set. |
supplier_id | string | Нет | |
employee_id | string | Нет | |
person_id | string | Нет | |
date_from | string (date-time) | Нет | |
date_to | string (date-time) | Нет | |
states | string[] | Нет | |
locale | string | Нет | Допустимые значения: uz, ru, en, kk, ky, tg |
ext_type | string | Нет | Допустимые значения: xlsx, csv |
with_details | boolean | Нет |
{
"page": 1,
"limit": 20,
"organization_id": "64b7f4d9e2b3b6a0b7c5d80a",
"customer_id": "string",
"supplier_id": "string",
"employee_id": "string",
"person_id": "string",
"date_from": "2025-05-01T12:00:00Z",
"date_to": "2025-05-01T12:00:00Z",
"states": [
"new"
],
"locale": "uz",
"ext_type": "xlsx",
"with_details": false
}Ответ
{
"code": 0,
"message": "Success",
"status_code": 200,
"data": "string",
"time": "2025-05-01T12:00:00Z"
}Эта страница сгенерирована из спецификации OpenAPI.