---
title: "StockTakingsByDocumentId (Fortnox)"
description: "Stock Takings by Document ID"
language: en
source_language: en
translation_state: complete
canonical: https://documentation.invantive.eu/en/datamodels/fortnox/Fortnox.WarehouseStockTakings.StockTakingsByDocumentId
original: https://documentation.invantive.eu/en/datamodels/fortnox/Fortnox.WarehouseStockTakings.StockTakingsByDocumentId
updated: 2026-11-01T16:13:15Z
license: https://documentation.invantive.eu/en/
---

# StockTakingsByDocumentId: Fortnox Stock Takings by Document ID

`read only` `REST`

- Catalog: `Fortnox`
- Schema: `WarehouseStockTakings`
- Label: Stock Takings by Document ID

Get Stock Taking document

Can only retrieve data.

## API Source

- Endpoint: `/api/warehouse/stocktaking-v1/{id}`
- Operation: `get /api/warehouse/stocktaking-v1/{id}`

## Performance Characteristics

| Characteristic | Value |
|---|---:|
| Average access latency (ms) | 356 |
| Full scan rows per minute | 85,000 |
| Point query rows per minute | 168 |

The result can be cached on the client.

## Parameters

| Name | Data Type | Required | Default | Documentation |
|---|---|:---:|---|---|
| `financialyear` | `` | [ ] |  | Selects what financial year that should be used (does not work on every table). |
| `financialyeardate` | `` | [ ] |  | Selects by date, what financial year that should be used (does not work on every table). |
| `fromdate` | `` | [ ] |  | Defines a selection based on a start date. Only available for invoices, orders, offers, vouchers and supplierinvoices (does not work on every table). |
| `id` | `` | [x] |  | Stock Taking document id. |
| `lastmodified` | `` | [ ] |  | Retrieves all records since the provided timestamp (does not work on every table). |
| `todate` | `` | [ ] |  | Defines a selection based on an end date. Only available for invoices, orders, offers, vouchers and supplierinvoices (does not work on every table). |

## Table Columns

The columns of the table `StockTakingsByDocumentId` are shown below. Each column has an SQL data type. A new non-null value must be provided for every required column at all times during insert and update.

| Name | Data Type | Label | Required | Marks | Documentation |
|---|---|---|:---:|---|---|
| `costCenterCode` | `varchar2` | Cost Centre Code | [ ] | filters on the platform, writable, `costCenterCode` |  |
| `date` | `datetime` | Date | [ ] | filters on the platform, writable, `date` |  |
| `id` | `int64` | ID | [ ] | filters on the platform, writable, `id` |  |
| `name` | `varchar2(50)` | Name | [ ] | filters on the platform, writable, `name` |  |
| `projectId` | `varchar2` | Project ID | [ ] | filters on the platform, writable, `projectId` |  |
| `responsible` | `varchar2(50)` | Responsible | [ ] | filters on the platform, writable, `responsible` |  |
| `sortParams_primarySort` | `varchar2` | Sort Params Primary Sort | [ ] | filters on the platform, writable, `sortParams.primarySort` |  |
| `sortParams_primarySortOrder` | `varchar2` | Sort Params Primary Sort Order | [ ] | filters on the platform, writable, `sortParams.primarySortOrder` |  |
| `sortParams_secondarySort` | `varchar2` | Sort Params Secondary Sort | [ ] | filters on the platform, writable, `sortParams.secondarySort` |  |
| `sortParams_secondarySortOrder` | `varchar2` | Sort Params Secondary Sort Order | [ ] | filters on the platform, writable, `sortParams.secondarySortOrder` |  |
| `sortingId` | `int32` | Sorting ID | [ ] | filters on the platform, writable, `sortingId` |  |
| `state` | `varchar2` | State | [ ] | filters on the platform, writable, `state` |  |
| `usingStockPoints` | `char` | Using Stockpoints | [ ] | filters on the platform, writable, `usingStockPoints` |  |



## Release Notes

What changed per release in the tables, columns, attributes and capabilities of the driver:

- [Fortnox](/en/release-notes/drivers/fortnox)

