Stock movements
In order to get stock movements you can either setup a webhook or use API endpoints to retrieve them.
Webhooks
Currently supported stock movement types:
stock_correction
completition
Every stock movent type offers webhook when new stock stock movement of that type is created
List of currently available webhooks:
CREATE_STOCK_MOVEMENT_STOCK_CORRECTION
CREATE_STOCK_MOVEMENT_COMPLETITION
API Endpoints
Authorizations
Header parameters
x-api-keystringRequired
This is the eshop key you receive during onboarding.
authorizationstringRequired
Token you get from calling /users/login
Body
pageinteger · min: 1OptionalDefault:
Page number, can be used for pagination
1
Example: 1
itemsinteger · min: 1 · max: 1000OptionalDefault:
items per page
10
Example: 30
Responses
200
Success response
application/json
401
Unauthorized response
application/json
post
POST /v2/stock-movements/filter HTTP/1.1
Host: gw.new.skladon.net
authorization: text
x-api-key: text
Content-Type: application/json
Accept: */*
Content-Length: 173
{
"page": 1,
"items": 30,
"columns": [
"sku",
"guid",
"name"
],
"sorts": [
{
"column": "count",
"direction": "DESC"
}
],
"filters": [
[
{
"column": "count",
"operator": "eq",
"value": "finalProduct"
}
]
]
}
{
"statusCode": 200,
"message": "text",
"data": {
"data": [
{
"count": 1,
"createdAt": "2024-07-19T08:42:06.000Z",
"updatedAt": "2024-07-19T08:42:06.000Z",
"expirationDate": "2024-06-30",
"id": 1,
"lot": "testLot",
"sku": "1001",
"type": "stock_correction"
}
],
"request": {
"page": 1,
"items": 30,
"columns": [
"sku",
"guid",
"name"
],
"sorts": [
{
"column": "count",
"direction": "DESC"
}
],
"filters": [
[
{
"column": "count",
"operator": "eq",
"value": "finalProduct"
}
]
]
},
"totalCount": 430
}
}
Last updated