Przejdź do głównej zawartości

Pobierz historię statusów zamówień

GET
/api/v5/Orders/statusHistory
curl --request GET \
--url 'https://twoja-instancja-smerp-api.enterprise.sellrocket.pl/api/v5/Orders/statusHistory?offset=0&limit=100' \
--header 'Authorization: Bearer <token>'

Zwraca zmiany statusów zamówień, opcjonalnie od wskazanego momentu – przydatne do synchronizacji przyrostowej.

orderId
integer format: int64
gt
string format: date-time
offset
integer format: int32
0
limit
integer format: int32
default: 100

Success

Typ treściapplication/json
object
list
Array<object>
nullable
object
id
integer format: int64
orderId
integer format: int64
statusId
integer format: int64
nullable
statusName
string
nullable
changedAtUtc
string format: date-time
previousStatusName
string
nullable
previousStatusId
integer format: int64
nullable
changedBy
string
nullable
pageNumber
integer format: int32
total
integer format: int32
Examplegenerated
{
"list": [
{
"id": 1,
"orderId": 1,
"statusId": 1,
"statusName": "example",
"changedAtUtc": "2026-04-15T12:00:00Z",
"previousStatusName": "example",
"previousStatusId": 1,
"changedBy": "example"
}
],
"pageNumber": 1,
"total": 1
}

Bad Request

Typ treściapplication/json
object
type
string
nullable
title
string
nullable
status
integer format: int32
nullable
detail
string
nullable
instance
string
nullable
key
additional properties
Examplegenerated
{
"type": "example",
"title": "example",
"status": 1,
"detail": "example",
"instance": "example"
}

Server Error