- Authentication
- Pagination
- Rate limits
- Error codes
- Changelog
- Configuration Service
- Endpoints
- Authentication
- Customer
- Supplier
- Product
- Product
- Groups
- Discount
- Stock
- Prices
- Descriptions
- Refereces
- Quote
- Sales order
- Invoice
- Delivery
- Purchase order
Search stock for products
Developing
POST
/rest/v1/products/stock
Request
Authorization
Add parameter in header
api-key
Example:
api-key: ********************
Body Params application/json
items
array [object {2}]
optional
productId
integer
required
configurationId
integer
optional
Example
{
"items": [
{
"productId": 213
},
{
"productId": 44,
"configurationId": 84628
}
]
}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.logictrade.cloud/rest/v1/products/stock' \
--header 'Content-Type: application/json' \
--header 'api-key;' \
--data-raw '{
"items": [
{
"productId": 213
},
{
"productId": 44,
"configurationId": 84628
}
]
}'
Responses
🟢200Success
application/json
Body
items
array [object {3}]
optional
productId
integer
optional
configurationId
integer
optional
locations
array [object {5}]
optional
Example
{
"items": [
{
"productId": 213,
"locations": [
{
"id": 1,
"code": "WIN",
"description": "Verkoopbaar winkel",
"saleable": true,
"stock": 1
},
{
"id": 2,
"code": "WIN-NV",
"description": "Niet verkoopbaar winkel",
"saleable": false,
"stock": 4
}
]
},
{
"productId": 44,
"configurationId": 84628,
"locations": [
{
"id": 1,
"code": "WIN",
"description": "Verkoopbaar winkel",
"saleable": true,
"stock": 12
}
]
}
]
}
Modified at 2025-01-23 13:48:53