BizKitHub
DokumentacjaEksplorator APILedger/api/v1/ledger/stock-status
getLedgerPubliczne API v1

/api/v1/ledger/stock-status

Stock kept by method A: quantity, value and average unit cost of every stock card as of a date, for all warehouses or one. Values come from the posted stock movements (moving average or FIFO per warehouse).

ledgergetApiV1LedgerStock-status

Parametry

8 w query

Parametry query

· 8
apiKeystringWymagane

Your BizKitHub API key (passed as GET parameter).

Key format: A 32-character string matching: ^(PROD|DEV_|ROOT)[A-Za-z0-9]{28}$
Prefixes: PROD (production key), DEV_ (individual developer), ROOT (system key with no limits). Learn more

PrzykładPRODPGrFxpGEtrOZfuWhnoJohUYBXuOE
entityIdstringWymagane

Accounting entity id (from /ledger/entity-list).

Długość: 16–24
PrzykładKq3vTnY8mZ0aB1cD2eF3gH4i
asOfstringOpcjonalne
Przykład2026-12-31
warehouseIdstringOpcjonalne

Warehouse external id.

Długość: 16–24
Przykładexample_warehouseId
searchstringOpcjonalne
Długość: 0–100
Przykładexample_search
onlyInStockstringOpcjonalne
Przykładtrue
limitstringOpcjonalne
Przykładexample_limit
offsetstringOpcjonalne
Przykładexample_offset

Schemat odpowiedzi

1 udokumentowany kod statusu

200Sukces
asOfstringWymagane
totalnumberWymagane
itemsobject[]Wymagane
Każdy element tablicy:
idstringWymagane
codestringWymagane
namestringWymagane
unitstringWymagane
kind"goods" | "material" | "product"Wymagane
productIdnumber | nullWymagane
stockAccountstringWymagane
Przykład132
quantitynumberWymagane
valuenumberWymagane
unitCostnumber | nullWymagane

Przykład odpowiedzi

application/json
{
  "asOf": "example_asOf",
  "total": 0,
  "items": [
    {
      "id": "example_id",
      "code": "example_code",
      "name": "example_name",
      "unit": "example_unit",
      "stockAccount": "132",
      "quantity": 0,
      "value": 0
    }
  ]
}

Przykład żądania

GET /api/v1/ledger/stock-status

get
curl -X GET "https://api.bizkithub.com/api/v1/ledger/stock-status?apiKey=PRODPGrFxpGEtrOZfuWhnoJohUYBXuOE&entityId=Kq3vTnY8mZ0aB1cD2eF3gH4i&asOf=2026-12-31&warehouseId=example_warehouseId&search=example_search&onlyInStock=true&limit=example_limit&offset=example_offset" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY"

Potrzebujesz klucza API?

Wszystkie publiczne endpointy BizKitHub API uwierzytelniają się kluczem API.

Uzyskaj klucz API