Skladon - Developers
  • Skladon docs
  • 📡Integration
    • API
      • API usage tips and limits
      • Authentication
      • Claims
      • Files
      • Orders
      • Products
      • Products availability
      • Products sets
      • Receivings
      • Returns
      • Shipper service codes
      • Webhooks
      • Stock movements
    • Webhooks
  • Report a Bug
Powered by GitBook
On this page
  1. Integration
  2. API

Stock movements

In order to get stock movements you can either setup a webhook or use API endpoints to retrieve them.

PreviousWebhooksNextWebhooks

Last updated 1 month ago

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

📡
  • Webhooks
  • API Endpoints
  • POSTFilter stock movements

Filter stock movements

post
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: 1Optional

Page number, can be used for pagination

Default: 1Example: 1
itemsinteger · min: 1 · max: 1000Optional

items per page

Default: 10Example: 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
  }
}