Skip to content
View as Markdown

Organizational transfer ​

Stock transfers between organizations

INFO

Every response arrives in the shared envelope — code, message, messages, status_code, time — with the payload in data. The tables below describe what is inside data.

POST /organizational-transfer/create ​

Create a new organizational transfer (cross-organization stock movement) in DRAFT or NEW state.

Required permission: organizational_transfer_create · how permissions work

Example request

bash
curl -X POST 'https://api.bito.uz/integration-api/integration/api/v2/organizational-transfer/create' \
  -H "api-key: $BITO_API_KEY" \
  -H 'Content-Type: application/json' \
  -d '{
  "source_organization_id": "string",
  "destination_organization_id": "string",
  "state": "draft",
  "date": "2025-05-01T12:00:00Z",
  "shipping_date": "2025-05-01T12:00:00Z",
  "sender_warehouse_id": "string",
  "sender_employee_id": "string",
  "reason_id": "string",
  "requests": [
    {
      "request_id": "string",
      "products": []
    }
  ]
}'
js
const res = await fetch('https://api.bito.uz/integration-api/integration/api/v2/organizational-transfer/create', {
  method: 'POST',
  headers: { 'api-key': process.env.BITO_API_KEY, 'Content-Type': 'application/json' },
  body: JSON.stringify({
    "source_organization_id": "string",
    "destination_organization_id": "string",
    "state": "draft",
    "date": "2025-05-01T12:00:00Z",
    "shipping_date": "2025-05-01T12:00:00Z",
    "sender_warehouse_id": "string",
    "sender_employee_id": "string",
    "reason_id": "string",
    "requests": [
      {
        "request_id": "string",
        "products": []
      }
    ]
  }),
})
const { code, data } = await res.json()
python
import os
import requests

res = requests.request(
    "POST",
    "https://api.bito.uz/integration-api/integration/api/v2/organizational-transfer/create",
    headers={"api-key": os.environ["BITO_API_KEY"]},
    json={
        "source_organization_id": "string",
        "destination_organization_id": "string",
        "state": "draft",
        "date": "2025-05-01T12:00:00Z",
        "shipping_date": "2025-05-01T12:00:00Z",
        "sender_warehouse_id": "string",
        "sender_employee_id": "string",
        "reason_id": "string",
        "requests": [
            {
                "request_id": "string",
                "products": [],
            },
        ],
    },
)
print(res.json())
php
<?php
$body = <<<'JSON'
{
  "source_organization_id": "string",
  "destination_organization_id": "string",
  "state": "draft",
  "date": "2025-05-01T12:00:00Z",
  "shipping_date": "2025-05-01T12:00:00Z",
  "sender_warehouse_id": "string",
  "sender_employee_id": "string",
  "reason_id": "string",
  "requests": [
    {
      "request_id": "string",
      "products": []
    }
  ]
}
JSON;

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

Request body

