Przejdź do głównej zawartości

Pobierz ostatnie zmiany stanów

POST
/api/history/v3/stocks/latest
curl --request POST \
--url https://twoja-instancja-pim-api.enterprise.sellrocket.pl/api/history/v3/stocks/latest \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '[ 1 ]'

Zwraca najnowsze wpisy historii stanów magazynowych dla przekazanych produktów. To operacja odczytu.

Array<integer>
Examplegenerated
[
1
]

Success

object
stocks
Array<object>
nullable
object
historyId
integer format: int64
productId
integer format: int64
quantity
integer format: int32
previousQuantity
integer format: int32
nullable
warehouseId
integer format: int64
locationName
string
nullable
updatedAt
string format: date-time
actor
string
nullable
prices
Array<object>
nullable
object
priceGroupId
integer format: int64
price
number format: double
vat
number format: double