Stock Packaging
Stock packaging schema
_cloudId integer
Cloud ID
_productId long
Product ID - stock item product
📶 EQUALS,ENUM
deleted boolean
Stock packaging deleted - cannot be true in POST/PUT/PATCH methods
📶 EQUALS, ENUM 🔽 BOTH
ean string[]?
EAN codes
📶 EQUALS, ENUM
id long?
Stock packaging ID - cannot be null in PUT/PATCH methods
📶 EQUALS,ENUM
name string(400)
Product name
📶 STRING🔽 BOTH
plu string[]?
PLU codes
📶 EQUALS, ENUM
quantity double
Quantity of stock packaging
unit enum
Unit of stock packaging must be in the same group as the stock item product with _productId
versionDate timestamp?
Last modification date and time
📶 EQUALS, ENUM, NUMBER 🔽 BOTH
Stock packaging response
{
"_cloudId": <integer>,
"_productId": <long>,
"deleted": <boolean>
"ean": <string[]>,
"id": <long>,
"name": <string>,
"plu": <string[]>,
"quantity": <double>,
"unit": <enum>,
"versionDate": <timestamp>
}Get stock packagings
GET https://api.dotykacka.cz/v2/clouds/:cloudId/stock-packagings
Path Parameters
cloudId*
integer
Query Parameters
sort
string
filter
string
page
integer
limit
integer
Headers
Authorization*
string
Bearer accessToken
Get stock packaging
GET https://api.dotykacka.cz/v2/clouds/:cloudId/stock-packagings/:stockPackagingId
Path Parameters
cloudId*
integer
stockPackagingId*
long
Headers
Authorization*
string
Bearer accessToken
Create stock packagings
POST https://api.dotykacka.cz/v2/clouds/:cloudId/stock-packagings
Path Parameters
cloudId*
integer
Headers
Auhtorization*
string
Bearer accessToken
Request Body
*
array
Array of StockPackaging of max size 100.
Replace or create stock packagings
PUT https://api.dotykacka.cz/v2/clouds/:cloudId/stock-packagings
Path Parameters
cloudId*
integer
Headers
If-Match*
string
Etag to update only if not changed.
Authorization*
string
Bearer accessToken
Request Body
*
array
Array of StockPackaging of maxim size 100
Replace or create stock packaging
PUT https://api.dotykacka.cz/v2/clouds/:cloudId/stock-packagings/:stockPackagingId
Path Parameters
cloudId*
integer
stockPackagingId*
long
Headers
If-Match*
string
Etag to update only if not changed.
Authorization*
string
Bearer accessToken
Request Body
*
object
StockPackaging
Partial update of stock packaging
PATCH https://api.dotykacka.cz/v2/clouds/:cloudId/stock-packagings/:stockPackagingId
Path Parameters
cloudId*
integer
stockPackagingId*
long
Headers
If-Match*
string
Etag to update only if not changed.
Authorization*
string
Bearer accessToken
Delete stock packaging
DELETE https://api.dotykacka.cz/v2/clouds/:cloudId/stock-packagings/:stockPackagingId
Path Parameters
cloudId*
integer
stockPackagingId*
long
Headers
Authorization*
string
Bearer accessToken
Options stock packagings
OPTIONS https://api.dotykacka.cz/v2/clouds/:cloudId/stock-packagings
Path Parameters
cloudId*
integer
Headers
Authorization*
string
Bearer accessToken
Options stock packaging
OPTIONS https://api.dotykacka.cz/v2/clouds/:cloudId/stock-packagings/:stockPackagingId
Path Parameters
cloudId*
integer
stockPackagingId*
long
Headers
Authorization*
string
Bearer accessToken
Last updated
Was this helpful?