BizKitHub
DokumentáciaPrieskumník APILedger/api/v1/ledger/stock-status
getLedgerVerejné 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

Parametre

8 v query

Parametre v query

· 8
apiKeystringPovinné

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

PríkladPRODPGrFxpGEtrOZfuWhnoJohUYBXuOE
entityIdstringPovinné

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

Dĺžka: 16–24
PríkladKq3vTnY8mZ0aB1cD2eF3gH4i
asOfstringVoliteľné
Príklad2026-12-31
warehouseIdstringVoliteľné

Warehouse external id.

Dĺžka: 16–24
Príkladexample_warehouseId
searchstringVoliteľné
Dĺžka: 0–100
Príkladexample_search
onlyInStockstringVoliteľné
Príkladtrue
limitstringVoliteľné
Príkladexample_limit
offsetstringVoliteľné
Príkladexample_offset

Schéma odpovede

1 zdokumentovaný stavový kód

200Úspech
asOfstringPovinné
totalnumberPovinné
itemsobject[]Povinné
Každá položka poľa:
idstringPovinné
codestringPovinné
namestringPovinné
unitstringPovinné
kind"goods" | "material" | "product"Povinné
productIdnumber | nullPovinné
stockAccountstringPovinné
Príklad132
quantitynumberPovinné
valuenumberPovinné
unitCostnumber | nullPovinné

Ukážka odpovede

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
    }
  ]
}

Ukážka požiadavky

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"

Potrebujete API kľúč?

Všetky verejné endpointy BizKitHub API sa overujú API kľúčom.

Získať API kľúč