FieldTypeRequiredDescription
codestringNoOptional custom transfer code / reference number
source_organization_idstringYesSending organization ObjectId
destination_organization_idstringYesReceiving organization ObjectId
statestringYesInitial state — draft (held) or new (ready to process). One of: draft, new
invoice_createdbooleanNoWhether a supplier invoice was created for this transfer. Default: false
with_pricebooleanNoWhether product prices are included in the transfer. Default: false
datestring (date-time)YesTransfer document date (ISO 8601)
shipping_datestring (date-time)YesExpected shipment date (ISO 8601)
sender_warehouse_idstringYesSource warehouse ObjectId
sender_employee_idstringYesEmployee responsible for sending ObjectId
reason_idstringYesTransfer reason ObjectId
price_idstringNoPrice-list ObjectId (optional)
notestringNoOptional free-text note (max 500 characters)
currencyobjectNoCurrency snapshot at transfer time (optional)
currency._idstringYesCurrency ObjectId
currency.namestringYes
currency.valuenumberYesExchange rate value
currency.symbolstringNo
currency.sidestringNoOne of: start, end
requestsobject[]YesOne or more transfer request lines (each may reference a transfer-request document)
requests[].request_idstringNoLinked transfer-request ObjectId (optional)
requests[].productsobject[]YesProducts included in this request line
requests[].products[].product_idstringYesProduct ObjectId
requests[].products[].amountnumberYesQuantity to transfer (must be positive)
requests[].products[].pricenumberNoUnit price (optional; required when with_price=true)
requests[].products[].box_countnumberNoNumber of boxes (integer ≥ 0). Default: 0
requests[].products[].box_itemnumberNoItems per box
requests[].products[].marksstring[]NoMark/serial codes for marked goods. Default: []
requests[].products[].expiration_datestring (date-time)NoExpiration date (ISO 8601) for perishable goods
requests[].products[].extra_costsobject[]NoPer-product additional costs. Default: []
requests[].products[].used_measureobjectNo
additional_costsobject[]NoTransfer-level additional costs. Default: []
additional_costs[].cost_idstringYes
additional_costs[].amountnumberYes
additional_costs[].customer_idstringNo
additional_costs[].employee_idstringNo
additional_costs[].supplier_idstringNo
additional_costs[].person_idstringNo
attachmentsobject[]NoAttached files (documents, scans). Default: []
attachments[].namestringNo
attachments[].pathstringYes
attachments[].sizenumberNo
attachments[].notestringNo
json
{
  "code": "string",
  "source_organization_id": "string",
  "destination_organization_id": "string",
  "state": "draft",
  "invoice_created": false,
  "with_price": false,
  "date": "2025-05-01T12:00:00Z",
  "shipping_date": "2025-05-01T12:00:00Z",
  "sender_warehouse_id": "string",
  "sender_employee_id": "string",
  "reason_id": "string",
  "price_id": "string",
  "note": "string",
  "currency": {
    "_id": "string",
    "name": "string",
    "value": 0,
    "symbol": "string",
    "side": "start"
  },
  "requests": [
    {
      "request_id": "string",
      "products": []
    }
  ],
  "additional_costs": [
    {
      "cost_id": "string",
      "amount": 0,
      "customer_id": "64b7f4d9e2b3b6a0b7c5d7ff",
      "employee_id": "64b7f4d9e2b3b6a0b7c5d7ff",
      "supplier_id": "64b7f4d9e2b3b6a0b7c5d7ff",
      "person_id": "64b7f4d9e2b3b6a0b7c5d7ff"
    }
  ],
  "attachments": [
    {
      "name": "string",
      "path": "string",
      "size": 0,
      "note": "string"
    }
  ]
}

Response

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

GET /organizational-transfer/get-by-id/{id} ​

Fetch a single organizational transfer by ObjectId (aggregated detail view with products and requests).

Required permission: organizational_transfer · how permissions work

Example request

bash
curl -X GET 'https://api.bito.uz/integration-api/integration/api/v2/organizational-transfer/get-by-id/6712f0a9c4d1e87b3a0f9911' \
  -H "api-key: $BITO_API_KEY"
js
const res = await fetch('https://api.bito.uz/integration-api/integration/api/v2/organizational-transfer/get-by-id/6712f0a9c4d1e87b3a0f9911', {
  method: 'GET',
  headers: { 'api-key': process.env.BITO_API_KEY },
})
const { code, data } = await res.json()
python
import os
import requests

