Solk ERP API

Send stock

Writes the quantity on hand and the warehouse breakdown by item code (warehouses: [{name, qty}]; without qty the warehouses are summed). Stock on orders and the product list shows this value.

POST/api/erp/v1/stock

Authorization

Authorizationheaderrequired
Solk ERP API key (erp_…): shown once when a Solk ERP API connection is created under Settings → Accounting & ERP. May also be sent as the X-Solk-Erp-Key header.

Body application/json

itemsarrayrequired
Stock: code, qty, warehouses (name, qty).

Errors

HTTPerrorMeaning
401unauthorizedMissing, invalid, expired or revoked token.
400invalidMissing or invalid field (`message` explains).
413too_manyAt most 2,000 records per request.
429rate_limitedPer-minute request limit exceeded (`Retry-After`).
Request
curl -X POST https://ornek.solk.app/api/erp/v1/stock \
  -H "Authorization: Bearer $SOLK_ERP_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "items": [
    {
      "code": "HS30",
      "qty": 5769,
      "warehouses": [
        {
          "name": "Merkez",
          "qty": 4200
        },
        {
          "name": "Gebze",
          "qty": 1569
        }
      ]
    }
  ]
}'
Response
{
  "ok": true,
  "received": 1
}

Example responses were captured from a v54 installation running sample data; lists are shortened to two items.