Pobierz historię cen produktu
GET
/api/history/v3/prices
const url = 'https://twoja-instancja-pim-api.enterprise.sellrocket.pl/api/history/v3/prices?gtId=1&limit=100';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://twoja-instancja-pim-api.enterprise.sellrocket.pl/api/history/v3/prices?gtId=1&limit=100' \ --header 'Authorization: Bearer <token>'Zwraca historię zmian cen wskazanego produktu. Przydatne do audytu zmian cen.
Autoryzacja
Dział zatytułowany „Autoryzacja”Parametry
Dział zatytułowany „Parametry”Parametry zapytania
Dział zatytułowany „Parametry zapytania”gtId
wymagane
integer format: int64
limit
integer format: int32
Min value: 0, Max value: 100
Odpowiedzi
Dział zatytułowany „Odpowiedzi”Success
object
prices
Array<object>
object
historyId
integer format: int64
productId
integer format: int64
priceGroupId
integer format: int64
price
number format: double
previousPrice
number format: double
vat
number format: double
updatedAt
string format: date-time
actor
string
stocks
Array<object>
object
quantity
integer format: int32
warehouseId
integer format: int64
locationName
string
object
prices
Array<object>
object
historyId
integer format: int64
productId
integer format: int64
priceGroupId
integer format: int64
price
number format: double
previousPrice
number format: double
vat
number format: double
updatedAt
string format: date-time
actor
string
stocks
Array<object>
object
quantity
integer format: int32
warehouseId
integer format: int64
locationName
string
Examplegenerated
{ "prices": [ { "historyId": 1, "productId": 1, "priceGroupId": 1, "price": 1, "previousPrice": 1, "vat": 1, "updatedAt": "2026-04-15T12:00:00Z", "actor": "example", "stocks": [ { "quantity": 1, "warehouseId": 1, "locationName": "example" } ] } ]}object
prices
Array<object>
object
historyId
integer format: int64
productId
integer format: int64
priceGroupId
integer format: int64
price
number format: double
previousPrice
number format: double
vat
number format: double
updatedAt
string format: date-time
actor
string
stocks
Array<object>
object
quantity
integer format: int32
warehouseId
integer format: int64
locationName
string
Examplegenerated
{ "prices": [ { "historyId": 1, "productId": 1, "priceGroupId": 1, "price": 1, "previousPrice": 1, "vat": 1, "updatedAt": "2026-04-15T12:00:00Z", "actor": "example", "stocks": [ { "quantity": 1, "warehouseId": 1, "locationName": "example" } ] } ]}
