API
Searchโ€ฆ
Warehouse

Warehouse schema

id long? Warehouse ID - cannot be null in PUT/PATCH methods ๐Ÿ“ถ EQUALS,ENUM ๐Ÿ”ฝ NONE
_cloudId integer Cloud ID ๐Ÿ”ฝ NONE
barcode string?(180) Bar code ๐Ÿ“ถ EQUALS,ENUM ๐Ÿ”ฝ NONE
deleted boolean Category deleted - cannot be true in POST/PUT/PATCH methods ๐Ÿ“ถ EQUALS, ENUM ๐Ÿ”ฝ BOTH
enabled boolean Warehouse enabled ๐Ÿ“ถ EQUALS, ENUM
hexColor string?(7) Warehouse color ๐Ÿ”ฝ NONE
name string(180) Warehouse name ๐Ÿ“ถ EQUALS,STRING ๐Ÿ”ฝ BOTH
versionDate timestamp? Last modification date and time ๐Ÿ“ถ EQUALS,ENUM,NUMBER ๐Ÿ”ฝ BOTH

Warehouse response

1
{
2
"_cloudId": <integer>,
3
"barcode": <string>,
4
"deleted": <boolean>,
5
"enabled": <boolean>,
6
"hexColor": <string>,
7
"id": <long>,
8
"name": <string>,
9
"versionDate": <timestamp>
10
}
Copied!
get
https://api.dotykacka.cz
/v2/clouds/:cloudId/warehouses
Get warehouses
get
https://api.dotykacka.cz
/v2/clouds/:cloudId/warehouses/:warehouseId
Get warehouse
get
https://api.dotykacka.cz
/v2/clouds/:cloudId/warehouses/:warehouseId/products
Products on warehouse
get
https://api.dotykacka.cz
/v2/clouds/:cloudId/warehouses/:warehouseId/products/:productId
Product on warehouse
post
https://api.dotykacka.cz/v2
/clouds/:cloudId/warehouses
Create new warehouse
put
https://api.dotykacka.cz/v2
/clouds/:cloudId/warehouses/:warehouseId
Replace a single warehouse
put
https://api.dotykacka.cz/v2
/clouds/:cloudId/warehouses
Replace many warehouses
patch
https://api.dotykacka.cz/v2
/clouds/:cloudId/warehouses/:warehouseId
Update a single warehouse
delete
https://api.dotykacka.cz/v2
/clouds/:cloudId/warehouses/:warehouseId
Delete a single warehouse

StockUp schema

_supplierId long? Supplier IDโ€‹
invoiceNumber string Invoice number - must not be empty
note string? Custom note
updatePurchasePrice boolean Update product purchase prices
items array[1,100] Array of items to stock up (see below)

Nested array of items

_productId long? [1] Product IDโ€‹
externalId string? [1] External ID
purchasePrice double? Purchase price
quantity double Items quantity
sellPrice double? Product sell price
[1] One of _productId or externalId must not be null.

StockUp request

1
{
2
โ€‹
3
"_supplierId": <long>,
4
"invoiceNumber": <string>,
5
"note": <string>,
6
"updatePurchasePrice": <boolean>,
7
"items":[
8
{
9
"_productId": <long>,
10
"externalId": <string>,
11
"purchasePrice": <double>,
12
"quantity": <double>, // negative for corrections
13
"sellPrice": <double>
14
}
15
]
16
}
Copied!
post
https://api.dotykacka.cz
/v2/clouds/:cloudId/warehouses/:warehouseId/stockups
Stockup to warehouse

Transfer schema

_originWarehouseId long Warehouse IDโ€‹
invoiceNumber string Invoice number - must not be empty
note string? Custom note
updatePurchasePrice boolean Update product purchase prices
items array[1,100] Array of items to transfer (see below)

Nested array of items

_productId long? [1] Product IDโ€‹
externalId string? [1] External ID
purchasePrice double? Purchase price
quantity double Items quantity
[1] One of _productId or externalId must not be null.

Transfer request

1
{
2
"_originWarehouseId": <long>,
3
"invoiceNumber": <string>,
4
"note": <string>,
5
"updatePurchasePrice": <boolean>,
6
"items":[
7
{
8
"_productId": <long>,
9
"externalId": <string>,
10
"purchasePrice": <double>,
11
"quantity": <double>
12
}
13
]
14
}
Copied!
post
https://api.dotykacka.cz
/v2/clouds/:cloudId/warehouses/:warehouseId/transfers
Transfer to warehouse

Sale schema

items array[1,100] Array of items to sell (see below)

Nested array of items

_productId long? [1] Product IDโ€‹
externalId string? [1] External ID
note string? Custom note
quantity double Items quantity
[1] One of _productId or externalId must not be null.

Sale request

1
{
2
"items": [
3
{
4
"_productId": <long>,
5
"externalId": <string>,
6
"note": <string>,
7
"quantity": <double>
8
}
9
]
10
}
Copied!
post
https://api.dotykacka.cz
/v2/clouds/:cloudId/warehouses/:warehouseId/sales
Sale product on warehouse
Last modified 7d ago