Przejdź do głównej zawartości

Zaktualizuj stany magazynowe (masowo)

PUT
/api/products/v3/bulk/stocks
curl --request PUT \
--url https://twoja-instancja-pim-api.enterprise.sellrocket.pl/api/products/v3/bulk/stocks \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '[ { "productId": 1, "stocks": [ { "warehouseId": 1, "quantity": 1, "vatSymbol": "example" } ] } ]'

Masowo aktualizuje stany produktów w magazynach i zwraca wynik dla każdej pozycji. Odpowiednik updateInventoryProductsStock w BaseLinker.

Array<object>
object
productId
integer format: int64
stocks
Array<object>
nullable
object
warehouseId
integer format: int64
quantity
integer format: int32
vatSymbol
string
nullable
Examplegenerated
[
{
"productId": 1,
"stocks": [
{
"warehouseId": 1,
"quantity": 1,
"vatSymbol": "example"
}
]
}
]

Success

object
exid
string format: uuid
updatedCount
integer format: int32
failedCount
integer format: int32
errorDetails
Array<object>
nullable
object
productId
integer format: int64
errorMessage
string
nullable

Server Error

object
type
string
nullable
title
string
nullable
status
integer format: int32
nullable
detail
string
nullable
instance
string
nullable
key
additional properties