res = requests.request(
    "GET",
    "https://api.bito.uz/integration-api/integration/api/v2/organizational-transfer/get-by-id/6712f0a9c4d1e87b3a0f9911",
    headers={"api-key": os.environ["BITO_API_KEY"]},
)
print(res.json())
php
<?php
$ch = curl_init('https://api.bito.uz/integration-api/integration/api/v2/organizational-transfer/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);

Path parameters

ParameterTypeRequiredDescription
idstringYesOrganizational transfer ObjectId

Request body

No request body.

Response

FieldTypeDescription
_idstringTransfer ObjectId
numberstringAuto-generated transfer document number
codestringCustom reference code
statestringOne of: draft, new, accepted, in_progress, done, canceled
typestringTransfer type (o2o for organizational transfers)
source_organization_idstring
destination_organization_idstring
sender_warehouse_idstring
receiver_warehouse_idstringSet after receive; null until received
sender_employee_idstring
reason_idstring
price_idstring
datestring (date-time)
shipping_datestring (date-time)
invoice_createdboolean
with_priceboolean
notestring
total_amountnumberTotal quantity across all products
total_costnumber
total_pricenumber
total_extra_costnumber
requestsobject[]Transfer request lines with their product details
requests[].request_idstring
requests[].productsobject[]
requests[].products[].product_idstring
requests[].products[].amountnumber
requests[].products[].pricenumber
requests[].products[].box_countnumber
requests[].products[].marksstring[]
requests[].products[].expiration_datestring (date-time)
requests[].products[].sender_stock_beforenumberSender warehouse stock before outflow
requests[].products[].sender_stock_afternumberDerived: sender_stock_before − amount
requests[].products[].receiver_stock_beforenumberReceiver warehouse stock before inflow (set after receive)
requests[].products[].receiver_stock_afternumberDerived: receiver_stock_before + amount (set after receive)
additional_costsobject[]
attachmentsobject[]
created_atstring (date-time)
updated_atstring (date-time)
json
{
  "code": 0,
  "message": "Success",
  "status_code": 200,
  "data": {
    "_id": "string",
    "number": "string",
    "code": "string",
    "state": "draft",
    "type": "string",
    "source_organization_id": "string",
    "destination_organization_id": "string",
    "sender_warehouse_id": "string",
    "receiver_warehouse_id": "string",
    "sender_employee_id": "string",
    "reason_id": "string",
    "price_id": "string",
    "date": "2025-05-01T12:00:00Z",
    "shipping_date": "2025-05-01T12:00:00Z",
    "invoice_created": false,
    "with_price": false,
    "note": "string",
    "total_amount": 0,
    "total_cost": 0,
    "total_price": 0,
    "total_extra_cost": 0,
    "requests": [
      {
        "request_id": "string",
        "products": []
      }
    ],
    "additional_costs": [
      {}
    ],
    "attachments": [
      {}
    ],
    "created_at": "2025-05-01T12:00:00Z",
    "updated_at": "2025-05-01T12:00:00Z"
  },
  "time": "2025-05-01T12:00:00Z"
}

POST /organizational-transfer/get-paging ​

Paginated list of organizational transfers, filterable by organization, warehouse, state, and reason.

Required permission: organizational_transfer · how permissions work

Example request

bash
curl -X POST 'https://api.bito.uz/integration-api/integration/api/v2/organizational-transfer/get-paging' \
  -H "api-key: $BITO_API_KEY" \
  -H 'Content-Type: application/json' \
  -d '{
  "page": 1,
  "limit": 20
}'
js
const res = await fetch('https://api.bito.uz/integration-api/integration/api/v2/organizational-transfer/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
import os
import requests

res = requests.request(
    "POST",
    "https://api.bito.uz/integration-api/integration/api/v2/organizational-transfer/get-paging",
    headers={"api-key": os.environ["BITO_API_KEY"]},
    json={
        "page": 1,
        "limit": 20,
    },
)
print(res.json())
php
<?php
$body = <<<'JSON'
{
  "page": 1,
  "limit": 20
}
JSON;

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

Request body

FieldTypeRequiredDescription
pagenumberYesDefault: 1
limitnumberYesDefault: 20
source_organization_idstringNoFilter by sending organization ObjectId
destination_organization_idstringNoFilter by receiving organization ObjectId
sender_warehouse_idstringNoFilter by sender warehouse ObjectId
receiver_warehouse_idstringNoFilter by receiver warehouse ObjectId
statesstring[]NoFilter by one or more transfer states
reason_idstringNoFilter by transfer reason ObjectId
searchstringNoFree-text search.
updated_atstring (date-time)NoOnly records updated at or after this time.
date_fromstring (date-time)NoStart of the date range.
date_tostring (date-time)NoEnd of the date range.
organization_idstringNoOrganization ObjectId.
json
{
  "page": 1,
  "limit": 20,
  "source_organization_id": "string",
  "destination_organization_id": "string",
  "sender_warehouse_id": "string",
  "receiver_warehouse_id": "string",
  "states": [
    "draft"
  ],
  "reason_id": "string",
  "search": "string",
  "updated_at": "2025-05-01T12:00:00Z",
  "date_from": "2025-05-01T12:00:00Z",
  "date_to": "2025-05-01T12:00:00Z",
  "organization_id": "64b7f4d9e2b3b6a0b7c5d7ff"
}

Response

FieldTypeDescription
totalnumber
listany[]
json
{
  "code": 0,
  "message": "Success",
  "status_code": 200,
  "data": {
    "total": 0,
    "list": []
  },
  "time": "2025-05-01T12:00:00Z"
}

PUT /organizational-transfer/update/{id} ​

Update an existing organizational transfer. Only allowed in DRAFT or NEW state.

Required permission: organizational_transfer_update · how permissions work

Example request

bash
curl -X PUT 'https://api.bito.uz/integration-api/integration/api/v2/organizational-transfer/update/6712f0a9c4d1e87b3a0f9911' \
  -H "api-key: $BITO_API_KEY" \
  -H 'Content-Type: application/json' \
  -d '{
  "source_organization_id": "string",
  "destination_organization_id": "string",
  "date": "2025-05-01T12:00:00Z",
  "shipping_date": "2025-05-01T12:00:00Z",
  "sender_warehouse_id": "string",
  "sender_employee_id": "string",
  "reason_id": "string",
  "requests": [
    {
      "request_id": "string",
      "products": []
    }
  ]
}'
js
const res = await fetch('https://api.bito.uz/integration-api/integration/api/v2/organizational-transfer/update/6712f0a9c4d1e87b3a0f9911', {
  method: 'PUT',
  headers: { 'api-key': process.env.BITO_API_KEY, 'Content-Type': 'application/json' },
  body: JSON.stringify({
    "source_organization_id": "string",
    "destination_organization_id": "string",
    "date": "2025-05-01T12:00:00Z",
    "shipping_date": "2025-05-01T12:00:00Z",
    "sender_warehouse_id": "string",
    "sender_employee_id": "string",
    "reason_id": "string",
    "requests": [
      {
        "request_id": "string",
        "products": []
      }
    ]
  }),
})
const { code, data } = await res.json()
python
import os
import requests

res = requests.request(
    "PUT",
    "https://api.bito.uz/integration-api/integration/api/v2/organizational-transfer/update/6712f0a9c4d1e87b3a0f9911",
    headers={"api-key": os.environ["BITO_API_KEY"]},
    json={
        "source_organization_id": "string",
        "destination_organization_id": "string",
        "date": "2025-05-01T12:00:00Z",
        "shipping_date": "2025-05-01T12:00:00Z",
        "sender_warehouse_id": "string",
        "sender_employee_id": "string",
        "reason_id": "string",
        "requests": [
            {
                "request_id": "string",
                "products": [],
            },
        ],
    },
)
print(res.json())
php
<?php
$body = <<<'JSON'
{
  "source_organization_id": "string",
  "destination_organization_id": "string",
  "date": "2025-05-01T12:00:00Z",
  "shipping_date": "2025-05-01T12:00:00Z",
  "sender_warehouse_id": "string",
  "sender_employee_id": "string",
  "reason_id": "string",
  "requests": [
    {
      "request_id": "string",
      "products": []
    }
  ]
}
JSON;

$ch = curl_init('https://api.bito.uz/integration-api/integration/api/v2/organizational-transfer/update/6712f0a9c4d1e87b3a0f9911');
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);

Path parameters

ParameterTypeRequiredDescription
idstringYesOrganizational transfer ObjectId

Request body

FieldTypeRequiredDescription
codestringNoOptional custom transfer code / reference number
source_organization_idstringYesSending organization ObjectId
destination_organization_idstringYesReceiving organization ObjectId
invoice_createdbooleanNoWhether a supplier invoice was created for this transfer. Default: false
with_pricebooleanNoWhether product prices are included in the transfer. Default: false
datestring (date-time)YesTransfer document date (ISO 8601)
shipping_datestring (date-time)YesExpected shipment date (ISO 8601)
sender_warehouse_idstringYesSource warehouse ObjectId
sender_employee_idstringYesEmployee responsible for sending ObjectId
reason_idstringYesTransfer reason ObjectId
price_idstringNoPrice-list ObjectId (optional)
notestringNoOptional free-text note (max 500 characters)
currencyobjectNoCurrency snapshot at transfer time (optional)
currency._idstringNoCurrency ObjectId
currency.namestringYes
currency.valuenumberYesExchange rate value
currency.symbolstringNo
requestsobject[]YesOne or more transfer request lines (each may reference a transfer-request document)
requests[].request_idstringNoLinked transfer-request ObjectId (optional)
requests[].productsobject[]YesProducts included in this request line
requests[].products[].product_idstringYesProduct ObjectId
requests[].products[].amountnumberYesQuantity to transfer (must be positive)
requests[].products[].box_countnumberNoNumber of boxes (integer ≥ 0). Default: 0
requests[].products[].box_itemnumberNoItems per box
requests[].products[].marksstring[]NoMark/serial codes for marked goods. Default: []
requests[].products[].expiration_datestring (date-time)NoExpiration date (ISO 8601) for perishable goods
requests[].products[].extra_costsobject[]NoPer-product additional costs. Default: []
requests[].products[].used_measureobjectNo
additional_costsobject[]NoTransfer-level additional costs. Default: []
additional_costs[].cost_idstringYes
additional_costs[].amountnumberYes
additional_costs[].customer_idstringNo
additional_costs[].employee_idstringNo
additional_costs[].supplier_idstringNo
additional_costs[].person_idstringNo
attachmentsobject[]NoAttached files (documents, scans). Default: []
attachments[].namestringNo
attachments[].pathstringYes
attachments[].sizenumberNo
attachments[].notestringNo
json
{
  "code": "string",
  "source_organization_id": "string",
  "destination_organization_id": "string",
  "invoice_created": false,
  "with_price": false,
  "date": "2025-05-01T12:00:00Z",
  "shipping_date": "2025-05-01T12:00:00Z",
  "sender_warehouse_id": "string",
  "sender_employee_id": "string",
  "reason_id": "string",
  "price_id": "string",
  "note": "string",
  "currency": {
    "_id": "string",
    "name": "string",
    "value": 0,
    "symbol": "string"
  },
  "requests": [
    {
      "request_id": "string",
      "products": []
    }
  ],
  "additional_costs": [
    {
      "cost_id": "string",
      "amount": 0,
      "customer_id": "64b7f4d9e2b3b6a0b7c5d7ff",
      "employee_id": "64b7f4d9e2b3b6a0b7c5d7ff",
      "supplier_id": "64b7f4d9e2b3b6a0b7c5d7ff",
      "person_id": "64b7f4d9e2b3b6a0b7c5d7ff"
    }
  ],
  "attachments": [
    {
      "name": "string",
      "path": "string",
      "size": 0,
      "note": "string"
    }
  ]
}

Response

Same response shape as POST /organizational-transfer/create.

PUT /organizational-transfer/set-status/{id} ​

Transition the transfer through the state machine. Valid transitions: NEW→DRAFT|CANCELED|ACCEPTED; DRAFT→NEW; ACCEPTED→IN_PROGRESS|CANCELED; IN_PROGRESS→CANCELED; DONE→CANCELED. Use receive for the ACCEPTED/IN_PROGRESS→DONE transition.

Required permission: organizational_transfer_update · how permissions work

An app that cancels documents should request organizational_transfer_cancel as well.

Example request

bash
curl -X PUT 'https://api.bito.uz/integration-api/integration/api/v2/organizational-transfer/set-status/6712f0a9c4d1e87b3a0f9911' \
  -H "api-key: $BITO_API_KEY" \
  -H 'Content-Type: application/json' \
  -d '{
  "state": "draft"
}'
js
const res = await fetch('https://api.bito.uz/integration-api/integration/api/v2/organizational-transfer/set-status/6712f0a9c4d1e87b3a0f9911', {
  method: 'PUT',
  headers: { 'api-key': process.env.BITO_API_KEY, 'Content-Type': 'application/json' },
  body: JSON.stringify({
    "state": "draft"
  }),
})
const { code, data } = await res.json()
python
import os
import requests

res = requests.request(
    "PUT",
    "https://api.bito.uz/integration-api/integration/api/v2/organizational-transfer/set-status/6712f0a9c4d1e87b3a0f9911",
    headers={"api-key": os.environ["BITO_API_KEY"]},
    json={
        "state": "draft",
    },
)
print(res.json())
php
<?php
$body = <<<'JSON'
{
  "state": "draft"
}
JSON;

$ch = curl_init('https://api.bito.uz/integration-api/integration/api/v2/organizational-transfer/set-status/6712f0a9c4d1e87b3a0f9911');
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);

Path parameters

ParameterTypeRequiredDescription
idstringYesOrganizational transfer ObjectId

Request body

FieldTypeRequiredDescription
statestringYesTarget state. Valid transitions: NEW→DRAFT|CANCELED|ACCEPTED; DRAFT→NEW; ACCEPTED→IN_PROGRESS|CANCELED; IN_PROGRESS→CANCELED; DONE→CANCELED. Use the receive endpoint to transition to DONE.. One of: draft, new, accepted, in_progress, canceled
json
{
  "state": "draft"
}

Response

Same response shape as POST /organizational-transfer/create.

PUT /organizational-transfer/receive/{id} ​

Receive an accepted organizational transfer: transitions ACCEPTED or IN_PROGRESS → DONE and applies stock movement into the receiver warehouse.

Required permission: organizational_transfer_update · how permissions work

Example request

bash
curl -X PUT 'https://api.bito.uz/integration-api/integration/api/v2/organizational-transfer/receive/6712f0a9c4d1e87b3a0f9911' \
  -H "api-key: $BITO_API_KEY" \
  -H 'Content-Type: application/json' \
  -d '{
  "receiver_warehouse_id": "string"
}'
js
const res = await fetch('https://api.bito.uz/integration-api/integration/api/v2/organizational-transfer/receive/6712f0a9c4d1e87b3a0f9911', {
  method: 'PUT',
  headers: { 'api-key': process.env.BITO_API_KEY, 'Content-Type': 'application/json' },
  body: JSON.stringify({
    "receiver_warehouse_id": "string"
  }),
})
const { code, data } = await res.json()
python
import os
import requests

res = requests.request(
    "PUT",
    "https://api.bito.uz/integration-api/integration/api/v2/organizational-transfer/receive/6712f0a9c4d1e87b3a0f9911",
    headers={"api-key": os.environ["BITO_API_KEY"]},
    json={
        "receiver_warehouse_id": "string",
    },
)
print(res.json())
php
<?php
$body = <<<'JSON'
{
  "receiver_warehouse_id": "string"
}
JSON;

$ch = curl_init('https://api.bito.uz/integration-api/integration/api/v2/organizational-transfer/receive/6712f0a9c4d1e87b3a0f9911');
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);

Path parameters

ParameterTypeRequiredDescription
idstringYesOrganizational transfer ObjectId

Request body

FieldTypeRequiredDescription
receiver_warehouse_idstringYesDestination warehouse ObjectId where stock will be received
json
{
  "receiver_warehouse_id": "string"
}

Response

Same response shape as POST /organizational-transfer/create.


This page is generated from the OpenAPI spec.

Bito 2.0 Integration API